Do final value replacement in try_create_reduction_list
[official-gcc.git] / gcc / ChangeLog
blob51578300c688eed4b9c23bba2a8885df56def1a0
1 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3         PR tree-optimization/68373
4         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out of ...
5         (scev_const_prop): ... here.
6         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
7         * tree-parloops.c (try_create_reduction_list): Call
8         final_value_replacement_loop.
10 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
12         PR tree-optimization/52272
13         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
14         (struct iv_common_cand_hasher): New struct.
15         (iv_common_cand_hasher::hash): New function.
16         (iv_common_cand_hasher::equal): New function.
17         (struct ivopts_data): New fields, iv_common_cand_tab and
18         iv_common_cands.
19         (tree_ssa_iv_optimize_init): Initialize above fields.
20         (record_common_cand, common_cand_cmp): New functions.
21         (add_iv_candidate_derived_from_uses): New function.
22         (add_iv_candidate_for_use): Record iv_common_cands derived from
23         iv use in hash table, instead of adding candidates directly.
24         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
25         (record_important_candidates): Add important candidates to iv uses'
26         related_cands.  Always keep related_cands for future use.
27         (try_add_cand_for): Use iv uses' related_cands.
28         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
29         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
31 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
33         * config/s390/s390.md ("bswaphi2"): New pattern.
35 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
37         * config/s390/s390.md (GPR1_REGNUM): New constant.
38         ("*trunc<BFP:mode><DFP_ALL:mode>2")
39         ("*trunc<DFP_ALL:mode><BFP:mode>2")
40         ("trunc<BFP:mode><DFP_ALL:mode>2")
41         ("trunc<DFP_ALL:mode><BFP:mode>2")
42         ("*extend<BFP:mode><DFP_ALL:mode>2")
43         ("*extend<DFP_ALL:mode><BFP:mode>2")
44         ("extend<BFP:mode><DFP_ALL:mode>2")
45         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
47 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
48             Sebastian Pop  <s.pop@samsung.com>
50         PR tree-optimization/68428
51         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
52         over basic blocks outside the scop.
54 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
55             Sebastian Pop  <s.pop@samsung.com>
57         PR tree-optimization/68341
58         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
59         gcc_unreachable and safely fail codegen.
60         (copy_loop_close_phi_args): Do not insert merge phis in a basic
61         block with loop phi nodes.
62         (edge_for_new_close_phis): New.
63         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
65 2015-11-19  Nathan Sidwell  <nathan@acm.org>
67         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
68         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
69         (nvptx_declare_objec_name): Likewise.
71 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
73         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
74         (get_false_edge_from_guard_bb): Move...
75         * sese.c (get_false_edge_from_guard_bb)
76         (get_true_edge_from_guard_bb): ... here.
78 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
80         Revert
81         2015-11-18  Alan Modra  <amodra@gmail.com>
83         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
84         type-limits warning.
87 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
89         * tree.h (desired_pro_or_demotion_p): New function.
90         * tree-vrp.c (simplify_cond_using_ranges): Call it.
92 2015-11-19  Michael Matz  <matz@suse.de>
94         * fwprop.c (update_uses): Use flag_checking instead of
95         gcc_checking_assert.
97 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
99         * doc/gty.texi (Support for inheritance): Fix missing
100         parentheses in example.
102 2015-11-19  Marek Polacek  <polacek@redhat.com>
104         PR tree-optimization/68431
105         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
107 2015-11-19  Nathan Sidwell  <nathan@acm.org>
109         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
110         atomic_exchange<mode>): Input values can be immediates.
112 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
114         PR lto/61313
115         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
116         by the user.
117         * configure: Regenerate.
119 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
121         PR target/68408
122         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
123         (DTORS_SECTION_ASM_OP): Likewise.
125 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
127         PR rtl-optimization/68376
128         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
129         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
131 2015-11-19  Richard Biener  <rguenther@suse.de>
133         PR middle-end/68117
134         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
135         redirect_edge_var_map_destroy.
137 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
139         PR target/67770
140         * config/i386/i386.md (simple_return): Disable if
141         ix86_static_chain_on_stack is true.
143 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
145         PR bootstrap/68393
146         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
147         destinations.
149 2015-11-18  Jeff Law  <law@redhat.com>
151         PR tree-optimization/68198
152         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
153         between threading a multi-way branch and a thread path that contains
154         a multi-way branch.  Disallow the case where a path contains a
155         multi-way branch and does not thread a multi-way branch.
156         (thread_through_all_blocks): Update comment.
158 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
160         PR c/65083
161         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
162         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
163         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
164         functions before defining as macros.
166 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
168         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
169         (nvptx_record_offload_symbol): Remove code compensating for lack
170         of default dimension handling.
171         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
173 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
175         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
176         type to bool for early exit.
177         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
178         in case of error.
179         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
180         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
181         predecessor dominates the other.
182         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
183         element is not found it returns -1.
184         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
185         out early when codegen fails.
186         (graphite_regenerate_ast_isl): Remove codegen region when pending
187         phis could not be generated.
189 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
191         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
192         semicolon.
193         (class translate_isl_ast_to_gimple): Indentation.
194         (translate_pending_phi_nodes): Comment.
195         (add_parameters_to_ivs_params): Moved from sese.c inside class
196         translate_isl_ast_to_gimple.
197         (get_max_schedule_dimensions): Same.
198         (generate_isl_context): Same.
199         (extend_schedule): Same.
200         (generate_isl_schedule): Same.
201         (set_options): Same.
202         (scop_to_isl_ast): Same.
203         (is_valid_rename): Same.
204         (get_rename): Same.
205         (get_rename_from_scev): Same.
206         (get_def_bb_for_const): Same.
207         (get_new_name): Same.
208         (collect_all_ssa_names): Same.
209         (copy_loop_phi_args): Same.
210         (copy_loop_phi_nodes): Same.
211         (copy_loop_close_phi_args): Same.
212         (copy_loop_close_phi_nodes): Same.
213         (copy_cond_phi_args): Same.
214         (copy_cond_phi_nodes): Same.
215         (graphite_copy_stmts_from_block): Same.
216         (copy_bb_and_scalar_dependences): Same.
217         (add_phi_arg_for_new_expr): Same.
218         (rename_uses): Same.
219         (set_rename): Same.
220         (set_rename_for_each_def): Same.
221         (gsi_insert_earliest): Same.
222         (rename_all_uses): Same.
223         (codegen_error_p): Same.
224         (print_isl_ast_node): Same.
225         (translate_isl_ast_for_loop): Call function codegen_error_p.
226         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
227         (translate_isl_ast_node_user): Make nb_loops const and release
228         iv_map before exit.
229         (get_true_edge_from_guard_bb): Move all free-functions early.
230         (get_false_edge_from_guard_bb): Same.
231         (bb_contains_loop_close_phi_nodes): Same.
232         (bb_contains_loop_phi_nodes): Same.
233         (is_loop_closed_ssa_use):  Same.
234         (number_of_phi_nodes): Same.
235         (phi_uses_name): Same.
236         (later_of_the_two): Same.
237         (substitute_ssa_name):
238         (get_edges): Same.
239         (get_loc): Same.
240         (get_loop_init_value): Same.
241         (find_init_value): Same.
242         (find_init_value_close_phi): Same.
243         (ast_build_before_for): Same.
244         (graphite_regenerate_ast_isl): Formatting changes.
245         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
246         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
247         (set_rename): Same.
248         (gsi_insert_earliest): Same.
249         (collect_all_ssa_names): Same.
250         (rename_all_uses): Same.
251         (rename_uses): Same.
252         (get_def_bb_for_const): Same.
253         (copy_loop_phi_nodes): Same.
254         (copy_loop_close_phi_args): Same.
255         (copy_loop_close_phi_nodes): Same.
256         (copy_cond_phi_args): Same.
257         (copy_cond_phi_nodes): Same.
258         (set_rename_for_each_def): Same.
259         (graphite_copy_stmts_from_block): Same.
260         (copy_bb_and_scalar_dependences): Same.
261         (if_region_set_false_region): Same.
262         (scev_analyzable_p): Same.
263         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
265 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
267         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
268         commit from r125920 for FreeBSD.
270 2015-11-18  Jason Merrill  <jason@redhat.com>
272         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
273         to be vecs of vecs.
274         (add_finalizer): Split out from ggc_internal_alloc.
275         (ggc_handle_finalizers): Run finalizers for the current depth.
276         (init_ggc, ggc_pch_read): Reserve space for finalizers.
278 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
280         PR target/68410
281         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
282         from || expression.
284 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
286         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
287         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
288         and atmega328pb.
289         * doc/avr-mmcu.texi: Regenerate.
291 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
293         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
294         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
295         (struct bb_sese): New struct.
296         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
297         (BB_GET_SESE, BB_SET_SESE): Define.
298         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
299         (nvptx_find_sese): New.
300         (nvptx_neuter_pars): Find SESE regions when optimizing.
302 2015-11-18  Alan Modra  <amodra@gmail.com>
304         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
305         type-limits warning.
307 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
309         PR bootstrap/68406
310         * hash-set.h (hash_set::traverse): Expand Key typedef.
312 2015-11-18  Martin Liska  <mliska@suse.cz>
314         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
315         options struct.
317 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
319         * config/nvptx/nvptx.c (global_lock_var): New.
320         (nvptx_global_lock_addr): New.
321         (nvptx_lockless_update): Recomment and adjust for clarity.
322         (nvptx_lockfull_update): New.
323         (nvptx_reduction_update): New.
324         (nvptx_goacc_reduction_fini): Call it.
326 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
328         * regrename.h (struct du_head): Add target_data_1 and target_data_2
329         fields.
330         * regrename.c (create_new_chain): Clear entire struct after allocating.
332         * config/i386/i386.opt (mmitigate-rop): New option.
333         * doc/invoke.texi (mmitigate-rop): Document.
334         * config/i386/i386.c: Include "regrename.h".
335         (ix86_rop_should_change_byte_p, reg_encoded_number,
336         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
337         static functions.
338         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
339         * config/i386/i386.md (attr "modrm_class"): New.
340         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
341         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
342         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
344 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
346         PR target/68405
347         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
349 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
351         PR tree-optimization/68157
352         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
353         pow_stmt or mul_stmt from stmt's uid.
354         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
356 2015-11-18  Martin Liska  <mliska@suse.cz>
358         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
360 2015-11-18  Martin Liska  <mliska@suse.cz>
362         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
363         Fix GNU coding style.
364         (find_def_preds): Use auto_vec.
365         (destroy_predicate_vecs): Change signature of the function.
366         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
367         new signature.
368         (simplify_preds_4): Use destroy_predicate_vecs instread of
369         just releasing preds vector.
370         (normalize_preds): Likewise.
371         (is_use_properly_guarded): Use new signature of
372         destroy_predicate_vecs.
373         (find_uninit_use): Likewise.
375 2015-11-18  Richard Biener  <rguenther@suse.de>
377         PR tree-optimization/67790
378         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
379         IL rewrite for MINUS_EXPR reductions, rename back to ...
380         (vect_is_simple_reduction): ... this, removing the wrapper.
381         (vect_force_simple_reduction): Adjust.
382         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
383         reductions and make use if reduc_index in all places.  For
384         the final reduction of MINUS_EXPR use PLUS_EXPR.
386 2015-11-18  Alan Modra  <amodra@gmail.com>
388         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
389         to ld.
390         * configure: Regenerate.
392 2015-11-17  Tom de Vries  <tom@codesourcery.com>
394         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
396 2015-11-17  Tom de Vries  <tom@codesourcery.com>
398         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
399         uses of ssa_name with constant.
401 2015-11-17  Tom de Vries  <tom@codesourcery.com>
403         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
404         something changed.
406 2015-11-17  Tom de Vries  <tom@codesourcery.com>
408         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
409         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
410         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
412 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
414         * regrename.c (regrename_find_superclass): New function, code moved
415         from ...
416         (rename_chains): ... here.  Call it.
417         * regrename.h (regrename_find_superclass): Declare.
419         * regrename.c (record_out_operands): Terminate earlyclobbered
420         operands here.
422         PR target/66785
423         * regrename.c (record_operand_use): Keep track of failed operands
424         and stop appending if we see any.
425         * regrename.h (struct operand_rr_info): Add a failed field and shrink
426         n_chains to short.
428 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
430         PR 48568
431         * doc/extend.texi (Common Function Attributes) [visibility]:
432         Add cross-references to matching variable and type attributes.
433         (Common Variable Attributes) [visibility]: Add missing entry.
435 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
437         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
438         entries that map directly to optabs.
440 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
442         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
443         entries that map directly to optabs.
445 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
447         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
448         * internal-fn.c (direct_internal_fn_array): Update accordingly.
449         * tree-vectorizer.h (vectorizable_function): Delete.
450         * tree-vect-stmts.c: Include internal-fn.h.
451         (vectorizable_internal_function): New function.
452         (vectorizable_function): Inline into...
453         (vectorizable_call): ...here.  Explicitly reject calls that read
454         from or write to memory.  Try using an internal function before
455         falling back on the old vectorizable_function behavior.
457 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
459         * target.def (builtin_vectorized_function): Take a combined_fn (in
460         the form of an unsigned int) rather than a function decl.
461         (builtin_md_vectorized_function): New.
462         * targhooks.h (default_builtin_vectorized_function): Replace the
463         fndecl argument with an unsigned int.
464         (default_builtin_md_vectorized_function): Declare.
465         * targhooks.c (default_builtin_vectorized_function): Replace the
466         fndecl argument with an unsigned int.
467         (default_builtin_md_vectorized_function): New function.
468         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
469         New hook.
470         * doc/tm.texi: Regenerate.
471         * tree-vect-stmts.c (vectorizable_function): Update call to
472         builtin_vectorized_function, also passing internal functions.
473         Call builtin_md_vectorized_function for target-specific builtins.
474         * config/aarch64/aarch64-protos.h
475         (aarch64_builtin_vectorized_function): Replace fndecl argument
476         with an unsigned int.
477         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
478         (aarch64_builtin_vectorized_function): Update after above changes.
479         Use CASE_CFN_*.
480         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
481         fndecl argument with an unsigned int.
482         * config/arm/arm-builtins.c: Include case-cfn-macros.h
483         (arm_builtin_vectorized_function): Update after above changes.
484         Use CASE_CFN_*.
485         * config/i386/i386.c: Include case-cfn-macros.h
486         (ix86_veclib_handler): Take a combined_fn rather than a
487         built_in_function.
488         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
489         mathfn_built_in rather than calling builtin_decl_implicit directly.
490         (ix86_builtin_vectorized_function) Update after above changes.
491         Use CASE_CFN_*.
492         * config/rs6000/rs6000.c: Include case-cfn-macros.h
493         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
494         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
495         than calling builtin_decl_implicit directly.
496         (rs6000_builtin_vectorized_function): Update after above changes.
497         Use CASE_CFN_*.  Move BUILT_IN_MD to...
498         (rs6000_builtin_md_vectorized_function): ...this new function.
499         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
501 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
503         * tree-vect-patterns.c: Include internal-fn.h.
504         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
506 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
508         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
509         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
511 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
513         * builtins.c (expand_errno_check, expand_builtin_mathfn)
514         (expand_builtin_mathfn_2): Delete.
515         (expand_builtin): Remove handling of functions with
516         internal function equivalents.
517         * internal-fn.def (SET_EDOM): New internal function.
518         * internal-fn.h (set_edom_supported_p): Declare.
519         * internal-fn.c (expand_SET_EDOM): New function.
520         (set_edom_supported_p): Likewise.
521         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
522         Rewrite comment at head of file.
523         (is_call_dce_candidate): Rename to...
524         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
525         or gimple_call_builtin_p here.
526         (edom_only_function): New function.
527         (shrink_wrap_one_built_in_call_with_conds): New function, split out
528         from...
529         (shrink_wrap_one_built_in_call): ...here.
530         (can_use_internal_fn, use_internal_fn): New functions.
531         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
532         for calls that have an lhs.
533         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
534         (pass_call_cdce::execute): Skip blocks that are optimized for size.
535         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
536         calls with an lhs.
537         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
538         at -O and above.
540 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
542         * builtins.h (called_as_built_in): Declare.
543         * builtins.c (called_as_built_in): Make external.
544         * internal-fn.h (expand_internal_call): Define a variant that
545         specifies the internal function explicitly.
546         * internal-fn.c (expand_load_lanes_optab_fn)
547         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
548         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
549         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
550         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
551         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
552         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
553         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
554         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
555         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
556         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
557         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
558         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
559         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
560         argument.
561         (internal_fn_expanders): Update prototype.
562         (expand_internal_call): Define a variant that specifies the
563         internal function explicitly. Use it to implement the previous
564         interface.
565         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
566         functions as calls to internal functions.
568 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
570         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
571         (generated_files): Likewise.
572         (s-cfn-operators, cfn-operators.pd): New rules.
573         (s-match): Depend on cfn-operators.pd.
574         * gencfn-macros.c: Expand comment to describe -o behavior.
575         (print_define_operator_list): New function.
576         (main): Accept -o.  Call print_define_operator_list.
577         * genmatch.c (main): Add the current directory to the include path.
578         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
579         instead.
581 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
583         * doc/match-and-simplify.texi: Document the "null" identifier.
584         * genmatch.c (id_base::NULL_ID): New kind.
585         (null_id): New variable.
586         (get_operator): Add a parameter that says whether null identifiers
587         are allowed.
588         (contains_id): New function.
589         (lower_for): Skip substitutions that would have a null_id in
590         either the match or the result.
591         (parser::parse_for): Allow the null identifier to be used.
592         (parser::parse_operator_list): Likewise.
593         (main): Initialize null_id.
595 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
597         * match.pd: Use HYPOT and COS rather than hypot and cos.
598         Use CASE_CFN_* macros.  Guard log/exp folds with
599         SCALAR_FLOAT_TYPE_P.
600         * genmatch.c (internal_fn): New enum.
601         (fn_id::fn): Change to an unsigned int.
602         (fn_id::fn_id): Accept internal_fn too.
603         (add_builtin): Rename to...
604         (add_function): ...this and turn into a template.
605         (get_operator): Only try one variation if the original name fails.
606         Only add _EXPR if the original name was all lower case.
607         Try converting internal and built-in function names to their
608         CFN equivalents.
609         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
610         (dt_simplify::gen_1): Likewise.
611         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
612         and get_call_combined_fn for generic.
613         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
614         (decision_tree::gen): Likewise.
615         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
616         Use add_function rather than add_builtin.  Register internal
617         functions too.
618         * generic-match-head.c: Include case-cfn-macros.h.
619         * gimple-fold.c (replace_stmt_with_simplification): Use
620         gimple_call_combined_fn to test whether we can keep an
621         existing call.
622         * gimple-match.h (code_helper): Replace built_in_function
623         with combined_fn.
624         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
625         and case-fn-macros.h.
626         (gimple_resimplify1): Use fold_const_call.
627         (gimple_resimplify2, gimple_resimplify3): Likewise.
628         (build_call_internal, build_call): New functions.
629         (maybe_push_res_to_seq): Use them.
630         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
631         rather than a built-in function.
632         * tree.h (build_call_expr_internal_loc): Declare.
633         (maybe_build_call_expr_loc): Likewise.
634         * tree.c (build_call_expr_internal_loc_array): New function.
635         (maybe_build_call_expr_loc): Likewise.
637 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
639         * builtins.h (mathfn_built_in): Add a variant that takes
640         a combined_fn.
641         * builtins.c: Include case-cfn-macros.h.
642         (CASE_MATHFN): Use CASE_CFN_*.
643         (CASE_MATHFN_REENT): Use CFN_ codes.
644         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
645         argument with a combined_fn.
646         (mathfn_built_in): Add a variant that takes a combined_fn.
647         (expand_builtin_int_roundingfn_2): Update callers accordingly.
648         (fold_builtin_sincos, fold_builtin_classify): Likewise.
650 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
652         * tree-vect-patterns.c: Include case-cfn-macros.h.
653         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
655 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
657         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
658         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
659         (pass_cse_sincos::execute): Likewise.
661 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
663         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
664         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
665         (decrement_power, acceptable_pow_call): Likewise.
666         (attempt_builtin_copysign): Likewise.
668 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
670         * tree-vrp.c: Include case-cfn-macros.h.
671         (extract_range_basic): Switch on combined_fn rather than handling
672         built-in functions and internal functions separately.
674 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
676         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
677         than a built_in_function.
678         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
679         a function decl.
680         (integer_valued_real_call_p): Likewise.
681         * fold-const.c: Include case-cfn-macros.h
682         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
683         (negate_expr_p): Update accordingly.
684         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
685         a function decl.
686         (integer_valued_real_call_p): Likewise.
687         (tree_invalid_nonnegative_warnv_p): Update accordingly.
688         (integer_valued_real_p): Likewise.
689         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
690         to tree_call_nonnegative_warnv_p.
691         (gimple_call_integer_valued_real_p): Likewise
692         integer_valued_real_call_p.
693         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
694         (backprop::process_builtin_call_use): Extend to combined_fn.
695         (strip_sign_op_1): Likewise.
696         (backprop::process_use): Don't check for built-in calls here.
697         (backprop::execute): Likewise.
698         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
700 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
702         * fold-const-call.h (fold_const_call): Replace built_in_function
703         arguments with combined_fn arguments.
704         * fold-const-call.c: Include case-cfn-macros.h.
705         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
706         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
707         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
708         built_in_function arguments with combined_fn arguments.
709         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
710         (fold_builtin_3): Update calls to fold_const_call.
712 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
714         * Makefile.in (HASH_TABLE_H): Add GGC_H.
715         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
716         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
717         (build/gencfn-macros$(build_exeext): New rules.
718         (genprogerr): Add cfn-macros.
719         * hash-set.h (hash_set): Use the traits value_type as the key.
720         * gencfn-macros.c: New file.
722 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
724         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
725         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
726         * builtins.c (associated_internal_fn): Handle them.
728 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
730         * builtins.h (associated_internal_fn): Declare.
731         (replacement_internal_fn): Likewise.
732         * builtins.c: Include internal-fn.h
733         (associated_internal_fn, replacement_internal_fn): New functions.
734         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
735         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
736         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
737         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
738         (LDEXP): New functions.
739         * internal-fn.c: Include recog.h.
740         (unary_direct, binary_direct): New macros.
741         (expand_direct_optab_fn): New function.
742         (expand_unary_optab_fn): New macro.
743         (expand_binary_optab_fn): Likewise.
744         (direct_unary_optab_supported_p): Likewise.
745         (direct_binary_optab_supported_p): Likewise.
747 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
749         * coretypes.h (tree_pair): New type.
750         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
751         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
752         * internal-fn.h (direct_internal_fn_info): New structure.
753         (direct_internal_fn_array): Declare.
754         (direct_internal_fn_p, direct_internal_fn): New functions.
755         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
756         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
757         (mask_store_direct, store_lanes_direct): New macros.
758         (direct_internal_fn_array) New array.
759         (get_multi_vector_move): Return the optab handler without asserting
760         that it is available.
761         (expand_LOAD_LANES): Rename to...
762         (expand_load_lanes_optab_fn): ...this and add an optab argument.
763         (expand_STORE_LANES): Rename to...
764         (expand_store_lanes_optab_fn): ...this and add an optab argument.
765         (expand_MASK_LOAD): Rename to...
766         (expand_mask_load_optab_fn): ...this and add an optab argument.
767         (expand_MASK_STORE): Rename to...
768         (expand_mask_store_optab_fn): ...this and add an optab argument.
769         (direct_internal_fn_types, direct_optab_supported_p)
770         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
771         (direct_internal_fn_supported_p): New functions.
772         (direct_mask_load_optab_supported_p): New macro.
773         (direct_load_lanes_optab_supported_p): Likewise.
774         (direct_mask_store_optab_supported_p): Likewise.
775         (direct_store_lanes_optab_supported_p): Likewise.
777 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
779         * tree-core.h (internal_fn): Move immediately after the definition
780         of built_in_function.
781         (combined_fn): New enum.
782         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
783         (internal_fn_p, as_internal_fn): New functions.
784         (get_call_combined_fn, combined_fn_name): Declare.
785         * tree.c (get_call_combined_fn): New function.
786         (combined_fn_name): Likewise.
787         * gimple.h (gimple_call_combined_fn): Declare.
788         * gimple.c (gimple_call_combined_fn): New function.
790 2015-11-17  Martin Sebor  <msebor@redhat.com>
792         PR c++/68308
793         * cp/init.c (build_new_1): Check for expression constness
794         the right way.
796 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
798         PR target/53587
799         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
800         option list.
801         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
802         discussion of the Microsoft structure layout details here from
803         its former home in extend.texi.
804         * doc/extend.texi (x86 Variable Attributes): Replace detailed
805         discussion with pointer to its new location.  Add cross-reference
806         to corresponding type attributes.
807         (x86 Type Attributes): Add cross-references to command-line options
808         and variable attributes.
810 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
812         PR middle-end/68134
813         * targhooks.c (default_get_mask_mode): Filter out
814         scalar modes returned by mode_for_vector.
816 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
818         PR target/68143
819         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
820         offset from dstbase and use it appropriately in
821         adjust_automodify_address.
822         (arm_block_set_aligned_vect): Likewise.
824 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
826         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
827         (MULTILIB_DIRNAMES): Adjust accordingly.
829 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
831         * config/aarch64/aarch64-cores.def (cortex-a35): New.
832         * config/aarch64/aarch64.c (cortexa35_tunings): New.
833         * config/aarch64/aarch64-tune.md: Regenerate.
834         * doc/invoke.texi (-mcpu): Add Cortex-A35
836 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
838         PR target/68263
839         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
840         to 32 for IAMCU.
841         * config/i386/sse.md (*mov<mode>_internal): Always enable
842         AVX and SSE unaligned moves for IAMCU.
844 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
846         * tree-if-conv.c: Include varasm.h
847         (ref_DR_map): Define.
848         (baseref_DR_map): Like wise
849         (struct ifc_dr): Add new tree predicate field.
850         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
851         (memrefs_read_or_written_unconditionally): Remove.
852         (write_memrefs_written_at_least_once): Remove.
853         (ifcvt_memrefs_wont_trap): Use hash maps to query
854         unconditional read/written information.
855         (if_convertible_loop_p_1):  Initialize hash maps and predicates
856         before hashing data references and delete hashmaps at the end.
858 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
860         PR 56036
861         * doc/invoke.texi (Optimize Options): Move @end table to the right
862         place.
864 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
866         PR 65129
867         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
868         return value.
870 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
872         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
873         128-bit types, just types that fit in a single vector.
874         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
876 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
878         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
879         in the user documentation.
880         (define_peephole2, define_split): Similarly.
882 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
884         * lto-streamer-out.c (write_global_references): Adjust integer type.
885         (lto_output_decl_state_refs): Likewise.
887 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
889         * config/arm/arm-cores.def (cortex-a35): New.
890         * config/arm/arm.c (arm_cortex_a35_tune): New.
891         * config/arm/arm-tables.opt: Regenerate.
892         * config/arm/arm-tune.md: Regenerate.
893         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
894         * config/arm/t-aprofile: Likewise.
895         * doc/invoke.texi (-mcpu): Likewise.
897 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
899         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
900         and qdf24xx and xgene1 to match -march=armv8-a.
902 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
904         PR rtl-optimization/68330
905         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
906         of LSHIFTRT by a non-zero constant integer.
908 2015-11-16  Richard Biener  <rguenther@suse.de>
910         PR tree-optimization/68306
911         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
912         bogus copying from verify_data_ref_alignment and use continue
913         instead of return.
915 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
916             Kaz Kojima  <kkojima@gcc.gnu.org>
918         PR target/68277
919         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
920         operands[2].
921         (*addsi3): Add another insn_and_split variant for reload.
923 2015-11-16  Richard Biener  <rguenther@suse.de>
925         PR middle-end/68117
926         * cfgexpand.c (pass_expand::execute): Destroy the edge
927         redirection var map before setting RTL CFG hooks.
929 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
931         * config/i386/sse.md (reduc_splus_v8df): Rename to...
932         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
934         (reduc_splus_v4df): Rename to...
935         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
937         (reduc_splus_v2df): Rename to...
938         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
940         (reduc_splus_v16sf): Rename to...
941         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
943         (reduc_splus_v8sf): Rename to...
944         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
946         (reduc_splus_v4sf): Rename to...
947         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
949         (reduc_<code>_<mode>, all 3 variants): Rename each to...
950         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
952         (reduc_umin_v8hf): Rename to...
953         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
955 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
957         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
958         without additional conditions.
959         * doc/extend.texi (@item simd): New.
961 2015-11-16  Tom de Vries  <tom@codesourcery.com>
963         * passes.c (first_pass_instance): Remove variable.
964         (execute_todo): Remove setting of first_pass_instance.
965         * tree-pass.h (first_pass_instance): Remove declaration.
967 2015-11-16  Tom de Vries  <tom@codesourcery.com>
969         * passes.def: Add arg to pass_ccp pass instantiation.
970         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
971         instead of first_pass_instance.
972         (do_ssa_ccp): Add and handle param nonzero_p.
973         (pass_ccp::pass_ccp): Initialize nonzero_p.
974         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
975         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
976         (pass_ccp::nonzero_p): New private member.
978 2015-11-16  Tom de Vries  <tom@codesourcery.com>
980         * passes.def: Add arg to pass_object_sizes pass instantiation.
981         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
982         insert_min_max_p.
983         (pass_object_sizes::set_pass_param): New member function.  Set
984         insert_min_max_p.
985         (pass_object_sizes::insert_min_max_p): New private member.
986         (pass_object_sizes::execute): Use insert_min_max_p instead of
987         first_pass_instance.
989 2015-11-16  Tom de Vries  <tom@codesourcery.com>
991         * passes.def: Add arg to pass_dominator pass instantiation.
992         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
993         of comment.
994         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
995         may_peel_loop_headers_p.
996         (pass_dominator::set_pass_param): New member function.  Set
997         may_peel_loop_headers_p.
998         (pass_dominator::may_peel_loop_headers_p): New private member.
999         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1000         first_pass_instance.
1002 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1004         * passes.def: Add arg to pass_reassoc pass instantiation.
1005         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1006         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1007         of first_pass_instance.
1008         (execute_reassoc): Add and handle insert_powi_p parameter.
1009         (pass_reassoc::insert_powi_p): New private member.
1010         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1011         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
1012         (pass_reassoc::execute): Call execute_reassoc with extra arg.
1014 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1016         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1017         * gen-pass-instances.awk (handle_line): Same.
1018         * pass_manager.h (class pass_manager): Define and undefine
1019         NEXT_PASS_WITH_ARG.
1020         * passes.c (opt_pass::set_pass_param): New function.
1021         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1022         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1023         * tree-pass.h (gimple_opt::set_pass_param): Declare.
1024         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1025         warn_array_bounds_p parameter.
1026         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1027         (pass_vrp::set_pass_param): New function.
1028         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1029         (pass_vrp::warn_array_bounds_p): New private member.
1031 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1033         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1034         (output_probe_stack_range): Rotate the loop and simplify.
1036 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1038         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1039         (output_probe_stack_range): Rotate the loop and simplify.
1041 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1043         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1044         an lea instruction when possible.
1045         (output_adjust_stack_and_probe): Rotate the loop and simplify.
1046         (ix86_emit_probe_stack_range): Adjust.
1047         (output_probe_stack_range): Rotate the loop and simplify.
1049 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1051         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1052         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1053         with appropriate pragma GCC target.
1055 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1057         PR target/65837
1058         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1059         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1061 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1063         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1064         (cortexa57_tunings): Use it.
1066 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1068         PR target/65837
1069         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1070         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1071         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1072         undefine __ARM_FP.
1073         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1074         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1075         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1076         * doc/extend.texi (-mfpu=): Describe attribute.
1078 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1080         PR target/65837
1081         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1082         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1083         arm_init_neon_builtins.
1084         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1085         (arm_init_neon_builtins_internal)
1086         (arm_init_crypto_builtins_internal):
1087         Test and set neon_set_p, neon_crypto_set_p.
1088         (neon_set_p, neon_crypto_set_p): New static booleans.
1090 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1092         PR target/65837
1093         * config/arm/arm.c (arm_fpu_desc): Remove.
1094         (all_fpus): Make global.
1095         (arm_option_override): Use FPU TARGET accessors.
1096         (arm_declare_function_name): Likewise.
1097         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1098         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1099         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1100         (TARGET_NEON): Likewise.
1101         (all_fpus): Declare extern.
1102         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1103         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1105 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1107         PR middle-end/68366
1108         * sdbout.c: Include emit-rtl.h and function.h.
1110 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
1112         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1113         Remove support for FreeBSD 5 and earlier.
1115 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1117         * configure: Regenerate.
1118         * configure.ac: Always define ENABLE_OFFLOADING.
1119         * cgraph.c (cgraph_node::create): Adjust.
1120         * gcc.c (process_command): Likewise.
1121         * omp-low.c (create_omp_child_function): Likewise.
1122         (expand_omp_target): Likewise.
1123         * varpool.c (varpool_node::get_create): Likewise.
1125 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1127         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1128         * df-scan.c (df_get_exit_block_use_set): Adjust.
1129         * except.c (expand_eh_return): Likewise.
1131 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1133         * config/i386/i386.h (TARGET_PECOFF): Remove define.
1134         * defaults.h (TARGET_PECOFF): New default definition.
1135         * varasm.c (handle_vtv_comdat_section): Adjust.
1137 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1139         * defaults.h: New definition of SDB_DEBUGGING_INFO.
1140         * doc/tm.texi: Regenerate.
1141         * doc/tm.texi.in: Adjust.
1142         * final.c (rest_of_clean_state): Remove check if
1143         SDB_DEBUGGING_INFO is defined.
1144         * function.c (number_blocks): Likewise.
1145         * output.h: Likewise.
1146         * sdbout.c: Likewise.
1147         * toplev.c (process_options): Likewise.
1149 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1151         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1152         (enum sdb_masks): Likewise.
1153         * sdbout.c (plain_type_1): Likewise.
1154         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1156 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
1158         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1159         internal calls - 0 if ordered simd and 1 for ordered threads simd.
1160         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1161         argument is 1, replace it with GOMP_ordered_* call instead of removing
1162         it.
1164 2015-11-13  Rich Felker <dalias@libc.org>
1166         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1167         address loading hack for FDPIC targets.
1169 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
1170             Jeff Law  <law@redhat.com>
1172         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1173         * common.opt (-fsplit-paths): New flag controlling path splitting.
1174         * doc/invoke.texi (fsplit-paths): Document.
1175         * opts.c (default_options_table): Add -fsplit-paths to -O2.
1176         * passes.def: Add split_paths pass.
1177         * timevar.def (TV_SPLIT_PATHS): New timevar.
1178         * tracer.c: Include "tracer.h"
1179         (ignore_bb_p): No longer static.
1180         (transform_duplicate): New function, broken out of tail_duplicate.
1181         (tail_duplicate): Use transform_duplicate.
1182         * tracer.h (ignore_bb_p): Declare
1183         (transform_duplicate): Likewise.
1184         * tree-pass.h (make_pass_split_paths): Declare.
1185         * gimple-ssa-split-paths.c: New file.
1187 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
1188             Marek Polacek  <polacek@redhat.com>
1189             Jason Merrill  <jason@redhat.com>
1191         * convert.c (maybe_fold_build1_loc): New.
1192         (maybe_fold_build2_loc): New.
1193         (convert_to_pointer_1): Split out from convert_to_pointer.
1194         (convert_to_pointer_nofold): New.
1195         (convert_to_real_1): Split out from convert_to_real.
1196         (convert_to_real_nofold): New.
1197         (convert_to_integer_1): Split out from convert_to_integer.
1198         (convert_to_integer_nofold): New.
1199         (convert_to_complex_1): Split out from convert_to_complex.
1200         (convert_to_complex_nofold): New.
1201         * convert.h: Declare new functions.
1202         * tree-complex.c (create_one_component_var): Break up line to
1203         avoid sequence point issues.
1205 2015-11-13  Jason Merrill  <jason@redhat.com>
1207         * fold-const.c (fold_convert_const): Fold changing cv-quals on
1208         VECTOR_CST.
1210         * hash-map.h (hash_map::empty): New.
1212 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1214         * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1215         (oacc_loop_fixed_partitions): Correct return type to bool.
1216         (oacc_loop_auto_partitions): New.
1217         (oacc_loop_partition): Take mask argument, call
1218         oacc_loop_auto_partitions.
1219         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1221 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1223         * config/rs6000/constraints.md (we constraint): New constraint for
1224         64-bit power9 vector support.
1225         (wL constraint): New constraint for the element in a vector that
1226         can be addressed by the MFVSRLD instruction.
1228         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1229         declaration.
1230         (convert_int_to_float128): Likewise.
1231         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1232         hardware support for IEEE 128-bit floating point.
1233         (rs6000_expand_float128_convert): Likewise.
1234         (convert_float128_to_int): Likewise.
1235         (convert_int_to_float128): Likewise.
1237         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1238         ISA 3.0 hardware IEEE 128-bit floating point.
1239         (UNSPEC_IEEE128_MOVE): Likewise.
1240         (UNSPEC_IEEE128_CONVERT): Likewise.
1241         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1242         (Ff): Add support for DImode.
1243         (Fv): Likewise.
1244         (any_fix code iterator): New and updated iterators for IEEE
1245         128-bit floating point hardware support.
1246         (any_float code iterator): Likewise.
1247         (s code attribute): Likewise.
1248         (su code attribute): Likewise.
1249         (az code attribute): Likewise.
1250         (uns code attribute): Likewise.
1251         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1252         floating point hardware support.
1253         (abs<mode>2, FLOAT128 iterator): Likewise.
1254         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1255         floating point hardware.
1256         (sub<mode>3, IEEE128 iterator): Likewise.
1257         (mul<mode>3, IEEE128 iterator): Likewise.
1258         (div<mode>3, IEEE128 iterator): Likewise.
1259         (copysign<mode>3, IEEE128 iterator): Likewise.
1260         (sqrt<mode>2, IEEE128 iterator): Likewise.
1261         (neg<mode>2, IEEE128 iterator): Likewise.
1262         (abs<mode>2, IEEE128 iterator): Likewise.
1263         (nabs<mode>2, IEEE128 iterator): Likewise.
1264         (fma<mode>4_hw, IEEE128 iterator): Likewise.
1265         (fms<mode>4_hw, IEEE128 iterator): Likewise.
1266         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1267         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1268         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1269         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1270         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1271         (fix_fixuns code attribute): Likewise.
1272         (float_floatuns code attribute): Likewise.
1273         (fix<uns>_<mode>si2_hw): Likewise.
1274         (fix<uns>_<mode>di2_hw): Likewise.
1275         (float<uns>_<mode>si2_hw): Likewise.
1276         (float<uns>_<mode>di2_hw): Likewise.
1277         (xscvqp<su>wz_<mode>): Likewise.
1278         (xscvqp<su>dz_<mode>): Likewise.
1279         (xscv<su>dqp_<mode): Likewise.
1280         (ieee128_mfvsrd): Likewise.
1281         (ieee128_mfvsrwz): Likewise.
1282         (ieee128_mtvsrw): Likewise.
1283         (ieee128_mtvsrd): Likewise.
1284         (trunc<mode>df2_odd): Likewise.
1285         (cmp<mode>_h): Likewise.
1286         (128-bit GPR splitters): Don't split a 128-bit move that is a
1287         direct move between GPR and vector registers using ISA 3.0 direct
1288         move instructions.
1289         (maddld4): Add support for the ISA 3.0 integer multiply-add
1290         instruction.
1292         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1293         debugging.
1294         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1295         constraint.  Disable the VSX<->GPR direct move helpers if we have
1296         the MFVSRLD and MTVSRDD instructions.
1297         (rs6000_secondary_reload_simple_move): Add support for doing
1298         vector direct moves directly without additional scratch registers
1299         if we have ISA 3.0 instructions.
1300         (rs6000_secondary_reload_direct_move): Update comments.
1301         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1302         instructions.
1304         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1305         direct move instructions.
1306         (vsx_movti_64bit): Likewise.
1307         (vsx_extract_<mode>): Likewise.
1309         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1310         macros for ISA 3.0 direct move instructions.
1311         (TARGET_DIRECT_MOVE_128): Likewise.
1312         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1313         instruction.
1315         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1316         constraints.  Update wa documentation to say not to use %x<n> on
1317         instructions that only take Altivec registers.
1319 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1321         * Makefile.in (OBJS): Add gcc-rich-location.o.
1322         * diagnostic.c (diagnostic_append_note): Pass line_table to
1323         rich_location ctor.
1324         (emit_diagnostic): Likewise.
1325         (inform): Likewise.
1326         (inform_n): Likewise.
1327         (warning): Likewise.
1328         (warning_at): Likewise.
1329         (warning_n): Likewise.
1330         (pedwarn): Likewise.
1331         (permerror): Likewise.
1332         (error): Likewise.
1333         (error_n): Likewise.
1334         (error_at): Likewise.
1335         (sorry): Likewise.
1336         (fatal_error): Likewise.
1337         (internal_error): Likewise.
1338         (internal_error_no_backtrace): Likewise.
1339         (source_range::debug): Likewise.
1340         * gcc-rich-location.c: New file.
1341         * gcc-rich-location.h: New file.
1342         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1343         (warning_at): Likewise.
1344         * gimple.h (gimple_set_block): Use set_block function.
1345         * input.c (dump_line_table_statistics): Dump stats on how many
1346         ranges were optimized vs how many needed ad-hoc table.
1347         (write_digit_row): Add "map" param; use its range_bits
1348         to calculate the per-character offset.
1349         (dump_location_info): Print the range and column bits for each
1350         ordinary map.  Use the range bits to calculate the per-character
1351         offset.  Pass the map as a new param to the various calls to
1352         write_digit_row.  Eliminate uses of
1353         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1354         * print-tree.c (print_node): Print any source range information.
1355         * rtl-error.c (diagnostic_for_asm): Likewise.
1356         * toplev.c (general_init): Initialize line_table's
1357         default_range_bits.
1358         * tree-cfg.c (move_block_to_fn): Likewise.
1359         (move_block_to_fn): Likewise.
1360         * tree-inline.c (copy_phis_for_bb): Likewise.
1361         * tree.c (tree_set_block): Likewise.
1362         (get_pure_location): New function.
1363         (set_source_range): New functions.
1364         (set_block): New function.
1365         (set_source_range): New functions.
1366         * tree.h (CAN_HAVE_RANGE_P): New.
1367         (EXPR_LOCATION_RANGE): New.
1368         (EXPR_HAS_RANGE): New.
1369         (get_expr_source_range): New inline function.
1370         (DECL_LOCATION_RANGE): New.
1371         (set_source_range): New decls.
1372         (get_decl_source_range): New inline function.
1374 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
1376         PR tree-optimization/67682
1377         * tree-vect-slp.c (vect_split_slp_store_group): New.
1378         (vect_analyze_slp_instance): During basic block SLP, recurse on
1379         subgroups if vect_build_slp_tree fails after 1st vector.
1381 2015-11-13  Christian Bruel  <christian.bruel@st.com>
1383         PR target/65837
1384         * config/arm/arm.c (arm_option_override): Move NEON check...
1385         (arm_option_check_internal): here
1386         (arm_file_start): Move .fpu print...
1387         (arm_declare_function_name): here
1388         (arm_option_print): Dump current fpu name.
1389         * config/arm/arm.opt (arm_fpu_index): Mark Save.
1391 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
1392             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1394         * combine.c (subst): Don't substitute or simplify when
1395         handling register-wise widening multiply.
1396         (force_to_mode): Likewise.
1398 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
1400         PR tree-optimization/68264
1401         * tree-call-cdce.c (gen_one_condition): Update commentary.
1402         (gen_conditions_for_pow_int_base): Invert the sense of the tests
1403         passed to gen_one_condition.
1404         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
1405         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1406         using EDGE_FALSE_VALUE for edges to the call block and
1407         EDGE_TRUE_VALUE for the others.
1409 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1411         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1412         complex types.
1414 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1416         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1418 2015-11-13  Tom de Vries  <tom@codesourcery.com>
1420         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1421         len_of_prefix.
1423 2015-11-13  Tom de Vries  <tom@codesourcery.com>
1425         * gen-pass-instances.awk (handle_line): Add args_str variable.
1427 2015-11-13  Martin Liska  <mliska@suse.cz>
1429         * graphite-poly.c (free_scop): Release scop->drs vector.
1430         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1431         Release dom vector.
1432         (try_generate_gimple_bb): Use vNULL as a default initialization
1433         for vectors.
1435 2015-11-13  Martin Liska  <mliska@suse.cz>
1437         PR ipa/68311
1438         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1439         Replace array initialization (using a variable post-increment)
1440         that possible triggers multiple unsequenced modifications
1441         with a pair of pushes to a vector.
1443 2015-11-13  Richard Biener  <rguenther@suse.de>
1445         PR tree-optimization/68306
1446         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
1447         loop related checks ...
1448         (vect_verify_datarefs_alignment): ... here.
1449         (vect_slp_analyze_and_verify_node_alignment): Compute and
1450         verify alignment of the single DR that it matters.
1451         * tree-vect-stmts.c (vectorizable_store): Add an assert.
1452         (vectorizable_load): Add a comment.
1453         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
1454         for determining load cost.
1456 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1458         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
1459         mix of boolean and integer vectors in a single statement.
1460         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
1461         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
1462         determine constant type.
1463         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
1464         for loop invariants.
1466 2015-11-13  Alan Hayward <alan.hayward@arm.com>
1468         PR tree-optimization/66558
1469         * tree-vect-loop.c (is_integer_induction):Add.
1470         (vectorizable_reduction): Add integer induction checks.
1472 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
1474         Revert [ARM] Remove neon-testgen.ml and generated tests.
1476         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
1478         [ARM] Remove neon-testgen.ml and generated tests.
1480         * config/arm/neon-testgen.ml: Remove.
1482 2015-11-13  Richard Biener  <rguenther@suse.de>
1484         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
1485         Signal fatal failure if early checks fail.
1486         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
1487         do not bother testing further vector sizes.
1489 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
1491         * config/i386/predicates.md (misaligned_operand): Return true if
1492         operand is aligned to less than its natural alignmnet.
1494 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1496         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
1497         (vec_cmpu@var{m}@var{n}): New item.
1498         (vcond@var{m}@var{n}): Specify comparison is signed.
1499         (vcondu@var{m}@var{n}): New item.
1500         (vcond_mask_@var{m}@var{n}): New item.
1501         (maskload@var{m}@var{n}): New item.
1502         (maskstore@var{m}@var{n}): New item.
1504 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
1506         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1507         types of stored value and storage are compatible.
1509 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
1511         * gcc.c (POST_LINK_SPEC): Define if not already defined.
1512         (LINK_COMMAND_SPEC): Use post_link.
1513         (post_link_spec): New, initialize to POST_LINK_SPEC.
1514         (post_link): Initialize new static spec.
1515         * doc/tm.texi.in (POST_LINK_SPEC): Document.
1516         * doc/tm.texi: Regenerated.
1518 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1520         PR driver/67613
1521         * Makefile.in (GCC_OBJS): Add spellcheck.o.
1522         (OBJS): Add spellcheck-tree.o.
1523         * gcc.c: Include "spellcheck.h".
1524         (suggest_option): New function.
1525         (driver::handle_unrecognized_options): Call suggest_option to
1526         provide a hint about misspelled options.
1527         * spellcheck.c: Update file comment.
1528         (levenshtein_distance): Convert 4-param implementation from static
1529         to extern scope.  Remove note about unit tests from leading
1530         comment for const char * implementation.  Move tree
1531         implementation to...
1532         * spellcheck-tree.c: New file.
1533         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
1535 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1537         * Makefile.in (OBJS): Add spellcheck.o.
1538         * spellcheck.c: New file.
1539         * spellcheck.h: New file.
1541 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
1543         * config/ft32/ft32.md (*sne): New insn pattern.
1545 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
1547         * gcc/cprop.c (is_too_expensive): Remove.
1548         (gcse.h): Include.
1549         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
1550         is_too_expensive.
1551         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
1552         * gcc/gcse.c (is_too_expensive): Rename to ...
1553         (gcse_or_cprop_is_too_expensive): ... this.
1554         Expand warning to add required size of max-gcse-memory.
1555         (one_pre_gcse_pass): Use it.
1556         (one_code_hoisting_pass): Use it.
1557         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
1559 2015-11-12  James Norris  <jnorris@codesourcery.com>
1560             Joseph Myers  <joseph@codesourcery.com>
1562         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
1563         GF_OMP_TARGET_KIND_OACC_DECLARE.
1564         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
1565         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1566         * gimplify.c (oacc_declare_returns): New.
1567         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
1568         (device_resident_p): New function.
1569         (oacc_default_clause): Handle device_resident clause.
1570         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
1571         (gimplify_expr): Handle OACC_DECLARE.
1572         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
1573         * omp-low.c (expand_omp_target): Handle
1574         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
1575         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
1576         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
1577         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
1578         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
1579         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
1580         GOMP_MAP_DEVICE_RESIDENT.
1582 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
1584         [ARM] Remove neon-testgen.ml and generated tests.
1586         * config/arm/neon-testgen.ml: Remove.
1588 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
1590         * config/aarch64/aarch64-cores.def (qdf24xx): New.
1591         * config/aarch64/aarch64-tune.md: Regenerated.
1592         * config/arm/arm-cores.def (qdf24xx): New.
1593         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
1594         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
1595         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
1596         (ARM Options/-mtune): Likewise.
1598 2015-11-12  Martin Liska  <mliska@suse.cz>
1600         * config/i386/i386.c (ix86_valid_target_attribute_p):
1601         Finalize options at the of the function.
1602         * gcc.c (driver_get_configure_time_options): Call newly
1603         introduced init_opts_obstack.
1604         * lto-wrapper.c (main): Likewise.
1605         * opts.c (init_opts_obstack): New function.
1606         (init_options_struct): Call newly introduced init_opts_obstack.
1607         * opts.h (init_options_struct): Declare.
1609 2015-11-12  Martin Liska  <mliska@suse.cz>
1611         PR ipa/68035
1612         * ipa-icf.c (void sem_item::set_hash): New function.
1613         (sem_function::get_hash): Use renamed m_hash member variable.
1614         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
1615         (sem_item::update_hash_by_local_refs): Likewise.
1616         (sem_variable::get_hash): Use renamed m_hash member variable.
1617         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
1618         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
1619         (sem_item_optimizer::build_graph): As the hash value of an item
1620         is lazy initialized, force the calculation.
1621         * ipa-icf.h (set_hash): Declare new function and rename hash member
1622         variable to m_hash.
1624 2015-11-12  Richard Biener  <rguenther@suse.de>
1626         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
1627         Rename to vect_slp_analyze_instance_dependence.
1628         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1629         Remove WAR special-case.
1630         (vect_slp_analyze_node_dependences): Instead add more specific
1631         code here, not relying on other instances being vectorized.
1632         (vect_slp_analyze_instance_dependence): Adjust accordingly.
1633         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
1634         vertical space in dump files.
1635         (vect_print_slp_tree): Likewise.
1636         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
1637         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
1638         not vectorized stmts until after dependence analysis removed
1639         instances.  Merge alignment and dependence checks.
1640         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
1641         flag on all stmts.
1643 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
1645         * config/aarch64/aarch64-protos.h (tune_params): Add new members
1646         "max_case_values" and "cache_line_size".
1647         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
1648         function.
1649         (aarch64_override_options_internal): Tune heuristics based on new
1650         members in "tune_params".
1651         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1653 2015-11-12  Richard Biener  <rguenther@suse.de>
1655         PR tree-optimization/68306
1656         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
1657         relevant and vectorizable checks here.
1658         (vect_verify_datarefs_alignment): Add relevant check here.
1660 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
1662         * gimplify.c (oacc_default_clause): New.
1663         (omp_notice_variable): Call it.
1665 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
1667         PR tree-optimization/68305
1668         * tree-vect-slp.c (vect_get_constant_vectors): Support
1669         COND_EXPR with SSA_NAME as a condition.
1671 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1673         * config/visium/visium-protos.h (notice_update_cc): Delete.
1674         (print_operand): Likewise.
1675         (print_operand_address): Likewise.
1677 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
1679         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
1680         FUNCTION_VALUE_REGNO_P): Remove.
1681         * config/alpha/alpha-protos.h (function_value): Remove.
1682         * config/alpha/alpha.c (function_value): Rename to...
1683         (alpha_function_value_1): ... this.  Make static.
1684         (alpha_function_value, alpha_libcall_value,
1685         alpha_function_value_regno_p): New functions.
1686         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1687         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1689 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
1691         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1692         * config/alpha/alpha.c (alpha_memory_latency): Make static.
1693         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
1694         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1696 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1698         PR target/67265
1699         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
1700         assertion on the CFA register.
1702 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
1704         * expr.c (do_store_flag): Expand vector comparison as
1705         VEC_COND_EXPR if vector comparison is not supported by target.
1707 2015-11-12  Renlin Li  <renlin.li@arm.com>
1709         * config/arm/arm.md (addsi3_compare_op2): Make the order of
1710         assembly pattern consistent with constraint order.
1712 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1714         * gen-pass-instances.awk (handle_line): Simplify match regexp.
1716 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1718         * gen-pass-instances.awk (handle_line): Simplify init of
1719         postfix_starts_at.
1721 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1723         * gen-pass-instances.awk (handle_line): Rename var where to
1724         call_starts_at.
1726 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
1728         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
1729         do not expand to rtl.
1731 2015-11-12  Richard Biener  <rguenther@suse.de>
1733         PR tree-optimization/58497
1734         * tree-vect-generic.c: Include gimplify.h.
1735         (tree_vec_extract): Lookup constant/constructor DEFs.
1736         (do_cond): Unshare cond.
1738 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
1740         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
1741         combined insn if the alignment of vector mode memory operand
1742         is less than ssememalign.
1744 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1746         * gen-pass-instances.awk (handle_line): Print parentheses and
1747         pass_name explicitly.
1749 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1751         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
1752         and postfix vars.
1754 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1756         * gen-pass-instances.awk (handle_line): Add comments.
1758 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1760         * gen-pass-instances.awk (handle_line): Rename len_of_end to
1761         len_of_close.
1763 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1765         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
1767 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1769         * gen-pass-instances.awk (handle_line): Restructure using early-out.
1771 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1773         * gen-pass-instances.awk (handle_line): Unify semicolon use.
1775 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1777         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
1779 2015-11-12  Tom de Vries  <tom@codesourcery.com>
1781         * gen-pass-instances.awk: Add emacs indent setting.
1783 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1785         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
1786         to match.pd.
1787         Move Convert A/(B/C) to (A/B)*C to match.pd.
1788         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
1789         Move Optimize (X & (-A)) / A where A is a power of 2, to
1790         X >> log2(A) to match.pd.
1792         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
1793         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
1794         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
1795         New simplifier.
1796         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
1798 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
1800         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
1801         variable.
1802         (neon_vst2_lane<mode>): Likewise.
1803         (neon_vld3_lane<mode>): Likewise.
1804         (neon_vst3_lane<mode>): Likewise.
1805         (neon_vld4_lane<mode>): Likewise.
1806         (neon_vst4_lane<mode>): Likewise.
1808 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
1809             Sebastian Pop  <s.pop@samsung.com>
1811         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1812         New member codegen_error
1813         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
1814         early return.
1815         (translate_isl_ast_node_user): Early return in case of error.
1816         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1817         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
1818         (add_parameters_to_ivs_params): Remove macro.
1819         (graphite_regenerate_ast_isl): Add if_region pointer to region.
1820         * graphite-poly.c (new_poly_dr): Remove macro.
1821         (print_pdr): Same.
1822         (new_gimple_poly_bb): Same.
1823         (free_gimple_poly_bb): Same.
1824         (print_scop_params): Same.
1825         * graphite-poly.h (struct poly_dr): Same.
1826         (struct poly_bb): Add new_bb.
1827         (gbb_from_bb): Remove dead code.
1828         (pbb_from_bb): Same.
1829         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
1830         (parameter_index_in_region): Same.
1831         (find_scop_parameters): Same.
1832         (build_cross_bb_scalars_def): New.
1833         (build_cross_bb_scalars_use): New.
1834         (graphite_find_cross_bb_scalar_vars): New
1835         (try_generate_gimple_bb): Reads and Writes.
1836         (build_alias_set): Move.
1837         (gather_bbs::before_dom_children): Gather bbs visited.
1838         (build_scops): call build_alias_set.
1839         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
1840         (remove_simple_copy_phi): Delete.
1841         (remove_invariant_phi): Delete.
1842         (simple_copy_phi_p): Delete.
1843         (reduction_phi_p): Delete.
1844         (isl_id_for_dr): Remove unused param.
1845         (parameter_index_in_region_1): Remove macro usage.
1846         (set_scop_parameter_dim): Same.
1847         (add_param_constraints): Same.
1848         (add_conditions_to_constraints): Same
1849         (build_scop_iteration_domain): Same.
1850         (pdr_add_alias_set): Comment.
1851         (add_scalar_version_numbers): New.
1852         (build_poly_dr): ISL id.
1853         (build_scop_drs): Move.
1854         (build_poly_sr_1): Same.
1855         (insert_stmts): Remove.
1856         (build_poly_sr): New.
1857         (new_pbb_from_pbb): Delete.
1858         (insert_out_of_ssa_copy_on_edge): Delete.
1859         (create_zero_dim_array): Delete.
1860         (scalar_close_phi_node_p): Delete.
1861         (propagate_expr_outside_region): Delete.
1862         (rewrite_close_phi_out_of_ssa): Delete.
1863         (rewrite_phi_out_of_ssa): Delete.
1864         (rewrite_degenerate_phi): Delete.
1865         (rewrite_reductions_out_of_ssa): Delete.
1866         (rewrite_cross_bb_scalar_dependence): Delete.
1867         (handle_scalar_deps_crossing_scop_limits):
1868         (rewrite_cross_bb_scalar_deps): Delete.
1869         (build_poly_scop): Remove calls to out-of-ssa functions.
1870         * graphite.c (graphite_transform_loops): Early return in case of
1871         codegen error.
1872         * sese.c (debug_rename_map_1): Delete.
1873         (debug_rename_map): Delete.
1874         (sese_record_loop): Remove macro.
1875         (build_sese_loop_nests): Same.
1876         (new_sese_info): Same.
1877         (free_sese_info): Same.
1878         (sese_insert_phis_for_liveouts):
1879         (is_loop_closed_ssa_use): New.
1880         (number_of_phi_nodes): New.
1881         (bb_contains_loop_close_phi_nodes): New.
1882         (bb_contains_loop_phi_nodes): New.
1883         (phi_uses_name): New.
1884         (is_valid_rename):
1885         (get_rename): Add old_bb and loop_phi for more precise matching of
1886         exprs.
1887         (set_rename): Pass region.
1888         (later_of_the_two): New.
1889         (gsi_insert_earliest): New.
1890         (collect_all_ssa_names): New.
1891         (substitute_ssa_name): New.
1892         (rename_all_uses): New.
1893         (get_rename_from_scev): New.
1894         (rename_uses): Pass old_bb for more precise matching of exprs.
1895         (get_def_bb_for_const): New.
1896         (get_new_name): New.
1897         (get_loc): New.
1898         (get_edges): New.
1899         (copy_loop_phi_args): New.
1900         (copy_loop_phi_nodes): New.
1901         (get_loop_init_value): New.
1902         (find_init_value): New.
1903         (find_init_value_close_phi): New.
1904         (copy_loop_close_phi_args): New.
1905         (copy_loop_close_phi_nodes): New.
1906         (add_phi_arg_for_new_expr): New.
1907         (copy_cond_phi_args): New.
1908         (copy_cond_phi_nodes): New.
1909         (copy_phi_nodes): New.
1910         (should_copy_to_new_region): New.
1911         (set_rename_for_each_def): New.
1912         (graphite_copy_stmts_from_block): Early return in case of error.
1913         (copy_bb_and_scalar_dependences): Same.
1914         * sese.h (vec_find): New.
1915         (SESE_PARAMS): Delete.
1916         (SESE_LOOPS): Delete.
1917         (SESE_LOOP_NEST): Delete.
1918         (sese_contains_loop): Remove macro usage.
1919         (sese_nb_params): Same.
1920         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
1922 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1924         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
1925         isl_union_map_add_map on every pbb->schedule.
1927 2015-11-11  Tom de Vries  <tom@codesourcery.com>
1929         * tree-parloops.c (create_parallel_loop): Return void.
1931 2015-11-11  Tom de Vries  <tom@codesourcery.com>
1933         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
1934         block only when needed.
1936 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
1938         * config/alpha/alpha-protos.h (print_operand): Remove.
1939         (print_operand_address): Remove.
1940         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
1941         (PRINT_OPERAND_ADDRESS): Remove.
1942         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
1943         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
1944         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
1945         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
1946         (print_operand_address): Rename to...
1947         (alpha_print_operand_address): ...this and make static.
1948         (print_operand): Rename to...
1949         (alpha_print_operand): ...this and make static.
1950         (alpha_print_operand_punct_valid_p): New static function.
1952 2015-11-11  Richard Biener  <rguenther@suse.de>
1954         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
1955         Declare.
1956         (vect_analyze_data_refs_alignment): Make loop vect specific.
1957         (vect_verify_datarefs_alignment): Likewise.
1958         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
1959         Add missing continue.
1960         (vect_compute_data_ref_alignment): Export.
1961         (vect_compute_data_refs_alignment): Merge into...
1962         (vect_analyze_data_refs_alignment): ... this.
1963         (verify_data_ref_alignment): Split out from ...
1964         (vect_verify_datarefs_alignment): ... here.
1965         (vect_slp_analyze_and_verify_node_alignment): New function.
1966         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
1967         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
1968         misplaced checks on alignment.
1969         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
1970         alignment analysis after SLP discovery and do it per instance.
1971         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
1972         bother to re-try using different vector sizes.
1974 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1975             Cesar Philippidis  <cesar@codesourcery.com>
1977         * gimplify.c (enum omp_region_type): Add ORT_ACC,
1978         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
1979         (gimple_add_tmp_var): Add ORT_ACC checks.
1980         (gimplify_var_or_parm_decl): Likewise.
1981         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
1982         (omp_add_variable): Look in outer contexts for openacc and allow
1983         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
1984         (omp_notice_variable, omp_is_private, omp_check_private): Add
1985         ORT_ACC checks.
1986         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
1987         Permit private openacc reductions.
1988         (gimplify_oacc_cache): Specify ORT_ACC.
1989         (gimplify_omp_workshare): Adjust OpenACC region types.
1990         (gimplify_omp_target_update): Likewise.
1991         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
1992         (lower-rec_input_clauses): Don't handle openacc firstprivate
1993         references here.
1994         (lower_omp_target): Emit initializers for openacc firstprivate vars.
1996 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1998         PR target/67265
1999         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2000         frame pointer for stack checking if non-call exceptions aren't used.
2001         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2003 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
2005         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2006         [LA]SHIFTRT.
2008 2015-11-11  Martin Liska  <mliska@suse.cz>
2009             Richard Biener  <rguenther@suse.de>
2011         PR rtl-optimization/68287
2012         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2013         number of elements.
2015 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
2017         * config/mips/mips.c (mips_breakable_sequence_p): New function.
2018         (mips_break_sequence): New function.
2019         (mips_reorg_process_insns): Use them. Use compact branches in selected
2020         situations.
2022 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
2024         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2026 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
2027             Jim Wilson  <wilson@gcc.gnu.org>
2029         PR target/67305
2030         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2031         be true and eliminable registers mentioned.
2033 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
2035         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2036         options.
2037         * config/arc/arc-opts.h: Add ARCv2 CPUs.
2038         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2039         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2040         situation, and store instructions with large offsets.
2041         (arc_secondary_reload_conv): New function.
2042         (arc_init): Add ARCv2 options.
2043         (arc_conditional_register_usage): Select the proper register usage
2044         for ARCv2 processors.
2045         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2046         architecture.
2047         (arc_compute_function_type): Likewise.
2048         (arc_print_operand): Handle new ARCv2 punctuation characters.
2049         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2050         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2051         function.
2052         (arc_reorg, arc_hazard): Use it.
2053         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2054         (ASM_SPEC): Add ARCv2 options.
2055         (TARGET_NORM): ARC HS has norm instructions by default.
2056         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2057         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2058         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2059         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2060         Likewise.
2061         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2062         (TARGET_LP_WR_INTERLOCK): Likewise.
2063         * config/arc/arc.md
2064         (commutative_binary_mult_comparison_result_used, movsicc_insn)
2065         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2066         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2067         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2068         Use it for ARCv2.
2069         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2070         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2071         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2072         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2073         (extzvsi): New pattern.
2074         * config/arc/arc.opt: New ARCv2 options.
2075         * config/arc/arcEM.md: New file.
2076         * config/arc/arcHS.md: Likewise.
2077         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2078         values.
2079         (Cm2): A signed 9-bit integer constant constraint.
2080         (C62): An unsigned 6-bit integer constant constraint.
2081         (C16): A signed 16-bit integer constant constraint.
2082         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2083         (short_const_int_operand): New predicate.
2084         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2085         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2086         -mcode-density and -mdiv-rem.
2088 2015-11-11  Julia Koval  <julia.koval@intel.com>
2090         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2092 2015-11-11  Julia Koval  <julia.koval@intel.com>
2094         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2096 2015-11-11  Martin Liska  <mliska@suse.cz>
2098         * gimple-ssa-strength-reduction.c (create_phi_basis):
2099         Use auto_vec.
2100         * passes.c (release_dump_file_name): New function.
2101         (pass_init_dump_file): Used from this function.
2102         (pass_fini_dump_file): Likewise.
2103         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2104         * var-tracking.c (vt_initialize): Use pool_allocator.
2106 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
2107             Jiong Wang      <jiong.wang@arm.com>
2109         PR tree-optimization/68234
2110         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2111         node which estimiated to be VR_VARYING initially.
2113 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
2115         * regname.c (scan_rtx_reg): Check the matching number of consecutive
2116         registers when tying chains.
2117         (build_def_use): Move terminated_this_insn earlier in the function.
2119 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
2121         * configure.ac: Use = with test and not ==.
2122         * configure: Regenerated.
2124 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
2126         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2127         machine asserts.  Update defines for 64 bit.
2129 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2131         PR target/63870
2132         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2133         lane number.
2134         (neon_vst1_lane<mode>): Likewise.
2135         (neon_vld2_lane<mode>): Likewise.
2136         (neon_vst2_lane<mode>): Likewise.
2137         (neon_vld3_lane<mode>): Likewise.
2138         (neon_vst3_lane<mode>): Likewise.
2139         (neon_vld4_lane<mode>): Likewise.
2140         (neon_vst4_lane<mode>): Likewise.
2142 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2144         PR target/63870
2145         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2146         qualifier_struct_load_store_lane_index.
2147         (arm_storestruct_lane_qualifiers) Likewise.
2148         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2149         big-endian.
2150         (neon_vst1_lane<mode>) Likewise.
2151         (neon_vld2_lane<mode>) Likewise.
2152         (neon_vst2_lane<mode>) Likewise.
2153         (neon_vld3_lane<mode>) Likewise.
2154         (neon_vst3_lane<mode>) Likewise.
2155         (neon_vld4_lane<mode>) Likewise.
2156         (neon_vst4_lane<mode>) Likewise.
2158 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2160         PR target/63870
2161         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2162         qualifier_struct_load_store_lane_index.
2163         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2164         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2165         argument qualifiers.
2166         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2167         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2169 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
2171         * config/nvptx/nvptx.opt (moptimize): New flag.
2172         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2173         default.
2174         (nvptx_optimize_inner): New.
2175         (nvptx_process_pars): Call it when optimizing.
2176         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2178 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2180         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2181         Remove redundant code.
2183 2015-11-10  Jeff Law  <law@redhat.com>
2185         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2186         call to output_address.
2187         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2188         Add unnamed machine_mode argument.
2190 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2192         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2193         default to 64-bit.
2195 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2197         * config/i386/i386.md (*movabs<mode>_1): Add explicit
2198         size directives for -masm=intel.
2199         (*movabs<mode>_2): Ditto.
2201 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2203         * config/i386/i386.c (ix86_print_operand): Remove dead code that
2204         tried to avoid (%rip) for call operands.
2206 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2208         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2209         argument.  Do not use RIP relative addressing when no_rip is set.
2210         (ix86_print_operand): Update call to ix86_print_operand_address_as.
2211         (ix86_print_operand_address): Ditto.
2212         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2213         absolute movabs operand 0.  Add square braces for -masm=intel.
2214         (*movabs<mode>_2): Ditto for operand 1.
2216 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2218         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2219         combine_vcvtf2i pattern.
2221 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2223         * config/arm/arm.c (neon_valid_immediate): Remove integer
2224         CONST_DOUBLE handling.  It should never occur.
2226 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
2228         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2229         (ATOMIC_LDOP): Likewise.
2230         (atomic_ldop): Likewise.
2231         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2232         (ATOMIC_LDOP): Likewise.
2233         (atomic_ldop): Likewise.
2235 2015-11-10  Martin Liska  <mliska@suse.cz>
2237         * alloc-pool.h (allocate_raw): New function.
2238         (operator new (size_t, object_allocator<T> &a)): Use the
2239         function instead of object_allocator::allocate).
2241 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2243         * config/i386/sse.md (HALFMASKMODE): New attribute.
2244         (DOUBLEMASKMODE): New attribute.
2245         (vec_pack_trunc_qi): New.
2246         (vec_pack_trunc_<mode>): New.
2247         (vec_unpacks_lo_hi): New.
2248         (vec_unpacks_lo_si): New.
2249         (vec_unpacks_lo_di): New.
2250         (vec_unpacks_hi_hi): New.
2251         (vec_unpacks_hi_<mode>): New.
2253 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2255         * optabs.c (expand_binop_directly): Allow scalar mode for
2256         vec_pack_trunc_optab.
2257         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2258         boolean vector producers from pattern sequence when computing VF.
2259         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2260         vect_recog_mask_conversion_pattern.
2261         (search_type_for_mask): Choose the smallest
2262         type if different size types are mixed.
2263         (build_mask_conversion): New.
2264         (vect_recog_mask_conversion_pattern): New.
2265         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2266         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2267         load with pattern.
2268         (vectorizable_conversion): Support boolean vectors.
2269         (free_stmt_vec_info): Allow patterns for statements with no lhs.
2270         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2272 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2274         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2275         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2276         Cast mask to FP mode if required.
2277         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2278         (vcond_mask_<mode><avx512fmaskmodelower>): New.
2279         (vcond_mask_<mode><sseintvecmodelower>): New.
2280         (vcond_mask_<mode><sseintvecmodelower>): New.
2281         (vcond_mask_v2div2di): New.
2282         (vcond_mask_<mode><sseintvecmodelower>): New.
2283         (vcond_mask_<mode><sseintvecmodelower>): New.
2285 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2287         * optabs-query.h (get_vcond_mask_icode): New.
2288         * optabs-tree.c (expand_vec_cond_expr_p): Use
2289         get_vcond_mask_icode for VEC_COND_EXPR with mask.
2290         * optabs.c (expand_vec_cond_mask_expr): New.
2291         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2292         * optabs.def (vcond_mask_optab): New.
2293         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2294         generate redundant comparison for COND_EXPR.
2295         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2296         as a condition.
2297         (vectorizable_condition): Likewise.
2298         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2299         cond_exp with no embedded comparison.
2300         (vect_build_slp_tree_1): Likewise.
2302 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2304         * config/i386/sse.md (maskload<mode>): Rename to ...
2305         (maskload<mode><sseintvecmodelower>): ... this.
2306         (maskstore<mode>): Rename to ...
2307         (maskstore<mode><sseintvecmodelower>): ... this.
2308         (maskload<mode><avx512fmaskmodelower>): New.
2309         (maskstore<mode><avx512fmaskmodelower>): New.
2311 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2313         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2314         (expand_MASK_STORE): Adjust to maskstore optab changes.
2315         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2316          Adjust to maskload, maskstore optab changes.
2317         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2318         * optabs.def (maskload_optab): Transform into convert optab.
2319         (maskstore_optab): Likewise.
2320         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2321         can_vec_mask_load_store_p signature change.
2322         (predicate_mem_writes): Use boolean mask.
2323         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2324         can_vec_mask_load_store_p signature change.  Allow invariant masks.
2325         (vectorizable_operation): Ignore type precision for boolean vectors.
2327 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2329         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2330         (const_vector_mask_from_tree): New.
2331         (const_vector_from_tree): Use const_vector_mask_from_tree
2332         for boolean vectors.
2333         * optabs-query.h (get_vec_cmp_icode): New.
2334         * optabs-tree.c (expand_vec_cmp_expr_p): New.
2335         * optabs-tree.h (expand_vec_cmp_expr_p): New.
2336         * optabs.c (vector_compare_rtx): Add OPNO arg.
2337         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2338         (expand_vec_cmp_expr): New.
2339         * optabs.def (vec_cmp_optab): New.
2340         (vec_cmpu_optab): New.
2341         * optabs.h (expand_vec_cmp_expr): New.
2342         * tree-vect-generic.c (expand_vector_comparison): Add vector
2343         comparison optabs check.
2344         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
2345         operations for VF.  Add mask type computation.
2346         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2347         (vectorizable_comparison): New.
2348         (vect_analyze_stmt): Add vectorizable_comparison.
2349         (vect_transform_stmt): Likewise.
2350         (vect_init_vector): Support boolean vector invariants.
2351         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2352         (vectorizable_condition): Directly provide vectype for invariants
2353         used in comparison.
2354         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2355         (enum vect_var_kind): Add vect_mask_var.
2356         (enum stmt_vec_info_type): Add comparison_vec_info_type.
2357         (vectorizable_comparison): New.
2358         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2359         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2360         (vect_create_destination_var): Likewise.
2361         * tree-vect-patterns.c (check_bool_pattern): Check fails
2362         if we can vectorize comparison directly.
2363         (search_type_for_mask): New.
2364         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2365         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2366         comparison statements.
2367         (vect_get_constant_vectors): Support boolean vector constants.
2368         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2369         (ix86_expand_int_vec_cmp): New.
2370         (ix86_expand_fp_vec_cmp): New.
2371         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2372         op_true and op_false.
2373         (ix86_int_cmp_code_to_pcmp_immediate): New.
2374         (ix86_fp_cmp_code_to_pcmp_immediate): New.
2375         (ix86_cmp_code_to_pcmp_immediate): New.
2376         (ix86_expand_mask_vec_cmp): New.
2377         (ix86_expand_fp_vec_cmp): New.
2378         (ix86_expand_int_sse_cmp): New.
2379         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2380         (ix86_expand_int_vec_cmp): New.
2381         (ix86_get_mask_mode): New.
2382         (TARGET_VECTORIZE_GET_MASK_MODE): New.
2383         * config/i386/sse.md (avx512fmaskmodelower): New.
2384         (vec_cmp<mode><avx512fmaskmodelower>): New.
2385         (vec_cmp<mode><sseintvecmodelower>): New.
2386         (vec_cmpv2div2di): New.
2387         (vec_cmpu<mode><avx512fmaskmodelower>): New.
2388         (vec_cmpu<mode><sseintvecmodelower>): New.
2389         (vec_cmpuv2div2di): New.
2391 2015-11-10  Richard Biener  <rguenther@suse.de>
2393         PR tree-optimization/68240
2394         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2395         properly.
2396         (visit_phi): For PHIs with just a single executable edge
2397         take its value directly.
2398         (expressions_equal_p): Handle VN_TOP properly.
2400 2015-11-10  Richard Biener  <rguenther@suse.de>
2402         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2403         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2404         conservatively.
2406 2015-11-10  Richard Biener  <rguenther@suse.de>
2408         PR tree-optimization/56118
2409         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2410         cost favor vectorized version.
2412 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2414         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2415         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2416         (neg_not_op): New code attribute.
2418 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2420         * ifcvt.c (noce_try_inverse_constants): New function.
2421         (noce_process_if_block): Call it.
2422         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2423         * optabs.def (negcc_optab, notcc_optab): Declare.
2424         * optabs.c (emit_conditional_neg_or_complement): New function.
2425         * doc/tm.texi (Standard Names): Document negcc, notcc names.
2427 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2429         PR rtl-optimization/68236
2430         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2431         if insn_queue doesn't exist.
2432         (haifa_sched_finish): Reset insn_queue to NULL.
2434 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
2436         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2437         (build_def_use): Initialize terminated_this_insn.
2438         (find_best_rename_reg): Pick and check register from the tied chain.
2439         (regrename_do_replace): Mark head as renamed.
2440         (struct du_head *terminated_this_insn). New static variable.
2441         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
2442         * regrename.h (struct du_head): Add tied_chain, renamed members.
2444 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2446         PR bootstrap/68256
2447         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
2448         Return false.
2450 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2452         PR target/57845
2453         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
2454         not promote the mode for aggregate types.
2456 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
2458         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
2459         * omp-low.c (build_oacc_routine_dims): New.
2461 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2463         * config/rs6000/constraints.md (wF constraint): New constraints
2464         for power9/toc fusion.
2465         (wG constraint): Likewise.
2467         * config/rs6000/predicates.md (u6bit_cint_operand): New
2468         predicate, recognize 0..63.
2469         (upper16_cint_operand): New predicate for power9 and toc fusion.
2470         (fpr_reg_operand): Likewise.
2471         (toc_fusion_or_p9_reg_operand): Likewise.
2472         (toc_fusion_mem_raw): Likewise.
2473         (toc_fusion_mem_wrapped): Likewise.
2474         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
2475         address range.
2476         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
2477         instead.
2478         (fusion_addis_mem_combo_load): Add support for power9 fusion of
2479         floating point loads, floating point stores, and gpr stores.
2480         (fusion_addis_mem_combo_store): Likewise.
2481         (fusion_offsettable_mem_operand): Likewise.
2483         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
2484         (emit_fusion_load_store): Likewise.
2485         (fusion_p9_p): Likewise.
2486         (expand_fusion_p9_load): Likewise.
2487         (expand_fusion_p9_store): Likewise.
2488         (emit_fusion_p9_load): Likewise.
2489         (emit_fusion_p9_store): Likewise.
2490         (fusion_wrap_memory_address): Likewise.
2492         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
2493         elements for power9 fusion.
2494         (rs6000_debug_print_mode): Rework debug information to print more
2495         information about fusion.
2496         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
2497         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
2498         offsettable memory address.
2499         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
2500         (emit_fusion_gpr_load): Move most of the code from
2501         emit_fusion_gpr_load into emit_fusion-addis that handles both
2502         power8 and power9 fusion.
2503         (emit_fusion_addis): Likewise.
2504         (emit_fusion_load_store): Likewise.
2505         (fusion_wrap_memory_address): Add support for TOC fusion.
2506         (fusion_split_address): Likewise.
2507         (fusion_p9_p): Add support for power9 fusion.
2508         (expand_fusion_p9_load): Likewise.
2509         (expand_fusion_p9_store): Likewise.
2510         (emit_fusion_p9_load): Likewise.
2511         (emit_fusion_p9_store): Likewise.
2513         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
2514         new instructions in ISA 3.0.
2515         (TARGET_CTZ): Likewise.
2516         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
2517         (TARGET_TOC_FUSION_FP): Likewise.
2519         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
2520         fusion unspecs.
2521         (UNSPEC_FUSION_ADDIS): Likewise.
2522         (QHSI mode iterator): New iterator for power9 fusion.
2523         (GPR_FUSION): Likewise.
2524         (FPR_FUSION): Likewise.
2525         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
2526         (umod<mode>3): Likewise.
2527         (divmod peephole): Likewise.
2528         (udivmod peephole): Likewise.
2529         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
2530         instructions.
2531         (ctz<mode>2_h): Likewise.
2532         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
2533         (ashdi3_extswsli_dot): Likewise.
2534         (ashdi3_extswsli_dot2): Likewise.
2535         (power9 fusion splitter): New power9/toc fusion support.
2536         (toc_fusionload_<mode>): Likewise.
2537         (toc_fusionload_di): Likewise.
2538         (fusion_gpr_load_<mode>): Update predicate function.
2539         (power9 fusion peephole2s): New power9/toc fusion support.
2540         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2541         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
2542         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2543         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2544         (fusion_p9_<mode>_constant): Likewise.
2546 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
2548         * optabs.c (prepare_libcall_arg): New function.
2549         (expand_fixed_convert): Add call to prepare_libcall_arg.
2551 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
2553         * sched-int.h (dump_rgn_dependencies_dot): Declare
2554         * sched-rgn.c (dump_rgn_dependencies_dot): New function
2555         * print-rtl.h (print_insn): Add prototype
2557         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
2558         * common.opt (-fsched-verbose): Set default value to 1.
2559         * invoke.texi (-fsched-verbose): Update the option's description.
2561 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2563         * config/visium/visium.h (PRINT_OPERAND): Delete.
2564         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2565         (PRINT_OPERAND_ADDRESS): Likewise.
2566         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
2567         to...
2568         (visium_print_operand_punct_valid_p): ...this.  New function.
2569         (TARGET_PRINT_OPERAND): Define to...
2570         (print_operand): Rename to...
2571         (visium_print_operand): ...this.
2572         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
2573         (visium_output_address): Rename to...
2574         (visium_print_operand_address): ...this.
2575         (print_operand_address): Delete.
2577 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2579         PR middle-end/68259
2580         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
2581         Check that the type of the first operand is an aggregate type.
2583 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
2585         * omp-low.c: Fix some OpenACC comment typos.
2586         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
2587         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
2588         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
2590 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
2592         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
2594 2015-11-09  Jeff Law  <law@redhat.com>
2596         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
2597         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
2598         Fix comment typo.
2600 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2601             Peter Bergner  <bergner@vnet.ibm.com>
2603         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
2604         ISA 3.0 (power9).
2605         (-mpower9-vector): Likewise.
2606         (-mpower9-dform): Likewise.
2607         (-mpower9-minmax): Likewise.
2608         (-mtoc-fusion): Likewise.
2609         (-mmodulo): Likewise.
2610         (-mfloat128-hardware): Likewise.
2612         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
2613         mask for ISA 3.0 (power9).
2614         (POWERPC_MASKS): Add new ISA 3.0 switches.
2615         (power9 cpu): Add power9 cpu.
2617         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
2618         (ASM_CPU_SPEC): Likewise.
2619         (EXTRA_SPECS): Likewise.
2621         * config/rs6000/rs6000-opts.h (enum processor_type): Add
2622         PROCESSOR_POWER9.
2624         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
2625         (rs6000_debug_reg_global): Add support for power9 fusion.
2626         (rs6000_setup_reg_addr_masks): Cache mode size.
2627         (rs6000_option_override_internal): Until real power9 tuning is
2628         added, use -mtune=power8 for -mcpu=power9.
2629         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
2630         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
2631         of Altivec registers.
2632         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
2633         (rs6000_loop_align): Add support for power9 cpu.
2634         (rs6000_file_start): Likewise.
2635         (rs6000_adjust_cost): Likewise.
2636         (rs6000_issue_rate): Likewise.
2637         (insn_must_be_first_in_group): Likewise.
2638         (insn_must_be_last_in_group): Likewise.
2639         (force_new_group): Likewise.
2640         (rs6000_register_move_cost): Likewise.
2641         (rs6000_opt_masks): Likewise.
2643         * config/rs6000/rs6000.md (cpu attribute): Add power9.
2644         * config/rs6000/rs6000-tables.opt: Regenerate.
2646         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2647         _ARCH_PWR9 if power9 support is available.
2649         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
2650         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
2652         * configure.ac: Determine if the assembler supports the ISA 3.0
2653         instructions.
2654         * config.in (HAVE_AS_POWER9): Likewise.
2655         * configure: Regenerate.
2657         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
2658         switches.
2660 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2662         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
2663         Remove integer CONST_DOUBLE handling.  It should never occur.
2665 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2667         PR target/68129
2668         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
2669         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
2670         Delete VOIDmode case.  Assert that mode is not VOIDmode.
2671         * config/aarch64/predicates.md (const0_operand): Remove const_double
2672         match.
2674 2015-11-09  Martin Liska  <mliska@suse.cz>
2676         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
2677         body_info release function.
2678         * ipa-prop.c (ipa_release_body_info): New function.
2679         (ipa_analyze_node): Call the function.
2680         (ipa_node_params::~ipa_node_params): Release known_csts.
2681         * ipa-prop.h (ipa_release_body_info): Declare.
2683 2015-11-09  Martin Liska  <mliska@suse.cz>
2685         * gcc.c (record_temp_file): Release name string.
2686         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
2687         * lra-lives.c (free_live_range_list): Utilize
2688         lra_live_range_pool for allocation and deallocation.
2689         (create_live_range): Likewise.
2690         (copy_live_range): Likewise.
2691         (lra_merge_live_ranges): Likewise.
2692         (remove_some_program_points_and_update_live_ranges): Likewise.
2693         (lra_create_live_ranges_1): Release point_freq_vec that can
2694         be not freed from previous iteration of the function.
2695         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
2696         * tree-sra.c (sra_deinitialize): Release all vectors in
2697         base_access_vec.
2698         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
2699         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
2700         Release edge_info for a removed edge.
2701         (thread_through_all_blocks): Free region vector.
2702         * tree-ssa.h (free_dom_edge_info): Declare function extern.
2704 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
2706         * optabs.c (expand_vec_cond_expr): Always get sign from type.
2707         * tree.c (wide_int_to_tree): Support negative values for boolean.
2708         (build_nonstandard_boolean_type): Use signed type for booleans.
2710 2015-11-09  Richard Biener  <rguenther@suse.de>
2712         PR tree-optimization/68248
2713         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
2715 2015-11-09  Richard Biener  <rguenther@suse.de>
2717         PR tree-optimization/56118
2718         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
2719         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
2720         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
2721         function.
2722         (vect_slp_analyze_data_ref_dependences): Instead of computing
2723         all dependences of the region DRs just analyze the code motions
2724         SLP vectorization will perform.  Remove SLP instances that
2725         cannot have their store/load motions applied.
2726         (vect_analyze_data_refs): Allow DRs without a vectype
2727         in BB vectorization.
2729 2015-11-09  Julian Brown  <julian@codesourcery.com>
2731         * final.c (output_asm_insn): Pass VOIDmode to output_address.
2732         (output_address): Add MODE argument. Pass to print_operand_address
2733         hook.
2734         * targhooks.c (default_print_operand_address): Add MODE argument.
2735         * targhooks.h (default_print_operand_address): Update prototype.
2736         * output.h (output_address): Update prototype.
2737         * target.def (print_operand_address): Add MODE argument.
2738         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
2739         output_address.
2740         (print_operand): Pass access mode to output_address.
2741         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
2742         argument.
2743         (mcore_print_operand): Update calls to mcore_print_operand_address.
2744         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
2745         output_address.
2746         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
2747         output_address.
2748         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
2749         global.
2750         (tilegx_print_operand): Don't set above global. Update calls to
2751         output_address.
2752         (tilegx_print_operand_address): Add MODE argument. Use instead of
2753         output_memory_reference_mode global.
2754         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
2755         (frv_print_operand): Pass mode to frv_print_operand_address calls.
2756         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
2757         output_address.
2758         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
2759         (cris_print_operand): Pass mode to output_address calls.
2760         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
2761         * config/aarch64/aarch64.h (aarch64_print_operand)
2762         (aarch64_print_operand_address): Remove prototypes.
2763         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
2764         global.
2765         (aarch64_print_operand): Make static. Update calls to output_address.
2766         (aarch64_print_operand_address): Add MODE argument. Use instead of
2767         aarch64_memory_reference_mode global.
2768         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
2769         hooks.
2770         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2771         Delete macro definitions.
2772         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
2773         * config/xtensa/xtensa.c (print_operand): Pass mode in
2774         output_address calls.
2775         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
2776         argument.
2777         (h83000_print_operand): Update calls to h8300_print_operand_address
2778         and output_address.
2779         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
2780         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
2781         global.
2782         (tilepro_print_operand): Pass mode to output_address.
2783         (tilepro_print_operand_address): Add MODE argument. Use instead of
2784         output_memory_reference_mode.
2785         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
2786         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
2787         to output_address calls.
2788         (nvptx_print_operand_address): Add MODE argument.
2789         * config/alpha/alpha.c (print_operand): Pass mode argument in
2790         output_address calls.
2791         * config/m68k/m68k.c (print_operand): Pass mode argument in
2792         output_address call.
2793         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
2794         (avr_print_operand): Update calls to avr_print_operand_address.
2795         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
2796         argument. Update calls to output_address.
2797         (sparc_print_operand): Pass mode to output_address.
2798         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
2799         argument.
2800         (iq2000_print_operand): Pass mode in output_address calls.
2801         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
2802         MODE argument.
2803         (xstormy16_print_operand): Pass mode to
2804         xstormy16_print_operand_address calls.
2805         * config/mips/mips.c (mips_print_operand): Update calls to
2806         output_address.
2807         (mips_print_operand_address): Add MODE argument.
2808         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
2809         to output_address.
2810         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
2811         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
2812         output_address.
2813         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
2814         (rx_print_operand): Update calls to output_address,
2815         rx_print_operand_address.
2816         * config/nds32/nds32.c (nds32_print_operand): Update calls to
2817         output_address.
2818         (nds32_print_operand_address): Add MODE argument.
2819         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
2820         output_address calls.
2821         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
2822         output_address call.
2823         (c6x_print_address_operand): Update calls to output_address.
2824         (c6x_print_operand_address): Pass mode to above.
2825         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
2826         (v850_print_operand): Pass mode to v850_print_operand_address,
2827         output_address.
2828         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
2829         (mmix_print_operand): Pass mode in output_address calls.
2830         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
2831         (sh_print_operand): Pass mem mode to output_address,
2832         sh_print_operand_address.
2833         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
2834         (cr16_print_operand): Pass mode to output_address,
2835         cr16_print_operand_address.
2836         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
2837         output_address.
2838         * config/microblaze/microblaze.c (print_operand): Pass mode to
2839         output_address.
2840         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
2841         output_address.
2842         (nios2_print_operand_address): Add MODE argument. Update call to
2843         nios2_print_operand_address.
2844         * config/s390/s390.c (print_operand): Pass mode to output_address.
2845         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
2846         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
2847         output_address.
2848         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
2849         Use instead of output_memory_reference_mode.
2850         (output_memory_reference_mode): Delete global.
2851         (arm_print_operand): Pass mem mode to output_address.
2852         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
2853         (m32r_print_operand): Pass mode to output_address.
2854         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
2855         argument.
2856         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
2857         * config/i386/i386.c (ix86_print_operand): Pass mode to
2858         output_address calls.
2859         (ix86_print_operand_address): Add MODE argument.
2861 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2863         PR middle-end/68251
2864         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
2865         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
2866         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
2867         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2869 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2871         PR rtl-optimization/67749
2872         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
2873         case before emitting the two blocks.  Instead modify the register
2874         in the corresponding final insn of the basic block.
2876 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2878         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
2879         assembler syntax.
2880         Support Solaris ld.
2881         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
2883         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
2884         HAVE_INITFINI_ARRAY_SUPPORT.
2885         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
2887         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
2888         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
2889         Don't check HAVE_AS_SPARC_NOBITS.
2890         Heed SECTION_NOTYPE.
2892         * configure: Regenerate.
2893         * config.in: Regenerate.
2895 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2897         PR middle-end/68253
2898         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
2900 2015-11-09  Richard Henderson  <rth@redhat.com>
2902         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
2903         __SEG_GS, __SEG_TLS.
2904         (ix86_register_pragmas): Register address spaces __seg_fs,
2905         __seg_gs, __seg_tls.
2906         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
2907         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
2908         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
2909         * config/i386/i386.c (ix86_decompose_address): Likewise.
2910         (ix86_legitimate_address_p): Likewise.
2911         (memory_address_length): Likewise.  Check mem address space too.
2912         (ix86_print_operand): Use ix86_print_operand_address_as.
2913         (ix86_print_operand_address_as): Rename from
2914         ix86_print_operand_address, add new addr_space_t parameter.
2915         Validate that either the parameter or the ix86_address segment
2916         is default address space.  Handle ADDR_SPACE_SEG_TLS.
2917         (ix86_print_operand_address): New.
2918         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
2919         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
2920         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
2921         (ix86_addr_space_zero_address_valid): New.
2922         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2923         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
2924         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
2925         * config/i386/predicates.md (address_no_seg_operand): Likewise.
2926         (vsib_address_operand): Likewise.
2927         (address_mpx_no_base_operand): Likewise.
2928         (address_mpx_no_index_operand): Likewise.
2929         * doc/extend.texi (x86 Named Address Spaces): New section.
2931         * config/i386/i386.c (ix86_check_no_addr_space): New.
2932         (decide_alg): Add have_as parameter.
2933         (alg_usable_p): Likewise; disable rep algorithms if set.
2934         (ix86_expand_set_or_movmem): Notice if either MEM has a
2935         non-default address space.
2936         (ix86_expand_strlen): Likewise.
2937         * config/i386/i386.md (strmov, strset): Likewise.
2938         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
2939         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
2940         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
2941         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
2942         *cmpstrnqi_1, *strlenqi_1): Likewise.
2944         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
2945         (*movabs<mode>_2): Likewise.
2947         * dwarf2out.c (modified_type_die): Pass the address space number
2948         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
2949         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
2950         * targhooks.c (default_addr_space_debug): New.
2951         * targhooks.h (default_addr_space_debug): Declare.
2952         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
2953         * doc/tm.texi: Rebuild.
2955         * gimple.c (check_loadstore): Return false when 0 is a valid address.
2956         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
2957         null when 0 is valid in the source address space.
2958         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
2959         * targhooks.c (default_addr_space_zero_address_valid): New.
2960         * targhooks.h (default_addr_space_zero_address_valid): Declare.
2961         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
2962         * doc/tm.texi: Rebuild.
2964         * cselib.c (add_mem_for_addr): Compare address spaces when
2965         matching memories.
2966         (cselib_lookup_mem): Likewise.
2967         * fold-const.c (operand_equal_p): Check address spaces of
2968         pointer types before checking integer constants.
2970         PR tree-opt/66768
2971         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
2972         the correct type for the base.
2974 2015-11-09  Jeff Law  <law@redhat.com>
2976         * tree-into-ssa.c (names_to_release): No longer static.
2977         * tree-into-ssa.h (names_to_release): Declare.
2978         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
2979         (release_free_names_and_compact_live_names): New function extracted
2980         from pass_release_ssa_names::execute.
2981         (pass_release_ssa_names::execute): Use it.
2983 2015-11-09  Alan Modra  <amodra@gmail.com>
2985         * gensupport.c (add_mnemonic_string): Make len param a size_t.
2986         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
2987         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
2988         return value.
2990 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
2992         PR rtl-optimization/68182
2993         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
2994         branch with only one successor just like unconditional branches.
2996 2015-11-08  Jeff Law  <law@redhat.com>
2998         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
2999         non-FSM path has no edges marked with EDGE_DFS_BACK.
3000         (ssa_redirect_edges): No longer call mark_loop_for_removal.
3001         (thread_single_edge, def_split_header_continue_p): Remove.
3002         (bb_ends_with_multiway_branch): Likewise.
3003         (thread_through_loop_header): Remove cases of threading from
3004         latch through the header.  Simplify knowing we won't thread
3005         the latch.
3006         (thread_through_all_blocks): Simplify knowing that only the FSM
3007         threader needs to handle backedges.
3009 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3011         * doc/extend.texi (type attributes): Document scalar_storage_order.
3012         (Structure-Packing Pragmas): Rename into...
3013         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
3014         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3015         (Warnings): Document -Wno-scalar-storage-order.
3016         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3017         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3018         extract_bit_field and store_bit_field.
3019         (initialize_argument_information): Adjust call to store_expr.
3020         (load_register_parameters): Adjust call to extract_bit_field.
3021         * expmed.c (check_reverse_storage_order_support): New function.
3022         (check_reverse_float_storage_order_support): Likewise.
3023         (flip_storage_order): Likewise.
3024         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
3025         of the value if it is true.  Pass REVERSE to recursive call after
3026         adjusting the target offset.
3027         Do not use extraction or movstrict instruction if REVERSE is true.
3028         Pass REVERSE to store_fixed_bit_field.
3029         (store_bit_field): Add REVERSE parameter and pass to it to above.
3030         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3031         store_split_bit_field and store_fixed_bit_field_1.
3032         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
3033         order of the value if it is true and adjust the target offset.
3034         (store_split_bit_field): Add REVERSE parameter and pass it to
3035         store_fixed_bit_field.  Adjust the target offset if it is true.
3036         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
3037         of the value if it is true.  Pass REVERSE to recursive call after
3038         adjusting the target offset.
3039         Do not use extraction or subreg instruction if REVERSE is true.
3040         Pass REVERSE to extract_fixed_bit_field.
3041         (extract_bit_field): Add REVERSE parameter and pass to it to above.
3042         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3043         extract_split_bit_field and extract_fixed_bit_field_1.
3044         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
3045         order of the value if it is true and adjust the target offset.
3046         (extract_split_bit_field): Add REVERSE parameter and pass it to
3047         extract_fixed_bit_field.  Adjust the target offset if it is true.
3048         * expmed.h (flip_storage_order): Declare.
3049         (store_bit_field): Adjust prototype.
3050         (extract_bit_field): Likewise.
3051         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3052         (emit_group_store): Adjust call to store_bit_field.
3053         (copy_blkmode_from_reg): Likewise.
3054         (copy_blkmode_to_reg): Likewise.
3055         (write_complex_part): Likewise.
3056         (read_complex_part): Likewise.
3057         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
3058         that it isn't true if the target is a register.
3059         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3060         and flip the storage order of the value.
3061         <BIT_IOR_EXPR>: Flip the storage order of the value.
3062         (get_bit_range): Adjust call to get_inner_reference.
3063         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3064         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
3065         with reverse storage order.
3066         (store_expr_with_bounds): Add REVERSE parameter and pass it to
3067         recursive calls and call to store_bit_field.  Force the value into a
3068         register if it is true and then flip the storage order of the value.
3069         (store_expr): Add REVERSE parameter and pass it to above.
3070         (categorize_ctor_elements_1): Adjust call to
3071         initializer_constant_valid_p.
3072         (store_constructor_field): Add REVERSE parameter and pass it to
3073         recursive calls and call to store_field.
3074         (store_constructor): Add REVERSE parameter and pass it to calls to
3075         store_constructor_field and store_expr.  Set it to true for an
3076         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3077         (store_field): Add REVERSE parameter and pass it to recursive calls
3078         and calls to store_expr and store_bit_field.  Temporarily flip the
3079         storage order of the value with record type and integral mode and
3080         adjust the shift if it is true.
3081         (get_inner_reference): Add PREVERSEP parameter and set it to true
3082         upon encoutering a reference with reverse storage order.
3083         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3084         (expand_constructor): Adjust call to store_constructor.
3085         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3086         of the union type to store_expr in the MEM case and assert that it
3087         isn't set in the REG case.  Adjust call to store_field.
3088         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3089         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3090         get_inner_reference and extract_bit_field. Temporarily flip the
3091         storage order of the value with record type and integral mode and
3092         adjust the shift if it is true.  Flip the storage order of the value
3093         at the end if it is true.
3094         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3095         get_inner_reference.  Do not fetch an inner reference if it is true.
3096         * expr.h (store_expr_with_bounds): Ajust prototype.
3097         (store_expr): Likewise.
3098         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3099         REF_REVERSE_STORAGE_ORDER on the reference according to it.
3100         (optimize_bit_field_compare): Deal with reverse storage order.
3101         Adjust calls to get_inner_reference and make_bit_field_ref.
3102         (decode_field_reference): Add PREVERSEP parameter and adjust call to
3103         get_inner_reference.
3104         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
3105         to decode_field_reference and make_bit_field_ref.
3106         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3107         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3108         (fold_comparison): Adjust call to get_inner_reference.
3109         (split_address_to_core_and_offset): Adjust call to
3110         get_inner_reference.
3111         * gimple-expr.c (useless_type_conversion_p): Return false for array
3112         types with different TYPE_REVERSE_STORAGE_ORDER flag.
3113         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3114         REF_REVERSE_STORAGE_ORDER flag.
3115         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3116         * output.h (assemble_real): Adjust prototype.
3117         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3118         * stor-layout.c (finish_record_layout): Propagate the
3119         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3120         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3121         (TYPE_SATURATING): Adjust.
3122         (REF_REVERSE_STORAGE_ORDER): Document.
3123         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3124         set it to true upon encoutering a reference with reverse storage order.
3125         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3126         * tree-inline.c (remap_gimple_op_r): Propagate the
3127         REF_REVERSE_STORAGE_ORDER flag.
3128         (copy_tree_body_r): Likewise.
3129         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3130         store_expr.
3131         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3132         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3133         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3134         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3135         REF_REVERSE_STORAGE_ORDER flag.
3136         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3137         (gimple_canonical_types_compatible_p): Likewise.
3138         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3139         (TYPE_SATURATING): Adjust.
3140         (REF_REVERSE_STORAGE_ORDER): New flag.
3141         (reverse_storage_order_for_component_p): New inline predicate.
3142         (storage_order_barrier_p): Likewise.
3143         (get_inner_reference): Adjust prototype.
3144         * varasm.c: Include expmed.h.
3145         (assemble_variable_contents): Adjust call to output_constant.
3146         (assemble_real): Add REVERSE parameter.  Flip the storage
3147         order of the value if REVERSE is true.
3148         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3149         (assemble_constant_contents): Adjust call to output_constant.
3150         (output_constant_pool_2): Adjust call to assemble_real.
3151         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3152         TYPE_REVERSE_STORAGE_ORDER.
3153         (initializer_constant_valid_p): Add REVERSE parameter.
3154         (output_constant): Add REVERSE parameter.
3155         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3156         <REAL_TYPE>: Adjust call to assemble_real.
3157         <COMPLEX_TYPE>: Pass it to recursive calls.
3158         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
3159         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
3160         (struct oc_local_state): Add REVERSE field.
3161         (output_constructor_array_range): Adjust calls to output_constant.
3162         (output_constructor_regular_field): Likewise.
3163         (output_constructor_bitfield): Adjust call to output_constructor.
3164         Flip the storage order of the value if REVERSE is true.
3165         (output_constructor): Add REVERSE parameter.  Set it to true for an
3166         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
3167         output_constructor_bitfield.
3168         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3169         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3170         * builtins.c (get_object_alignment_2): Likewise.
3171         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3172         and get_ref_base_and_extent.
3173         * dbxout.c (dbxout_expand_expr): Likewise.
3174         * dwarf2out.c (add_var_loc_to_decl): Likewise.
3175         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3176         (loc_list_from_tree): Likewise.
3177         (fortran_common): Likewise.
3178         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3179         get_ref_base_and_extent.
3180         (get_base_constructor): Likewise.
3181         (fold_const_aggregate_ref_1): Likewise.
3182         * gimple-laddress.c (pass_laddress::execute): Adjust call to
3183         get_inner_reference.
3184         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3185         get_inner_reference and bail out on reverse storage order.
3186         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3187         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3188         build_ref_for_offset.
3189         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3190         get_ref_base_and_extent.
3191         (ipa_polymorphic_call_context): Likewise.
3192         (extr_type_from_vtbl_ptr_store): Likewise.
3193         (check_stmt_for_type_change): Likewise.
3194         (get_dynamic_type): Likewise.
3195         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3196         get_ref_base_and_extent.
3197         (compute_complex_assign_jump_func): Likewise.
3198         (get_ancestor_addr_info): Likewise.
3199         (compute_known_type_jump_func): Likewise.
3200         (determine_known_aggregate_parts): Likewise.
3201         (ipa_get_adjustment_candidate): Likewise.
3202         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3203         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3204         (build_ref_for_offset): Adjust prototype.
3205         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3206         get_inner_reference.
3207         * tree-affine.c (tree_to_aff_combination): Adjust call to
3208         get_inner_reference.
3209         (get_inner_reference_aff): Likewise.
3210         * tree-data-ref.c (split_constant_offset_1): Likewise.
3211         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
3212         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3213         get_inner_reference.
3214         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3215         (dump_access): Print new fields.
3216         (create_access): Adjust call to get_ref_base_and_extent and set the
3217         REVERSE flag according to the result.
3218         (completely_scalarize_record): Set the REVERSE flag.
3219         (scalarize_elem): Add REVERSE parameter.
3220         (build_access_from_expr_1): Preserve storage order barriers.
3221         (build_accesses_from_assign): Likewise.
3222         (build_ref_for_offset): Add REVERSE parameter and set the
3223         REF_REVERSE_STORAGE_ORDER flag accordingly.
3224         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3225         the REF_REVERSE_STORAGE_ORDER flag if there are components.
3226         (analyze_access_subtree): Likewise.
3227         (create_artificial_child_access): Set the REVERSE flag.
3228         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3229         (turn_representatives_into_adjustments): Propagate REVERSE flag.
3230         (ipa_sra_check_caller): Adjust call to get_inner_reference.
3231         * tree-ssa-alias.c (ao_ref_base): Adjust call to
3232         get_ref_base_and_extent.
3233         (aliasing_component_refs_p): Likewise.
3234         (stmt_kills_ref_p_1): Likewise.
3235         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3236         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3237         Return true if reverse storage order.
3238         <BIT_FIELD_REF>: Likewise.
3239         <COMPONENT_REF>: Likewise.
3240         <ARRAY_REF>: Likewise.
3241         <ARRAY_RANGE_REF>: Likewise.
3242         (split_address_cost): Likewise.  Bail out if reverse storage order.
3243         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3244         get_inner_reference.  Bail out if reverse storage order.
3245         (bswap_replace): Adjust call to get_inner_reference.
3246         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3247         the REF_REVERSE_STORAGE_ORDER flag.
3248         <BIT_FIELD_REF>: Likewise.
3249         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3250         barriers.
3251         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3252         to the REF_REVERSE_STORAGE_ORDER flag.
3253         <BIT_FIELD_REF>: Likewise.
3254         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3255         (contains_storage_order_barrier_p): New predicate.
3256         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3257         Punt on storage order barriers if necessary.
3258         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3259         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3260         call to get_ref_base_and_extent.
3261         (do_structure_copy): Likewise.
3262         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3263         get_inner_reference.
3264         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
3265         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3266         * ubsan.c (instrument_bool_enum_load): Likewise.
3267         (instrument_object_size): Likewise.
3268         * var-tracking.c (track_expr_p): Adjust call to
3269         get_ref_base_and_extent.
3270         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3271         get_inner_reference.
3272         * config/s390/s390.c (s390_expand_atomic): Adjust call to
3273         store_bit_field.
3274         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3275         extract_bit_field.
3276         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3278 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3280         * config/sparc/sparc.opt (mfix-at697f): Add final period.
3282 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
3284         PR rtl-optimization/67864
3285         * common/config/i386/i386-common.c (ix86_option_optimization_table)
3286         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3287         at -Os and up.
3289 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3291         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3292         internal functions.
3294 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3296         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3297         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3299 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3301         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3302         * internal-fn.c: Don't undef it here.
3303         * tree-core.h: Likewise.
3305 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3307         * builtins.c (fold_builtin_nan): Delete.
3308         (fold_builtin_memcmp): Remove case where both arguments are constant.
3309         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3310         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3311         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3312         * fold-const-call.c: Include fold-const.h.
3313         (host_size_t_cst_p): New function.
3314         (build_cmp_result, fold_const_builtin_nan): Likewise.
3315         (fold_const_call_1): New function, split out from...
3316         (fold_const_call): ...here (for all three interfaces).  Handle
3317         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3319 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3321         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3322         (fold_builtin_1): Don't call them.
3323         * fold-const-call.c: Include tm.h.
3324         (fold_const_call_ss): New variant for integer-to-integer folds.
3325         (fold_const_call): Call it.
3327 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3329         * builtins.c (fold_builtin_classify): Move constant cases to...
3330         * fold-const-call.c (fold_const_call_ss): ...here.
3332 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3334         * builtins.h (c_getstr): Move to...
3335         * fold-const.h (c_getstr): ...here.
3336         * builtins.c (c_getstr): Move to...
3337         * fold-const.c (c_getstr): ...here.
3339 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3341         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3342         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3344 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3346         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3347         the dominance info; free it if we can't.
3348         (pass_call_cdce::execute): Don't free the dominance info here.
3350 2015-11-06  Jeff Law <law@redhat.com>
3352         * tree-ssa-threadedge.c (dummy_simplify): Remove.
3353         (thread_around_empty_blocks): Remove backedge_seen_p argument.
3354         If we thread to a backedge, then return false.  Update recursive
3355         call to eliminate backedge_seen_p argument.
3356         (thread_through_normal_block): Remove backedge_seen_p argument.
3357         Remove backedge_seen_p argument from calls to
3358         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
3359         If we thread to a backedge, then return 0.
3360         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
3361         pass it to thread_through_normal_block or thread_through_empty_blocks.
3362         For joiner handling, if we see a backedge, do not try normal
3363         threading.
3365 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3367         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3368         * graphite-poly.c (new_scop): Initialize original_schedule.
3369         (free_scop): Free original_schedule.
3370         * graphite-poly.h (struct scop): Add field original_schedule.
3371         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3372         (build_poly_scop): Call build_scop_original_schedule.
3374 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3376         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3377         (build_pbb_minimal_scattering_polyhedrons): New.
3378         (build_scop_scattering): Remove.
3379         (build_scop_minimal_scattering): New.
3380         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3381         (build_poly_scop): Call build_scop_minimal_scattering.
3383 2015-11-06  Jeff Law <law@redhat.com>
3385         * cfg-flags.def (IGNORE): New edge flag.
3386         * tree-vrp.c (identify_jump_threads): Mark and clear edges
3387         scheduled for removal with EDGE_IGNORE around call into
3388         jump threader.  Do no thread across edges with EDGE_IGNORE,
3389         but do allow threading across those with EDGE_DFS_BACK.
3391 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
3393         * doc/md.texi (multi-alternative constraints): Don't document
3394         alternatives inherently tied to reload for the user documentation.
3396 2015-11-06  Michael Collison  <michael.collison@linaro.org>
3397             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3399         Revert:
3400         2015-08-01  Michael Collison  <michael.collison@linaro.org
3401                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3403         * config/arm/arm.md (*arm_smin_cmp): New pattern.
3404         (*arm_umin_cmp): Likewise.
3406 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
3408         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3409         * omp-low.c (check_omp_nesting_restrictions): Update for the
3410         various new OpenMP 4.5 nesting restrictions, clarified
3411         nesting glossary, closely nested region relationship clarified
3412         to mean explicit or implicit parallel regions (target/teams),
3413         use %</%> or %qs where appropriate.
3415 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3416             Sebastian Pop  <s.pop@samsung.com>
3418         * graphite-scop-detection.c (loop_is_valid_scop): Call
3419         optimize_loop_nest_for_speed_p.
3421 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3422             Sebastian Pop  <s.pop@samsung.com>
3424         * graphite-optimize-isl.c (optimize_isl): Call
3425         isl_options_set_schedule_maximize_band_depth.
3427 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3428             Sebastian Pop  <s.pop@samsung.com>
3430         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3431         and exit edges should not be a part of irreducible loop.
3432         (scop_detection::can_represent_loop_1): Loops should not be
3433         irreducible.
3434         (scop_detection::harmful_stmt_in_region): All the basic block
3435         should belong to reducible loops.
3437 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
3439         * config/aarch64/aarch64-simd-builtins.def: Update builtins
3440         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3441         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
3442         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
3443         (aarch64_tbx4v8qi): Rename to...
3444         aarch64_tbx4<mode>): ... this.
3445         (aarch64_qtbl3<mode>): New pattern.
3446         (aarch64_qtbx3<mode>): New pattern.
3447         (aarch64_qtbl4<mode>): New pattern.
3448         (aarch64_qtbx4<mode>): New pattern.
3449         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
3450         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
3451         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
3452         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
3453         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
3454         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
3455         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
3456         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
3457         functions.
3459 2015-11-06  Mike Stump  <mikestump@comcast.net>
3461         PR debug/66728
3462         * dwarf2out.c (get_full_len): Return a value based upon the actual
3463         precision needed for the value.
3464         (add_const_value_attribute): Use a maximal wide-int for
3465         CONST_WIDE_INTs, not VOIDmode.
3466         (output_die): Don't ever output NULL with printf.
3468         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
3469         BLKmode nor VOIDmode values.
3471 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3473         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
3474         and "range2".
3475         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
3476         * diagnostic-core.h (warning_at_rich_loc): New declaration.
3477         (error_at_rich_loc): New declaration.
3478         (permerror_at_rich_loc): New declaration.
3479         (inform_at_rich_loc): New declaration.
3480         * diagnostic-show-locus.c (adjust_line): Delete.
3481         (struct point_state): New struct.
3482         (class colorizer): New class.
3483         (class layout_point): New class.
3484         (class layout_range): New class.
3485         (struct line_bounds): New.
3486         (class layout): New class.
3487         (colorizer::colorizer): New ctor.
3488         (colorizer::~colorizer): New dtor.
3489         (layout::layout): New ctor.
3490         (layout::print_source_line): New method.
3491         (layout::print_annotation_line): New method.
3492         (layout::get_state_at_point): New method.
3493         (layout::get_x_bound_for_row): New method.
3494         (diagnostic_show_locus): Reimplement in terms of class layout.
3495         (diagnostic_print_caret_line): Delete.
3496         * diagnostic.c (diagnostic_initialize): Replace
3497         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
3498         (diagnostic_set_info_translated): Convert param from location_t
3499         to rich_location *.  Eliminate calls to set_location on the
3500         message in favor of storing the rich_location ptr there.
3501         (diagnostic_set_info): Convert param from location_t to
3502         rich_location *.
3503         (diagnostic_build_prefix): Break out array into...
3504         (diagnostic_kind_color): New variable.
3505         (diagnostic_get_color_for_kind): New function.
3506         (diagnostic_report_diagnostic): Colorize the option_text
3507         using the color for the severity.
3508         (diagnostic_append_note): Update for change in signature of
3509         diagnostic_set_info.
3510         (diagnostic_append_note_at_rich_loc): New function.
3511         (emit_diagnostic): Update for change in signature of
3512         diagnostic_set_info.
3513         (inform): Likewise.
3514         (inform_at_rich_loc): New function.
3515         (inform_n): Update for change in signature of diagnostic_set_info.
3516         (warning): Likewise.
3517         (warning_at): Likewise.
3518         (warning_at_rich_loc): New function.
3519         (warning_n): Update for change in signature of diagnostic_set_info.
3520         (pedwarn): Likewise.
3521         (permerror): Likewise.
3522         (permerror_at_rich_loc): New function.
3523         (error): Update for change in signature of diagnostic_set_info.
3524         (error_n): Likewise.
3525         (error_at): Likewise.
3526         (error_at_rich_loc): New function.
3527         (sorry): Update for change in signature of diagnostic_set_info.
3528         (fatal_error): Likewise.
3529         (internal_error): Likewise.
3530         (internal_error_no_backtrace): Likewise.
3531         (source_range::debug): New function.
3532         * diagnostic.h (struct diagnostic_info): Eliminate field
3533         "override_column".  Add field "richloc".
3534         (struct diagnostic_context): Add field "colorize_source_p".
3535         (diagnostic_override_column): Delete.
3536         (diagnostic_set_info): Convert param from location_t to
3537         rich_location *.
3538         (diagnostic_set_info_translated): Likewise.
3539         (diagnostic_append_note_at_rich_loc): New function.
3540         (diagnostic_num_locations): New function.
3541         (diagnostic_expand_location): Get the location from the
3542         rich_location.
3543         (diagnostic_print_caret_line): Delete.
3544         (diagnostic_get_color_for_kind): New declaration.
3545         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
3546         (error_cb): Update for change in signature of "error" callback.
3547         (fatal_at): Likewise.
3548         (warning_at): Likewise.
3549         * input.c (linemap_client_expand_location_to_spelling_point): New.
3550         * pretty-print.c (text_info::set_range): New method.
3551         (text_info::get_location): New method.
3552         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
3553         (struct text_info): Eliminate "locations" array in favor of
3554         "m_richloc", a rich_location *.
3555         (textinfo::set_location): Add a "caret_p" param, and reimplement
3556         in terms of a call to set_range.
3557         (textinfo::get_location): Eliminate inline implementation in favor of
3558         an out-of-line reimplementation.
3559         (textinfo::set_range): New method.
3560         * rtl-error.c (diagnostic_for_asm): Update for change in signature
3561         of diagnostic_set_info.
3562         * tree-diagnostic.c (default_tree_printer): Update for new
3563         "caret_p" param for textinfo::set_location.
3564         * tree-pretty-print.c (percent_K_format): Likewise.
3566 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3568         Properly apply.
3569         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3570         * config/aarch64/aarch64.c
3571         (aarch64_can_use_per_function_literal_pools_p): New.
3572         (aarch64_use_blocks_for_constant_p): Adjust declaration
3573         and use aarch64_can_use_function_literal_pools_p.
3574         (aarch64_select_rtx_section): Update.
3576 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3578         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
3579         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
3580         (arm_output_multireg_pop): Likewise.
3581         (output_move_double):  Likewise.
3582         (output_move_quad):  Likewise.
3583         (output_return_instruction): Likewise.
3584         (arm_print_operand): Remove support for %( and %. print modifiers.
3585         (arm_output_shift): Make unified asm.
3586         (arm_declare_function_name): Likewise.
3587         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
3588         (ASM_APP_OFF): Adjust.
3589         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
3590         (ASM_OUTPUT_REG_POP): Likewise.
3591         * config/arm/arm.md: Adjust uses of %., %(, %)
3592         * config/arm/sync.md: Likewise.
3593         * config/arm/thumb2.md: Likewise.
3594         * config/arm/ldmstm.md: Regenerate.
3595         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
3596         * doc/invoke.texi (masm-unified-syntax): Update documentation.
3598 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
3600         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
3602 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3604         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
3605         add OEP_MATCH_SIDE_EFFECTS.
3606         * fold-const.c (operand_equal_p): Update documentation; handle
3607         OEP_MATCH_SIDE_EFFECTS.
3608         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
3609         OEP_MATCH_SIDE_EFFECTS.
3611 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
3612             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3614         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
3615         * config/aarch64/aarch64-protos.h: Declare.
3616         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
3617         frsqrts.
3618         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
3619         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
3620         code when applicable.
3621         * config/aarch64/aarch64.md: Added enum entries.
3622         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
3624 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3626         PR ipa/68057
3627         PR ipa/68220
3628         * ipa-polymorphic-call.c
3629         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
3630         issue when offset is out of range.
3631         (contains_type_p): Fix out of range check, clear dynamic flag.
3633 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
3635         * config.gcc (e6500): Fix cpu_is_64bit typo.
3637 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
3639         * tree-sra.c (completely_scalarize): Properly handle negative array
3640         indices using offset_int.
3642 2015-11-06  Richard Biener  <rguenther@suse.de>
3644         * alloc-pool.h (object_allocator::allocate): Default-initialize
3645         object.
3647 2015-11-06  Richard Biener  <rguenther@suse.de>
3649         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
3650         * lra.c (init_reg_info): Truncate copy_vec instead of
3651         re-allocating a new one and leaking the old.
3652         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
3653         bb_infos vec.
3654         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
3655         * postreload-gcse.c (free_mem): Free modify_mem_list and
3656         canon_modify_mem_list.
3658 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
3660         PR tree-optimization/68145
3661         * tree-vect-stmts.c (vectorizable_operation): Fix
3662         determination for booleans.
3664 2015-11-06  Tom de Vries  <tom@codesourcery.com>
3666         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
3667         cond_jump, instead of split after last nondebug insn before cond_jump.
3668         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
3669         returning.
3671 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3673         PR target/68088
3674         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
3675         subregs from accumulator and make sure it's a register.
3677 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
3679         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
3680         low part to scalar.
3681         (reduc_uplus_<mode>): Remove.
3682         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
3683         loongson_extract_lo_<mode>.
3684         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
3685         reduc_smax_<mode>, reduc_smax_<mode>, use vec
3686         loongson_extract_lo_<mode>.
3687         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
3689 2015-11-06  Richard Biener  <rguenther@suse.de>
3691         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
3692         members.
3693         (vect_stmt_in_region_p): Declare.
3694         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
3695         (destroy_bb_vec_info): Likewise.
3696         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
3697         (vect_get_and_check_slp_defs): Likewise.
3698         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
3699         (vect_slp_bb): Likewise.
3700         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
3701         in terms of vect_stmt_in_region_p.
3702         (vect_pattern_recog): Iterate over the BB region.
3703         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
3704         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
3705         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
3706         * config/i386/i386.c: Include gimple-iterator.h.
3707         * config/aarch64/aarch64.c: Likewise.
3709 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
3711         PR rtl-optimization/67753
3712         PR rtl-optimization/64164
3713         * function.c (assign_parm_setup_block): Avoid allocating a
3714         stack slot if we don't have an ABI-reserved one.  Emit the
3715         copy to target_reg in the conversion seq if the copy from
3716         entry_parm is in it too.  Don't use the conversion seq to copy
3717         a PARALLEL to a REG or a CONCAT.
3719 2015-11-06  Richard Biener  <rguenther@suse.de>
3721         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
3722         equal_keys.
3724 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
3725             Thomas Schwinge  <thomas@codesourcery.com>
3726             James Norris  <jnorris@codesourcery.com>
3729         * gimplify.c (gimplify_scan_omp_clauses): Add support for
3730         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
3731         (gimplify_adjust_omp_clauses): Likewise.
3732         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
3733         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
3734         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
3735         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
3736         (omp_clause_code_name): Likewise.
3737         (walk_tree_1): Handle OMP_CLAUSE_TILE.
3738         * tree.h (OMP_TILE_LIST): New macro.
3740 2015-11-05  Martin Sebor  <msebor@redhat.com>
3742         PR c++/67942
3743         * doc/invoke.texi (-Wplacement-new): Document new option.
3745 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
3747         PR tree-optimization/65963
3748         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
3749         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
3751 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
3753         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
3754         (noce_convert_multiple_sets): Likewise.
3755         (noce_process_if_block): Call them.
3757 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
3759         * gimple-fold.c: Include omp-low.h.
3760         (fold_internal_goacc_dim): New.
3761         (gimple_fold_call): Call it.
3763 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
3764             Ilya Verbin  <ilya.verbin@intel.com>
3766         * builtin-types.def
3767         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
3768         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
3769         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3770         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
3771         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
3772         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
3773         (struct cgraph_simd_clone_arg): Adjust comment.
3774         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
3775         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
3776         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
3777         to GOMP_target_data_ext.
3778         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
3779         to GOMP_target_update_ext.
3780         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
3781         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
3782         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
3783         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
3784         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
3785         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
3786         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
3787         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
3788         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
3789         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
3790         * tree-core.h (enum omp_clause_schedule_kind): Add
3791         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
3792         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
3793         OMP_CLAUSE_SCHEDULE_LAST value.
3794         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
3795         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
3796         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
3797         OMP_FOR_CHECK.  Remove comment.
3798         * tree-pretty-print.c (dump_omp_clause): Handle
3799         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
3800         Simplify.  Print schedule clause modifiers.
3801         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
3802         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
3803         cases.
3804         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
3805         (omp_default_clause): Tweak for
3806         private/firstprivate/is_device_ptr variables on target
3807         construct and use_device_ptr on target data.
3808         (omp_check_private): Likewise.
3809         (omp_notice_variable): For references check whether what it refers
3810         to has mappable type, rather than the reference itself.
3811         (omp_is_private): Diagnose linear iteration variables on non-simd
3812         constructs.
3813         (omp_no_lastprivate): Return true only for Fortran.
3814         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
3815         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
3816         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
3817         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
3818         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
3819         lastprivate and linear when combined with distribute.  Gimplify
3820         variable low-bound for array reduction.  Look through
3821         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
3822         reductions.
3823         (gimplify_adjust_omp_clauses_1): For implicit references to
3824         variables with reference type and when not ref to scalar or
3825         ref to pointer, map what they refer to using tofrom and
3826         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
3827         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
3828         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
3829         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
3830         Diagnose the same var on both firstprivate and lastprivate on
3831         distribute construct.
3832         (gimplify_omp_for): Fix up handling of predetermined
3833         lastprivate or linear iter vars when combined with distribute.
3834         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
3835         functions.
3836         (gimplify_omp_workshare): Call optimize_target_teams.
3837         * omp-low.c (struct omp_region): Add sched_modifiers field.
3838         (struct omp_for_data): Likewise.
3839         (omp_any_child_fn_dumped): New variable.
3840         (extract_omp_for_data): Fill in sched_modifiers, and mask out
3841         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
3842         from sched_kind.
3843         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
3844         bits of OMP_CLAUSE_SCHED_KIND.
3845         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
3846         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
3847         for array section reductions.
3848         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
3849         for distribute parallel for, if there are lastprivate clauses on the
3850         for.
3851         (lower_rec_input_clauses): Handle non-zero low-bound on array
3852         section reductions.
3853         (lower_reduction_clauses): Likewise.
3854         (lower_send_clauses): Look through POINTER_PLUS_EXPR
3855         for array section reductions.
3856         (expand_parallel_call): Use nonmonotonic entrypoints for
3857         nonmonotonic: dynamic/guided.
3858         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
3859         child_fn if current_function_decl has assembler name set, but child_fn
3860         does not.  Dump the header and IL of the child function when not in SSA
3861         form.
3862         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
3863         arguments to BUILT_IN_GOMP_TARGET.
3864         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3865         Initialize the extra _looptemp_ clause to fd->loop.n2.
3866         (expand_omp_for): Use nonmonotonic entrypoints for
3867         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
3868         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
3869         again if we have dumped any child functions.
3870         (lower_omp_for_lastprivate): Determine the right count variable
3871         for distribute simd, or distribute parallel for{, simd}.
3872         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
3873         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
3874         support.
3875         (simd_clone_clauses_extract): Handle variable step
3876         for references and arguments passed by reference.
3877         (simd_clone_mangle): Mangle ref/uval/val variable steps.
3878         (simd_clone_adjust_argument_types): Handle
3879         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
3880         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3881         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
3882         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3883         (simd_clone_linear_addend): New function.
3884         (simd_clone_adjust): Handle variable step like similarly
3885         to constant step, use simd_clone_linear_addend to determine
3886         the actual step at runtime.
3888 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
3890         * target.def (goacc.dim_limit): New hook.
3891         * targhooks.h (default_goacc_dim_limit): Declare.
3892         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
3893         * doc/tm.texi: Rebuilt.
3894         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
3895         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
3896         (default_goacc_dim_limit): New.
3897         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3898         (nvptx_goacc_dim_limit) New.
3899         (TARGET_GOACC_DIM_LIMIT): Override.
3900         * tree-vrp.c: Include omp-low.h, target.h.
3901         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
3902         IFN_GOACC_DIM_POS.
3904 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
3906         * tree-vect-generic.c (do_compare): Use -1 for true
3907         result instead of 1.
3909 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3911         * config/aarch64/aarch64.c
3912         (aarch64_can_use_per_function_literal_pools_p): New.
3913         (aarch64_use_blocks_for_constant_p): Adjust declaration
3914         and use aarch64_can_use_function_literal_pools_p.
3915         (aarch64_select_rtx_section): Update.
3917 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
3919         * targhooks.c (default_get_mask_mode): Use BLKmode in
3920         case target doesn't support required vector mode.
3921         * stor-layout.c (layout_type); Check for BLKmode.
3923 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
3924             Sebastian Pop  <s.pop@samsung.com>
3926         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3927         Remove use of parameter_rename_map.
3928         (copy_def): Remove.
3929         (copy_internal_parameters): Remove.
3930         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3931         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3932         (free_sese_info): Do not free parameter_rename_map.
3933         (set_rename): Do not use parameter_rename_map.
3934         (rename_uses): Update call to set_rename.
3935         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3936         * sese.h (parameter_rename_map_t): Remove.
3937         (struct sese_info_t): Remove field parameter_rename_map.
3939 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
3940             Sebastian Pop  <s.pop@samsung.com>
3942         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
3943         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
3944         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
3945         anonymous namespace.
3946         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
3947         (isl_id_for_pbb): Use a buffer of size 10.
3948         (isl_id_for_ssa_name): Same.
3949         * sese.c (set_rename): Add more dumps.
3951 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3953         * omp-low.c (struct omp_context): Remove reduction_map field.
3954         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
3955         (new_omp_context, delete_omp_context, scan_omp_target): Remove
3956         reduction_map handling.
3957         (lower_omp_target): Remove obsolete openacc reduction handling.
3959 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3961         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
3963 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3964             Cesar Philippidis  <cesar@codesourcery.com>
3966         * config/nvptx/nvptx.c: Include gimple headers.
3967         (worker_red_size, worker_red_align, worker_red_name,
3968         worker_red_sym): New.
3969         (nvptx_option_override): Initialize worker reduction buffer.
3970         (nvptx_file_end): Write out worker reduction buffer var.
3971         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
3972         nvptx_expand_cmp_swap): New builtin expanders.
3973         (enum nvptx_builtins): New.
3974         (nvptx_builtin_decls): New.
3975         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
3976         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
3977         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
3978         nvptx_lockless_update): New helpers.
3979         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
3980         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
3981         (nvptx_goacc_reduction): New.
3982         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
3983         TARGET_BUILTIN_DECL): Override.
3984         (TARGET_GOACC_REDUCTION): Override.
3986 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3987             Cesar Philippidis  <cesar@codesourcery.com>
3989         * internal-fn.def (GOACC_REDUCTION): New.
3990         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
3991         * internal-fn.c (expand_GOACC_REDUCTION): New.
3992         * target.def (goacc.reduction): New OpenACC hook.
3993         * targhooks.h (default_goacc_reduction): Declare.
3994         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
3995         * doc/tm.texi: Rebuilt.
3996         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
3997         scan_sharing_clauses): Remove oacc reduction handling here.
3998         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
3999         (oacc_lower_reduction_var_helper): Delete.
4000         (lower_oacc_reductions): New.
4001         (lower_reduction_clauses): Don't handle OpenACC reductions here.
4002         (lower_oacc_head_tail): Call lower_oacc_reductions.
4003         (oacc_gimple_assign, oacc_init_reduction_array,
4004         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4005         oacc_process_reduction_data): Delete.
4006         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
4007         dummy OpenACC gang reduction for reductions at outer level.
4008         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4009         (default_goacc_reduction): New.
4010         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4012 2015-11-04  Martin Liska  <mliska@suse.cz>
4014         * cgraphunit.c (cgraph_node::expand_thunk): Call
4015         allocate_struct_function before init_function_start.
4016         (cgraph_node::expand): Use push_cfun and pop_cfun.
4017         * config/i386/i386.c (ix86_code_end): Call
4018         allocate_struct_function before init_function_start.
4019         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4020         * function.c (init_function_start): Move preamble to all
4021         callers.
4022         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4023         (execute_one_pass): Handle newly added TODO_discard_function.
4024         (execute_pass_list_1): Terminate if cfun equals to NULL.
4025         (execute_pass_list): Do not push and pop cfun, expect that
4026         cfun is set.
4027         * tree-pass.h (TODO_discard_function): Define.
4029 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
4031         * cfganal.c (inverted_post_order_compute): Remove conditional
4032         compilation, use flag_checking.
4033         * config.in: Regenerate.
4034         * configure: Regenerate.
4035         * configure.ac: Remove ENABLE_CHECKING.
4036         * genconditions.c: Do not #undef ENABLE_CHECKING.
4037         * sese.h (bb_in_region): Comment out broken check.
4038         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4039         conditional compilation, use flag_checking.
4041 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4043         PR tree-optimization/67742
4044         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4045         field.
4046         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4047         (create_variable_info_for_1): Add and handle handle_param parameter.
4048         Add restrict handling.
4049         (create_variable_info_for): Call create_variable_info_for_1 with extra
4050         arg.
4051         (make_param_constraints): Drop restrict_name parameter.  Ignore
4052         vi->only_restrict_pointers.
4053         (intra_create_variable_infos): Call create_variable_info_for_1 with
4054         extra arg.  Remove restrict handling.  Call make_param_constraints with
4055         one fewer arg.
4057 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4059         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4060         variable.
4062 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4064         * config/arm/coff.h: Remove.
4066 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4068         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4069         check for aggregate types and beef up comment for mode check.
4071 2015-11-03  Richard Biener  <rguenther@suse.de>
4073         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4074         data references here.
4075         * tree-vect-loop.c: Include cgraph.h.
4076         (vect_analyze_loop_2): Collect data references here.
4077         * tree-vect-slp.c (find_bb_location): Inline ...
4078         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
4079         Factor in vect_slp_transform_bb.
4080         (vect_slp_transform_bb): Removed.
4081         (vect_slp_analyze_bb_1): Collect data references here.
4082         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4083         vect_slp_bb.
4084         * tree-vectorizer.h (vect_slp_bb): Declare.
4085         (vect_slp_analyze_bb): Remove.
4086         (vect_slp_transform_bb): Remove.
4087         (find_bb_location): Remove.
4088         (vect_analyze_data_refs): Remove stmt count reference parameter.
4090 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
4092         * multiple_target.c (create_dispatcher_calls): Add target check
4093         on ifunc.
4094         (create_target_clone): Change assembler name for versioned declarations.
4096 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
4097             Chung-Lin Tang  <cltang@codesourcery.com>
4099         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4100         * omp-low.c (check_omp_nesting_restrictions): Allow
4101         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4102         contexts.
4104 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
4106         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4107         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4108         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4109         builtin.
4110         (vmulxq_f32): Likewise.
4111         (vmulx_f64): New.
4112         (vmulxq_f64): Rewrite to call fmulx builtin.
4113         (vmulxs_f32): Likewise.
4114         (vmulxd_f64): Likewise.
4115         (vmulx_lane_f32): Remove.
4116         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4118 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
4120         * config/aarch64/aarch64.md (*movhf_aarch64): Use
4121         aarch64_reg_or_fp_zero for second operand.
4123 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
4125         * gimple-expr.c: Include hash-set.h and rtl.h.
4126         (mark_addressable_queue): New var.
4127         (mark_addressable): Factor actual marking into...
4128         (mark_addressable_1): ... this.  Queue it up during expand.
4129         (mark_addressable_2): New.
4130         (flush_mark_addressable_queue): New.
4131         * gimple-expr.h (flush_mark_addressable_queue): Declare.
4132         * cfgexpand.c: Include gimple-expr.h.
4133         (pass_expand::execute): Flush mark_addressable queue.
4135 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
4137         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4138         bb_no_side_effects_p tests...
4139         (tree_ssa_ifcombine_bb): ... here.
4141         PR tree-optimization/68083
4142         * tree-ssa-ifcombine.c: Include tree-ssa.h.
4143         (bb_no_side_effects_p): Test for undefined uses too.
4144         * tree-ssa.c (gimple_uses_undefined_value_p): New.
4145         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4147 2015-11-02  Jeff Law <law@redhat.com>
4149         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4150         cases where the loop latch edge is in the middle of an FSM path.
4152 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4154         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4155         (make_param_constraints): ... this.  Add and handle restrict_name
4156         parameter.  Handle is_full_var case.
4157         (intra_create_variable_infos): Use make_param_constraints.
4159 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4161         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4162         make_copy_constraint call with make_constraint_from call.
4164 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
4166         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4167         PIE executables.
4169 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
4171         * builtins.h (fold_fma): Move to fold-const-call.h.
4172         * builtins.c: Include fold-const-call.h.
4173         (mathfn_built_in_2): New function, split out from...
4174         (mathfn_built_in_1): ...here.
4175         (do_real_to_int_conversion, fold_const_builtin_pow)
4176         (fold_const_builtin_logb, fold_const_builtin_significand)
4177         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4178         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4179         (fold_builtin_sincos): Use fold_const_call to handle constants.
4180         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4181         checks for ERROR_MARK.  Use fold_const_call to handle constant
4182         folds for math functions.
4183         (fold_fma): Move to fold-const-call.c.
4184         * fold-const.c: Include fold-const-call.h.
4185         * Makefile.in (OBJS): Add fold-const-call.o.
4186         (PLUGIN_HEADERS): Add fold-const-call.h.
4187         * realmpfr.h (real_from_mpfr): Allow the format to be specified
4188         directly.
4189         * realmpfr.c (real_from_mpfr): Likewise.
4190         * fold-const-call.h, fold-const-call.c: New files.
4192 2015-11-02  Julian Brown  <julian@codesourcery.com>
4194         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4195         brackets and semicolon.
4197 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
4199         Revert:
4200         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4202         PR tree-optimization/65963
4203         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4204         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4206 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
4208         PR middle-end/68166
4209         * fold-const.c: Include "md5.h".
4211 2015-11-01  Jeff Law <law@redhat.com>
4213         * vmsdbgout.c: Revert unused header file reduction patch.
4215         * config/mcore/mcore.c: Include regs.h.
4217 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4219         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4221 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4223         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4224         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4225         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4227 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4229         * ggc-common.c: Restore needed header for checking=release.
4231 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4233         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4235 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4237         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4238         existing varinfo for arguments.
4240 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4242         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4243         create_function_info_for.  Dump constraints generated during
4244         create_function_info_for. Move intra_create_variable_infos call and
4245         function-return-values-escape bit to ...
4246         (create_function_info_for): ... here, and merge
4247         intra_create_variable_infos call with argument loop.  Add and handle
4248         nonlocal_p parameter.
4250 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4252         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4253         updating is alap, and seperated from preceding code.  Make sure
4254         insert_vi_for_tree is seperated from surrounding code.
4256 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4258         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4260 2015-10-30  Jeff Law <law@redhat.com>
4261             Nathan Sidwell  <nathan@acm.org>
4263         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4264         args.
4265         (MOVE_MAX): Set to 8.
4267 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
4269         * cgraph.c: Include context.h for offloading.
4270         * varpool.c: Include context.h and omp-low.h.
4272 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
4274         * rtl.h (contains_symbol_ref_p): Declare.
4275         (SYMBOL_REF_P): Define.
4276         * rtlanal.c (contains_symbol_ref_p: New function.
4277         * lra-constraints.c (contains_symbol_ref_p): Remove.
4278         * var-tracking.c (contains_symbol_ref): Remove.
4279         (track_expr_p): Use contains_symbol_ref_p instead of
4280         contains_symbol_ref.
4282 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
4284         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4285         * fold-const.c (get_array_ctor_element_at_index): New.
4286         (fold): Remove binary-search through CONSTRUCTOR, call previous.
4288         * fold-const.h (get_array_ctor_element_at_index): New.
4290 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
4292         * Makefile.in (OBJS): Add multiple_target.o.
4293         * attrib.c (make_attribute): Moved from config/i386/i386.c
4294         * config/i386/i386.c (make_attribute): Deleted.
4295         * multiple_target.c (create_dispatcher_calls): New.
4296         (get_attr_len): Ditto.
4297         (get_attr_str): Ditto.
4298         (separate_attrs): Ditto.
4299         (is_valid_asm_symbol): Ditto.
4300         (create_new_asm_name): Ditto.
4301         (create_target_clone): Ditto.
4302         (expand_target_clones): Ditto.
4303         (ipa_target_clone): Ditto.
4304         (ipa_dispatcher_calls): Ditto.
4305         * passes.def (pass_target_clone): Two new ipa passes.
4306         * tree-pass.h (make_pass_target_clone): Ditto.
4307         * doc/extend.texi (target_clones): New attribute description.
4309 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
4311         PR rtl-optimization/68106
4312         * lra-remat.c (input_regno_present_p): Process hard regs
4313         explicitly present in machine description insns.
4314         (call_used_input_regno_present_p): Ditto.
4315         (calculate_gen_cands): Ditto.
4316         (do_remat): Ditto.
4318 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
4320         * config/arm/neon-testgen.ml: Fix comment typo.
4322 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4324         * rtlanal.c (reg_set_p): Expand function comment.
4326 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
4328         * alias.c: Remove unused headers.
4329         * asan.c: Likewise.
4330         * attribs.c: Likewise.
4331         * auto-inc-dec.c: Likewise.
4332         * auto-profile.c: Likewise.
4333         * bb-reorder.c: Likewise.
4334         * bitmap.c: Likewise.
4335         * bt-load.c: Likewise.
4336         * builtins.c: Likewise.
4337         * caller-save.c: Likewise.
4338         * calls.c: Likewise.
4339         * ccmp.c: Likewise.
4340         * cfg.c: Likewise.
4341         * cfganal.c: Likewise.
4342         * cfgbuild.c: Likewise.
4343         * cfgcleanup.c: Likewise.
4344         * cfgexpand.c: Likewise.
4345         * cfghooks.c: Likewise.
4346         * cfgloop.c: Likewise.
4347         * cfgloopanal.c: Likewise.
4348         * cfgloopmanip.c: Likewise.
4349         * cfgrtl.c: Likewise.
4350         * cgraph.c: Likewise.
4351         * cgraphbuild.c: Likewise.
4352         * cgraphclones.c: Likewise.
4353         * cgraphunit.c: Likewise.
4354         * cilk-common.c: Likewise.
4355         * combine-stack-adj.c: Likewise.
4356         * combine.c: Likewise.
4357         * compare-elim.c: Likewise.
4358         * convert.c: Likewise.
4359         * coverage.c: Likewise.
4360         * cppbuiltin.c: Likewise.
4361         * cprop.c: Likewise.
4362         * cse.c: Likewise.
4363         * cselib.c: Likewise.
4364         * data-streamer-in.c: Likewise.
4365         * data-streamer-out.c: Likewise.
4366         * data-streamer.c: Likewise.
4367         * dbxout.c: Likewise.
4368         * dce.c: Likewise.
4369         * ddg.c: Likewise.
4370         * debug.c: Likewise.
4371         * df-core.c: Likewise.
4372         * df-problems.c: Likewise.
4373         * df-scan.c: Likewise.
4374         * dfp.c: Likewise.
4375         * dojump.c: Likewise.
4376         * dominance.c: Likewise.
4377         * domwalk.c: Likewise.
4378         * double-int.c: Likewise.
4379         * dse.c: Likewise.
4380         * dumpfile.c: Likewise.
4381         * dwarf2asm.c: Likewise.
4382         * dwarf2cfi.c: Likewise.
4383         * dwarf2out.c: Likewise.
4384         * emit-rtl.c: Likewise.
4385         * except.c: Likewise.
4386         * explow.c: Likewise.
4387         * expmed.c: Likewise.
4388         * expr.c: Likewise.
4389         * final.c: Likewise.
4390         * fixed-value.c: Likewise.
4391         * fold-const.c: Likewise.
4392         * function.c: Likewise.
4393         * fwprop.c: Likewise.
4394         * gcse.c: Likewise.
4395         * generic-match-head.c: Likewise.
4396         * ggc-common.c: Likewise.
4397         * gimple-builder.c: Likewise.
4398         * gimple-expr.c: Likewise.
4399         * gimple-fold.c: Likewise.
4400         * gimple-iterator.c: Likewise.
4401         * gimple-low.c: Likewise.
4402         * gimple-match-head.c: Likewise.
4403         * gimple-pretty-print.c: Likewise.
4404         * gimple-ssa-isolate-paths.c: Likewise.
4405         * gimple-ssa-strength-reduction.c: Likewise.
4406         * gimple-streamer-in.c: Likewise.
4407         * gimple-streamer-out.c: Likewise.
4408         * gimple-walk.c: Likewise.
4409         * gimple.c: Likewise.
4410         * gimplify-me.c: Likewise.
4411         * gimplify.c: Likewise.
4412         * godump.c: Likewise.
4413         * graph.c: Likewise.
4414         * graphds.c: Likewise.
4415         * haifa-sched.c: Likewise.
4416         * hw-doloop.c: Likewise.
4417         * ifcvt.c: Likewise.
4418         * init-regs.c: Likewise.
4419         * internal-fn.c: Likewise.
4420         * ipa-chkp.c: Likewise.
4421         * ipa-comdats.c: Likewise.
4422         * ipa-cp.c: Likewise.
4423         * ipa-devirt.c: Likewise.
4424         * ipa-icf-gimple.c: Likewise.
4425         * ipa-icf.c: Likewise.
4426         * ipa-inline-analysis.c: Likewise.
4427         * ipa-inline-transform.c: Likewise.
4428         * ipa-inline.c: Likewise.
4429         * ipa-polymorphic-call.c: Likewise.
4430         * ipa-profile.c: Likewise.
4431         * ipa-prop.c: Likewise.
4432         * ipa-pure-const.c: Likewise.
4433         * ipa-ref.c: Likewise.
4434         * ipa-reference.c: Likewise.
4435         * ipa-split.c: Likewise.
4436         * ipa-utils.c: Likewise.
4437         * ipa-visibility.c: Likewise.
4438         * ipa.c: Likewise.
4439         * ira-build.c: Likewise.
4440         * ira-color.c: Likewise.
4441         * ira-conflicts.c: Likewise.
4442         * ira-costs.c: Likewise.
4443         * ira-emit.c: Likewise.
4444         * ira-lives.c: Likewise.
4445         * ira.c: Likewise.
4446         * jump.c: Likewise.
4447         * langhooks.c: Likewise.
4448         * lcm.c: Likewise.
4449         * lists.c: Likewise.
4450         * loop-doloop.c: Likewise.
4451         * loop-init.c: Likewise.
4452         * loop-invariant.c: Likewise.
4453         * loop-iv.c: Likewise.
4454         * loop-unroll.c: Likewise.
4455         * lower-subreg.c: Likewise.
4456         * lra-assigns.c: Likewise.
4457         * lra-coalesce.c: Likewise.
4458         * lra-constraints.c: Likewise.
4459         * lra-eliminations.c: Likewise.
4460         * lra-lives.c: Likewise.
4461         * lra-remat.c: Likewise.
4462         * lra-spills.c: Likewise.
4463         * lra.c: Likewise.
4464         * lto-cgraph.c: Likewise.
4465         * lto-compress.c: Likewise.
4466         * lto-opts.c: Likewise.
4467         * lto-section-in.c: Likewise.
4468         * lto-section-out.c: Likewise.
4469         * lto-streamer-in.c: Likewise.
4470         * lto-streamer-out.c: Likewise.
4471         * lto-streamer.c: Likewise.
4472         * mcf.c: Likewise.
4473         * mode-switching.c: Likewise.
4474         * modulo-sched.c: Likewise.
4475         * optabs.c: Likewise.
4476         * opts-global.c: Likewise.
4477         * passes.c: Likewise.
4478         * plugin.c: Likewise.
4479         * postreload-gcse.c: Likewise.
4480         * postreload.c: Likewise.
4481         * predict.c: Likewise.
4482         * print-tree.c: Likewise.
4483         * profile.c: Likewise.
4484         * real.c: Likewise.
4485         * realmpfr.c: Likewise.
4486         * recog.c: Likewise.
4487         * ree.c: Likewise.
4488         * reg-stack.c: Likewise.
4489         * regcprop.c: Likewise.
4490         * reginfo.c: Likewise.
4491         * regrename.c: Likewise.
4492         * regstat.c: Likewise.
4493         * reload.c: Likewise.
4494         * reload1.c: Likewise.
4495         * reorg.c: Likewise.
4496         * resource.c: Likewise.
4497         * rtl-chkp.c: Likewise.
4498         * rtl-error.c: Likewise.
4499         * rtlanal.c: Likewise.
4500         * rtlhooks.c: Likewise.
4501         * sanopt.c: Likewise.
4502         * sched-deps.c: Likewise.
4503         * sched-ebb.c: Likewise.
4504         * sched-rgn.c: Likewise.
4505         * sdbout.c: Likewise.
4506         * sel-sched-dump.c: Likewise.
4507         * sel-sched-ir.c: Likewise.
4508         * sel-sched.c: Likewise.
4509         * sese.c: Likewise.
4510         * shrink-wrap.c: Likewise.
4511         * simplify-rtx.c: Likewise.
4512         * stack-ptr-mod.c: Likewise.
4513         * statistics.c: Likewise.
4514         * stmt.c: Likewise.
4515         * stor-layout.c: Likewise.
4516         * store-motion.c: Likewise.
4517         * stringpool.c: Likewise.
4518         * symtab.c: Likewise.
4519         * target-globals.c: Likewise.
4520         * targhooks.c: Likewise.
4521         * toplev.c: Likewise.
4522         * tracer.c: Likewise.
4523         * trans-mem.c: Likewise.
4524         * tree-affine.c: Likewise.
4525         * tree-call-cdce.c: Likewise.
4526         * tree-cfg.c: Likewise.
4527         * tree-cfgcleanup.c: Likewise.
4528         * tree-chkp-opt.c: Likewise.
4529         * tree-chkp.c: Likewise.
4530         * tree-chrec.c: Likewise.
4531         * tree-complex.c: Likewise.
4532         * tree-data-ref.c: Likewise.
4533         * tree-dfa.c: Likewise.
4534         * tree-diagnostic.c: Likewise.
4535         * tree-dump.c: Likewise.
4536         * tree-eh.c: Likewise.
4537         * tree-emutls.c: Likewise.
4538         * tree-if-conv.c: Likewise.
4539         * tree-inline.c: Likewise.
4540         * tree-into-ssa.c: Likewise.
4541         * tree-iterator.c: Likewise.
4542         * tree-loop-distribution.c: Likewise.
4543         * tree-nested.c: Likewise.
4544         * tree-nrv.c: Likewise.
4545         * tree-object-size.c: Likewise.
4546         * tree-outof-ssa.c: Likewise.
4547         * tree-parloops.c: Likewise.
4548         * tree-phinodes.c: Likewise.
4549         * tree-predcom.c: Likewise.
4550         * tree-pretty-print.c: Likewise.
4551         * tree-profile.c: Likewise.
4552         * tree-scalar-evolution.c: Likewise.
4553         * tree-sra.c: Likewise.
4554         * tree-ssa-address.c: Likewise.
4555         * tree-ssa-alias.c: Likewise.
4556         * tree-ssa-ccp.c: Likewise.
4557         * tree-ssa-coalesce.c: Likewise.
4558         * tree-ssa-copy.c: Likewise.
4559         * tree-ssa-dce.c: Likewise.
4560         * tree-ssa-dse.c: Likewise.
4561         * tree-ssa-forwprop.c: Likewise.
4562         * tree-ssa-ifcombine.c: Likewise.
4563         * tree-ssa-live.c: Likewise.
4564         * tree-ssa-loop-ch.c: Likewise.
4565         * tree-ssa-loop-im.c: Likewise.
4566         * tree-ssa-loop-ivcanon.c: Likewise.
4567         * tree-ssa-loop-ivopts.c: Likewise.
4568         * tree-ssa-loop-manip.c: Likewise.
4569         * tree-ssa-loop-niter.c: Likewise.
4570         * tree-ssa-loop-prefetch.c: Likewise.
4571         * tree-ssa-loop-unswitch.c: Likewise.
4572         * tree-ssa-loop.c: Likewise.
4573         * tree-ssa-math-opts.c: Likewise.
4574         * tree-ssa-operands.c: Likewise.
4575         * tree-ssa-phiopt.c: Likewise.
4576         * tree-ssa-phiprop.c: Likewise.
4577         * tree-ssa-pre.c: Likewise.
4578         * tree-ssa-propagate.c: Likewise.
4579         * tree-ssa-reassoc.c: Likewise.
4580         * tree-ssa-scopedtables.c: Likewise.
4581         * tree-ssa-sink.c: Likewise.
4582         * tree-ssa-strlen.c: Likewise.
4583         * tree-ssa-structalias.c: Likewise.
4584         * tree-ssa-tail-merge.c: Likewise.
4585         * tree-ssa-ter.c: Likewise.
4586         * tree-ssa-threadupdate.c: Likewise.
4587         * tree-ssa-uncprop.c: Likewise.
4588         * tree-ssa-uninit.c: Likewise.
4589         * tree-ssa.c: Likewise.
4590         * tree-ssanames.c: Likewise.
4591         * tree-stdarg.c: Likewise.
4592         * tree-streamer-in.c: Likewise.
4593         * tree-streamer-out.c: Likewise.
4594         * tree-streamer.c: Likewise.
4595         * tree-switch-conversion.c: Likewise.
4596         * tree-tailcall.c: Likewise.
4597         * tree-vect-data-refs.c: Likewise.
4598         * tree-vect-generic.c: Likewise.
4599         * tree-vect-loop-manip.c: Likewise.
4600         * tree-vect-loop.c: Likewise.
4601         * tree-vect-patterns.c: Likewise.
4602         * tree-vect-slp.c: Likewise.
4603         * tree-vect-stmts.c: Likewise.
4604         * tree-vectorizer.c: Likewise.
4605         * tree-vrp.c: Likewise.
4606         * tree.c: Likewise.
4607         * tsan.c: Likewise.
4608         * ubsan.c: Likewise.
4609         * value-prof.c: Likewise.
4610         * var-tracking.c: Likewise.
4611         * varasm.c: Likewise.
4612         * varpool.c: Likewise.
4613         * vmsdbgout.c: Likewise.
4614         * vtable-verify.c: Likewise.
4615         * web.c: Likewise.
4616         * wide-int-print.cc: Likewise.
4617         * wide-int.cc: Likewise.
4618         * xcoffout.c: Likewise.
4620 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
4622         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
4623         between pass numbering and execution order.
4625 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4627         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
4628         check for dependencies.
4630 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4632         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
4633         CDI_DOMINATORS.
4635 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4637         * real.h (format_helper): New.
4638         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
4639         (real_from_target, real_nan, real_2expN, real_value_truncate)
4640         (significand_size, real_from_string2, exact_real_inverse)
4641         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
4642         (real_round, real_isinteger, real_from_integer): Replace
4643         machine_mode arguments with format_helper arguments.
4644         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
4645         (real_from_integer, real_nan, real_2expN, real_convert)
4646         (real_value_truncate, exact_real_truncate, real_to_target)
4647         (real_from_target, significand_size, real_powi, real_trunc)
4648         (real_floor, real_ceil, real_round, real_isinteger): Replace
4649         machine_mode arguments with format_helper arguments.
4650         (real_to_target_fmt, real_from_target_fmt): Delete.
4651         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
4652         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
4653         argument with real_format.
4654         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
4656 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4658         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
4659         (fixed_to_decimal, fixed_convert_from_real)
4660         (real_convert_from_fixed): Fix mode arguments to real_2expN.
4662 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
4664         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
4665         SCALAR_FLOAT_MODE_P.
4667 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
4669         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
4670         (completely_scalarize): Comment zero-length arrays.
4671         (get_access_replacement): Correct comment re. precondition.
4673 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4675         * config/i386/i386.c (get_builtin_code_for_version): Set priority
4676         for PROCESSOR_ZNVER1.
4677         (enum processor_model): Add M_AMDFAM17H_znver1.
4678         (struct arch_names_table): Likewise.
4679         * doc/extend.texi: ADD znver1.
4681 2015-10-30  Richard Biener  <rguenther@suse.de>
4683         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
4684         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
4685         zeros to be folded to VECTOR_CSTs.
4686         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
4687         * fold-const.c (fold): Use build_vector_from_ctor.
4689 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
4691         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
4692         "mov %0.h[0], %1.h[0] to "neon_move".
4693         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
4694         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
4695         "mov_imm".
4696         (*cmovsi_insn_uxtw): Likewise.
4698 2015-10-30  Tom de Vries  <tom@codesourcery.com>
4700         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
4701         unsigned, and initialize, and use initial value instead of hardcoded
4702         constant.  Add generic constraints dumping section.  Don't dump global
4703         initializers constraints dumping section if empty.  Don't update
4704         variable from if unused.
4706 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
4708         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
4709         flag_checking and/or CHECKING_P to eliminate conditional compilation
4710         on ENABLE_CHECKING.
4711         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
4712         * config/bfin/bfin.c (hwloop_optimize): Likewise.
4713         * config/i386/i386.c (ix86_print_operand_address): Likewise.
4714         (output_387_binary_op): Likewise.
4715         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
4716         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
4717         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
4718         Likewise.
4719         * config/rs6000/rs6000.h: Likewise.
4720         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4722 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4724         * config/sh/sh.opt (mfdpic): Add missing period.
4726 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
4728         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4729         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
4730         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4731         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
4732         mcore_base_register_rtx_p, mcore_legitimate_index_p,
4733         mcore_legitimate_address_p): New functions.
4734         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4736 2015-10-29  Jeff Law  <law@redhat.com>
4738         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
4739         method.
4740         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
4741         * tree-ssa-threadedge.c
4742         (record_temporary_equivalences_from_stmts_at_dest): Remove
4743         backedge_seen argument and associated code which invalidated
4744         equivalences based on the value of that argument.
4745         (thread_through_normal_block): Corresponding changes.
4747 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
4749         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
4750         function earlier in the file.
4751         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
4752         df_regs_ever_live_p.
4754 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
4756         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
4757         by ignoring it.
4759 2015-10-29  Richard Henderson  <rth@redhat.com>
4761         PR target/68124
4762         PR rtl-opt/67609
4763         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4764         sse check to the exact conditions of PR 67609.
4766 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4768         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
4769         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
4770         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
4771         of the traditional names that TFmode uses for handling IEEE
4772         extended double. If -mfloat128, add KFmode functions for all of
4773         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
4774         make TFmode use the same emulation functions as KFmode.
4775         (init_float128_ibm): Likewise.
4776         (init_float128_ieee): Likewise.
4777         (rs6000_generate_compare): For IEEE 128-bit floating point
4778         comparisons, call the unordered comparison function instead of the
4779         ordered comparison function.
4780         (rs6000_expand_float128_convert): Deal with operands that are
4781         memory operands. Restructure the code to use a switch statement on
4782         the mode. Add support for TFmode defaulting to either IBM extended
4783         double or IEEE 128-bit floating point. If the underlying types are
4784         the same, use a move instead of a conversion function.
4785         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
4786         use for IEEE 128-bit floating point constants with -mfloat128.
4787         (rs6000_c_mode_for_suffix): Likewise.
4788         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
4789         128-bit floating point with IBM extended double floating point.
4790         (rs6000_invalid_binary_op): Likewise.
4791         (rs6000_gen_le_vsx_permute): On little endian systems generate a
4792         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
4793         types that can go in vector registers.
4794         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
4795         point types that can go in vector registers on little endian
4796         PowerPC systems.
4797         (mark_swaps_for_removal): Likewise.
4798         (rs6000_analyze_swaps): Likewise.
4799         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
4801         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
4802         rework IEEE 128-bit floating point insns to deal with TFmode being
4803         either IBM extended double or IEEE 128-bit floating point.
4804         (IFKF): Likewise.
4805         (IBM128): Update iterator to add condition that the mode is IBM
4806         extended double.
4807         (IEEE128): New iterator for IEEE 128-bit floating point.
4808         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
4809         (FLOAT128): Likewise.
4810         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
4811         iterator.
4812         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
4813         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
4814         instead of hard coding TFmode or KFmode.
4815         (negtf2_internal): Likewise.
4816         (neg<mode>2_internal): Likewise.
4817         (abs<mode>2): Likewise.
4818         (abstf2_internal): Likewise.
4819         (abs<mode>2_internal): Likewise.
4820         (ieee_128bit_neg<mode>2): Likewise.
4821         (ieee_128bit_neg<mode>2_internal): Likewise.
4822         (ieee_128bit_abs<mode>2): Likewise.
4823         (ieee_128bit_abs<mode>2_internal): Likewise.
4824         (ieee_128bit_nabs<mode>2): Likewise.
4825         (ieee_128bit_nabs<mode>2_internal): Likewise.
4826         (extendiftf2): Add explicit conversions between 128-bit floating
4827         point types. Drop the old conversions that had become unwieldy.
4828         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
4829         (extendifkf2): Likewise.
4830         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
4831         (extendtfkf2): Likewise.
4832         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
4833         (trunciftf2): Likewise.
4834         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
4835         (truncifkf2): Likewise.
4836         (float<SDI:mode><IFKF:mode>2): Likewise.
4837         (trunckftf2): Likewise.
4838         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
4839         (trunctfif2): Likewise.
4840         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
4841         (extenddftf2): Rework 128-bit floating point conversions to
4842         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
4843         KFmode expanders into one function.
4844         (extenddf<mode>2): Likewise.
4845         (extenddftf2_fprs): Likewise.
4846         (extenddf<mode>2_fprs): Likewise.
4847         (extenddftf2_vsx): Likewise.
4848         (extenddf<mode>2_vsx): Likewise.
4849         (extendsftf2): Likewise.
4850         (extendsf<mode>2): Likewise.
4851         (trunctfdf2): Likewise.
4852         (trunc<mode>df2): Likewise.
4853         (trunctfdf2_internal1): Likewise.
4854         (trunc<mode>df2_internal1): Likewise.
4855         (trunctfdf2_internal2): Likewise.
4856         (trunc<mode>df2_internal2): Likewise.
4857         (trunctfsf2): Likewise.
4858         (trunc<mode>sf2): Likewise.
4859         (trunctfsf2_fprs): Likewise.
4860         (trunc<mode>sf2_fprs): Likewise.
4861         (floatsit2f): Likewise.
4862         (floatsi<mode>2): Likewise.
4863         (fix_trunc_helper): Likewise.
4864         (fix_trunc_helper<mode>): Likewise.
4865         (fix_trunctfsi2): Likewise.
4866         (fix_trunc<mode>si2): Likewise.
4867         (fix_trunctfsi2_fprs): Likewise.
4868         (fix_trunc<mode>si2_fprs): Likewise.
4869         (fix_trunctfsi2_internal): Likewise.
4870         (fix_trunc<mode>si2_internal): Likewise.
4871         (fix_trunctfdi2): Likewise.
4872         (fix_trunc<mode>di2): Likewise.
4873         (fixuns_trunctf<mode>2): Likewise.
4874         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4875         (floatditf2): Likewise.
4876         (floatdi<mode>2): Likewise.
4877         (floatuns<mode>tf2): Likewise.
4878         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
4879         (cmptf_internal1): Use a mode iterator to add support for both
4880         types (IFmode, TFmode) that support IBM extended double.
4881         (cmp<mode>_internal1): Likewise.
4882         (cmptf_internal2): Likewise.
4883         (cmp<mode>_internal2): Likewise.
4885         * doc/extend.texi (Floating Types): Document __ibm128 and
4886         __float128 on PowerPC.
4888         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4889         -mfloat128 and -mno-float128.
4891 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4893         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
4894         floating point modes that can go in vector registers.
4895         (MODES_TIEABLE_P): Move tests for vector modes before tests for
4896         scalar floating point, so that IEEE 128-bit floating point that
4897         can go in vector registers bind with vectors and not FP.
4898         (struct rs6000_args): Add libcall field.
4900         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
4901         and -mfloat128-software switches.  Replace them with a binary
4902         -mfloat128 switch.
4903         (-mfloat128): Likewise.
4905         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
4906         128-bit floating point types in GPRs, even if the appropriate
4907         option enabling the type was not used.
4908         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
4909         debugging.
4910         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
4911         pre-decrement on IEEE 128-bit floating point values.
4912         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
4913         is IEEE 128-bit floating point.
4914         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
4915         128-bit floating point types that can go in vector registers.
4916         (rs6000_option_override_internal): Change -mfloat128-none and
4917         -mfloat128-software to -mfloat128, and move code to be near other
4918         VSX option handling.
4919         (rs6000_option_override_internal): Disable -mfloat128 if we don't
4920         have the Altivec ABI.
4921         (rs6000_init_builtins): Don't make TFmode use either IFmode or
4922         KFmode floating point nodes. Instead, have three separate nodes.
4923         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
4924         eventually moving the long double default to IEEE 128-bit floating
4925         point.
4926         (rs6000_opt_masks): Add -mfloat128.
4927         (struct rs6000_opt_var): Fix typo in comment.
4928         (init_cumulative_args): Initialize libcall field in
4929         CUMULATIVE_ARGS.
4930         (rs6000_function_arg): Treat library functions as if they had
4931         prototypes to prevent IEEE 128-bit support functions from passing
4932         arguments in both GPRs and vector registers.
4933         (rs6000_arg_partial_bytes): Likewise.
4935         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
4936         an option that can be turned on via -mcpu=<xxx>.
4938         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
4939         longer used.
4941         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4942         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
4943         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
4944         double is IBM extended double.
4946         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
4947         SUBREGs.
4949 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
4951         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
4952         * genconditions.c: Define CHECKING_P in the generated code.
4953         * genextract.c: Use flag_checking in insn_extract.
4954         * gengtype.c (main): Remove conditional compilation.
4955         * gengtype.h: Likewise.
4957 2015-10-29  Jeff Law  <law@redhat.com>
4959         PR tree-optimization/67892
4960         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
4961         in comment.
4962         (thread_through_normal_block): If we have seen a backedge, then
4963         do nothing.  No longer call find_jump_threads_backwards here.
4964         (thread_across_edge): Use find_jump_threads_backwards to find
4965         jump threads if the old style threader was not successful.
4966         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
4967         gsi_last_nondebug_bb.  Return NULL if the block does not end
4968         with a control statement.
4969         (find_jump_threads_backwards): Setup code moved here from
4970         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
4971         single edge argument instead of name & block.
4972         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
4973         prototype.
4975 2015-10-29  Tom de Vries  <tom@codesourcery.com>
4977         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
4978         types.
4980 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
4982         * omp-low.c (lower_omp_target): Remove unreachable code & merge
4983         ifs.
4985 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
4987         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
4989 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4991         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4992         guard_bb0 and use guard_bb throughout.
4994 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4996         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
4997         unnecessary label.
4999 2015-10-29  Richard Biener  <rguenther@suse.de>
5001         PR middle-end/68142
5002         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5003         overflow.
5005 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
5007         * alias.c: Reorder #include statements and remove duplicates.
5008         * asan.c: Likewise.
5009         * attribs.c: Likewise.
5010         * auto-inc-dec.c: Likewise.
5011         * auto-profile.c: Likewise.
5012         * bb-reorder.c: Likewise.
5013         * bt-load.c: Likewise.
5014         * builtins.c: Likewise.
5015         * caller-save.c: Likewise.
5016         * calls.c: Likewise.
5017         * ccmp.c: Likewise.
5018         * cfg.c: Likewise.
5019         * cfganal.c: Likewise.
5020         * cfgbuild.c: Likewise.
5021         * cfgcleanup.c: Likewise.
5022         * cfgexpand.c: Likewise.
5023         * cfghooks.c: Likewise.
5024         * cfgloop.c: Likewise.
5025         * cfgloopanal.c: Likewise.
5026         * cfgloopmanip.c: Likewise.
5027         * cfgrtl.c: Likewise.
5028         * cgraph.c: Likewise.
5029         * cgraphbuild.c: Likewise.
5030         * cgraphclones.c: Likewise.
5031         * cgraphunit.c: Likewise.
5032         * cilk-common.c: Likewise.
5033         * combine-stack-adj.c: Likewise.
5034         * combine.c: Likewise.
5035         * compare-elim.c: Likewise.
5036         * convert.c: Likewise.
5037         * coverage.c: Likewise.
5038         * cppbuiltin.c: Likewise.
5039         * cprop.c: Likewise.
5040         * cse.c: Likewise.
5041         * cselib.c: Likewise.
5042         * data-streamer-in.c: Likewise.
5043         * data-streamer-out.c: Likewise.
5044         * data-streamer.c: Likewise.
5045         * dbxout.c: Likewise.
5046         * dce.c: Likewise.
5047         * ddg.c: Likewise.
5048         * debug.c: Likewise.
5049         * df-core.c: Likewise.
5050         * df-problems.c: Likewise.
5051         * df-scan.c: Likewise.
5052         * dfp.c: Likewise.
5053         * dojump.c: Likewise.
5054         * dominance.c: Likewise.
5055         * double-int.c: Likewise.
5056         * dse.c: Likewise.
5057         * dumpfile.c: Likewise.
5058         * dwarf2asm.c: Likewise.
5059         * dwarf2cfi.c: Likewise.
5060         * dwarf2out.c: Likewise.
5061         * emit-rtl.c: Likewise.
5062         * except.c: Likewise.
5063         * explow.c: Likewise.
5064         * expmed.c: Likewise.
5065         * expr.c: Likewise.
5066         * final.c: Likewise.
5067         * fixed-value.c: Likewise.
5068         * fold-const.c: Likewise.
5069         * function.c: Likewise.
5070         * fwprop.c: Likewise.
5071         * gcse.c: Likewise.
5072         * generic-match-head.c: Likewise.
5073         * ggc-common.c: Likewise.
5074         * gimple-builder.c: Likewise.
5075         * gimple-expr.c: Likewise.
5076         * gimple-fold.c: Likewise.
5077         * gimple-iterator.c: Likewise.
5078         * gimple-low.c: Likewise.
5079         * gimple-match-head.c: Likewise.
5080         * gimple-pretty-print.c: Likewise.
5081         * gimple-ssa-isolate-paths.c: Likewise.
5082         * gimple-ssa-strength-reduction.c: Likewise.
5083         * gimple-streamer-in.c: Likewise.
5084         * gimple-streamer-out.c: Likewise.
5085         * gimple-walk.c: Likewise.
5086         * gimple.c: Likewise.
5087         * gimplify-me.c: Likewise.
5088         * gimplify.c: Likewise.
5089         * godump.c: Likewise.
5090         * graph.c: Likewise.
5091         * graphite-poly.c: Likewise.
5092         * haifa-sched.c: Likewise.
5093         * hw-doloop.c: Likewise.
5094         * ifcvt.c: Likewise.
5095         * incpath.c: Likewise.
5096         * init-regs.c: Likewise.
5097         * internal-fn.c: Likewise.
5098         * ipa-chkp.c: Likewise.
5099         * ipa-comdats.c: Likewise.
5100         * ipa-cp.c: Likewise.
5101         * ipa-devirt.c: Likewise.
5102         * ipa-icf-gimple.c: Likewise.
5103         * ipa-icf.c: Likewise.
5104         * ipa-inline-analysis.c: Likewise.
5105         * ipa-inline-transform.c: Likewise.
5106         * ipa-inline.c: Likewise.
5107         * ipa-polymorphic-call.c: Likewise.
5108         * ipa-profile.c: Likewise.
5109         * ipa-prop.c: Likewise.
5110         * ipa-pure-const.c: Likewise.
5111         * ipa-ref.c: Likewise.
5112         * ipa-reference.c: Likewise.
5113         * ipa-split.c: Likewise.
5114         * ipa-utils.c: Likewise.
5115         * ipa-visibility.c: Likewise.
5116         * ipa.c: Likewise.
5117         * ira-build.c: Likewise.
5118         * ira-color.c: Likewise.
5119         * ira-conflicts.c: Likewise.
5120         * ira-costs.c: Likewise.
5121         * ira-emit.c: Likewise.
5122         * ira-lives.c: Likewise.
5123         * ira.c: Likewise.
5124         * jump.c: Likewise.
5125         * langhooks.c: Likewise.
5126         * lcm.c: Likewise.
5127         * lists.c: Likewise.
5128         * loop-doloop.c: Likewise.
5129         * loop-init.c: Likewise.
5130         * loop-invariant.c: Likewise.
5131         * loop-iv.c: Likewise.
5132         * loop-unroll.c: Likewise.
5133         * lower-subreg.c: Likewise.
5134         * lra-assigns.c: Likewise.
5135         * lra-coalesce.c: Likewise.
5136         * lra-constraints.c: Likewise.
5137         * lra-eliminations.c: Likewise.
5138         * lra-lives.c: Likewise.
5139         * lra-remat.c: Likewise.
5140         * lra-spills.c: Likewise.
5141         * lra.c: Likewise.
5142         * lto-cgraph.c: Likewise.
5143         * lto-compress.c: Likewise.
5144         * lto-opts.c: Likewise.
5145         * lto-section-in.c: Likewise.
5146         * lto-section-out.c: Likewise.
5147         * lto-streamer-in.c: Likewise.
5148         * lto-streamer-out.c: Likewise.
5149         * lto-streamer.c: Likewise.
5150         * mode-switching.c: Likewise.
5151         * modulo-sched.c: Likewise.
5152         * omp-low.c: Likewise.
5153         * optabs.c: Likewise.
5154         * opts-global.c: Likewise.
5155         * passes.c: Likewise.
5156         * plugin.c: Likewise.
5157         * postreload-gcse.c: Likewise.
5158         * postreload.c: Likewise.
5159         * predict.c: Likewise.
5160         * print-tree.c: Likewise.
5161         * profile.c: Likewise.
5162         * real.c: Likewise.
5163         * realmpfr.c: Likewise.
5164         * recog.c: Likewise.
5165         * ree.c: Likewise.
5166         * reg-stack.c: Likewise.
5167         * regcprop.c: Likewise.
5168         * reginfo.c: Likewise.
5169         * regrename.c: Likewise.
5170         * regstat.c: Likewise.
5171         * reload.c: Likewise.
5172         * reload1.c: Likewise.
5173         * reorg.c: Likewise.
5174         * resource.c: Likewise.
5175         * rtl-chkp.c: Likewise.
5176         * rtl-error.c: Likewise.
5177         * rtlanal.c: Likewise.
5178         * rtlhooks.c: Likewise.
5179         * sanopt.c: Likewise.
5180         * sched-deps.c: Likewise.
5181         * sched-ebb.c: Likewise.
5182         * sched-rgn.c: Likewise.
5183         * sese.c: Likewise.
5184         * shrink-wrap.c: Likewise.
5185         * simplify-rtx.c: Likewise.
5186         * stack-ptr-mod.c: Likewise.
5187         * statistics.c: Likewise.
5188         * stmt.c: Likewise.
5189         * stor-layout.c: Likewise.
5190         * store-motion.c: Likewise.
5191         * stringpool.c: Likewise.
5192         * symtab.c: Likewise.
5193         * target-globals.c: Likewise.
5194         * targhooks.c: Likewise.
5195         * toplev.c: Likewise.
5196         * tracer.c: Likewise.
5197         * trans-mem.c: Likewise.
5198         * tree-affine.c: Likewise.
5199         * tree-call-cdce.c: Likewise.
5200         * tree-cfg.c: Likewise.
5201         * tree-cfgcleanup.c: Likewise.
5202         * tree-chkp-opt.c: Likewise.
5203         * tree-chkp.c: Likewise.
5204         * tree-chrec.c: Likewise.
5205         * tree-complex.c: Likewise.
5206         * tree-data-ref.c: Likewise.
5207         * tree-dfa.c: Likewise.
5208         * tree-diagnostic.c: Likewise.
5209         * tree-dump.c: Likewise.
5210         * tree-eh.c: Likewise.
5211         * tree-emutls.c: Likewise.
5212         * tree-if-conv.c: Likewise.
5213         * tree-inline.c: Likewise.
5214         * tree-into-ssa.c: Likewise.
5215         * tree-iterator.c: Likewise.
5216         * tree-loop-distribution.c: Likewise.
5217         * tree-nested.c: Likewise.
5218         * tree-nrv.c: Likewise.
5219         * tree-object-size.c: Likewise.
5220         * tree-outof-ssa.c: Likewise.
5221         * tree-parloops.c: Likewise.
5222         * tree-phinodes.c: Likewise.
5223         * tree-predcom.c: Likewise.
5224         * tree-pretty-print.c: Likewise.
5225         * tree-profile.c: Likewise.
5226         * tree-scalar-evolution.c: Likewise.
5227         * tree-sra.c: Likewise.
5228         * tree-ssa-address.c: Likewise.
5229         * tree-ssa-alias.c: Likewise.
5230         * tree-ssa-ccp.c: Likewise.
5231         * tree-ssa-coalesce.c: Likewise.
5232         * tree-ssa-copy.c: Likewise.
5233         * tree-ssa-dce.c: Likewise.
5234         * tree-ssa-dom.c: Likewise.
5235         * tree-ssa-dse.c: Likewise.
5236         * tree-ssa-forwprop.c: Likewise.
5237         * tree-ssa-ifcombine.c: Likewise.
5238         * tree-ssa-live.c: Likewise.
5239         * tree-ssa-loop-ch.c: Likewise.
5240         * tree-ssa-loop-im.c: Likewise.
5241         * tree-ssa-loop-ivcanon.c: Likewise.
5242         * tree-ssa-loop-ivopts.c: Likewise.
5243         * tree-ssa-loop-manip.c: Likewise.
5244         * tree-ssa-loop-niter.c: Likewise.
5245         * tree-ssa-loop-prefetch.c: Likewise.
5246         * tree-ssa-loop-unswitch.c: Likewise.
5247         * tree-ssa-loop.c: Likewise.
5248         * tree-ssa-math-opts.c: Likewise.
5249         * tree-ssa-operands.c: Likewise.
5250         * tree-ssa-phiopt.c: Likewise.
5251         * tree-ssa-phiprop.c: Likewise.
5252         * tree-ssa-pre.c: Likewise.
5253         * tree-ssa-propagate.c: Likewise.
5254         * tree-ssa-reassoc.c: Likewise.
5255         * tree-ssa-sccvn.c: Likewise.
5256         * tree-ssa-scopedtables.c: Likewise.
5257         * tree-ssa-sink.c: Likewise.
5258         * tree-ssa-strlen.c: Likewise.
5259         * tree-ssa-structalias.c: Likewise.
5260         * tree-ssa-tail-merge.c: Likewise.
5261         * tree-ssa-ter.c: Likewise.
5262         * tree-ssa-threadedge.c: Likewise.
5263         * tree-ssa-threadupdate.c: Likewise.
5264         * tree-ssa-uncprop.c: Likewise.
5265         * tree-ssa-uninit.c: Likewise.
5266         * tree-ssa.c: Likewise.
5267         * tree-ssanames.c: Likewise.
5268         * tree-stdarg.c: Likewise.
5269         * tree-streamer-in.c: Likewise.
5270         * tree-streamer-out.c: Likewise.
5271         * tree-streamer.c: Likewise.
5272         * tree-switch-conversion.c: Likewise.
5273         * tree-tailcall.c: Likewise.
5274         * tree-vect-data-refs.c: Likewise.
5275         * tree-vect-generic.c: Likewise.
5276         * tree-vect-loop-manip.c: Likewise.
5277         * tree-vect-loop.c: Likewise.
5278         * tree-vect-patterns.c: Likewise.
5279         * tree-vect-slp.c: Likewise.
5280         * tree-vect-stmts.c: Likewise.
5281         * tree-vectorizer.c: Likewise.
5282         * tree-vrp.c: Likewise.
5283         * tree.c: Likewise.
5284         * tsan.c: Likewise.
5285         * ubsan.c: Likewise.
5286         * value-prof.c: Likewise.
5287         * var-tracking.c: Likewise.
5288         * varasm.c: Likewise.
5289         * varpool.c: Likewise.
5290         * vtable-verify.c: Likewise.
5291         * web.c: Likewise.
5292         * wide-int-print.cc: Likewise.
5293         * wide-int.cc: Likewise.
5294         * xcoffout.c: Likewise.
5296 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
5298         * Makefile.in (NO_PIE_CFLAGS): New.
5299         (NO_PIE_FLAG): Likewise.
5300         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5301         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5302         (BUILD_NO_PIE_CFLAGS): Likewise.
5303         (BUILD_NO_PIE_FLAG): Likewise.
5304         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5305         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5306         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5307         $(BUILD_NO_PIE_CFLAGS).
5308         (BUILD_CXXFLAGS): Likewise.
5309         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5310         $(BUILD_NO_PIE_FLAG).
5311         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
5312         (BUILD_NO_PIE_FLAG): Likewise.
5313         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5314         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5315         * configure: Regenerated.
5317 2015-10-29  Richard Biener  <rguenther@suse.de>
5319         PR middle-end/56956
5320         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5321         unsigned conditonal negation to ABS_EXPR.
5323 2015-10-29  Richard Biener  <rguenther@suse.de>
5325         * gimple-match-head.c (gimple_simplify): Remove premature checking
5326         of builtin_decl_implicit of function calls we simplify.
5328 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
5330         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5331         (get_computation_cost_at): Ditto.
5332         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5333         and inv_expr_id.
5335 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5337         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5338         superfluous code.
5340 2015-10-28  Jason Merrill  <jason@redhat.com>
5342         * Makefile.in (TAGS): Include libcpp and libiberty.
5344 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5346         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5347         (extract_omp_for_data): Remove OpenACC special handling of
5348         chunking.
5350         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5351         (struct parallel): Update comment.
5352         (nvptx_reorg): Likewise.
5353         (nvptx_neuter): Cleanup whitespace.
5355 2015-10-28  Richard Henderson  <rth@redhat.com>
5357         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5359 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5361         PR target/67839
5362         * config/avr/predicates.md (low_io_address_operand): Don't
5363         consider MODE when computing upper bound.
5364         (io_address_operand): Likewise.
5366 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
5368         * fold-const.c (operand_equal_p): Do not verify that types are
5369         compatible for MEM_REFs.
5371 2015-10-28  Richard Biener  <rguenther@suse.de>
5373         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5374         in simplifying VEC_COND_EXPR conditions.
5376 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5378         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5379         into vi_next of a full_var.
5381 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5383         * tree-ssa-structalias.c (new_var_info, make_heapvar)
5384         (make_constraint_from_restrict, make_constraint_from_global_restrict)
5385         (create_function_info_for, create_variable_info_for_1)
5386         (create_variable_info_for): Add and handle add_id parameter.
5387         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5388         (init_base_vars): Add extra argument to calls to new_var_info.
5389         (get_vi_for_tree): Add extra argument to call to
5390         create_variable_info_for.
5391         (process_constraint, do_deref, process_all_all_constraints): Add extra
5392         argument to calls to new_scalar_tmp_constraint_exp.
5393         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5394         argument to calls to make_heapvar.
5395         (make_restrict_var_constraints): Add extra argument to call to
5396         make_constraint_from_global_restrict.
5397         (intra_create_variable_infos): Add extra argument to call to
5398         create_variable_info_for_1.
5399         (ipa_pta_execute): Add extra argument to call to
5400         create_function_info_for.
5402 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5404         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5405         (sibcall_value): Likewise.
5407 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5409         * config/nvptx/nvptx.h (struct machine_function): Add
5410         axis_predicate.
5411         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5412         nvptx_expand_oacc_join): Declare.
5413         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5414         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5415         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5416         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5417         UNSPECV_JOINING, UNSPECV_JOIN): New.
5418         (BITS, BITD): New mode iterators.
5419         (br_true_uni, br_false_uni): New.
5420         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5421         (oacc_dim_size, oacc_dim_pos): New.
5422         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5423         (oacc_fork, oacc_join): New.
5424         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5425         (worker_load<mode>, worker_store<mode>): New.
5426         (nvptx_barsync): New.
5427         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5428         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5429         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5430         worker_bcast_sym): New.
5431         (nvptx_option_override): Initialize worker broadcast buffer.
5432         (nvptx_emit_forking, nvptx_emit_joining): New.
5433         (nvptx_init_axis_predicate): New.
5434         (nvptx_declare_function_name): Init axis predicates.
5435         (nvptx_expand_call): Add fork/join markers around routine call.
5436         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5437         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5438         (nvptx_gen_vcast): New.
5439         (struct wcast_data_t): New.
5440         (enum propagate_mask): New.
5441         (nvptx_gen_wcast): New.
5442         (nvptx_print_operand): Add 'S' case.
5443         (struct parallel): New.
5444         (parallel::parallel, parallel::~parallel): New.
5445         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
5446         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
5447         nvptx_find_par, nvptx_discover_pars): New.
5448         (nvptx_propagate): New.
5449         (vprop_gen, nvptx_vpropagate): New.
5450         (wprop_gen, nvptx_wpropagate): New.
5451         (nvptx_wsync): New.
5452         (nvptx_single, nvptx_skip_par): New.
5453         (nvptx_process_pars, nvptx_neuter_pars): New.
5454         (ntptx_reorg): Split blocks, generate parallel structure, apply
5455         neutering.
5456         (nvptx_cannot_copy_insn_p): New.
5457         (nvptx_file_end): Emit worker broadcast decl.
5458         (nvptx_goacc_fork_join): New.
5459         (TARGET_CANNOT_COPY_INSN_P): Override.
5460         (TARGET_GOACC_FORK_JOIN): Override.
5462 2015-10-28  Richard Biener  <rguenther@suse.de>
5464         * fold-const.c (negate_expr_p): Adjust the division case to
5465         properly avoid introducing undefined overflow.
5466         (fold_negate_expr): Likewise.
5468 2015-10-28  Richard Biener  <rguenther@suse.de>
5470         PR tree-optimization/65962
5471         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5472         Avoid creating loop carried dependences also for outer loops
5473         of the loop a use to replace is in.
5475 2015-10-28  Richard Biener  <rguenther@suse.de>
5477         * common.opt (fchecking): New flag controlling flag_checking.
5478         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
5479         * timevar.c (timer::print): Adjust output.
5480         * doc/invoke.texi (fchecking): Document.
5482 2015-10-28  Richard Biener  <rguenther@suse.de>
5484         PR middle-end/68067
5485         * fold-const.c (negate_expr_p): We cannot negate plus or minus
5486         if overflow is not wrapping.  Likewise multiplication unless
5487         one operand is constant and not power of two.
5488         (fold_negate_expr): Adjust accordingly.
5490 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5492         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
5493         fields.
5494         (is_oacc_parallel, is_oacc_kernels): New.
5495         (enclosing_target_ctx): May return NULL.
5496         (ctx_in_oacc_kernels_region): New.
5497         (check_oacc_kernel_gwv): New.
5498         (oacc_loop_or_target_p): Delete.
5499         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
5500         operands.  Strip reductions fro kernels.
5501         (scan_omp_target): Don't calculate gwv mask.
5502         (lower_oacc_head_mark, lower_oacc_loop_marker,
5503         lower_oacc_head_tail): New.
5504         (struct oacc_collapse): New.
5505         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
5506         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5507         Remove OpenACC handling.
5508         (expand_oacc_for): New.
5509         (expand_omp_for): Call expand_oacc_for.
5510         (lower_omp_for): Call lower_oacc_head_tail.
5512 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
5514         * attribs.c (check_attribute_tables): New function, broken out from...
5515         (init_attributes): Use it.
5516         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
5517         gcc_checking_assert and checking_* functions to eliminate
5518         ENABLE_CHECKING conditionals.
5519         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
5520         (pass_expand::execute): Likewise.
5521         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
5522         * cgraphunit.c (mark_functions_to_output): Likewise.
5523         (cgraph_node::expand_thunk): Likewise.
5524         (symbol_table::compile): Likewise.
5525         * ddg.c (add_cross_iteration_register_deps): Likewise.
5526         (create_ddg_all_sccs): Likewise.
5527         * df-core.c (df_finish_pass, df_analyze): Likewise.
5528         * diagnostic-core.h: Likewise.
5529         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
5530         * dominance.c (calculate_dominance_info): Likewise.
5531         * dwarf2out.c (add_AT_die_ref): Likewise.
5532         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
5533         (loc_list_from_tree, gen_lexical_block_die): Likewise.
5534         gen_type_die_with_usage, gen_type_die): Likewise.
5535         (dwarf2out_decl): Likewise.
5536         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
5537         * except.c (duplicate_eh_regions): Likewise.
5538         * fwprop.c (register_active_defs, update_df_init): Likewise.
5539         (fwprop_init, fwprop_done): Likewise.
5540         (update_uses): Likewise.
5541         * ggc-page.c (ggc_grow): Likewise.
5542         * gimplify.c (gimplify_body): Likewise.
5543         (gimplify_hasher::equal): Likewise.
5544         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
5545         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
5546         Likewise.
5547         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
5548         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
5549         * hash-table.h (::find_empty_slot_for_expand): Likewise.
5550         * ifcvt.c (if_convert): Likewise.
5551         * ipa-cp.c (ipcp_propagate_stage): Likewise.
5552         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
5553         (odr_type_p, odr_types_equivalent_p): Likewise.
5554         (add_type_duplicate, get_odr_type): Likewise.
5555         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5556         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5557         (sem_item_optimizer::verify_classes): Likewise.
5558         (sem_item_optimizer::traverse_congruence_split): Likewise.
5559         (sem_item_optimizer::checking_verify_classes): New.
5560         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
5561         method.
5562         * cfgrtl.c (commit_edge_insertions): Likewise.
5563         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
5564         (rtl_flow_call_edges_add): Likewise.
5565         * cgraph.c (symbol_table::create_edge): Likewise.
5566         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5567         * cgraph.h (symtab_node): Likewise.
5568         (symtab_node::checking_verify_symtab_nodes): Define.
5569         (cgraph_node::checking_verify_cgraph_nodes): Define.
5570         * cfghooks.h (checking_verify_flow_info): Define.
5571         * cfgloop.h (checking_verify_loop_structure): Define.
5572         * dominance.h (checking_verify_dominators): Define.
5573         * et-forest.c: Fix comment.
5574         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
5575         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5576         ENABLE_CHECKING conditionals.
5577         * ipa-inline-transform.c (save_inline_function_body): Likewise.
5578         * ipa-inline.c (inline_small_functions): Likewise.
5579         (early_inliner): Likewise.
5580         * ipa-inline.h (estimate_edge_growth): Likewise.
5581         * ipa-visibility.c (function_and_variable_visibility): Likewise.
5582         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5583         (ipa_single_use): Likewise.
5584         * ira-int.h: Likewise.
5585         * ira.c (ira): Likewise.
5586         * loop-doloop.c (doloop_optimize_loops): Likewise.
5587         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
5588         * loop-invariant.c (move_loop_invariants): Likewise.
5589         * lra-assigns.c (lra_assign): Likewise.
5590         * lra-constraints.c (lra_constraints): Likewise.
5591         * lra-eliminations.c (lra_eliminate): Likewise.
5592         * lra-int.h (struct lra_reg): Likewise.
5593         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
5594         (lra_create_live_ranges_1): Likewise.
5595         * lra-remat.c (create_remat_bb_data): Likewise.
5596         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
5597         (lra): Likewise.
5598         (check_rtl): Always define. Remove incorrect guard around
5599         extract_constrain_insn call.
5600         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
5601         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5602         ENABLE_CHECKING conditionals.
5603         * lto-streamer-out.c (DFS::DFS): Likewise.
5604         (lto_output): Likewise.
5605         * lto-streamer.c (lto_streamer_init): Likewise.
5606         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
5607         expand_omp_target, execute_expand_omp): Likewise.
5608         (lower_omp_target): Likewise.
5609         * passes.c (execute_function_todo): Likewise.
5610         (execute_todo, execute_one_pass): Likewise.
5611         (verify_curr_properties): Always define.
5612         * predict.c (tree_estimate_probability: Use flag_checking,
5613         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
5614         ENABLE_CHECKING conditionals.
5615         (propagate_freq): Likewise.
5616         * pretty-print.c (pp_format): Likewise.
5617         * real.c (real_to_decimal_for_mode): Likewise.
5618         * recog.c (split_all_insns): Likewise.
5619         * regcprop.c (kill_value_one_regno): Likewise.
5620         (copy_value): Likewise.
5621         (validate_value_data): Define unconditionally.
5622         * reload.c: Fix comment.
5623         * timevar.c: Include options.h
5624         * tree-ssa.h (checking_verify_ssa): Define.
5625         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
5626         * sched-deps.c (CHECK): Remove unused macro.
5627         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
5628         gcc_checking_assert and checking_* functions to eliminate
5629         ENABLE_CHECKING conditionals.
5630         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
5631         * sel-sched.c (struct moveop_static_params): Likewise.
5632         (find_best_reg_for_expr, move_cond_jump): Likewise.
5633         (move_op_orig_expr_not_found): Likewise.
5634         (code_motion_process_successors, move_op): Likewise.
5635         * ssa-iterators.h (first_readonly_imm_use): Likewise.
5636         (next_readonly_imm_use): Likewise.
5637         * store-motion.c (compute_store_table): Likewise.
5638         * symbol-summary.h (function_summary::function_summary): Likewise.
5639         * target.h (cumulative_args_t): Likewise.
5640         (get_cumulative_args, pack_cumulative_args): Likewise.
5641         * timevar.c: (timer::print): Likewise.
5642         * trans-mem.c (ipa_tm_execute): Likewise.
5643         * tree-cfg.c (move_stmt_op): Likewise.
5644         (move_sese_region_to_fn): Likewise.
5645         (gimple_flow_call_edges_add): Likewise.
5646         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
5647         Likewise.
5648         * tree-eh.c (remove_unreachable_handlers): Likewise.
5649         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
5650         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
5651         * tree-into-ssa.c (update_ssa): Likewise.
5652         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
5653         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
5654         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
5655         * tree-predcom.c (suitable_component_p): Likewise.
5656         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
5657         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
5658         * tree-ssa-live.c (verify_live_on_entry): Likewise.
5659         * tree-ssa-live.h (register_ssa_partition): Likewise.
5660         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
5661         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
5662         (tree_transform_and_unroll_loop): Likewise.
5663         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5664         * tree-ssa-operands.c (get_expr_operands): Likewise.
5665         * tree-ssa-propagate.c (replace_exp_1): Likewise.
5666         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
5667         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5668         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
5669         * tree-ssanames.c (release_ssa_name_fn): Likewise.
5670         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
5671         * tree-vect-loop-manip.c
5672         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
5673         (slpeel_checking_verify_cfg_after_peeling): Likewise.
5674         (vect_do_peeling_for_loop_bound): Likewise.
5675         (vect_do_peeling_for_alignment): Likewise.
5676         * tree-vrp.c (supports_overflow_infinity): Likewise.
5677         (set_value_range): Likewise.
5678         * tree.c (free_lang_data_in_cgraph): Likewise.
5679         * value-prof.c (gimple_remove_histogram_value): Likewise.
5680         (free_hist): Likewise.
5681         * var-tracking.c (canonicalize_values_star): Likewise.
5682         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
5684 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5686         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
5687         IFN_GOACC_LOOP): New.
5688         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
5689         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
5690         IFN_UNIQUE_OACC_TAIL_MARK.
5691         (enum ifn_goacc_loop_kind): New.
5692         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
5693         IFN_UNIQUE_OACC_JOIN cases.
5694         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
5695         (expand_GOACC_LOOP): New.
5696         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
5697         * omp-low.c: Include gimple-pretty-print.h.
5698         (struct oacc_loop): New.
5699         (enum oacc_loop_flags): New.
5700         (oacc_thread_numbers): New.
5701         (oacc_xform_loop): New.
5702         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
5703         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
5704         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
5705         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
5706         oacc_loop_discovery): New.
5707         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
5708         oacc_loop_process): New.
5709         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
5710         (execute_oacc_device_lower): Discover & process loops.  Process
5711         internal fns.
5712         * target.def (goacc.fork_join): Change sense of hook, clarify
5713         documentation.
5714         * doc/tm.texi: Regenerated.
5716 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5718         * target-insns.def (oacc_fork, oacc_join): Define.
5719         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
5720         (goacc.fork_join): New GOACC hook.
5721         * targhooks.h (default_goacc_fork_join): Declare.
5722         * omp-low.c (default_goacc_forkjoin): New.
5723         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
5724         * doc/tm.texi: Regenerate.
5726 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5728         * omp-low.c (oacc_init_rediction_array): New.
5729         (oacc_initialize_reduction_data): Initialize array.
5731 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5733         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
5735 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5737         * internal-fn.c (expand_UNIQUE): New.
5738         * internal-fn.h (enum ifn_unique_kind): New.
5739         * internal-fn.def (IFN_UNIQUE): New.
5740         * target-insns.def (unique): Define.
5741         * gimple.h (gimple_call_internal_unique_p): New.
5742         * gimple.c (gimple_call_same_target_p): Check internal fn
5743         uniqueness.
5744         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
5745         * tree-ssa-threadedge.c
5746         (record_temporary_equivalences_from_stmts): Likewise.
5747         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
5749 2015-10-27  Richard Henderson  <rth@redhat.com>
5751         PR rtl-opt/67609
5752         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
5753         narrowing subregs on SSE and MMX registers.
5754         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
5755         appear to be sub-words of multi-register pseudos must be rejected.
5756         * doc/tm.texi: Regenerate.
5758 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5760         PR target/68102
5761         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
5762         operands[0] is a reg before taking its REGNO in split condition.
5763         (*movdi_aarch64): Likewise.
5765 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5767         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
5768         Handle floating point inner modes properly.
5770 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
5772         * tree-vect-looop.c
5773         (vectorizable_live_operation): Change iterator.
5775 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5776             Aditya Kumar  <aditya.k7@samsung.com>
5778         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
5779           function to schedule based on isl_schedule_node.
5780         (get_schedule_map_st): New schedule optimizer based on
5781         isl_schedule_node.
5782         (scop_get_domains): New. Return the isl_union_set containing the
5783         domains of all the pbbs.
5784         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
5786 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5788         PR target/67215
5789         * calls.c (prepare_call_address): Don't handle -fno-plt here.
5790         * config/i386/i386.c (ix86_expand_call): Generate indirect call
5791         via GOT for -fno-plt.  Support indirect call via GOT for x32.
5792         * config/i386/predicates.md (sibcall_memory_operand): Allow
5793         GOT memory operand.
5795 2015-10-27  Richard Biener  <rguenther@suse.de>
5797         PR tree-optimization/68104
5798         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5799         strided access check ...
5800         (vect_compute_data_refs_alignment): ... here.
5802 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
5803             Joseph Myers  <joseph@codesourcery.com>
5804             Mark Shinwell  <shinwell@codesourcery.com>
5805             Andrew Stubbs  <ams@codesourcery.com>
5806             Rich Felker <dalias@libc.org>
5808         * config.gcc: Handle --enable-fdpic.
5809         * config/sh/constraints.md (Ccl): New constraint.
5810         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
5811         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
5812         __SH_FDPIC__.
5813         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
5814         library functions.
5815         * config/sh/sh-protos.h (function_symbol_result): New struct.
5816         (function_symbol): Return function_symbol_result.
5817         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
5818         declarations.
5819         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
5820         target hook.
5821         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
5822         (sh_option_override): Force -fPIC if FDPIC is in effect.
5823         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
5824         UNSPEC_GOTOFFFUNCDESC cases.
5825         (prepare_move_operands): Use FDPIC initial GOT register for
5826         TLS-related GOT access; inhibit cross-section address offset constants
5827         for FDPIC.
5828         (sh_assemble_integer): New function.
5829         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
5830         PC-relative call sites.
5831         (expand_ashiftrt): Adapt invocation of function_symbol.
5832         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
5833         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
5834         UNSPEC_GOTOFFFUNCDESC.
5835         (legitimize_pic_address): Resolve function symbols to function
5836         descriptors for FDPIC.  Do not use GOT-relative addressing for local
5837         data that may be read-only on FDPIC.
5838         (sh_emit_storesi, sh_emit_storehi): New functions.
5839         (sh_trampoline_init): Generate FDPIC trampolines.
5840         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
5841         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
5842         (sh_output_mi_thunk): Generate FDPIC call.
5843         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
5844         FDPIC, generate call site labels to use PC-relative addressing rather
5845         than GOT-relative addressing.
5846         (sh_conditional_register_usage): Make PIC register fixed and call used
5847         when FDPIC is in effect.
5848         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
5849         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
5850         sh_get_fdpic_reg_initial_val): New functions.
5851         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
5852         Handle -mfdpic.
5853         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
5854         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
5855         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
5856         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
5857         FDPIC_SELF_SPECS.
5858         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
5859         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
5860         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
5861         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
5862         constants.
5863         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
5864         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
5865         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
5866         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
5867         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
5868         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
5869         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
5870         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
5871         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5872         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
5873         block_move_real, block_lump_real, block_move_real_i4,
5874         block_lump_real_i4): Add support for FDPIC calls.
5875         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
5876         call_value_pop): Adjust for new function_symbol signature.
5877         * config/sh/sh.opt (-mfdpic): New option.
5878         * doc/install.texi (Options specification): Document --enable-fdpic.
5879         * doc/invoke.texi (SH Options): Document -mfdpic.
5882 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
5884         PR tree-optimization/65963
5885         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5886         LSHIFT_EXPRs as equivalent MULT_EXPRs.
5888 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5890         PR target/67929
5891         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
5892         * config/arm/constraints.md (Dp): Update callsite.
5893         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
5895 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5897         * builtins.c (fold_builtin_load_exponent): Rename to...
5898         (fold_const_builtin_load_exponent): ...this and only handle
5899         constant arguments.
5900         (fold_builtin_2): Update accordingly.
5901         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
5903 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5905         * builtins.c (fold_builtin_logb): Rename to...
5906         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
5907         (fold_builtin_significand): Rename to...
5908         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
5909         (fold_builtin_1): Update accordingly.
5911 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5913         * builtins.c (fold_builtin_fmin_fmax): Delete.
5914         (fold_builtin_2): Handle constant fmin and fmax arguments here.
5915         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
5917 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
5919         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
5920         for register extension into sign and zero register extension.
5921         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
5922         for sign and zero register extension.
5923         (cortexa57_addrcost_table): Likewise.
5924         (xgene1_addrcost_table): Likewise.
5926 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5928         * fold-const.c (fold_minmax): Delete.
5929         (fold_binary_loc): Don't call it.
5930         * match.pd: Add rules previously handled by fold_minmax.
5932 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5934         * builtins.c (fold_builtin_fma): Remove constant handling.
5935         (fold_builtin_3): Handle constant fma arguments here.
5937 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5939         * builtins.c (fold_builtin_fabs): Remove constant handling.
5940         (fold_builtin_abs): Likewise.
5942 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5944         * builtins.c (fold_builtin_copysign): Delete.
5945         (fold_builtin_2): Handle constant copysign arguments here.
5946         * match.pd: Add rules previously handled by fold_builtin_copysign.
5948 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5950         * builtins.c (fold_builtin_signbit): Delete.
5951         (fold_builtin_2): Handle constant signbit arguments here.
5952         * match.pd: Add rules previously handled by fold_builtin_signbit.
5954 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5956         * match.pd: Handle sqrt(x) cmp 0 specially.
5958 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
5960         * tree-vect-generic.c (expand_vector_operations_1): Check
5961         optab type before using it.
5963 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5965         * config/aarch64/aarch64-protos.h
5966         (struct tune_params): Add autoprefetcher_model field.
5967         * config/aarch64/aarch64.c: Include params.h
5968         (generic_tunings): Specify autoprefetcher_model value.
5969         (cortexa53_tunings): Likewise.
5970         (cortexa57_tunings): Likewise.
5971         (cortexa72_tunings): Likewise.
5972         (thunderx_tunings): Likewise.
5973         (xgene1_tunings): Likewise.
5974         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
5975         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
5976         (aarch64_override_options_internal): Set
5977         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
5979 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5981         * builtins.c (fold_builtin_exponent): Delete.
5982         (fold_builtin_2): Handle constant expN arguments here.
5983         * match.pd: Fold expN(logN(x)) -> x.
5985 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5987         * builtins.c (fold_builtin_powi): Delete.
5988         (fold_builtin_2): Handle constant powi arguments here.
5989         * match.pd: Add rules previously handled by fold_builtin_powi.
5991 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
5993         * builtins.c (fold_builtin_pow): Delete in favor of...
5994         (fold_const_builtin_pow): ...this new function.  Only handle constant
5995         arguments.
5996         (fold_builtin_2): Update accordingly.
5997         * match.pd: Add rules previously handled by fold_builtin_pow.
5999 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6001         * builtins.c (fold_builtin_hypot): Delete.
6002         (fold_builtin_2): Handle constant hypot arguments here.
6003         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
6004         hypot(x, x) to fabs(x)*sqrt(2).
6006 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6008         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6009         instead of make_ssa_name if not yet in SSA form.
6011 2015-10-27  Richard Biener  <rguenther@suse.de>
6013         * cfg.c (free_edge): Add function argument and use it instead of cfun.
6014         (clear_edges): Likewise.
6015         * cfg.h (clear_edges): Adjust prototype.
6016         * cfgexpand.c (pass_expand::execute): Adjust.
6017         * cfgloop.c (release_recorded_exits): Add function argument and use
6018         it instead of cfun.
6019         * cfgloop.h (release_recorded_exits): Adjust prototype.
6020         (loops_state_satisfies_p): Add overload with function argument.
6021         (loops_state_set): Likewise.
6022         (loops_state_clear): Likewise.
6023         (struct loop_iterator): Add function argument to constructor
6024         and iterator and use it instead of cfun.
6025         (FOR_EACH_LOOP_FN): New macro.
6026         (loop_optimizer_finalize): Add overload with function argument.
6027         * loop-init.c (loop_optimizer_init): Adjust.
6028         (fix_loop_structure): Likewise.
6029         (loop_optimizer_finaliz): Add function argument and use it
6030         instead of cfun.
6031         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6032         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6033         * cgraph.c (release_function_body): Do not push/pop cfun.
6034         * final.c (rest_of_clean_state): Adjust.
6035         * graphite.c (graphite_finalize): Likewise.
6036         * tree-ssa-copy.c (fini_copy_prop): Likewise.
6037         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6038         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6039         (tree_unroll_loops_completely): Likewise.
6040         (pass_complete_unrolli::execute): Likewise.
6041         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6042         Add function argument and use it instead of cfun.
6043         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6044         Adjust prototype.
6045         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6046         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6047         instead of cfun.
6048         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6049         * tree-ssanames.c (fini_ssanames): Add function argument and use it
6050         instead of cfun.
6051         * tree-ssanames.c (fini_ssanames): Adjust prototype.
6052         * tree-vrp.c (execute_vrp): Adjust.
6053         * value-prof.c (free_histograms): Add function argument and use it
6054         instead of cfun.
6055         * value-prof.h (free_histograms): Adjust prototype.
6057 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6059         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6060         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6061         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
6063 2015-10-27  Tom de Vries  <tom@codesourcery.com>
6065         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6066         field_type.
6068 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
6070         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6071         (inv_can_prop_to_addr_use): New function.
6072         (record_use): Call can_prop_to_addr_uses, set the new field.
6073         (get_inv_cost): Count cost if inv can't be propagated into its
6074         address uses.
6076 2015-10-26  Doug Evans  <dje@google.com>
6078         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6080 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
6082         * match.pd (fold_widened_comparison): Apply simplifications to all
6083         integral types.
6085 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
6087         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6088         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6089         * doc/tm.texi: Regenerated.
6090         * reorg.c (dbr_schedule): Use new hook.
6091         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6093 2015-10-26  Jeff Law  <law@redhat.com>
6095         PR tree-optimization/68013
6096         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6097         Make sure the first block in the path is in VISITED_BBs.
6099 2015-10-26  Richard Biener  <rguenther@suse.de>
6100         Dominik Vogt  <vogt@linux.vnet.ibm.com>
6102         PR middle-end/67443
6103         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6104         Properly prune ref->ref for accesses outside of ref.
6106 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6108         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6109         new statements to be inserted if inplace.  Allow calls to have
6110         nonempty sequences.
6112 2015-10-26  Richard Biener  <rguenther@suse.de>
6114         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6115         (do_valueize): New function.
6116         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6117         replace_uses_by.
6118         * tree-ssa-threadedge.c: Remove builtins.h include, include
6119         gimple-fold.h
6120         (fold_assignment_stmt): Remove.
6121         (threadedge_valueize): New function.
6122         (record_temporary_equivalences_from_stmts): Use
6123         gimple_fold_stmt_to_constant_1, note additional cleanup
6124         opportunities.
6126 2015-10-26  Richard Biener  <rguenther@suse.de>
6128         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6129         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6131 2015-10-26  Alan Hayward <alan.hayward@arm.com>
6133         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6134         VEC_COND_EXPR types.
6136 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6138         * auto-inc-dec.c (insert_move_insn_before): Delete.
6139         (attempt_change): Remember to cost the simple move in the
6140         FORM_PRE_ADD and FORM_POST_ADD cases.
6142 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
6144         PR target/68091
6145         * config/sh/sh.c (sh_vector_mode_supported_p): Use
6146         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6148 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6150         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6151         factored out of ...
6152         (intra_create_variable_infos): ... here.
6154 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6156         * tree-ssa-structalias.c (intra_create_variable_infos): Add
6157         restrict_pointer_p and recursive_restrict_p variables.
6159 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6161         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6162         get_vi_for_tree call.
6164 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6166         PR middle-end/67989
6167         * optabs.c (expand_atomic_compare_and_swap): Handle case when
6168         ptarget_oval or ptarget_bool are const0_rtx.
6170 2015-10-26  Christian Bruel  <christian.bruel@st.com>
6172         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6173         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6174         * cp/method.c (implicitly_declare_fn): Likewise.
6175         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6176         * java/class.c (add_method_1): Likewise.
6178 2015-10-26  Richard Biener  <rguenther@suse.de>
6180         * alloc-pool.h (base_pool_allocator): Use placement new.
6181         (base_pool_allocator::remove): Likewise.  Compute size outside of
6182         flag_checking.
6184 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6186         * builtins.c (do_real_to_int_conversion): New function.
6187         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6188         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6189         arguments here.
6190         * match.pd: Add rules previously handled by fold_fixed_mathfn
6191         and fold_builtin_int_roundingfn.
6193 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6195         * match.pd: Use macros to define built-in operator lists.
6197 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
6198             Richard Biener  <rguenther@suse.de>
6200         * genmatch.c (dt_simplify::gen): Skip captures that are
6201         part of the result.
6202         (parser::parse_expr): Allow captures in results too.
6203         * builtins.c (fold_builtin_cexp): Delete.
6204         (fold_builtin_1): Handle constant cexp arguments here.
6205         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6207 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
6209         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6210         conditional compilation.
6211         (base_pool_allocator::remove): Use flag_checking.
6213 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
6215         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6217         PR middle-end/68079
6218         * dojump.c (do_compare_and_jump): Canonicalize both function and
6219         method types.
6221 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
6223         PR target/68084
6224         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6225         for =@ccae.
6227 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6229         PR ipa/pr67600
6230         * ipa-polymorphic-call.c
6231         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6232         instance offset with offset of outer type.
6234 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6236         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6238 2015-10-23  Caroline Tice  <cmtice@google.com>
6240         (from Richard Biener
6241         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
6242         call to iterative_hash_host_wide_int.
6244 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6246         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6247         Define as yes.
6249 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6251         * tree-vect-generic.c (expand_vector_operations_1): Check
6252         optab exists before use it.
6254 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6256         * tree-vect-generic.c (expand_vector_condition): Avoid
6257         uninitialized variable warning.
6259 2015-10-23  Jeff Law  <law@redhat.com>
6261         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6262         here.  Instead...
6263         (execute_todo): Call it here.
6264         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6265         statistics
6266         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6268 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6269             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6271         * config.gcc (enable_secureplt): Add *-linux*-musl*.
6273 2015-10-23  Jeff Law  <law@redhat.com>
6275         PR tree-optimization/67830
6276         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6277         Explicitly verify the mask has no bits outside the type of
6278         the innermost operands.
6280 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6281             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6283         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6284         (MUSL_DYNAMIC_LINKER64): Define.
6285         (GNU_USER_DYNAMIC_LINKER32): Update.
6286         (GNU_USER_DYNAMIC_LINKER64): Update.
6287         (CHOOSE_DYNAMIC_LINKER): Update.
6289         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6290         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6291         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6292         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6293         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6294         (CHOOSE_DYNAMIC_LINKER): Update.
6295         (INCLUDE_DEFAULTS): Redefine.
6297         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6299 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6301         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6302         comparing addresses.
6304 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6306         * fold-const.c (operand_equal_p): Handle matching of vector
6307         constructors.
6309 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6311         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6313 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
6314             Andrew Pinski  <apinski@cavium.com>
6316         PR rtl-optimization/67736
6317         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6318         of gen_lowpart.
6320 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6322         PR middle-end/68066
6323         * tree.c (build_truth_vector_type): Support BLK mode
6324         returned for boolean vector.
6326 2015-10-23  Alan Hayward <alan.hayward@arm.com>
6328         PR tree-optimization/65947
6329         * tree-vect-loop.c
6330         (vect_is_simple_reduction_1): Find condition reductions.
6331         (vect_model_reduction_cost): Add condition reduction costs.
6332         (get_initial_def_for_reduction): Add condition reduction initial var.
6333         (vect_create_epilog_for_reduction): Add condition reduction epilog.
6334         (vectorizable_reduction): Condition reduction support.
6335         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6336         * doc/sourcebuild.texi (Vector-specific attributes): Document
6337         vect_max_reduc
6339 2015-10-23  Richard Biener  <rguenther@suse.de>
6341         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6342         and builtins.def.
6344 2015-10-23  Richard Biener  <rguenther@suse.de>
6345             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6347         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6348         into (A ^ B) - B to match.pd
6349         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6351         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6352         New simplifier.
6353         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6354         New simplifier.
6355         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6356         New simplifier.
6357         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6358         New simplifier.
6359         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6360         INTEGER_CST@1)): New simplifier.
6362 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
6364         * builtins.c (integer_valued_real_p): Move to fold-const.c.
6365         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6366         (fold_builtin_ceil, fold_builtin_round): Delete.
6367         (fold_builtin_1): Handle constant trunc, floor, ceil and round
6368         arguments here.
6369         * convert.c (convert_to_real): Remove narrowing of rounding
6370         functions.
6371         * fold-const.h (integer_valued_real_unary_p)
6372         (integer_valued_real_binary_p, integer_valued_real_call_p)
6373         (integer_valued_real_single_p, integer_valued_real_p): Declare.
6374         * fold-const.c (tree_single_nonnegative_warnv_p): Move
6375         name_registered_for_update_p check to SSA_NAME case statement.
6376         Don't call tree_simple_nonnegative_warnv_p for SSA names.
6377         (integer_valued_real_unary_p, integer_valued_real_binary_p)
6378         (integer_valued_real_call_p, integer_valued_real_single_p)
6379         (integer_valued_real_invalid_p): New functions.
6380         (integer_valued_real_p): Move from fold-const.c and rework
6381         to call the functions above.  Handle SSA names.
6382         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6383         * gimple-fold.c (gimple_assign_integer_valued_real_p)
6384         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6385         (gimple_stmt_integer_valued_real_p): New functions.
6386         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6387         Fold f(x)->x for the same f if x is known to be integer-valued.
6388         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6389         the result.  Canonicalize floor(x) as trunc(x) if x is
6390         nonnegative.
6392 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6394         * tree-ssa-structalias.c (intra_create_variable_infos): Use
6395         make_constraint_from.
6397 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6399         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6400         setting of is_full_var in case of a single field.
6402 2015-10-22  Martin Sebor  <msebor@redhat.com>
6404         PR driver/68043
6405         * config/i386/i386.opt: Add missing periods to the ends of sentences.
6406         * config/msp430/msp430.opt: Same.
6408 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
6410         * doc/extend.exp (Global Register Variables): Rewrite.
6412 2015-10-22  Jeff Law  <law@redhat.com>
6414         * genattrtab.c (main): If we do not have any annul-true or annul-false
6415         slots, then write out a dummy eligible_for_annul_true or
6416         eligible_for_annul_false as needed.
6418 2015-10-22  Nick Clifton  <nickc@redhat.com>
6420         * config/msp430/msp430.opt: Add -msilicon-errata and
6421         -msilicon-errata-warn.
6422         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6423         assembler.
6424         * doc/invoke.texi: Document new options.
6426 2015-10-22  Richard Biener  <rguenther@suse.de>
6428         PR tree-optimization/58497
6429         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6430         (expand_vector_operations_1): Use it.  Lower operations on
6431         all uniform vectors to scalar operations if the HW supports it.
6433 2015-10-22  Richard Biener  <rguenther@suse.de>
6435         PR tree-optimization/19049
6436         PR tree-optimization/65962
6437         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6438         to strided accesses if single-element interleaving doesn't work.
6440 2015-10-22  Richard Biener  <rguenther@suse.de>
6442         PR middle-end/68046
6443         PR middle-end/61893
6444         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
6445         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
6446         (expand_unop): Likewise.
6448 2015-10-22  Richard Biener  <rguenther@suse.de>
6450         * fold-const.c (fold_addr_of_array_ref_difference): Properly
6451         convert operands before folding a MINUS_EXPR.
6452         (fold_binary_loc): Move simplification of MINUS_EXPR on
6453         converted POINTER_PLUS_EXPRs ...
6454         * match.pd: ... here.
6456 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
6458         * builtins.c (fold_builtin_tan): Delete.
6459         (fold_builtin_1): Handle constant tan arguments here.
6460         * match.pd: Simplify (tan (atan x)) to x.
6462 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
6464         * builtins.c (fold_builtin_cproj): Delete.
6465         (fold_builtin_1): Handle constant arguments here.
6466         (build_complex_cproj): Move and rename to...
6467         * tree.c: (build_complex_inf): ...this.
6468         * tree.h (build_complex_inf): Declare.
6469         * match.pd: Fold cproj(x)->x if x has no infinity.
6470         Use build_complex_inf for existing cproj rules.
6472 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6474         PR target/68015
6475         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
6476         already have a comparison result.
6478 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6480         PR target/63304
6481         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
6482         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
6483         (aarch64_classify_address): Likewise.
6484         (aarch64_secondary_reload): Likewise.
6485         (aarch64_override_options_after_change_1): Adjust.
6486         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
6487         Use aarch64_nopcrelative_literal_loads.
6488         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6489         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6490         Declare.
6492 2015-10-21  Martin Sebor  <msebor@redhat.com>
6494         PR driver/68043
6495         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
6496         (print_filtered_help): Reference aliased option's name and encourage
6497         readers to use it in preference to the alias if the former is not
6498         documented.  Mention when using an option is diagnosed.
6499         * gcc.c (display_help): End each sentence with a period.
6501         * common.opt: End each sentence that describes an option with
6502         a period.
6503         * config/aarch64/aarch64.opt: Same.
6504         * config/alpha/alpha.opt: Same.
6505         * config/arc/arc.opt: Same.
6506         * config/arm/arm.opt: Same.
6507         * config/avr/avr.opt: Same.
6508         * config/bfin/bfin.opt: Same.
6509         * config/c6x/c6x.opt: Same.
6510         * config/cr16/cr16.opt: Same.
6511         * config/cris/cris.opt: Same.
6512         * config/cris/linux.opt: Same.
6513         * config/darwin.opt: Same.
6514         * config/epiphany/epiphany.opt: Same.
6515         * config/fr30/fr30.opt: Same.
6516         * config/frv/frv.opt: Same.
6517         * config/ft32/ft32.opt: Same.
6518         * config/g.opt: Same.
6519         * config/h8300/h8300.opt: Same.
6520         * config/i386/cygming.opt: Same.
6521         * config/i386/djgpp.opt: Same.
6522         * config/i386/i386.opt: Same.
6523         * config/i386/interix.opt: Same.
6524         * config/i386/mingw-w64.opt: Same.
6525         * config/i386/mingw.opt: Same.
6526         * config/ia64/ia64.opt: Same.
6527         * config/ia64/ilp32.opt: Same.
6528         * config/iq2000/iq2000.opt: Same.
6529         * config/linux.opt: Same.
6530         * config/lm32/lm32.opt: Same.
6531         * config/lynx.opt: Same.
6532         * config/m32c/m32c.opt: Same.
6533         * config/m32r/m32r.opt: Same.
6534         * config/m68k/ieee.opt: Same.
6535         * config/m68k/m68k.opt: Same.
6536         * config/mcore/mcore.opt: Same.
6537         * config/mep/mep.opt: Same.
6538         * config/microblaze/microblaze.opt: Same.
6539         * config/mips/mips.opt: Same.
6540         * config/mmix/mmix.opt: Same.
6541         * config/mn10300/mn10300.opt: Same.
6542         * config/moxie/moxie.opt: Same.
6543         * config/msp430/msp430.opt: Same.
6544         * config/nios2/elf.opt: Same.
6545         * config/nios2/nios2.opt: Same.
6546         * config/nvptx/nvptx.opt: Same.
6547         * config/pa/pa-hpux.opt: Same.
6548         * config/pa/pa-hpux1010.opt: Same.
6549         * config/pa/pa-hpux1111.opt: Same.
6550         * config/pa/pa-hpux1131.opt: Same.
6551         * config/pa/pa.opt: Same.
6552         * config/pa/pa64-hpux.opt: Same.
6553         * config/pdp11/pdp11.opt: Same.
6554         * config/rl78/rl78.opt: Same.
6555         * config/rs6000/476.opt: Same.
6556         * config/rs6000/aix64.opt: Same.
6557         * config/rs6000/darwin.opt: Same.
6558         * config/rs6000/linux64.opt: Same.
6559         * config/rs6000/rs6000.opt: Same.
6560         * config/rs6000/sysv4.opt: Same.
6561         * config/s390/s390.opt: Same.
6562         * config/s390/tpf.opt: Same.
6563         * config/sh/sh.opt: Same.
6564         * config/sol2.opt: Same.
6565         * config/sparc/long-double-switch.opt: Same.
6566         * config/sparc/sparc.opt: Same.
6567         * config/spu/spu.opt: Same.
6568         * config/stormy16/stormy16.opt: Same.
6569         * config/tilegx/tilegx.opt: Same.
6570         * config/tilepro/tilepro.opt: Same.
6571         * config/v850/v850.opt: Same.
6572         * config/vax/vax.opt: Same.
6573         * config/visium/visium.opt: Same.
6574         * config/vms/vms.opt: Same.
6575         * config/vxworks.opt: Same.
6576         * config/xtensa/xtensa.opt: Same.
6578 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6579             Sebastian Pop  <s.pop@samsung.com>
6581         * graphite-scop-detection.c (parameter_index_in_region): Update call to
6582         invariant_in_sese_p_rec.
6583         * graphite-sese-to-poly.c (extract_affine): Same.
6584         * sese.c (invariant_in_sese_p_rec): Pass in an extra
6585         parameter has_vdefs.
6586         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
6587         variable depends on virtual definitions in the current region.
6588         * sese.h (invariant_in_sese_p_rec): Update declaration.
6590 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6591             Sebastian Pop  <s.pop@samsung.com>
6593         * graphite-scop-detection.c (build_scops): Do not handle scops
6594         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
6595         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
6597 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
6599         * config.in: Regenerate.
6600         * configure: Regenerate.
6601         * configure.ac (CHECKING_P): Define.
6602         * system.h: Use CHECKING_P.
6604 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6606         PR ipa/67056
6607         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
6608         is negative we don't know the type.
6609         (check_stmt_for_type_change): Skip constructors of non-polymorphic
6610         types as those won't help devirutalization.
6612 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6614         * fold-const.c (operand_equal_p): Add code matching empty constructors.
6616 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6618         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
6619         comments.
6620         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
6621         Add comments on sign of the result.
6622         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
6623         Recurse on operand #1 instead of operand #0.
6624         <CEIL_MOD_EXPR>: Do not recurse.
6625         <ROUND_MOD_EXPR>: Likewise.
6627 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6629         * cfgrtl.c (pass_free_cfg::execute): Adjust.
6630         * final.c (dbr_sequence_length): Always define.
6631         (shorten_branches): Adjust.
6632         * genattr-common.c (main): Always define DELAY_SLOTS.
6633         * genattr.c (main): Unconditionally declare functions and define
6634         macros related to delay slots.
6635         * genattrtab.c (write_eligible_delay): Adjust.
6636         (main): Always write out delay slot functions.
6637         * opts.c (default_options_table): Adjust.
6638         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
6639         (redirect_with_delay_list_safe_p): Likewise.
6640         (fill_simple_delay_slots): Likewise.
6641         (fill_slots_from_thread): Likewise.
6642         (make_return_insns): Likewise.
6643         (dbr_schedule): Likewise.
6644         (rest_of_handle_delay_slots): Likewise.
6645         (pass_delay_slots::gate): Likewise.
6646         * toplev.c (process_options): Likewise.
6648 2015-10-21  Richard Henderson  <rth@redhat.com>
6650         * targhooks.c (default_addr_space_pointer_mode): Remove check
6651         for generic address space.
6652         (default_addr_space_address_mode): Likewise.
6653         (default_addr_space_valid_pointer_mode): Likewise.
6654         (default_addr_space_legitimate_address_p): Likewise.
6655         (default_addr_space_legitimize_address): Likewise.
6656         * target.def (addr_space.pointer_mode): Update documentation
6657         of default behavior.
6658         (addr_space.address_mode): Likewise.
6659         * tm.texi: Update.
6661         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
6662         address spaces.
6664 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6666         * builtins.c (fold_builtin_cabs): Delete.
6667         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
6668         * match.pd: Add rules previously handled by fold_builtin_cabs.
6670 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6672         * fold-const.h (fold_strip_sign_ops): Delete.
6673         * fold-const.c (fold_strip_sign_ops): Likewise.
6674         (fold_unary_loc, fold_binary_loc): Remove calls to it.
6675         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
6676         (fold_builtin_ccos): Delete.
6677         (fold_builtin_pow): Don't call fold_strip_sign_ops.
6678         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
6679         Remove fndecl argument.
6680         (fold_builtin_1): Update calls accordingly.  Handle constant
6681         cos, cosh, ccos and ccosh here.
6683 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6685         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
6686         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
6687         * common.opt (fssa-backprop): New option.
6688         * fold-const.h (negate_mathfn_p): Declare.
6689         * fold-const.c (negate_mathfn_p): Make public.
6690         * timevar.def (TV_TREE_BACKPROP): New.
6691         * tree-pass.h (make_pass_backprop): Declare.
6692         * passes.def (pass_backprop): Add.
6693         * gimple-ssa-backprop.c: New file.
6695 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6696             Sebastian Pop  <s.pop@samsung.com>
6698         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
6699         Do not call create_empty_if_region_on_edge when cond_expr is true.
6700         (translate_isl_ast_node_for): Check whether a guard has been generated.
6702 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6704         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
6705         (operator=): Removed.
6706         (dr_info): Make alias_set number the last argument with default
6707         value of invalid_alias_set.
6708         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
6709         of dr_info.
6710         (rewrite_reductions_out_of_ssa): Iterate only through the
6711         basic blocks which are inside region.
6712         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
6713         * sese.h (struct sese_l): Removed assignment operator.
6714         (split_region_for_bb): Removed dead code.
6716 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
6718         * graphite-poly.h (struct dr_info): Removed conversion constructor.
6719         (struct scop): Renamed scop::region to scop::scop_info
6720         (scop_set_region): Same.
6721         (SCOP_REGION): Removed
6722         (SCOP_CONTEXT): Removed.
6723         (POLY_SCOP_P): Removed.
6724         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
6725         Rename scop->region to scop->scop_info.
6726         (add_parameters_to_ivs_params): Same.
6727         (graphite_regenerate_ast_isl): Same.
6728         * graphite-poly.c (new_scop): Same.
6729         (free_scop): Same.
6730         (print_scop_params): Same.
6731         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
6732         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
6733         (dot_all_scops_1): Rename scop->region to scop->scop_info.
6734         (scop_detection::nb_pbbs_in_loops): Same.
6735         (find_scop_parameters): Same.
6736         (try_generate_gimple_bb): Same.
6737         (gather_bbs::before_dom_children): Same.
6738         (gather_bbs::after_dom_children): Same.
6739         (build_scops): Same.
6740         * graphite-sese-to-poly.c (build_scop_scattering): Same.
6741         (extract_affine_chrec): Same.
6742         (extract_affine): Same.
6743         (set_scop_parameter_dim): Same.
6744         (build_loop_iteration_domains): Same.
6745         (create_pw_aff_from_tree): Same.
6746         (add_param_constraints): Same.
6747         (build_scop_iteration_domain): Same.
6748         (build_scop_drs): Same.
6749         (analyze_drs_in_stmts): Same.
6750         (insert_out_of_ssa_copy_on_edge): Same.
6751         (rewrite_close_phi_out_of_ssa):Same.
6752         (rewrite_reductions_out_of_ssa):Same.
6753         (handle_scalar_deps_crossing_scop_limits):Same.
6754         (rewrite_cross_bb_scalar_deps):Same.
6755         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
6756         (build_poly_scop):Same.
6757         (build_alias_set): Use pointer to dr_info.
6758         * graphite.c (print_graphite_scop_statistics):
6759         (graphite_transform_loops):
6760         * sese.h (struct sese_l): Remove conversion constructor.
6762 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6764         PR middle-end/67966
6765         * tree.c (verify_type): Verify that TYPE_MODE match
6766         between TYPE_CANONICAL and type.
6767         * expr.c (store_expr_with_bounds): Revert my previous change.
6768         * expmed.c (store_bit_field_1): Revert prevoius change.
6769         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
6770         to match for all types.
6772 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
6774         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
6775         nesting.
6777 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6779         * doc/tm.texi: Regenerated.
6780         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
6781         * stor-layout.c (layout_type): Use mode to get vector mask size.
6782         * target.def (get_mask_mode): New.
6783         * targhooks.c (default_get_mask_mode): New.
6784         * targhooks.h (default_get_mask_mode): New.
6785         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
6786         for boolean vector.
6787         * tree.c (MAX_BOOL_CACHED_PREC): New.
6788         (nonstandard_boolean_type_cache): New.
6789         (build_nonstandard_boolean_type): New.
6790         (make_vector_type): Vector mask has no canonical type.
6791         (build_truth_vector_type): New.
6792         (build_same_sized_truth_vector_type): New.
6793         (truth_type_for): Support vector masks.
6794         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
6795         (build_truth_vector_type): New.
6796         (build_same_sized_truth_vector_type): New.
6797         (build_nonstandard_boolean_type): New.
6798         * tree-cfg.c (verify_gimple_comparison) Require boolean
6799         vector type for vector comparison.
6800         (verify_gimple_assign_ternary): Likewise.
6801         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
6802         condition operand.
6803         * tree-vect-stmts.c (vectorizable_condition): Use boolean
6804         vector type for vector comparison.
6805         * tree-vect-generic.c (elem_op_func): Add new operand to hold
6806         vector type.
6807         (do_unop): Adjust to modified function type.
6808         (do_binop): Likewise.
6809         (do_plus_minus): Likewise.
6810         (do_negate); Likewise.
6811         (expand_vector_piecewise): Likewise.
6812         (do_cond): Likewise.
6813         (do_compare): Use comparison instead of condition.
6814         (expand_vector_divmod): Use boolean vector type for comparison.
6815         (expand_vector_operations_1): Skip scalar mask operations.
6817 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6819         * omp-low.c (simd_clone_create): Set in_other_partition
6820         for created clones.
6822 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
6824         * doc/extend.exp (Local Register Variables): Rewrite.
6826 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
6828         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
6829         and x*x in cases where the operands are sign ops.  Extend these
6830         rules to handle copysign as a sign op (including for cos, cosh
6831         and pow, which already treated negate and abs as sign ops).
6833 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
6835         PR target/68018
6836         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
6837         for 64-bit MS_ABI targets also when default incoming stack boundary
6838         is overriden.
6840 2015-10-21  Richard Biener  <rguenther@suse.de>
6842         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
6843         cond stmts, enhanced and split out from ...
6844         (vn_phi_eq): ... here.
6846 2015-10-21  Richard Biener  <rguenther@suse.de>
6848         PR middle-end/68031
6849         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
6850         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
6851         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
6852         make sure they are not registered for update.
6854 2015-10-21  Richard Biener  <rguenther@suse.de>
6856         PR tree-optimization/68026
6857         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
6858         unsigned VARYING values.
6860 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
6862         * asan.c (asan_emit_stack_protection): Don't pass local stack to
6863         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
6864         NULL and use local stack than.
6865         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
6866         in addition to __asan_init.
6867         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
6868         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
6869         * asan.h (asan_intercepted_p): Handle new string builtins.
6870         * ubsan.c (ubsan_use_new_style_p): New function.
6871         (ubsan_instrument_float_cast): If location is unknown, assign
6872         input_location to loc. Propagate loc to ubsan_create_data if
6873         ubsan_use_new_style_p returned true.
6875 2015-10-21  Jeff Law  <law@redhat.com>
6877         * Makefile.in (OBJS): Remove sched-vis.c
6878         * sched-vis.c: Removed.  Code moved into...
6879         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
6880         * rtl.h: Remove prototypes for functions now living in print-rtl.c
6881         * print-rtl.h Add prototypes for new functions in print-rtl.c.
6882         * auto-inc-dec.c: Include print-rtl.h
6883         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
6884         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
6886         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
6887         ATTRIBUTE_UNUSED.
6889 2015-10-21  Richard Biener  <rguenther@suse.de>
6890             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6892         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
6893         to match.pd.
6894         Move (a * (1 << b)) is (a << b) to match.pd.
6895         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
6896         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
6897         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
6899         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
6900         New simplifier.
6901         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
6902         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
6903         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
6904         : New simplifier.
6905         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
6906         New simplifier.
6907         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
6909 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
6910             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6911             Alan Modra  <amodra@gmail.com>
6913         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
6914         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
6915         (LINK_SPEC): Add %(link_secure_plt).
6916         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
6917         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
6919 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
6920             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6922         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
6923         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
6925 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6927         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
6928         New function.
6929         (fusion_load_store): Use it.
6930         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
6931         ldp and stp in VD modes.
6932         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
6933         (store_pair<mode>, VD): Likewise.
6935 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
6937         PR rtl-optimization/67609
6938         * lra-splill.c (lra_final_code_change): Don't remove all
6939         sub-registers.
6941 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6943         * simplify-rtx.c (simplify_binary_operation): If either operand was
6944         a constant pool reference use them if all other simplifications failed.
6946 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6948         * config/aarch64/aarch64.md
6949         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
6950         * config/aarch64/aarch64-simd.md
6951         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
6952         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
6953         (aarch64_fpconst_pow_of_2): New function.
6954         (aarch64_vec_fpconst_pow_of_2): Likewise.
6955         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
6956         prototype.
6957         (aarch64_vec_fpconst_pow_of_2): Likewise.
6958         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
6959         (aarch64_fp_vec_pow2): Likewise.
6961 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
6963         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
6964         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
6965         * config/alpha/alpha.c (alpha_function_arg_advance): Update
6966         ALPHA_ARG_SIZE usage.
6967         (alpha_arg_partial_bytes): Ditto.
6969 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6971         PR target/66810
6972         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
6973         error_mark_node decls.
6975 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6977         PR target/67963
6978         PR target/67985
6979         * common/config/i386/i386-common.c (ix86_handle_option): Remove
6980         OPT_miamcu handling.
6981         * config/i386/i386.c (PTA_NO_80387): New macro.
6982         (processor_alias_table): Add PTA_NO_80387 to lakemont.
6983         (ix86_option_override_internal): Update MASK_80387 from
6984         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
6985         SSE math only if 80387 is supported.  Don't change
6986         MASK_FLOAT_RETURNS.
6987         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
6988         80387 is supported.
6989         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
6990         if TARGET_80387 is true and TARGET_IAMCU is false.
6991         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
6992         is true and TARGET_IAMCU_P is false.
6994 2015-10-20  Richard Biener  <rguenther@suse.de>
6996         PR tree-optimization/68017
6997         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
6999 2015-10-20  Martin Liska  <mliska@suse.cz>
7001         * cgraphclones.c (cgraph_node::create_virtual_clone):
7002         Verify cgraph_node.local.versionable instead of calling
7003         tree_versionable_function_p.
7004         * ipa-cp.c (determine_versionability): Save the information
7005         to ipa_node_params summary.
7006         (ipcp_versionable_function_p): Use it.
7007         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7008         (ipcp_generate_summary): Do not compute cgraph_node
7009         versionability.
7010         * ipa-inline-analysis.c (inline_generate_summary): Compute
7011         versionability for all cgraph nodes.
7012         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7013         ipa_node_params::versionability.
7014         * ipa-prop.h (struct ipa_node_params): Declare it.
7016 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7018         PR other/67868
7019         * varasm.c (assemble_variable): Move special vtv handling to..
7020         (handle_vtv_comdat_sections): .. here. New function.
7021         (output_object_block): Handle vtv sections.
7023 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7025         PR target/66912
7026         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7028 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
7030         * doc/extend.texi: Update documentation WRT inline functions.
7032 2015-10-20  Alan Modra  <amodra@gmail.com>
7034         PR go/66870
7035         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7036         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7037         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7039 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
7041         PR rtl-optimization/66790
7042         * df.h (DF_MIR): New macro.
7043         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7044         (DF_MIR_INFO_BB): New macro.
7045         (DF_MIR_IN, DF_MIR_OUT): New macros.
7046         (struct df_mir_bb_info): New.
7047         (df_mir): New macro.
7048         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7049         declarations.
7050         (df_mir_get_bb_info): New.
7051         * df-problems.c (struct df_mir_problem_data): New.
7052         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7053         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7054         df_mir_confluence_0, df_mir_confluence_n,
7055         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7056         df_mir_bottom_dump, df_mir_verify_solution_start,
7057         df_mir_verify_solution_end): New.
7058         (problem_MIR): New.
7059         (df_mir_add_problem, df_mir_simulate_one_insn): New.
7060         * timevar.def (TV_DF_MIR): New.
7061         * ree.c: Include bitmap.h
7062         (add_removable_extension): Add an INIT_REGS parameter.  Use it
7063         to skip zero-extensions that may get an uninitialized register.
7064         (find_removable_extensions): Compute must-initialized registers
7065         using the MIR dataflow problem. Update the call to
7066         add_removable_extension.
7067         (find_and_remove_re): Call df_mir_add_problem.
7069 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
7071         * common/config/mn10300/mn10300-common.c
7072         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7073         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7075 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
7077         * doc/extend.texi (Explicit Register Variables): Simplify and
7078         avoid unnecessary and confusion abbreviations.  Update cross
7079         references.
7080         doc/implement-c.tex: Update cross reference.
7082 2015-10-19  Jeff Law  <law@redhat.com>
7084         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7085         that create irreducible loops unless the path elimiantes a multiway
7086         branch.
7088 2015-10-19  Richard Biener  <rguenther@suse.de>
7090         PR tree-optimization/67975
7091         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7092         * tree-cfg.c (extract_true_false_controlled_edges): Split out
7093         core worker from ...
7094         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7095         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7096         instead of block number for PHIs with two or one args.
7097         (vn_phi_eq): Compare edge predicates of PHIs that are in different
7098         blocks.
7100 2015-10-19  Richard Biener  <rguenther@suse.de>
7102         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7103         (gimple_stmt_nonnegative_warnv_p): Use it.
7104         * match.pd (CPROJ): New operator list.
7105         (cproj (complex ...)): Move simplifications from ...
7106         * builtins.c (fold_builtin_cproj): ... here.
7108 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7110         * config/i386/i386.c (ix86_expand_vector_move): Use
7111         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7112         alignment.
7114 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7116         * doc/invoke.texi: Replace @optindex with @opindex.
7118 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7120         PR target/67995
7121         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7122         arch= is set,  clear all bits in x_ix86_isa_flags, except for
7123         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7125 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
7127         PR middle-end/68002
7128         * common.opt (fkeep-static-functions): New option.
7129         * doc/invoke.texi: Document it.
7130         * cgraphunit.c (cgraph_node::finalize_function): Use it.
7132 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7134         * sched-int.h (struct autopref_multipass_data_): Remove offset
7135         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
7136         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7137         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
7138         (autopref_rank_data): New function.
7139         (autopref_rank_for_schedule): Use it.
7140         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7142 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
7144         PR other/65800
7145         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7147 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7149         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7150         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
7151         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7152         (STANDARD_STARTFILE_PREFIX_1): New.
7153         (STANDARD_STARTFILE_PREFIX_2): New.
7155 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7157         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7158         (darwin_driver_init): Note a version-min when provided on the c/l.
7159         * config/darwin.h (%darwin_minversion): Remove.
7160         * config/i386/darwin.h: Likewise.
7161         * config/rs6000/darwin.h: Likewise.
7162         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7163         rather than an arbitrary constant.
7165 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7167         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7168         PPC, detect conflicts between -arch and multilib settings.  Detect
7169         and warn about conflicts between multiple -arch definitions.
7171 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7173         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7175 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7177         * lra-constraints.c (add_next_usage_insn): Change argument type
7178         from rtx to rtx_insn *.
7180 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
7182         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7183         for Lakemont.
7185 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
7187         * config/tilepro/gen-mul-tables.cc: Adjust include files.
7188         * config/tilegx/mul-tables.c: Regenerate.
7189         * config/tilepro/mul-tables.c: Regenerate.
7191         * config/tilegx/tilegx-c.c: Adjust include files.
7192         * config/tilegx/tilegx.c: Likewise.
7193         * config/tilepro/tilepro-c.c: Likewise.
7194         * config/tilepro/tilepro.c: Likewise.
7195         * config/aarch64/aarch64-builtins.c: Likewise.
7196         * config/aarch64/aarch64.c: Likewise.
7197         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7198         * config/alpha/alpha.c: Likewise.
7199         * config/arc/arc.c: Likewise.
7200         * config/arm/aarch-common.c: Likewise.
7201         * config/arm/arm-builtins.c: Likewise.
7202         * config/arm/arm-c.c: Likewise.
7203         * config/arm/arm.c: Likewise.
7204         * config/avr/avr-c.c: Likewise.
7205         * config/avr/avr-devices.c: Likewise.
7206         * config/avr/avr-log.c: Likewise.
7207         * config/avr/avr.c: Likewise.
7208         * config/bfin/bfin.c: Likewise.
7209         * config/c6x/c6x.c: Likewise.
7210         * config/cr16/cr16.c: Likewise.
7211         * config/cris/cris.c: Likewise.
7212         * config/darwin-c.c: Likewise.
7213         * config/darwin-driver.c: Likewise.
7214         * config/darwin.c: Likewise.
7215         * config/default-c.c: Likewise.
7216         * config/epiphany/epiphany.c: Likewise.
7217         * config/epiphany/mode-switch-use.c: Likewise.
7218         * config/epiphany/resolve-sw-modes.c: Likewise.
7219         * config/fr30/fr30.c: Likewise.
7220         * config/frv/frv.c: Likewise.
7221         * config/ft32/ft32.c: Likewise.
7222         * config/glibc-c.c: Likewise.
7223         * config/h8300/h8300.c: Likewise.
7224         * config/i386/host-cygwin.c: Likewise.
7225         * config/i386/host-mingw32.c: Likewise.
7226         * config/i386/i386-c.c: Likewise.
7227         * config/i386/i386.c: Likewise.
7228         * config/i386/msformat-c.c: Likewise.
7229         * config/i386/winnt-cxx.c: Likewise.
7230         * config/i386/winnt-stubs.c: Likewise.
7231         * config/i386/winnt.c: Likewise.
7232         * config/ia64/ia64-c.c: Likewise.
7233         * config/ia64/ia64.c: Likewise.
7234         * config/iq2000/iq2000.c: Likewise.
7235         * config/lm32/lm32.c: Likewise.
7236         * config/m32c/m32c-pragma.c: Likewise.
7237         * config/m32c/m32c.c: Likewise.
7238         * config/m32r/m32r.c: Likewise.
7239         * config/mcore/mcore.c: Likewise.
7240         * config/mep/mep-pragma.c: Likewise.
7241         * config/mep/mep.c: Likewise.
7242         * config/microblaze/microblaze-c.c: Likewise.
7243         * config/microblaze/microblaze.c: Likewise.
7244         * config/mips/mips-tables.opt
7245         * config/mips/mips.c: Likewise.
7246         * config/mmix/mmix.c: Likewise.
7247         * config/mn10300/mn10300.c: Likewise.
7248         * config/moxie/moxie.c: Likewise.
7249         * config/msp430/msp430-c.c: Likewise.
7250         * config/msp430/msp430.c: Likewise.
7251         * config/nds32/nds32-cost.c: Likewise.
7252         * config/nds32/nds32-fp-as-gp.c: Likewise.
7253         * config/nds32/nds32-intrinsic.c: Likewise.
7254         * config/nds32/nds32-isr.c: Likewise.
7255         * config/nds32/nds32-md-auxiliary.c: Likewise.
7256         * config/nds32/nds32-memory-manipulation.c: Likewise.
7257         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7258         * config/nds32/nds32-predicates.c: Likewise.
7259         * config/nds32/nds32.c: Likewise.
7260         * config/nios2/nios2.c: Likewise.
7261         * config/nvptx/mkoffload.c: Likewise.
7262         * config/nvptx/nvptx.c: Likewise.
7263         * config/pa/pa.c: Likewise.
7264         * config/pdp11/pdp11.c: Likewise.
7265         * config/rl78/rl78-c.c: Likewise.
7266         * config/rl78/rl78.c: Likewise.
7267         * config/rs6000/host-darwin.c: Likewise.
7268         * config/rs6000/rs6000-c.c: Likewise.
7269         * config/rs6000/rs6000-linux.c: Likewise.
7270         * config/rs6000/rs6000.c: Likewise.
7271         * config/rx/rx.c: Likewise.
7272         * config/s390/s390-c.c: Likewise.
7273         * config/s390/s390.c: Likewise.
7274         * config/sh/sh-c.c: Likewise.
7275         * config/sh/sh-mem.cc: Likewise.
7276         * config/sh/sh.c: Likewise.
7277         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7278         * config/sh/sh_treg_combine.cc: Likewise.
7279         * config/sol2-c.c: Likewise.
7280         * config/sol2-cxx.c: Likewise.
7281         * config/sol2-stubs.c: Likewise.
7282         * config/sol2.c: Likewise.
7283         * config/sparc/sparc-c.c: Likewise.
7284         * config/sparc/sparc.c: Likewise.
7285         * config/spu/spu-c.c: Likewise.
7286         * config/spu/spu.c: Likewise.
7287         * config/stormy16/stormy16.c: Likewise.
7288         * config/v850/v850-c.c: Likewise.
7289         * config/v850/v850.c: Likewise.
7290         * config/vax/vax.c: Likewise.
7291         * config/visium/visium.c: Likewise.
7292         * config/vms/vms-c.c: Likewise.
7293         * config/vms/vms.c: Likewise.
7294         * config/vxworks.c: Likewise.
7295         * config/winnt-c.c: Likewise.
7296         * config/xtensa/xtensa.c: Likewise.
7298 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7300         PR target/67745
7301         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7302         (FUNCTION_BOUNDARY_P): New macro:
7303         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7304         New hook.
7305         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7306         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7307         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7308         * function.c (allocate_struct_function): Call
7309         relayout_function hook.
7310         * passes.c (rest_of_decl_compilation): Likewise.
7312 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7314         PR target/67745
7315         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7316         * config/arm/arm.c (arm_option_override_internal): Call
7317         arm_override_options_after_change_1.
7318         (arm_override_options_after_change): New function.
7319         (arm_override_options_after_change_1): Likewise.
7320         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7322 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7324         Revert:
7325         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7326         empty constructors.
7328 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7330         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7331         argument is an ADDR_EXPR.
7333 2015-10-16  Richard Biener  <rguenther@suse.de>
7335         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7336         and get rid of force_gimple_operand_gsi.
7337         (gimple_fold_builtin_memory_chk): Likewise.
7338         (gimple_fold_builtin_stxcpy_chk): Likewise.
7339         (rewrite_to_defined_overflow): Likewise.
7340         (gimple_convert_to_ptrofftype): New function.
7341         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7343 2015-10-16  Richard Biener  <rguenther@suse.de>
7345         * tree-nested.h (build_addr): Adjust prototype.
7346         * tree-nested.c (build_addr): Remove context argument and use
7347         mark_addressable.
7348         (get_static_chain): Adjust calls to build_addr.
7349         (convert_nl_goto_reference): Likewise.
7350         (convert_tramp_reference_op): Likewise.
7351         (finalize_nesting_tree_1): Likewise.
7352         * value-prof.c (gimple_ic): Likewise.
7353         * gimple-low.c (lower_builtin_setjmp): Likewise.
7354         * tree-parloops.c (take_address_of): Likewise.
7355         (create_call_for_reduction_1): Likewise.
7356         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7357         (gimple_gen_ic_func_profiler): Likewise.
7359 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7361         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7362         empty constructors.
7364 2015-10-16  Michael Collison  <michael.collison@linaro.org>
7365             Andrew Pinski <andrew.pinski@caviumnetworks.com>
7367         * match.pd ((x < y) && (x < z) -> x < min (y,z),
7368         (x > y) and (x > z) -> x > max (y,z))
7370 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
7371             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7373         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7374         (DYNAMIC_LINKER): Renamed to ...
7375         (GLIBC_DYNAMIC_LINKER): This.
7376         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7378 2015-10-15  Marek Polacek  <polacek@redhat.com>
7380         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7381         gimple_call_builtin instead of is_gimple_call.
7383 2015-10-15  Richard Biener  <rguenther@suse.de>
7385         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7387 2015-10-15  Richard Biener  <rguenther@suse.de>
7389         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7390         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7391         * tree-vect-loop.c (get_initial_def_for_induction): Drop
7392         use of force_gimple_operand in favor of gimple_build.
7393         Use vect_get_new_ssa_name.
7394         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7395         (vectorizable_mask_load_store): Likewise.
7396         (vectorizable_call): Likewise.
7397         (vectorizable_store): Likewise.
7398         (vectorizable_load): Likewise.
7399         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7401 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
7403         PR tree-optimization/67945
7404         * tree-pass.h (PROP_gimple_opt_math): New property flag.
7405         * generic-match-head.c (canonicalize_math_p): New function.
7406         * gimple-match-head.c: Include tree-pass.h.
7407         (canonicalize_math_p): New function.
7408         * match.pd: Group math built-in rules into simplifications
7409         and canonicalizations.  Guard the latter with canonicalize_math_p.
7410         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7411         PROP_gimple_opt_math property.
7413 2015-10-15  Marek Polacek  <polacek@redhat.com>
7415         PR tree-optimization/67953
7416         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7418 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
7420         * config.gcc: Recognize "." in architecture base name for AArch64.
7422 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
7424         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7425         ROUND_UP macro.
7426         * config/mips/mips.c (mips_setup_incoming_varargs): Use
7427         ROUND_DOWN to calculate off.
7428         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7429         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7430         rounded_size.
7432 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7434         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7436 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
7437             Torvald Riegel  <triegel@redhat.com>
7439         PR target/67281
7440         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7441         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7442         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
7443         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
7444         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
7445         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
7446         trechkpt, treclaim, tsr, ttest): New define_expands.
7447         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7448         __TM_FENCE__ for htm.
7449         * doc/extend.texi: Update documentation for htm builtins.
7451 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
7453         PR target/67967
7454         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
7455         REG_CFA_EXPRESSION to aligned SSE stores.
7457 2015-10-14  Jeff Law  <law@redhat.com>
7459         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
7460         num_threaded_edges for successful FSM threads too.
7462 2015-10-14  Richard Biener  <rguenther@suse.de>
7464         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
7465         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
7466         (vect_get_vec_def_for_operand): Remove unused parameter.
7467         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
7468         (vect_create_epilog_for_reduction): Likewise.
7469         (vectorizable_reduction): Likewise.
7470         (vectorizable_live_operation): Likewise.
7471         * tree-vect-patterns.c (type_conversion_p): Likewise.
7472         (vect_recog_vector_vector_shift_pattern): Likewise.
7473         (check_bool_pattern): Likewise.
7474         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7475         (vect_analyze_slp_cost_1): Likewise.
7476         * tree-vect-stmts.c (process_use): Likewise.
7477         (vect_get_vec_def_for_operand): Do not handle reductions.
7478         (vect_get_vec_defs): Adjust.
7479         (vectorizable_mask_load_store): Likewise.
7480         (vectorizable_call): Likewise.
7481         (vectorizable_simd_clone_call): Likewise.
7482         (vect_get_loop_based_defs): Likewise.
7483         (vectorizable_conversion): Likewise.
7484         (vectorizable_assignment): Likewise.
7485         (vectorizable_shift): Likewise.
7486         (vectorizable_operation): Likewise.
7487         (vectorizable_store): Likewise.
7488         (vectorizable_load): Likewise.
7489         (vect_is_simple_cond): Likewise.
7490         (vectorizable_condition): Likewise.
7491         (vect_is_simple_use): Remove unused parameters.
7492         (vect_is_simple_use_1): Adjust and rename.
7494 2015-10-14  Richard Biener  <rguenther@suse.de>
7496         PR tree-optimization/67915
7497         * match.pd: Handle comparisons of addresses of STRING_CSTs.
7498         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
7499         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
7500         stmt folding in favor of GIMPLE one.
7502 2015-10-14  Marek Polacek  <polacek@redhat.com>
7504         PR tree-optimization/67815
7505         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
7506         (reassociate_bb): Call it.
7508 2015-10-14  Richard Biener  <rguenther@suse.de>
7510         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7511         Reset info at start.
7512         (vect_analyze_group_access_1): Add debug print.
7513         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
7514         (vect_compute_single_scalar_iteration_cost): ... to this.
7515         (vect_analyze_loop_2): Adjust.
7516         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
7517         * tree-vectorizer.h: ... here.
7518         (add_stmt_info_to_vec): Remove.
7519         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
7521 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7523         * targhooks.c (default_target_option_pragma_parse): Do not warn if
7524         called on behalf of "#pragma GCC pop_options".
7526 2015-10-14  Tom de Vries  <tom@codesourcery.com>
7528         * cfganal.c (verify_no_unreachable_blocks): New function.
7529         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
7530         verify_no_unreachable_blocks.
7531         cfganal.h (verify_no_unreachable_blocks): Declare.
7533 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
7535         * common.opt: Add flag_checking.
7536         * system.h (CHECKING_P): Define.
7538 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
7539             Aldy Hernandez  <aldyh@redhat.com>
7540             Ilya Verbin  <ilya.verbin@intel.com>
7542         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
7543         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
7544         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
7545         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
7546         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
7547         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
7548         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
7549         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
7550         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
7551         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
7552         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
7553         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
7554         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
7555         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7556         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
7557         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7558         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7559         (struct cgraph_simd_clone_arg): Adjust comment.
7560         * coretypes.h (struct gomp_ordered): New forward decl.
7561         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
7562         set critical clauses to it.
7563         (gimple_build_omp_ordered): Return gomp_ordered * instead of
7564         gimple *.  Add CLAUSES argument, set ordered clauses to it.
7565         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
7566         GIMPLE_OMP_ORDERED.
7567         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
7568         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
7569         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
7570         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
7571         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
7572         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
7573         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
7574         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
7575         renumber
7576         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
7577         (gomp_critical): Add clauses field.
7578         (gomp_ordered): New struct.
7579         (is_a_helper <gomp_ordered *>::test): New inline.
7580         (gimple_build_omp_critical): Add CLAUSES argument.
7581         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
7582         instead of gimple *.
7583         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
7584         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
7585         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
7586         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
7587         inline functions.
7588         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
7589         (dump_gimple_omp_target): Handle enter data and exit data.
7590         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
7591         (dump_gimple_omp_critical): Print clauses.
7592         (dump_gimple_omp_ordered): New function.
7593         (dump_gimple_omp_task): Handle taskloop.
7594         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
7595         GIMPLE_OMP_ORDERED.
7596         * gimple-walk.c (walk_gimple_op): Walk clauses on
7597         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
7598         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
7599         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
7600         (struct gimplify_omp_ctx): Add loop_iter_var,
7601         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
7602         and target_firstprivatize_array_bases fields.
7603         (delete_omp_context): Release loop_iter_var.
7604         (gimplify_bind_expr): Handle ORT_NONE.
7605         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
7606         ORT_COMBINED_TARGET.
7607         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
7608         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
7609         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
7610         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
7611         ctx->target_map_scalars_firstprivate.
7612         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
7613         data sharing clauses.  For data sharing clause with VLA decl
7614         on omp target/target data don't add firstprivate for the pointer.
7615         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
7616         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
7617         the addition of ORT_COMBINED_TARGET.
7618         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
7619         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
7620         pointers as zero length array sections and
7621         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
7622         data sharing.
7623         (omp_check_private): Handle omp_member_access_dummy_var vars.
7624         (find_decl_expr): New function.
7625         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
7626         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
7627         Handle OMP_CLAUSE_GANG separately.  Handle
7628         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7629         clauses.  Diagnose linear clause on combined
7630         distribute {, parallel for} simd construct, unless it is the loop
7631         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
7632         Handle map clauses with COMPONENT_REF.  Initialize
7633         ctx->target_map_scalars_firstprivate,
7634         ctx->target_firstprivatize_array_bases and
7635         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
7636         linear clause even to target region if combined.  Remove
7637         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
7638         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
7639         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
7640         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
7641         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
7642         For linear clause on worksharing loop combined with parallel add
7643         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
7644         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
7645         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
7646         taskloop if needed.
7647         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
7648         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
7649         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
7650         GOMP_MAP_POINTER.
7651         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
7652         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
7653         in target body.  Handle removal of struct mapping if struct is not
7654         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
7655         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
7656         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
7657         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
7658         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
7659         clause appear together.  Handle
7660         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
7661         clause if it has map-type-modifier always.  Handle
7662         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
7663         clauses.
7664         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
7665         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
7666         callers.
7667         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
7668         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
7669         iterators in doacross loops.
7670         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
7671         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
7672         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
7673         for the addition of ORT_COMBINED_TARGET.
7674         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
7675         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
7676         and OMP_TARGET_EXIT_DATA.
7677         (gimplify_omp_ordered): New function.
7678         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
7679         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
7680         Gimplify clauses on OMP_CRITICAL.
7681         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
7682         expand_GOMP_SIMD_ORDERED_END): New functions.
7683         * internal-fn.def (GOMP_SIMD_ORDERED_START,
7684         GOMP_SIMD_ORDERED_END): New internal functions.
7685         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
7686         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
7687         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
7688         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
7689         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
7690         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
7691         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
7692         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
7693         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
7694         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
7695         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
7696         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
7697         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
7698         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
7699         adjust type.
7700         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
7701         GOMP_target_data_41, adjust type.
7702         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
7703         GOMP_target_update_41, adjust type.
7704         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
7705         field.
7706         (struct omp_for_data): Add ordered and simd_schedule fields.
7707         (omp_member_access_dummy_var, unshare_and_remap_1,
7708         unshare_and_remap, is_taskloop_ctx): New functions.
7709         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
7710         (extract_omp_for_data): Handle taskloops and doacross loops
7711         and simd schedule modifier.
7712         (omp_adjust_chunk_size): New function.
7713         (get_ws_args_for): Use it.
7714         (lookup_sfield): Change first argument to splay_tree_key,
7715         add overload with first argument tree.
7716         (maybe_lookup_field): Likewise.
7717         (use_pointer_for_field): Handle omp_member_access_dummy_var.
7718         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
7719         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
7720         (build_outer_var_ref): Add LASTPRIVATE argument, handle
7721         taskloops and omp_member_access_dummy_var vars.
7722         (build_sender_ref): Change first argument to splay_tree_key,
7723         add overload with first argument tree.
7724         (install_var_field): For mask & 8 use &DECL_UID as key instead
7725         of the tree itself.
7726         (fixup_child_record_type): Const qualify *.omp_data_i.
7727         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
7728         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
7729         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
7730         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
7731         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
7732         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
7733         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
7734         kinds.
7735         (add_taskreg_looptemp_clauses): New function.
7736         (scan_omp_parallel): Use it.
7737         (scan_omp_task): Likewise.
7738         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7739         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
7740         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7741         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
7742         sandwiched taskloop constructs.  Type check
7743         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
7744         region.  Diagnose depend(source) or depend(sink:...) on
7745         target constructs or task/taskloop.
7746         (handle_simd_reference): Use get_name.
7747         (lower_rec_input_clauses): Likewise.  Ignore all
7748         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
7749         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
7750         before passing it to omp_clause_{default,copy}_ctor.  Handle
7751         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
7752         lastprivate_firstprivate flag for linear that needs copyin and
7753         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
7754         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
7755         on taskloop lookup decl in outer context.  Pass true to
7756         build_outer_var_ref lastprivate argument.  Handle
7757         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
7758         outside of outer taskloop for.
7759         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
7760         OMP_CLAUSE_DECL.
7761         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
7762         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
7763         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
7764         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
7765         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
7766         abstract origin.  Handle omp_member_access_dummy_var vars.
7767         (expand_parallel_call): Use expand_omp_build_assign.
7768         (expand_task_call): Handle taskloop construct expansion.  Add
7769         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
7770         integers.  Add priority argument to GOMP_task* calls.  Or in
7771         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
7772         GOMP_task call.
7773         (expand_omp_build_assign): Add prototype.  Add AFTER
7774         argument, if true emit statements after *GSI_P and continue linking.
7775         (expand_omp_taskreg): Adjust expand_task_call caller.
7776         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
7777         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
7778         zero_iter2_bb and first_zero_iter2 arguments, handle computation
7779         of counts even for ordered loops.
7780         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
7781         (expand_omp_ordered_source, expand_omp_ordered_sink,
7782         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
7783         functions.
7784         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
7785         clauses on worksharing loop.  Handle DOACROSS loop expansion.
7786         (expand_omp_for_static_nochunk): Handle linear clauses on
7787         worksharing loop.  Adjust expand_omp_for_init_counts
7788         callers.
7789         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
7790         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
7791         expand_omp_for_init_counts callers.
7792         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
7793         functions.
7794         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
7795         Handle doacross loops.
7796         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7797         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
7798         GOMP_target_{41,update_41,enter_exit_data} libcalls.
7799         (expand_omp): Don't expand ordered depend constructs here, record
7800         ord_stmt instead for later expand_omp_for_generic.
7801         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7802         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
7803         clause as stand-alone directive.
7804         (lower_omp_ordered_clauses): New function.
7805         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
7806         don't lower anything.
7807         (lower_omp_for_lastprivate): Use last _looptemp_ clause
7808         on taskloop for comparison.
7809         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
7810         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
7811         expansion for linear adjustments.
7812         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
7813         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
7814         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
7815         to tree * pointing to the stmt's clauses.
7816         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
7817         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
7818         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
7819         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
7820         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
7821         clauses.  Always use short kind and 8-bit align shift.
7822         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
7823         (struct lower_omp_regimplify_operands_data): New type.
7824         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
7825         New functions.
7826         (lower_omp_1): Use lower_omp_regimplify_operands instead of
7827         gimple_regimplify_operands.
7828         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
7829         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
7830         clause as stand-alone directive.
7831         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
7832         (simd_clone_mangle): Mangle the various linear kinds
7833         per the new ABI.
7834         (simd_clone_adjust_argument_types): Handle
7835         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
7836         (simd_clone_init_simd_arrays): Don't do anything for uval.
7837         (simd_clone_adjust): Handle
7838         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
7839         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
7840         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
7841         * omp-low.h (omp_member_access_dummy_var): New prototype.
7842         * passes.def (pass_simduid_cleanup): Schedule another copy of the
7843         pass after all optimizations.
7844         * tree.c (omp_clause_code_name): Add entries for
7845         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7846         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7847         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
7848         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
7849         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
7850         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
7851         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7852         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
7853         clauses.
7854         * tree-core.h (enum omp_clause_linear_kind): New.
7855         (struct tree_omp_clause): Change type of map_kind
7856         from unsigned char to unsigned int.  Add subcode.if_modifier
7857         and subcode.linear_kind fields.
7858         (enum omp_clause_code): Add
7859         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
7860         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
7861         (OMP_CLAUSE_REDUCTION): Document
7862         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7863         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
7864         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
7865         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
7866         operand.
7867         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
7868         operand.
7869         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
7870         codes.
7871         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
7872         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
7873         char.
7874         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
7875         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
7876         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
7877         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
7878         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
7879         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
7880         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
7881         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
7882         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
7883         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
7884         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
7885         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
7886         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
7887         * tree-inline.c (remap_gimple_stmt): Handle clauses on
7888         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
7889         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
7890         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
7891         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7892         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7893         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
7894         (convert_local_omp_clauses): Likewise.
7895         * tree-pretty-print.c (dump_omp_clause): Handle
7896         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
7897         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
7898         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
7899         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
7900         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
7901         GOMP_MAP_FORCE_DEALLOC.  Handle
7902         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
7903         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
7904         and clauses on OMP_ORDERED and OMP_CRITICAL.
7905         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
7906         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
7907         (vectorize_loops): Adjust comments.
7908         (pass_simduid_cleanup::execute): Likewise.
7909         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
7910         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
7911         * wide-int.h (wi::gcd): New.
7913 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
7915         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
7916         (ix86_function_arg_advance): Ditto.
7917         (ix86_function_arg): Ditto.
7918         (ix86_gimplify_va_arg): Ditto.
7919         (ix86_class_max_nregs): Ditto.
7920         (inline_memory_move_cost): Ditto.
7921         (ix86_set_reg_reg_cost): Ditto.
7922         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
7924 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
7926         PR middle-end/67912
7927         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
7929 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
7931         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
7932         ROUND_UP macro and UNITS_PER_WORD * 2.
7933         * config/sparc/sparc.c (sparc_compute_frame_size):
7934         Use ROUND_UP and ROUND_DOWN macros where applicable.
7935         (function_arg_record_value, function_arg_record_value_1)
7936         (function_arg_record_value_1): Ditto.
7937         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
7938         alignment to double-word.
7939         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
7940         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
7941         rounded_size.
7943 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
7945         * rtl.h (print_insn): Fix prototype.
7947 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7949         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
7950         -1.  Add assert that returned entry matches phi argument.
7951         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
7952         free_stmt_vec_info_vec ...
7953         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
7954         with -1.
7956 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
7958         PR tree-optimization/67909, 67947
7959         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
7960         really skip the inner loop.
7962 2015-10-13  Jeff Law  <law@redhat.com>
7964         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7965         Allow single block jump threading paths.
7967 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7969         PR tree-optimization/67476
7970         * doc/invoke.texi (@item parloops-schedule): New item.
7971         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
7972         * tree-parloops.c: Include params-enum.h.
7973         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
7975 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7977         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
7978         * params-enum.h: New file.
7979         * opts.c (handle_param): Handle case that param arg is a string.
7980         * params-list.h: Handle DEFPARAMENUM5 in params.def.
7981         * params.c (find_param): New function, factored out of ...
7982         (set_param_value): ... here.
7983         (param_string_value_p): New function.
7984         * params.h (struct param_info): Add value_names field.
7985         (find_param, param_string_value_p): Declare.
7987 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7989         PR tree-optimization/67476
7990         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
7992 2015-10-13  Richard Biener  <rguenther@suse.de>
7994         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
7995         the data dependence vector.
7996         (vect_peeling_hash_insert): Get the peeling hash table as argument.
7997         (vect_peeling_hash_get_lowest_cost): Likewise.
7998         (vect_enhance_data_refs_alignment): Adjust.
7999         (struct _vect_peel_info, struct _vect_peel_extended_info,
8000         struct peel_info_hasher): Move from ...
8001         * tree-vectorizer.h: ... here.
8002         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8003         (LOOP_VINFO_PEELING_HTAB): Likewise.
8004         (struct _loop_vec_info): Remove min_profitable_iters and
8005         peeling_htab members.
8006         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8007         here.
8008         (destroy_loop_vec_info): Adjust.
8009         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8010         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8011         to estimate alias versioning cost.
8012         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8014 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
8016         * real.h (real_isinteger): Declare.
8017         * real.c (real_isinteger): New function.
8018         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8019         if y is an even integer.
8021 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8023         revert:
8024         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8025         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8026         counts when these are more informative.
8028 2015-10-12  Jeff Law  <law@redhat.com>
8030         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8031         (fsm_find_control_stmt_paths): Change name of first argument to
8032         more accurately relfect what it really is.  Handle simplification
8033         of GIMPLE_COND after finding a thread path for NAME.
8034         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8035         nontrivial conditions to be handled by FSM threader.
8036         (thread_through_normal_block): Extract the name to looup via
8037         FSM threader from COND_EXPR.
8039         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8040         restriction that traced SSA_NAME is a user variable.
8042 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8044         PR tree-optimization/67476
8045         * omp-low.c (expand_omp_for_generic): Add missing phis.
8047 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8049         PR tree-optimization/67476
8050         * omp-low.c (expand_omp_for_generic): Handle simple latch.
8052 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
8054         * config/aarch64/aarch64-simd-builtins.def: Update builtins
8055         tables: add tbl3 and tbx4.
8056         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8057         (aarch64_tbx4v8qi): New.
8058         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8059         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8060         Rewrite using builtin functions.
8061         * config/aarch64/iterators.md (UNSPEC_TBX): New.
8063 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8065         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8066         ROUND_UP macro.
8067         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8068         Use ROUND_UP and ROUND_DOWN macros where applicable.
8069         (rs6000_darwin64_record_arg_flush): Ditto.
8070         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8071         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8072         rounded_size.
8074 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8076         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8077         (AARCH64_ROUND_DOWN): Ditto.
8078         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8080 2015-10-12  Richard Biener  <rguenther@suse.de>
8082         PR ipa/67783
8083         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8084         code that analyzes IVs on each stmt but in a cheaper way avoiding
8085         quadratic behavior.
8087 2015-10-12  Nick Clifton  <nickc@redhat.com>
8089         * config/msp430/msp430.c (msp430_mcu_names): Rename to
8090         msp430_mcu_data, add fields for ISA and hardware multiply
8091         support.  Import latest data from the devices.csv file.
8092         (msp430_override_option): Use the data from the new array.
8093         (msp430_use_f5_series_hwmult): Likewise.
8094         (use_32bit_hwmult): Likewise.
8095         (msp430_no_hwmult): Likewise.
8096         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8097         MCU names.
8098         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8099         not recognised then no hardware multiply support is assumed and
8100         that only the MSP430 ISA is allowed.
8102 2015-10-12  Richard Biener  <rguenther@suse.de>
8104         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8105         related code ...
8106         (vect_analyze_loop_2): ... here.
8108 2015-10-11  Jason Merrill  <jason@redhat.com>
8110         PR c++/67557
8111         * expr.c (store_field): Call store_constructor directly when
8112         storing a CONSTRUCTOR into a target smaller than its type.
8113         Guard against unsafe bitwise copy.
8115 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8117         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8118         counts when these are more informative.
8120 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8122         * tree-profile.c (tree_profiling): Do not clear
8123         pure/const when not instrumenting.
8124         (pass tree_profile): Add dump of symtab.
8126 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8128         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8129         addresses.
8130         (fold_addr_of_array_ref_difference): Likewise.
8132 2015-10-11  Jeff Law  <law@redhat.com>
8134         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8135         tree-ssa-threadbackward.c.
8136         (fsm_find_control_statement_thread_paths): Likewise.
8137         (thread_through_normal_block): Break out FSM bits and move them
8138         into a new function in tree-ssa-threadbackward.c.  Call new function
8139         instead.
8140         Minimize header file usage.
8141         * tree-ssa-threadbackward.h: New file.
8142         * tree-ssa-threadbackward.c: Likewise.
8143         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8145 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
8147         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8149 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
8151         PR rtl-optimization/67864
8152         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8153         fallthrough edges for conditional jumps.  Don't sort candidate
8154         edges if not optimizing for speed.
8156 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8158         * defaults.h (REVERSE_CONDITION): New default definition.
8159         * jump.c (reversed_comparison_code_parts): Adjust.
8161 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8163         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8164         check HARD_FRAME_POINTER_IS_ARG_POINTER.
8166 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8168         * defaults.h (FRAME_ADDR_RTX): New default definition.
8169         * builtins.c (expand_builtin_return_addr): Adjust.
8171 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8173         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8174         * builtins.c (expand_builtin_return_addr): Adjust.
8176 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8178         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8179         * builtins.c (expand_builtin_return_addr): Adjust.
8180         * doc/tm.texi: Likewise.
8181         * doc/tm.texi.in: Likewise.
8182         * except.c (expand_builtin_unwind_init): Likewise.
8184 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8186         * builtins.c (expand_builtin_return_addr): Adjust.
8187         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8189 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8191         * tree.c (type_with_interoperable_signedness): New.
8192         (gimple_canonical_types_compatible_p): Use it.
8193         * tree.h (type_with_interoperable_signedness): Declare
8195 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8197         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8198         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8199         when OEP_ADDRESS_OF is se.
8201 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8202             Sebastian Pop  <s.pop@samsung.com>
8204         * graphite-dependences.c (scop_get_dependences): Add dump of the
8205         data dependence graph.
8206         * graphite-poly.c (print_isl_union_map): New.
8207         (debug_isl_union_map): New.
8208         * graphite-poly.h (print_isl_union_map): Declare.
8209         (debug_isl_union_map): Declare.
8211 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8212             Sebastian Pop  <s.pop@samsung.com>
8214         * graphite-poly.c (print_iteration_domain): Remove verbosity.
8215         Remove OpenScop formatting.
8216         (print_iteration_domains): Same.
8217         (debug_iteration_domain): Same.
8218         (debug_iteration_domains): Same.
8219         (print_pdr): Same.
8220         (debug_pdr): Same.
8221         (dump_gbb_cases): Same.
8222         (dump_gbb_conditions): Same.
8223         (print_pdrs): Same.
8224         (debug_pdrs): Same.
8225         (print_pbb_body): Same.
8226         (print_pbb): Same.
8227         (print_scop_params): Same.
8228         (print_scop_context): Same.
8229         (print_scop): Same.
8230         (debug_pbb_domain): Same.
8231         (debug_pbb): Same.
8232         (debug_scop_context): Same.
8233         (debug_scop): Same.
8234         (debug_scop_params): Same.
8235         * graphite-poly.h: Same.
8236         * graphite.c (graphite_transform_loops): Same.
8238 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8240         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8241         call that isn't needed.
8243 2015-10-09  Jeff Law  <law@redhat.com>
8245         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8246         rather than moving each name to the freelist individually.
8248 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
8250         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8251         * frame-header-opt.c: New file.
8252         * config/mips/mips-proto.h (mips_register_frame_header_opt):
8253         Add prototype.
8254         * config/mips/mips.c (mips_compute_frame_info): Check
8255         optimize_call_stack flag.
8256         (mips_option_override): Register new frame_header_opt pass.
8257         (mips_frame_info, mips_int_mask, mips_shadow_set,
8258         machine_function): Move these types to...
8259         * config/mips/mips.h: here.
8260         (machine_function): Add does_not_use_frame_header and
8261         optimize_call_stack fields.
8262         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8263         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8264         Document new flags.
8265         * config/mips/mips.opt (mframe-header-opt): Add new option.
8267 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
8269         * config/i386/i386.c
8270         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8271         ROUND_DOWN where applicable.
8273 2015-10-09  Jeff Law  <law@redhat.com>
8275         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8276         correct statement.
8278 2015-10-09  Renlin Li  <renlin.li@arm.com>
8280         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8281         operands[0] and operands[2].
8282         (neon_vtrn<mode>_insn): Likewise.
8283         (neon_vzip<mode>_insn): Likewise.
8285 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8287         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8288         ((X & C2) << C1): Expand to...
8289         (X {&,^,|} C2 << C1): ...This.
8290         ((X & C2) >> C1): Expand to...
8291         (X {&,^,|} C2 >> C1): ...This.
8293 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
8295         PR target/67895
8296         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8297         Adjust embedded rounding/SAE specifier position.
8298         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8299         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8300         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8301         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8302         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8303         Likewise.
8304         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8306 2015-10-09  Martin Jambor  <mjambor@suse.cz>
8308         tree-optimization/67794
8309         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8310         between types of state,ents but accept original definitions as a
8311         parameter.
8312         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8313         iterate over definitions.
8315 2015-10-09  James Norris  <jnorris@codesourcery.com>
8317         * config/rs6000/rs6000.c (rs6000_offload_options): New.
8318         (TARGET_OFFLOAD_OPTIONS): New.
8320 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
8322         PR middle-end/67891
8323         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8325         PR middle-end/67766
8326         * function.c (expand_function_end): Move return value
8327         promotion past the handling of PARALLELs and CONCATs.
8329         PR rtl-optimization/67828
8330         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8331         (tree_may_unswitch_on): Don't unswitch on expressions
8332         involving undefined values.
8334 2015-10-09  Richard Biener  <rguenther@suse.de>
8336         * genmatch.c (print_operand): Fix formatting.
8337         (dt_node::append_simplify): Warn for multiple simplifiers
8338         that match the same pattern.
8339         * match.pd (log (exp @0)): Remove duplicates.
8341 2015-10-09  Richard Biener  <rguenth@suse.de>
8343         PR target/67366
8344         * gimple-fold.c (optabs-query.h): Include
8345         (gimple_fold_builtin_memory_op): Allow unaligned stores
8346         when movmisalign_optabs are available.
8348 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8350         PR target/67366
8351         * config/arm/arm.md (movmisalign<mode>): New.
8352         * config/arm/iterators.md (HSI): New.
8354 2015-10-09  Richard Biener  <rguenther@suse.de>
8356         PR tree-optimization/67891
8357         * gimple-match.h (gimple_simplified_result_is_gimple_val):
8358         New helper.
8359         (gimple_resimplify1): Declare.
8360         (gimple_resimplify2): Likewise.
8361         (gimple_resimplify3): Likewise.
8362         * gimple-match-head.c (gimple_resimplify1): Export.
8363         (gimple_resimplify2): Likewise.
8364         (gimple_resimplify3): Likewise.
8365         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8366         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8367         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8368         to avoid creating stmts without VN info.
8370 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
8372         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8373         of availability.
8375 2015-10-08  Jeff Law  <law@redhat.com>
8377         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8378         and release_ssa_name in two places.
8379         (gimple_stringop_fixed_value): Similarly.
8381         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8382         release_defs.
8384         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8385         unlink_stmt_vdef and release_ssa_name_fn.
8387         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8388         release_defs.
8390 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8392         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8393         SSE register save area to 16 bytes only if the incoming stack
8394         boundary is no less than 16 bytes.
8396 2015-10-08  Jeff Law  <law@redhat.com>
8398         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8399         release_ssa_name.  Fix typo in comment.
8401 2015-10-08  Nathan Sidwell  <nathan@acm.org>
8403         * config/nvptx/nvptx.h (struct machine_function): Add comment.
8404         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8405         may return pointer as well as in memory.
8406         (nvptx_output_return): Likewise.
8408 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
8410         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8411         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8412         * match.pd: Add rules previously handled by fold_builtin_sqrt
8413         and fold_builtin_cbrt.
8415 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
8417         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8418         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8419         * fold-const.h (tree_unary_nonnegative_warnv_p)
8420         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8421         (tree_expr_nonnegative_warnv_p): Add depth parameters.
8422         * fold-const.c: Include gimple-fold.h and params.h.
8423         (tree_ssa_name_nonnegative_warnv_p): New function.
8424         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8425         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8426         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8427         Add a depth parameter and increment it for recursive calls to
8428         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
8429         to handle SSA names.
8430         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8431         (gimple_stmt_nonnegative_warnv_p): Declare.
8432         * tree-vrp.c (remove_range_assertions): Remove assert that condition
8433         cannot be proven false.
8434         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8435         (gimple_stmt_nonnegative_warnv_p): Move to...
8436         * gimple-fold.c: ...here.  Add depth parameters and pass them
8437         down to the tree routines.  Accept statements that aren't
8438         assignments or calls but just return false for them.
8439         (gimple_val_nonnegative_real_p): Delete.
8440         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8441         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
8442         Check HONOR_NANs first.
8444 2015-10-08  Martin Jambor  <mjambor@suse.cz>
8446         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
8447         unnecessary MIN.
8449 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
8451         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
8452         in the tail of outer-loop.
8454 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
8456         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
8457         return UI_NONE.
8459 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
8461         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
8462         "cfghooks.h", add prototypes for introduced new functions.
8463         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
8464         checks on ability of loop unswitching to tree_unswitch_single_loop;
8465         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
8466         on innermost loop check.
8467         (tree_unswitch_single_loop): Add all required checks on ability of
8468         loop unswitching under zero recursive level guard.
8469         (tree_unswitch_outer_loop): New function.
8470         (find_loop_guard): Likewise.
8471         (empty_bb_without_guard_p): Likewise.
8472         (used_outside_loop_p): Likewise.
8473         (get_vop_from_header): Likewise.
8474         (hoist_guard): Likewise.
8475         (check_exit_phi): Likewise.
8477 2015-10-08  Marek Polacek  <polacek@redhat.com>
8479         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
8480         ops element.
8482 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8484         PR c/65345
8485         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8486         create_tmp_var_raw instead of create_tmp_var.
8488 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
8490         * expr.c (store_expr_with_bounds): Handle aggregate moves from
8491         BLKmode.
8492         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
8493         to define gimple type system; compare aggregates only by size.
8495 2015-10-07  Jeff Law  <law@redhat.com>
8497         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
8498         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
8499         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
8500         unnecessarily.
8502 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
8503             Sebastian Pop  <s.pop@samsung.com>
8505         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
8506         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
8507         (generate_isl_schedule): Same.
8508         * graphite-optimize-isl.c (scop_get_domains): Same.
8509         (apply_schedule_map_to_scop): Same.
8510         * graphite-poly.c (print_iteration_domains): Same.
8511         (remove_gbbs_in_scop): Same.
8512         (new_scop): Same.
8513         (free_scop): Same.
8514         (print_scop): Same.
8515         * graphite-poly.h (struct scop): Rename bbs to pbbs.
8516         (SCOP_BBS): Remove.
8517         * graphite-scop-detection.c (compare_bb_depths): Remove.
8518         (graphite_sort_dominated_info): Remove.
8519         (try_generate_gimple_bb): Move out of scop_detection.
8520         (all_non_dominated_preds_marked_p): Remove.
8521         (build_scop_bbs_1): Remove.
8522         (build_scop_bbs): Remove.
8523         (nb_pbbs_in_loops): Do not use SCOP_BBS.
8524         (find_scop_parameters): Same.
8525         (sese_dom_walker): Rename gather_bbs.
8526         (before_dom_children): Call try_generate_gimple_bb and collect gbb
8527         and pbb.
8528         (build_scops): Call gather_bbs.
8529         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
8530         (add_conditions_to_constraints): Same.
8531         (build_scop_iteration_domain): Same.
8532         (build_scop_drs): Same.
8533         (new_pbb_from_pbb): Same.
8534         * sese.c (new_sese_info): Create bbs.
8535         * sese.h (struct sese_info_t): Add bbs.
8537 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
8539         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
8540         encoding in 64-bit mode.
8542 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
8544         PR target/66697
8545         * config/i386/i386.c (ix86_option_override_internal): Always use
8546         8-byte minimum stack boundary in 64-bit mode.
8547         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
8548         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
8549         Add a REG_CFA_EXPRESSION note if needed.
8550         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
8551         (ix86_handle_force_align_arg_pointer_attribute): New.
8552         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
8553         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
8554         with ix86_handle_force_align_arg_pointer_attribute.
8555         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
8557 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
8558             Sebastian Pop  <s.pop@samsung.com>
8560         * graphite-scop-detection.c (parameter_index_in_region): Remove
8561         use of SESE_ADD_PARAMS.
8562         (find_scop_parameters): Same.
8563         * sese.c (new_sese_info): Same.
8564         * sese.h (struct sese_info_t): Remove add_params.
8565         (SESE_ADD_PARAMS): Remove.
8567 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
8568             Sebastian Pop  <s.pop@samsung.com>
8570         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
8571         an sese_info_p.
8572         (copy_def): Same.
8573         (copy_internal_parameters): Same.
8574         (translate_isl_ast_to_gimple): Use an sese_l.
8575         (build_iv_mapping): Same.
8576         * graphite-poly.c (new_sese): Rename new_sese_info.
8577         (free_sese): Rename free_sese_info.
8578         * graphite-poly.h (struct scop): Use an sese_info_p.
8579         (scop_set_region): Same.
8580         * graphite-scop-detection.c (struct sese_l): Moved...
8581         (get_entry_bb): Moved...
8582         (get_exit_bb): Moved...
8583         (parameter_index_in_region_1): Use an sese_info_p.
8584         (parameter_index_in_region): Same.
8585         (scan_tree_for_params): Same.
8586         (find_params_in_bb): Same.
8587         (sese_dom_walker): Use an sese_l.
8588         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
8589         (reduction_phi_p): Same.
8590         (parameter_index_in_region_1): Use an sese_info_p.
8591         (propagate_expr_outside_region): Use an sese_l.
8592         * graphite.c: Replace uses of SCOP_REGION.
8593         * sese.c (sese_record_loop): Use an sese_info_p.
8594         (build_sese_loop_nests): Same.
8595         (sese_build_liveouts_use): Same.
8596         (sese_build_liveouts_bb): Same.
8597         (sese_build_liveouts_bb): Same.
8598         (sese_bad_liveouts_use): Same.
8599         (sese_reset_debug_liveouts_bb): Same.
8600         (sese_build_liveouts): Same.
8601         (new_sese): Renamed new_sese_info.
8602         (free_sese): Renamed free_sese_info.
8603         (set_rename): Use an sese_info_p.
8604         (graphite_copy_stmts_from_block): Same.
8605         (copy_bb_and_scalar_dependences): Same.
8606         (outermost_loop_in_sese_1): Use an sese_l.
8607         (outermost_loop_in_sese): Same.
8608         (if_region_set_false_region): Use an sese_info_p.
8609         (move_sese_in_condition): Same.
8610         (scalar_evolution_in_region): Use an sese_l.
8611         * sese.h (struct sese_l): ... here.
8612         (SESE_ENTRY): Remove.
8613         (SESE_ENTRY_BB): Remove.
8614         (SESE_EXIT): Remove.
8615         (SESE_EXIT_BB): Remove.
8616         (sese_contains_loop): Use an sese_info_p.
8617         (sese_nb_params): Same.
8618         (bb_in_sese_p): Use an sese_l.
8619         (stmt_in_sese_p): Same.
8620         (defined_in_sese_p): Same.
8621         (loop_in_sese_p): Same.
8622         (sese_loop_depth): Same.
8623         (struct ifsese_s): Use an sese_info_p.
8624         (gbb_loop_at_index): Use an sese_l.
8625         (nb_common_loops): Same.
8626         (scev_analyzable_p): Same.
8628 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
8630         * config/i386/i386.c (ix86_conditional_register_usage): Use
8631         CALL_USED_REGISTERS_MASK.
8632         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
8634 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
8636         PR bootstrap/67385
8637         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
8638         * configure: Regenerated.
8640 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
8642         PR target/67850
8643         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
8644         (ix86_set_current_function): This.
8645         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
8647 2015-10-07  Richard Biener  <rguenther@suse.de>
8649         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
8650         (vinfo_for_stmt): Adjust.
8651         (set_vinfo_for_stmt): Likewise.
8652         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
8653         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
8654         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
8655         of inner loop.
8656         (vect_analyze_loop_1): Remove.
8657         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
8658         inner loop when vectorizing an outer loop by splitting out from ...
8659         (vect_analyze_loop_form): ... here.
8661 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8663         PR c/65345
8664         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
8665         Use create_tmp_var_raw instead of create_tmp_var.
8667 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
8669         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
8670         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
8671         * real.c (CACHED_FRACTION): New helper macro.
8672         (dconst_third_ptr): Use it.
8673         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
8674         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
8675         dconst_sixth.
8676         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
8678 2015-10-06  Jeff Law  <law@redhat.com>
8680         PR tree-optimization/67816
8681         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
8682         from remove_jump_threads_starting_at.  Accept an edge rather than
8683         a basic block.
8684         * tree-ssa-threadupdate.c (removed_edges): New hash table.
8685         (remove_jump_threads_including): Note edges that get removed from
8686         the CFG for later pruning of jump threading paths including them.
8687         (thread_through_all_blocks): Remove paths which include edges that
8688         have been removed.
8689         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
8690         on each outgoing edges when optimizing away a control statement.
8692 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8694         * reorg.c (emit_delay_sequence): Store list of delay slot insns
8695         in a vector instead of rtx_insn_list.
8696         (add_to_delay_list): Likewise.
8697         (delete_from_delay_slot): Likewise.
8698         (optimize_skip): Likewise.
8699         (redirect_with_delay_list_safe_p): Likewise.
8700         (check_annul_list_true_false): Likewise.
8701         (steal_delay_list_from_target): Likewise.
8702         (steal_delay_list_from_fallthrough): Likewise.
8703         (redundant_insn): Likewise.
8704         (fill_simple_delay_slots): Likewise.
8705         (fill_slots_from_thread): Likewise.
8706         (fill_eager_delay_slots): Likewise.
8707         (relax_delay_slots): Likewise.
8709 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
8711         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
8712         For -mgpopt=local, also exclude unintialized common symbols.
8713         * doc/invoke.texi (Nios II Options): Document the change.
8715 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
8717         * config/aarch64/iterators.md (vwcore): Add missing cases for
8718          V4HF/V8HF modes.
8720 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
8721             Sebastian Pop  <s.pop@samsung.com>
8723         * graphite-poly.c (new_scop): Initialize drs.
8724         * graphite-poly.h (struct dr_info): New.
8725         (struct scop): Add drs.
8726         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
8727         (pdr_add_memory_accesses): Same.
8728         (build_poly_dr): Same.
8729         (build_alias_set): Same.
8730         (build_scop_drs): Same.
8731         (build_pbb_drs): Remove.
8732         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
8733         * tree-data-ref.h (data_reference): Remove alias_set.
8735 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
8736             Sebastian Pop  <s.pop@samsung.com>
8738         * graphite-poly.c (free_data_refs_aux): Remove.
8739         (free_gimple_poly_bb): Do not call free_data_refs_aux.
8740         * graphite-poly.h (struct base_alias_pair): Remove.
8741         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
8742         base_alias_pair and dr->aux.
8743         (build_alias_set): Same.
8744         * tree-data-ref.c (create_data_ref): Initialize alias_set.
8745         * tree-data-ref.h (data_reference): Add alias_set.
8747 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
8748             Sebastian Pop  <s.pop@samsung.com>
8750         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
8751         Do not set PDR_BASE_OBJECT_SET.
8752         * graphite-poly.h (poly_dr): Same.
8753         (PDR_BASE_OBJECT_SET): Remove.
8754         (new_poly_dr): Update decl.
8755         * graphite-sese-to-poly.c (build_poly_dr): Update call to
8756         new_poly_dr.
8757         (write_alias_graph_to_ascii_dimacs): Remove.
8758         (write_alias_graph_to_ascii_dot): Remove.
8759         (write_alias_graph_to_ascii_ecc): Remove.
8760         (dr_same_base_object_p): Remove.
8761         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
8762         code.
8763         (build_base_obj_set_for_drs): Remove.
8764         (dump_alias_graphs): Remove.
8765         (build_scop_drs): Remove dead code.
8767 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8768             Peter Bergner  <bergner@vnet.ibm.com>
8770         PR target/67808
8771         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
8772         allow registers, but provide insns for the combiner to create for
8773         loads from memory. Separate VSX code from non-VSX code. For
8774         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
8775         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
8776         so that registers come before memory operations. Drop support from
8777         converting DFmode to TFmode, if the DFmode value is in a GPR
8778         register.
8779         (extenddftf2_fprs): Likewise.
8780         (extenddftf2_internal): Likewise.
8781         (extenddftf2_vsx): Likewise.
8782         (extendsftf2): In the expander, only allow registers, but provide
8783         insns for the combiner to create for stores and loads.
8785 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8787         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
8788         from the decl parameter.
8790 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
8792         PR 67861
8793         * gimple-fold.c (gimple_fold_builtin): Add break after
8794         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
8796 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
8798         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
8799         to scop->isl_context.
8801 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
8803         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
8804         (output_probe_stack_range): Rotate the loop and simplify.
8805         (thumb1_expand_prologue): Tweak sorry message.
8806         * config/arm/arm.md (probe_stack): Use bare string.
8808 2015-10-06  Nick Clifton  <nickc@redhat.com>
8810         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
8812 2015-10-06  Nick Clifton  <nickc@redhat.com>
8814         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
8815         (ATTR_PERSIST): New constant.
8816         (msp430_data_attr): New function - verifies an attribute that only
8817         applies to variables.
8818         (msp430_attributes): Add noinit and persistent attributes.
8819         (noinit_section): New variable.
8820         (presis_section): New variable.
8821         (TARGET_ASM_INIT_SECTIONS): Define.
8822         (msp430_init_sections): New function - initialises the noinit and
8823         persist section variables.
8824         (msp430_select_section): Add support for noinit and persist
8825         attributes.
8826         (msp430_section_type_flags): Likewise.
8827         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
8828         and persistent attributes.
8830 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8831             Sebastian Pop  <s.pop@samsung.com>
8833         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
8834         (no_violations): Remove.
8835         (subtract_commutative_associative_deps): Remove.
8836         (compute_deps): Do not call subtract_commutative_associative_deps.
8837         (transform_is_safe): Remove.
8838         (graphite_legal_transform): Remove.
8839         * graphite-poly.h (graphite_legal_transform): Remove.
8841 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
8843         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
8844         which are in this region are passed so gcc_assert and remove redundant
8845         computation.
8846         * sese.c (sese_build_liveouts): Pass only those bbs which are not
8847         in region.
8848         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
8849         gcc_assert on that and remove unnecessary computation.
8850         (sese_build_liveouts_use): Same.
8852 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8854         * graphite-dependences.c (scop_get_reads): Renamed scop->context
8855         to scop->param_context.
8856         (scop_get_must_writes): Same.
8857         (scop_get_may_writes): Same.
8858         (scop_get_original_schedule): Same.
8859         (scop_get_transformed_schedule): Same.
8860         (subtract_commutative_associative_deps): Same.
8861         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
8862         (generate_isl_context): Same.
8863         (generate_isl_schedule): Same.
8864         (scop_to_isl_ast): Same.
8865         (graphite_regenerate_ast_isl): Same.
8866         * graphite-optimize-isl.c (scop_get_domains): Same.
8867         (optimize_isl): Renamed scop->context to scop->param_context.
8868         * graphite-poly.c (new_poly_bb): Change the type of argument to
8869         gimple_poly_bb_p.
8870         (new_scop): Renamed scop->context to scop->param_context.
8871         (free_scop): Same.
8872         (print_scop_context): Same.
8873         * graphite-poly.h (new_poly_dr): Change the type of argument from
8874         void* to data_reference_p.
8875         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
8876         (new_poly_bb): Change the type of argument from void* to
8877         gimple_poly_bb_p.
8878         (pbb_set_black_box): Same.
8879         (struct scop): Rename context to param_context, ctx to isl_context.
8880         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
8881         Move declarations closer to assignment.
8882         (find_params_in_bb): Same.
8883         (find_scop_parameters): Same.
8884         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
8885         Global to be used for statement IDs.
8886         (isl_id_for_pbb): Use ssa_name_version_typesize.
8887         (simple_copy_phi_p): Move declarations closer to assignment.
8888         (build_pbb_scattering_polyhedrons): Same.
8889         (build_scop_scattering): Same.
8890         (isl_id_for_ssa_name): Same.
8891         (extract_affine_name): Same.
8892         (extract_affine_int): Same.
8893         (extract_affine): Same.
8894         (set_scop_parameter_dim): Use renamed member.
8895         (build_loop_iteration_domains): Same.
8896         (add_param_constraints): Same.
8897         (build_scop_iteration_domain): Same.
8898         (pdr_add_data_dimensions): Same.
8899         (build_poly_dr): Same.
8900         (build_scop_drs): Move declarations closer to assignment.
8901         (analyze_drs_in_stmts): Same.
8902         (insert_out_of_ssa_copy): Same.
8903         (insert_out_of_ssa_copy_on_edge): Same.
8904         (propagate_expr_outside_region): Same.
8905         (rewrite_phi_out_of_ssa): Same.
8906         (rewrite_degenerate_phi): Same.
8907         (rewrite_reductions_out_of_ssa): Same.
8908         (rewrite_cross_bb_scalar_dependence): Same.
8909         (handle_scalar_deps_crossing_scop_limits): Same.
8910         (rewrite_cross_bb_scalar_deps): Same.
8911         * graphite.c (graphite_transform_loops): Use renamed member.
8913 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
8915         PR c/65345
8916         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
8917         create_tmp_var_raw instead of create_tmp_var.
8919 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8921         PR c/65345
8922         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
8923         Use create_tmp_var_raw instead of create_tmp_var.
8925 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
8927         PR target/67849
8928         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
8929         split for upper-bank registers when target does not support
8930         AVX512VL.
8931         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
8932         split when target does not support AVX512VL.
8934 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
8936         PR c/65345
8937         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
8938         Adjust to use create_tmp_var_raw instead of create_tmp_var.
8940 2015-10-06  Nick Clifton  <nickc@redhat.com>
8942         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
8943         multiplication.
8945 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8947         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
8948         (case ${target}): Add znver1.
8949         * config/i386/cpuid.h(bit_CLZERO):  Define.
8950         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
8951         -march=native recognize znver1 processors.
8952         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8953         znver1, clzero def_and_undef.
8954         * config/i386/i386.c (struct processor_costs znver1_cost): New.
8955         (m_znver1): New definition.
8956         (m_AMD_MULTIPLE): Includes m_znver1.
8957         (processor_target_table): Add znver1 entry.
8958         (ix86_target_string) : Add clzero entry.
8959         (static const char *const cpu_names): Add znver1 entry.
8960         (ix86_option_override_internal): Add znver1 instruction sets.
8961         (PTA_CLZERO) :  New definition.
8962         (ix86_option_override_internal): Handle new clzerooption.
8963         (ix86_issue_rate): Add znver1.
8964         (ix86_adjust_cost): Add znver1.
8965         (ia32_multipass_dfa_lookahead): Add znver1.
8966         (has_dispatch): Add znver1.
8967         * config/i386/i386.h (TARGET_znver1): New definition.
8968         (TARGET_CLZERO): Define.
8969         (TARGET_CLZERO_P): Define.
8970         (struct ix86_size_cost): Add TARGET_ZNVER1.
8971         (enum processor_type): Add PROCESSOR_znver1.
8972         * config/i386/i386.md (define_attr "cpu"): Add znver1.
8973         (set_attr znver1_decode): New definitions for znver1.
8974         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
8975         (mclzero): New.
8976         * config/i386/mmx.md (set_attr znver1_decode): New definitions
8977         for znver1.
8978         * config/i386/sse.md (set_attr znver1_decode): Likewise.
8979         * config/i386/x86-tune.def:  Add znver1 tunings.
8980         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
8981         * doc/invoke.texi: Add details about znver1
8983 2015-10-06  Richard Biener  <rguenther@suse.de>
8985         PR tree-optimization/67859
8986         * tree-ssa-pre.c (create_expression_by_pieces): Properly
8987         discard not inserted stmts.
8989 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
8991         * doc/extend.texi (Template Instantiation): Reorder options and
8992         de-emphasize -frepo.
8993         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
8994         example instead of -frepo.
8996 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
8998         PR c/65345
8999         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9000         use create_tmp_var_raw rather than create_tmp_var.
9002 2015-10-06  Richard Biener  <rguenther@suse.de>
9004         * tree-vectorizer.h (vec_info): New base class for...
9005         (_loop_vec_info): ... this and ...
9006         (_bb_vec_info): ... this.
9007         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9008         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9009         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9010         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9011         vect_destroy_datarefs): Adjust interface to take a vec_info *
9012         rather than both a loop_vec_info and a bb_vec_info argument.
9013         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9014         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9015         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9016         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9017         accordingly.
9018         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9019         (destroy_loop_vec_info, vect_analyze_loop_2,
9020         vect_is_simple_reduction_1, get_initial_def_for_induction,
9021         vect_create_epilog_for_reduction, vectorizable_reduction,
9022         vectorizable_live_operation, vect_transform_loop): Adjust.
9023         * tree-vect-patterns.c (type_conversion_p,
9024         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9025         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9026         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9027         check_bool_pattern, vect_recog_bool_pattern,
9028         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9029         * tree-vect-slp.c (vect_get_and_check_slp_defs,
9030         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9031         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9032         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9033         (new_bb_vec_info): Initialize base classs.
9034         * tree-vect-stmts.c (record_stmt_cost, process_use,
9035         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9036         vectorizable_mask_load_store, vectorizable_call,
9037         vectorizable_simd_clone_call, vectorizable_conversion,
9038         vectorizable_assignment, vectorizable_shift,
9039         vectorizable_operation, vectorizable_store,
9040         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9041         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9042         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9044 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9046         PR c/65345
9047         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9048         create_tmp_var_raw rather than create_tmp_var.
9050 2015-10-05  Marek Polacek  <polacek@redhat.com>
9052         * tree-ssa-loop-im.c
9053         (move_computations_dom_walker::before_dom_children): Don't set
9054         SSA_NAME_ANTI_RANGE_P.
9055         * tree-ssa-phiopt.c (value_replacement): Likewise.
9057 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9058             Sebastian Pop  <s.pop@samsung.com>
9060         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9062 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9063             Sebastian Pop  <s.pop@samsung.com>
9065         * graphite-poly.c (new_gimple_poly_bb): ... here.
9066         (free_data_refs_aux): ... here.
9067         (free_gimple_poly_bb): ... here.
9068         (remove_gbbs_in_scop): ... here.
9069         (new_scop): Call new_sese.
9070         (free_scop): Call remove_gbbs_in_scop and free_sese.
9071         * graphite-poly.h (base_alias_pair): ... here.
9072         (new_gimple_poly_bb): Declare.
9073         (free_gimple_poly_bb): Declare.
9074         * graphite-scop-detection.c (parameter_index_in_region_1):
9075         (parameter_index_in_region): ... here.
9076         (scan_tree_for_params): ... here.
9077         (find_params_in_bb): ... here.
9078         (find_scop_parameters): ... here.
9079         (build_scops): Call find_scop_parameters.
9080         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9081         (free_scops): Move...
9082         (single_pred_cond_non_loop_exit): Move...
9083         (sese_dom_walker::before_dom_children): Move...
9084         (sese_dom_walker::after_dom_children): Move...
9085         (build_poly_scop): Move...
9086         * graphite-sese-to-poly.h (base_alias_pair): Move...
9087         * graphite.c (free_scops): ... here.
9089 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9090             Sebastian Pop  <s.pop@samsung.com>
9092         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9093         (trivially_empty_bb_p): Move...
9094         (same_close_phi_node): Move...
9095         (new_gimple_poly_bb): Move...
9096         (compare_bb_depths): Move...
9097         (graphite_sort_dominated_info): Move...
9098         (remove_duplicate_close_phi): Move...
9099         (make_close_phi_nodes_unique): Move...
9100         (canonicalize_loop_closed_ssa): Move...
9101         (canonicalize_loop_closed_ssa_form): Move...
9102         (loop_ivs_can_be_represented): Move...
9103         (single_pred_cond_non_loop_exit): Move...
9104         (graphite_can_represent_init): Move...
9105         (graphite_can_represent_scev): Move...
9106         (stmt_has_simple_data_refs_p): Move...
9107         (stmt_has_side_effects):  Move...
9108         (graphite_can_represent_stmt): Move...
9109         (scop_detection): ... here.
9110         (sese_dom_walker): ... and here.
9111         (build_scops): Call all moved functions.
9112         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9113         (all_non_dominated_preds_marked_p): Move...
9114         (build_scop_bbs_1): Move...
9115         (build_scop_bbs): Move...
9116         (set_scop_parameter_dim): Move...
9117         (nb_pbbs_in_loops): Move...
9118         (build_poly_scop): Do not call all the moved functions.
9120 2015-10-05  Martin Jambor  <mjambor@suse.cz>
9121             Jan Hubicka  <hubicka@ucw.cz>
9123         * ipa-cp.c (ipcp_alignment_lattice): New type.
9124         (ipcp_param_lattices): Use the above to represent alignment.
9125         (ipcp_alignment_lattice::print): New function.
9126         (print_all_lattices): Use it to print alignment information.
9127         (ipcp_alignment_lattice::top_p): New function.
9128         (ipcp_alignment_lattice::bottom_p): Likewise.
9129         (ipcp_alignment_lattice::set_to_bottom): Likewise.
9130         (ipcp_alignment_lattice::meet_with_1): Likewise.
9131         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9132         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9133         (initialize_node_lattices): Likewise.
9134         (propagate_alignment_accross_jump_function): Work with the new class
9135         for alignment lattices.
9136         (propagate_constants_accross_call): Pass only the alignment lattice to
9137         propagate_alignment_accross_jump_function.
9138         (ipcp_store_alignment_results): Work with the new class for alignment
9139         lattices.
9141 2015-10-05  Marek Polacek  <polacek@redhat.com>
9143         PR tree-optimization/67821
9144         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9146 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
9148         PR other/65021
9149         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9150         function to...
9151         (mkoffload_cleanup): ... this.  Adjust all users.
9152         (maybe_unlink): Look at save_temps and verbose flags instead of
9153         debug flag.
9154         (main): Parse "-save-temps" flag.
9155         (generate_target_descr_file, generate_target_offloadend_file)
9156         (generate_host_descr_file, prepare_target_image): Pass it on.
9157         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9158         (mkoffload_cleanup): New function.
9159         (maybe_unlink): Look at save_temps and verbose flags instead of
9160         debug flag.
9161         (main): Instead of calling utils_cleanup, register atexit handler
9162         for mkoffload_cleanup.
9163         (main): Parse "-save-temps" flag.
9164         (compile_native, main): Pass it on.
9165         * lto-wrapper.c (compile_offload_image): Likewise.
9167 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9169         * gimple.h (gimple_op_ptr): Require a non const gimple *.
9170         (gimple_assign_lhs_ptr): Likewise.
9171         (gimple_assign_rhs1_ptr): Likewise.
9172         (gimple_assign_rhs2_ptr): Likewise.
9173         (gimple_assign_rhs3_ptr): Likewise.
9174         (gimple_call_lhs_ptr): Likewise.
9175         (gimple_call_fn_ptr): Likewise.
9176         (gimple_call_chain_ptr): Likewise.
9177                 (gimple_call_arg_ptr): Likewise.
9178                 (gimple_cond_lhs_ptr): Likewise.
9179         (gimple_cond_rhs_ptr): Likewise.
9180         (gimple_switch_index_ptr): Likewise.
9181         (gimple_return_retval_ptr): Likewise.
9183 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9185         * gimple.h (gimple_asm_input_op_ptr): Remove.
9186         (gimple_asm_output_op_ptr): Likewise.
9188 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9190         * gimple.h (gimple_location_ptr): Remove.
9191         * tree-vrp.c (check_all_array_refs): Adjust.
9193 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9195         * tree-ssa-operands.c (build_uses): store tree * instead of
9196         tree.
9197         (finalize_ssa_uses): Adjust.
9198         (append_use): Likewise.
9199         (verify_ssa_operands): Likewise.
9201 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9203         * real.h (build_real_truncate): Declare.
9204         * tree.c (build_real_truncate): New function.
9205         (strip_float_extensions): Use it.
9206         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9207         (fold_builtin_hypot, fold_builtin_pow): Likewise.
9208         * match.pd: Likewise.
9210 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9211            Jiong Wang  <jiong.wang@arm.com>
9213         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9215 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9217         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9218         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9219         (aarch64_print_operand, aarch64_float_const_representable_p)
9220         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9221         instead of REAL_VALUE_FROM_CONST_DOUBLE.
9222         * config/arc/arc.c (arc_print_operand): Likewise.
9223         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9224         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9225         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9226         Likewise.
9227         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9228         (consttable_16): Likewise.
9229         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9230         * config/avr/avr.c (avr_print_operand): Likewise.
9231         * config/bfin/bfin.md: Likewise (in a define_split).
9232         * config/c6x/c6x.md: Likewise (in a define_split).
9233         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9234         (cr16_print_operand): Likewise.
9235         * config/cris/cris.c (cris_print_operand): Likewise.
9236         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9237         * config/fr30/fr30.c (fr30_print_operand): Likewise.
9238         (fr30_const_double_is_zero): Likewise.
9239         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9240         * config/frv/frv.md: Likewise (in a define_split).
9241         * config/frv/predicates.md (int_2word_operand): Likewise.
9242         * config/h8300/h8300.c (h8300_print_operand): Likewise.
9243         * config/i386/i386.c (standard_80387_constant_p): Likewise.
9244         (ix86_print_operand, ix86_split_to_parts): Likewise.
9245         * config/i386/i386.md: Likewise (in a define_split).
9246         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9247         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9248         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9249         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9250         (print_operand): Likewise.
9251         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9252         * config/mep/mep.md: Likewise (in define_split).
9253         * config/microblaze/microblaze.c (microblaze_const_double_ok)
9254         (print_operand): Likewise.
9255         * config/mips/mips.md (consttable_float): Likewise.
9256         * config/mmix/mmix.c (mmix_intval): Likewise.
9257         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9258         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9259         * config/pa/pa.c (pa_singlemove_string): Likewise.
9260         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9261         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9262         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9263         (output_toc): Likewise.
9264         * config/rs6000/rs6000.md: Likewise (in define_splits).
9265         * config/rx/rx.c (rx_print_operand): Likewise.
9266         * config/s390/s390.c (s390_output_pool_entry): Likewise.
9267         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9268         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9269         (and also in define_splits).
9270         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9271         (fp_high_losum_p): Likewise.
9272         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9273         (*movsf_high): Likewise.
9274         * config/spu/spu.c (const_double_to_hwint): Likewise.
9275         * config/v850/v850.c (const_double_split): Likewise.
9276         * config/vax/vax.c (vax_float_literal): Likewise.
9277         * config/visium/visium.c (visium_expand_copysign): Likewise.
9278         * config/visium/visium.md: Likewise (in define_split).
9279         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9280         * config/xtensa/xtensa.c (print_operand): Likewise.
9281         (xtensa_output_literal): Likewise.
9282         * cprop.c (implicit_set_cond_p): Likewise.
9283         * dwarf2out.c (insert_float): Likewise.
9284         * expmed.c (expand_mult, make_tree): Likewise.
9285         * expr.c (compress_float_constant): Likewise.
9286         * rtlanal.c (split_double): Likewise.
9287         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9288         (simplify_const_unary_operation, simplify_binary_operation_1)
9289         (simplify_const_binary_operation): Likewise.
9290         (simplify_const_relational_operation): Likewise.
9291         * varasm.c (output_constant_pool_2): Likewise.
9293 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9295         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9296         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9297         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9298         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9299         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9300         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9301         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9302         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9303         (ix86_emit_swsqrtsf): Likewise.
9304         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9305         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9306         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9307         * config/pa/pa.c (pa_expand_builtin): Likewise.
9308         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9309         (rs6000_scale_v2df): Likewise.
9310         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9311         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9312         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9313         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9314         (vec_ctul): Likewise.
9315         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9316         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9317         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9318         * cse.c (fold_rtx): Likewise.
9319         * emit-rtl.c (immed_double_const): Likewise (in comments).
9320         (init_emit_once): Likewise.
9321         * expr.c (compress_float_constant, expand_expr_real_1)
9322         (const_vector_from_tree): Likewise.
9323         * optabs.c (expand_float, expand_fix): Likewise.
9324         * reg-stack.c (reg_to_stack): Likewise.
9325         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9326         (simplify_const_unary_operation, simplify_binary_operation_1)
9327         (simplify_const_binary_operation, simplify_relational_operation)
9328         (simplify_immed_subreg): Likewise.
9330 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9332         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9333         * doc/tm.texi: Regenerate.
9334         * real.h (REAL_ARITHMETIC): Delete.
9335         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9336         (ix86_expand_round_sse4): Use real_arithmetic instead of
9337         REAL_ARITHMETIC.
9338         * config/i386/sse.md (round<mode>2): Likewise.
9339         * rtl.h (rtx_to_tree_code): Likewise (in comment).
9340         * explow.c (rtx_to_tree_code): Likewise (in comment).
9341         * match.pd: Likewise.
9342         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9343         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9344         (expand_pow_as_sqrts): Likewise.
9345         * tree-pretty-print.c (dump_generic_node): Remove code that
9346         was conditional on REAL_ARITHMETIC being undefined.
9348 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9350         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9351         * doc/tm.texi: Regenerate.
9352         * real.h (real_less): Declare.
9353         (REAL_VALUES_LESS): Delete.
9354         * real.c (real_less): New function.
9355         (real_compare): Use it.
9356         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9357         of REAL_VALUES_LESS.
9358         * config/microblaze/microblaze.c (microblaze_const_double_ok):
9359         Likewise.
9360         * fold-const.c (fold_convert_const_int_from_real): Likewise.
9361         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9362         (simplify_const_relational_operation): Likewise.
9363         * tree-call-cdce.c (check_pow): Likewise.
9364         (gen_conditions_for_pow_cst_base): Likewise.
9366 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9368         * real.h (REAL_VALUES_IDENTICAL): Delete.
9369         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9370         instead of REAL_VALUES_IDENTICAL.
9371         * fold-const.c (operand_equal_p): Likewise.
9372         * ipa-icf.c (sem_variable::equals): Likewise.
9373         * tree-complex.c (some_nonzerop): Likewise.
9374         (expand_complex_multiplication): Likewise.
9375         * tree.c (simple_cst_equal): Likewise.
9376         * varasm.c (compare_constant): Likewise.
9378 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9380         * real.h (real_equal): Declare.
9381         (REAL_VALUES_EQUAL): Delete.
9382         * real.c (real_equal): New function.
9383         (real_compare): Use it.
9384         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9385         * doc/tm.texi: Regenerate.
9386         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9387         real_equal instead of REAL_VALUES_EQUAL.
9388         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9389         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9390         (fp_const_from_val): Likewise.
9391         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9392         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9393         (floating_exact_log2): Likewise.
9394         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9395         * config/vax/vax.c (vax_float_literal): Likewise.
9396         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9397         * cprop.c (implicit_set_cond_p): Likewise.
9398         * expmed.c (expand_mult): Likewise.
9399         * fold-const.c (const_binop): Likewise.
9400         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9401         (simplify_const_binary_operation): Likewise.
9402         (simplify_const_relational_operation): Likewise.
9403         * tree-call-cdce.c (check_pow): Likewise.
9404         (gen_conditions_for_pow_cst_base): Likewise.
9405         * tree-inline.c (estimate_num_insns): Likewise.
9406         * tree-ssa-dom.c (record_equality): Likewise.
9407         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9408         (gimple_expand_builtin_pow): Likewise.
9409         (pass_optimize_widening_mul::execute): Likewise.
9410         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9411         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9412         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9414 2015-10-05  Richard Biener  <rguenther@suse.de>
9416         PR ipa/67783
9417         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9418         consider loop header PHI defs as IVs.
9420 2015-10-05  Richard Biener  <rguenther@suse.de>
9422         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9423         call handling ...
9424         (create_expression_by_pieces): ... here and build GIMPLE
9425         calls directly.  Use gimple_build API and avoid force_gimple_operand.
9426         (insert_into_preds_of_block): Simplify.
9427         (do_regular_insertion): Add comment.
9429 2015-10-04  Jason Merrill  <jason@redhat.com>
9431         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9433 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
9435         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9436         check for general register.
9437         (ix86_emit_save_regs): Ditto.
9438         (ix86_emit_save_regs_using_mov): Ditto.
9439         (ix86_emit_restore_regs_using_pop): Ditto.
9440         (ix86_emit_restore_regs_using_mov): Ditto.
9442 2015-10-03  Marek Polacek  <polacek@redhat.com>
9444         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
9445         (insn-dfatab.o): Likewise.
9447 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
9449         * config.gcc (xtensa*-*-uclinux*): New configuration.
9450         * config/xtensa/uclinux.h: New file.
9451         * config/xtensa/uclinux.opt: New file.
9453 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
9455         * doc/cpp.texi (Standard Predefined Macros): Document value of
9456         __cplusplus for C++14.
9458 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
9460         * gcc.c (process_command): Use spec_machine rather than
9461         spec_host_machine to build tooldir_prefix2.
9463 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
9464             Bernd Schmidt  <bernds@codesourcery.com>
9466         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
9467         (Token, Stmt): Remove structs.
9468         (decls, vars, fns): Remove variables.
9469         (alloc_comment, append_stmt, is_keyword): Remove macros.
9470         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
9471         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
9472         (parse_init, parse_file): Remove functions.
9473         (read_file): Accept a pointer to a length and store into it.
9474         (process): Don't try to parse the input file, just write it out as
9475         a string, but looking for maps.  Also write out the length.
9476         (main): Don't use "-S" to compile PTX code.
9478 2015-10-02  Jeff Law  <law@redhat.com>
9480         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
9481         fixups.
9483 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
9485         PR target/67822
9486         * config/nvptx/mkoffload.c (main): Scan the argument vector for
9487         -fopenmp, and skip generating an offloading image if specified.
9489 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
9491         * system.h (ROUND_UP): New macro definition.
9492         (ROUND_DOWN): Ditto.
9493         * ggc-page.c (ROUND_UP): Remove local macro definition.
9494         (PAGE_ALIGN): Implement using ROUND_UP macro.
9496         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
9497         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
9498         to align values.
9499         (ix86_compute_frame_layout): Ditto.
9500         (ix86_expand_prologue): Ditto.
9501         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
9502         to round down values.
9503         (expand_set_or_movmem_via_rep): Ditto.
9505 2015-10-02  Marek Polacek  <polacek@redhat.com>
9507         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
9509 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
9511         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
9512         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
9513         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
9514         (free_gimple_bb): Renamed free_gimple_poly_bb.
9515         (try_generate_gimple_bb): Hoist loop invariant code.
9516         (analyze_drs_in_stmts): Same.
9517         (build_scop_drs): Call renamed functions.
9518         (new_pbb_from_pbb): Same.
9519         (scop_ivs_can_be_represented): Delete as functionality now moved to
9520         graphite-scop-detection.c
9521         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
9523 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
9525         * graphite-scop-detection.c (stmt_has_side_effects): New function
9526           outlined from stmt_simple_for_scop_p.
9527         (graphite_can_represent_stmt): Same.
9528         (stmt_simple_for_scop_p): Moved code out of this function for better
9529         readability.
9531 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
9533         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
9534         F_AVX512IFMA.
9535         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
9537 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9539         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
9541 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
9543         PR rtl-optimization/67756
9544         * lra-constraints.c (match_reload): Add a new parameter.  Use it
9545         for creating a pseudo with the same value.
9546         (curr_insn_transform): Pass a new argument to match_reload.
9548 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
9550         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
9551         (expand_vec_perm_even_odd_1): Handle V64QImode.
9552         (ix86_expand_vec_perm_const_1): Try expansion with
9553         expand_vec_perm_even_odd_trunc as well.
9554         * config/i386/sse.md (VI124_AVX512F): Rename to ...
9555         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
9556         to V54QI.
9557         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
9558         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
9559         to V32HI and V16SI.
9560         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
9561         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
9562         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
9563         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
9564         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
9565         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
9567 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
9569         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
9570         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
9572 2015-10-02  Jason Merrill  <jason@redhat.com>
9574         PR c/59218
9575         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
9576         (diagnose_tm_1_op): Also diagnose volatile accesses in
9577         transaction_safe function.
9579 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
9581         * system.h (malloc.h): Don't include obsolete header.
9583 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9585         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
9586         (TLS_SECTION_ASM_FLAG): Delete.
9588 2015-10-02  Marek Polacek  <polacek@redhat.com>
9590         PR c/64249
9591         * doc/invoke.texi: Document -Wduplicated-cond.
9592         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
9593         (insn-dfatab.o): Likewise.
9594         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
9595         warning.
9597 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
9599         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
9600         sequences.
9602 2015-10-02  Renlin Li  <renlin.li@arm.com>
9604         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
9606 2015-10-02  Renlin Li  <renlin.li@arm.com>
9608         PR target/66776
9609         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
9611 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9613         PR rtl-optimization/67786
9614         PR rtl-optimization/67787
9615         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
9616         it modifies a reg used in the condition calculation.
9618 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
9620         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
9621         alternatives for reads from memory and moves from general-purpose
9622         registers.
9623         (*aarch64_combinez_be<mode>): Likewise.
9625 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
9627         PR target/51726
9628         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
9629         selectany within this function without need to keep attribute.
9630         (i386_pe_encode_section_info): Remove selectany-code.
9632 2015-10-02  Richard Biener  <rguenther@suse.de>
9634         * tree-ssa-sccvn.c (has_VN_INFO): New function.
9635         (free_scc_vn): Use it.
9636         (visit_use): Remove dead code and refactor to use gassign
9637         and use less indentation.
9639 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9641         PR target/67788
9642         PR target/67789
9643         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
9644         (rs6000_cannot_copy_insn_p): New function.
9645         * config/rs6000/rs6000.md (cannot_copy): New attribute.
9646         (load_toc_v4_PIC_1_normal): Set cannot_copy.
9647         (load_toc_v4_PIC_1_476): Ditto.
9649 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
9651         * graphite-scop-detection.c (struct sese_l): New conversion constructor
9652         so that this type can be pushed into a vec.
9653         (class scop_builder): use sese_l to collect scops.
9654         (get_scops): New getter function.
9655         (remove_intersecting_scops): Use sese_l instead of scops_p.
9656         (intersects): Same.
9657         (add_scop): Same.
9658         (subsumes): Same.
9659         (remove_subscops): Same.
9660         (build_scops): Add scops to vec<scops_p> once all the scops have been
9661         detected.
9663 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
9665         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9666         Renamed type from gimple_bb_p to gimple_poly_bb_p.
9667         (translate_isl_ast_node_user): Same.
9668         * graphite-poly.c (new_poly_bb): Same.
9669         * graphite-poly.h (gbb_from_bb): Same.
9670         * sese.h: Same.
9671         * graphite-sese-to-poly.c (new_gimple_bb):
9672         gimple_bb_p -> gimple_poly_bb_p
9673         (build_scop_scattering): Same.
9674         (find_params_in_bb): Same.
9675         (add_conditions_to_domain): Same.
9676         (sese_dom_walker::before_dom_children): Same.
9677         (analyze_drs_in_stmts): Same.
9678         (new_pbb_from_pbb): Same.
9679         (free_data_refs_aux): New pointer to type base_alias_pair.
9680         * graphite-sese-to-poly.h: Same.
9681         * sese.c (if_region_set_false_region): Fixed Indentation.
9682         (move_sese_in_condition): Same.
9684 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
9685             Aditya Kumar  <aditya.k7@samsung.com>
9687         PR tree-optimization/66980
9688         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
9689         when data reference analysis has failed.
9691 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
9692             Aditya Kumar  <aditya.k7@samsung.com>
9694         PR tree-optimization/67754
9695         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
9696         scev analysis on the same loop nest as analyze_drs_in_stmts.
9697         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
9698         renamed...
9699         (try_generate_gimple_bb): Call outermost_loop_in_sese.
9700         (analyze_drs_in_stmts): Same.
9701         * sese.c (outermost_loop_in_sese): ...here.
9703 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
9704             Aditya Kumar  <aditya.k7@samsung.com>
9706         PR tree-optimization/67754
9707         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
9708         recursion on the inner loops.
9710 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9712         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
9713         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
9714         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
9715         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
9716         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
9718 2015-10-01  Marek Polacek  <polacek@redhat.com>
9720         PR c/65345
9721         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
9722         create_tmp_var_raw rather than create_tmp_var.
9724 2015-10-01  Marek Polacek  <polacek@redhat.com>
9726         PR tree-optimization/67769
9727         * tree-ssa-phiopt.c (conditional_replacement): Call
9728         reset_flow_sensitive_info_in_bb.
9729         (minmax_replacement): Likewise.
9730         (abs_replacement): Likewise.
9732 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
9734         * builtins.c: Don't include gomp-constants.h.
9735         (fold_builtin_1): Don't fold acc_on_device here.
9736         * gimple-fold.c: Include gomp-constants.h.
9737         (gimple_fold_builtin_acc_on_device): New.
9738         (gimple_fold_builtin): Call it.
9740 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9742         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
9743         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
9745 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
9747         * config/arm/aarch-common-protos.h
9748         (aarch_accumulator_forwarding): New.
9749         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9750         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
9751         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
9752         * config/arm/cortex-a53.md: Rewrite.
9754 2015-10-01  Richard Biener  <rguenther@suse.de>
9756         * gimple-match.h (mprts_hook): Declare.
9757         * gimple-match.head.c (mprts_hook): Define.
9758         (maybe_push_res_to_seq): Use new hook.
9759         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9760         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
9761         (vn_ssa_aux::has_constants): Remove.
9762         * tree-ssa-sccvn.c: Include gimple-match.h.
9763         (VN_INFO_GET): Assert we don't re-use SSA names.
9764         (vn_get_expr_for): Remove.
9765         (expr_has_constants): Likewise.
9766         (stmt_has_constants): Likewise.
9767         (simplify_binary_expression): Likewise.
9768         (simplify_unary_expression): Likewise.
9769         (vn_lookup_simplify_result): New hook.
9770         (visit_copy): Adjust.
9771         (visit_reference_op_call): Likewise.
9772         (visit_phi): Likewise.
9773         (visit_use): Likewise.
9774         (process_scc): Likewise.
9775         (init_scc_vn): Likewise.
9776         (visit_reference_op_load): Likewise.  Use match-and-simplify and
9777         a gimple seq for inserted expressions.
9778         (try_to_simplify): Remove GENERIC stmt combining code.
9779         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
9780         * tree-ssa-pre.c (eliminate_insert): Adjust.
9781         (eliminate_dom_walker::before_dom_children): Likewise.
9783 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9785         * doc/invoke.texi (Optimization Options): Add
9786         -freorder-blocks-algorithm=.
9787         (Optimize Options) <-O>: Add -freorder-blocks.
9788         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
9789         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
9790         <-freorder-blocks>: Also enabled at levels -O and -Os.
9791         <-freorder-blocks-algorithm=>: Document new option.
9793 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9795         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
9796         with flag_reorder_blocks_algorithm.
9797         * common.opt (freorder-blocks-algorithm=): New flag.
9798         (reorder_blocks_algorithm): New enum.
9799         * flag-types.h (reorder_blocks_algorithm): New enum.
9800         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
9801         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
9803 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9805         * bb-reorder.c: Add intro comment.
9806         (reorder_basic_blocks_software_trace_cache): Print a header to
9807         the dump file.
9808         (edge_order): New function.
9809         (reorder_basic_blocks_simple): New function.
9810         (reorder_basic_blocks): Choose between the STC and the simple
9811         algorithms (always choose the former).
9813 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
9815         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
9816         function, factored out from ...
9817         (reorder_basic_blocks): ... here.
9819 2015-10-01  Tom de Vries  <tom@codesourcery.com>
9821         * tree-cfg.c (dump_function_to_file): Dump function attributes using
9822         __attribute__(()) string.  Move dumping of function attributes to before
9823         function name.
9825 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
9827         PR target/66870
9828         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9829         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
9830         based on gold linker version.
9831         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
9832         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
9833         * configure, config.in: Regenerate.
9835 2015-10-01  Alan Modra  <amodra@gmail.com>
9837         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
9838         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
9839         (rs6000_output_mi_thunk): Likewise.
9841 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
9843         * config/nvptx/mkoffload.c (process): Change offload data format.
9845 2015-09-30  Jeff Law  <law@redhat.com>
9847         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
9848         with constant conditions.
9849         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
9850         (remove_ctrl_stmt_and_useless_edges): No longer static.
9851         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
9852         (remove_ctrl_stmt_and_useless_edges): Likewise.
9854 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
9855             Cesar Philippidis  <cesar@codesourcery.com>
9857         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
9858         (TARGET_GOACC_VALIDATE_DIMS): Override.
9859         * target.def (TARGET_GOACC): New target hook prefix.
9860         (validate_dims): New hook.
9861         * targhooks.h (default_goacc_validate_dims): New.
9862         * omp-low.c (oacc_validate_dims): New.
9863         (execute_oacc_device_lower): New.
9864         (default_goacc_validate_dims): New.
9865         (pass_data_oacc_device_lower): New.
9866         (pass_oacc_device_lower): New pass.
9867         (make_pass_oacc_device_lower): New.
9868         * tree-pass.h (make_pass_oacc_device_lower): Declare.
9869         * passes.def (pass_oacc_device_lower): Add it.
9870         * doc/tm.texi: Rebuilt.
9871         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
9872         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
9874 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9876         PR rtl-optimization/67037
9877         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
9879 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
9881         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
9882         * passes.c: Include tree-ssanames.h.
9883         (execute_function_todo): Flush the pending free SSA_NAMEs after
9884         eliminating unreachable basic blocks.
9885         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
9886         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
9887         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
9888         (flush_ssanames_freelist): New function.
9889         (release_ssaname_fn): Put released names on the queue.
9890         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
9891         * tree-ssanames.h (flush_ssanames_freelist): Declare.
9893 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9895         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
9896         (generate_target_descr_file, generate_target_offloadend_file)
9897         (generate_host_descr_file, prepare_target_image): Pass it on.
9898         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
9899         (compile_native, main): Pass it on.
9900         * lto-wrapper.c (compile_offload_image): Likewise.
9902 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9903             Ilya Verbin  <ilya.verbin@intel.com>
9904             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9906         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
9907         (prepare_target_image, main): Refactor argv building to use
9908         obstacks.
9910 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9912         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
9913         * config/spu/spu.c (spu_expand_atomic_op): New function.
9914         * config/spu/spu.md (AINT): New mode iterator.
9915         (ATOMIC): New code iterator.
9916         (atomic_name, atomic_pred): New code predicates.
9917         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
9918         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
9919         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
9920         "atomic_<atomic_name>_fetch<mode>"): Likewise.
9922 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
9924         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
9925         debug insns.
9926         (scalar_chain::convert_reg): Likewise.
9928 2015-09-30  Richard Biener  <rguenther@suse.de>
9930         * builtins.c: Add comment that no new simplifications should
9931         be added here.
9933 2015-09-30  Marek Polacek  <polacek@redhat.com>
9935         PR tree-optimization/67690
9936         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
9937         reset_flow_sensitive_info_in_bb.
9938         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
9939         * tree-ssanames.c: Include "gimple-iterator.h".
9940         (reset_flow_sensitive_info_in_bb): New function.
9941         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
9943 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9945         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
9946         variable, replacing it with...
9947         (offload_abi): ... this new variable.  Adjust all users.
9948         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
9950 2015-09-30  Matthias Klose  <doko@ubuntu.com>
9952         * configure.ac: Remove extraneous ;;.
9953         * configure: Regenerate.
9955 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
9957         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
9958         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
9959         predicate, disallow register for operand 2.
9961 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
9963         * graphite-dependences.c (scop_get_dependences): Moved in down
9964         in order to be visible to its caller.
9965         * graphite-poly.h: Removed compute_deps, and extend_schedule.
9967 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
9968             Aditya Kumar  <aditya.k7@samsung.com>
9970         PR tree-optimization/67754
9971         * graphite-optimize-isl.c (optimize_isl): Call
9972         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
9974 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9976         * builtins.c (expand_builtin_acc_on_device): Delete.
9977         (expand_builtin): Don't call it.
9978         (fold_builtin_1): Fold acc_on_device.
9980 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
9982         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
9983         (ix86_nsaved_sseregs): Likewise.
9985 2015-09-29  Jeff Law  <law@redhat.com>
9987         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
9988         computation of unused value.
9990         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
9991         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
9992         inline macro expansion.
9994         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
9996         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
9997         (gen_shl_sext): Likewise.
9998         * config/sh/sh.md (divsi3): Likewise.
9999         (imm->ext_dest_operand splitter): Likewise.
10001 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10002             Aditya Kumar  <aditya.k7@samsung.com>
10004         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10005         (nb_data_writes_in_bb): Remove.
10006         (split_pbb): Remove.
10007         (split_reduction_stmt): Remove.
10008         (is_reduction_operation_p): Remove.
10009         (phi_contains_arg): Remove.
10010         (follow_ssa_with_commutative_ops): Remove.
10011         (detect_commutative_reduction_arg): Remove.
10012         (detect_commutative_reduction_assign): Remove.
10013         (follow_inital_value_to_phi): Remove.
10014         (edge_initial_value_for_loop_phi): Remove.
10015         (initial_value_for_loop_phi): Remove.
10016         (used_outside_reduction): Remove.
10017         (detect_commutative_reduction): Remove.
10018         (translate_scalar_reduction_to_array_for_stmt): Remove.
10019         (remove_phi): Remove.
10020         (dr_indices_valid_in_loop): Remove.
10021         (close_phi_written_to_memory): Remove.
10022         (translate_scalar_reduction_to_array): Remove.
10023         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10024         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10025         (rewrite_commutative_reductions_out_of_ssa): Remove.
10026         (build_poly_scop): Remove call to
10027         rewrite_commutative_reductions_out_of_ssa.
10029 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
10031         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10032         Add new insn types for vector load and store pairs.
10033         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10034         types "neon_ldp{,_q}".
10035         * config/arm/cortex-a57.md (neon_load_c): Add insn types
10036         "neon_ldp{,_q}".
10037         (neon_store_complex): Add insn types "neon_stp{,_q}".
10038         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10039         "neon_{ldp,stp}_q".
10041 2015-09-29  Jeff Law  <law@redhat.com>
10043         * config/rx/constraints.md (Int08): Fix undefined left shift
10044         behaviour.
10045         (Sint08, Sint16, Sint24): Likewise.
10046         * config/rx/rx.c (rx_get_stack_layout): Likewise.
10048         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10049         behaviour.
10051         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10052         left shift behaviour.
10053         * config/msp430/constraints.md ('L' constraint): Similarly.
10054         ('Ys' constraint): Similarly.
10056 2015-09-29  Richard Biener  <rguenther@suse.de>
10058         PR tree-optimization/67170
10059         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10060         the translate function pointer parameter to get the
10061         bool whether to disambiguate only by reference.
10062         (walk_non_aliased_vuses): Likewise.
10063         * tree-ssa-alias.c (maybe_skip_until): Adjust.
10064         (get_continuation_for_phi_1): Likewise.
10065         (get_continuation_for_phi): Likewise.
10066         (walk_non_aliased_vuses): Likewise.
10067         * tree-ssa-sccvn.c (const_parms): New bitmap.
10068         (vn_reference_lookup_3): Adjust for interface change.
10069         Disambiguate parameters pointing to readonly memory.
10070         (free_scc_vn): Free const_parms.
10071         (run_scc_vn): Initialize const_parms from a fn spec attribute.
10073 2015-09-29  Richard Biener  <rguenther@suse.de>
10075         PR tree-optimization/67741
10076         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10077         builtin calls with correct signature.
10079 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
10081         PR target/65105
10082         * config/i386/i386.c: Include dbgcnt.h.
10083         (has_non_address_hard_reg): New.
10084         (convertible_comparison_p): New.
10085         (scalar_to_vector_candidate_p): New.
10086         (remove_non_convertible_regs): New.
10087         (scalar_chain): New.
10088         (scalar_chain::scalar_chain): New.
10089         (scalar_chain::~scalar_chain): New.
10090         (scalar_chain::add_to_queue): New.
10091         (scalar_chain::mark_dual_mode_def): New.
10092         (scalar_chain::analyze_register_chain): New.
10093         (scalar_chain::add_insn): New.
10094         (scalar_chain::build): New.
10095         (scalar_chain::compute_convert_gain): New.
10096         (scalar_chain::replace_with_subreg): New.
10097         (scalar_chain::replace_with_subreg_in_insn): New.
10098         (scalar_chain::emit_conversion_insns): New.
10099         (scalar_chain::make_vector_copies): New.
10100         (scalar_chain::convert_reg): New.
10101         (scalar_chain::convert_op): New.
10102         (scalar_chain::convert_insn): New.
10103         (scalar_chain::convert): New.
10104         (convert_scalars_to_vector): New.
10105         (pass_data_stv): New.
10106         (pass_stv): New.
10107         (make_pass_stv): New.
10108         (ix86_option_override): Created and register stv pass.
10109         (flag_opts): Add -mstv.
10110         (ix86_option_override_internal): Likewise.
10111         * config/i386/i386.md (SWIM1248x): New.
10112         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10113         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10114         (*anddi3_doubleword): New.
10115         (*zext<mode>_doubleword): New.
10116         (*zextsi_doubleword): New.
10117         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10118         (*<code>di3_doubleword): New.
10119         * config/i386/i386.opt (mstv): New.
10120         * dbgcnt.def (stv_conversion): New.
10122 2015-09-29  Tom de Vries  <tom@codesourcery.com>
10124         * tree-cfg.c (dump_function_to_file): Dump function attributes.
10126 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10128         PR target/67716
10129         * config/sh/sh.c (sh_override_options_after_change): New.
10130         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10131         (sh_option_override): Move align_loops, align_jumps and
10132         align_functions handling into sh_override_options_after_change.
10134 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10136         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10137         (nvptx_record_offload_symbol): Record function execution geometry.
10138         * config/nvptx/mkoffload.c (process): Include launch geometry in
10139         function data.
10140         * omp-low.c (oacc_launch_pack): New.
10141         (replace_oacc_fn_attrib): New.
10142         (set_oacc_fn_attrib): New.
10143         (get_oacc_fn_attrib): New.
10144         (expand_omp_target): Create keyed varargs for GOACC_parallel call
10145         generation.
10146         * omp-low.h (get_oacc_fn_attrib): Declare.
10147         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10148         (DEF_FUNCTION_TYPE_VAR_11): Delete.
10149         * tree.h (OMP_CLAUSE_EXPR): New.
10150         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10152 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10153             Sebastian Pop  <s.pop@samsung.com>
10155         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10157 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10158             Sebastian Pop  <s.pop@samsung.com>
10160         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10161         * graphite-scop-detection.c (struct sese_l): New type.
10162         (get_entry_bb): API for getting entry bb of SESE.
10163         (get_exit_bb): API for getting exit bb of SESE.
10164         (class debug_printer): New type.  Simple printer in debug mode.
10165         (trivially_empty_bb_p): New.  Return true when BB is empty or
10166         contains only debug instructions.
10167         (graphite_can_represent_expr): Call scalar_evoution_in_region
10168         instead of analyze_scalar_evolution.  Pass in scop instead of only
10169         the scop entry.
10170         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10171         scop entry.
10172         (stmt_simple_for_scop_p): Same.
10173         (harmful_stmt_in_bb): Same.
10174         (graphite_can_represent_loop): Deleted.
10175         (struct scopdet_info): Deleted.
10176         (scopdet_basic_block_info): Deleted.
10177         (build_scops_1): Deleted.
10178         (bb_in_sd_region): Deleted.
10179         (find_single_entry_edge): Deleted.
10180         (find_single_exit_edge): Deleted.
10181         (create_single_entry_edge): Deleted.
10182         (sd_region_without_exit): Deleted.
10183         (create_single_exit_edge): Deleted.
10184         (unmark_exit_edges): Deleted.
10185         (mark_exit_edges): Deleted.
10186         (create_sese_edges): Deleted.
10187         (build_graphite_scops): Deleted.
10188         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10189         (build_scops): Use the new scop_builder to build scops.
10190         (dot_all_scops_1): Use the new pretty printer.  Print loop father
10191         as well.
10192         (loop_body_is_valid_scop): New.  Return true if loop body is a
10193         valid scop.
10194         (class scop_builder): New.  Builds SCoPs for polyhedral
10195         optimizations.
10196         (scop_builder): New constructor.
10197         (static sese_l invalid_sese): sese_l with invalid edges.
10198         (get_sese): Get an sese (from a loop) if possible, invalid_sese
10199         otherwise.
10200         (get_nearest_dom_with_single_entry): Get nearest dominator of a
10201         basic_block with single entry.  Return NULL if we get to the
10202         beginning of a function.
10203         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10204         a basic_block with single exit.  Return NULL if we get to the
10205         beginning of a function.
10206         (print_sese): Pretty-print SESE.
10207         (merge_sese): Merge two SESEs if possible and return the new SESE.
10208         (build_scop_depth): Start building the SCoP within a loop nest.
10209         (build_scop_breadth): Start building the SCoP at a single loop
10210         depth.  Merge adjacent SESEs if valid.
10211         (can_represent_loop_1): Returns true if Graphite can represent
10212         loop inside SCoP.  Helper for can_represent_loop.
10213         (can_represent_loop): Returns true if Graphite can represent LOOP
10214         and all its nested loops in SCoP.
10215         (loop_is_valid_scop): Returns true if LOOP and all its nests
10216         constitute a valid SCoP.
10217         (region_has_one_loop): Returns true of a region has only one loop.
10218         (add_scop): Add SCoP to the list of valid scops.  Removes an
10219         already existing scop if it intersects with or subsumed by this one.
10220         (harmful_stmt_in_region): Returns true if SCoP has any statment
10221         which cannot be represented by Graphite.
10222         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10223         (remove_subscops): Remove any SCoP from the list of already found
10224         SCoPs, if subsumed by S1.
10225         (intersects): Return true if region bounded by SCoPs S1 and S2
10226         intersect.
10227         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10228         * graphite.c (print_graphite_scop_statistics):
10229         (print_graphite_statistics): Print SCoP info while debugging.
10230         (graphite_initialize): Early exit in case number of loops in a
10231         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10232         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10233         (graphite_finalize):
10234         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10235         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10236         (recompute_all_dominators): Recalculate POST_DOMINATORS.
10237         * tree-cfg.c (print_loops): Print the function name while printing
10238         loops.
10240 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10241             Sebastian Pop  <s.pop@samsung.com>
10243         PR tree-optimization/67700
10244         * graphite-sese-to-poly.c (parameter_index_in_region): Call
10245         invariant_in_sese_p_rec.
10246         (extract_affine): Same.
10247         (rewrite_cross_bb_scalar_deps): Call update_ssa.
10248         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
10249         * sese.h (invariant_in_sese_p_rec): Declare.
10251 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
10253         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10255 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
10257         Revert:
10258         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10259                     Jiong Wang  <jiong.wang@arm.com>
10261         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10262         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10263         (REG_CLASS_NAMES): Likewise.
10264         (REG_CLASS_CONTENTS): Likewise.
10265         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10266         (aarch64_register_move_cost): Likewise.
10267         (aarch64_load_symref_appropriately): Invoke the new added pattern if
10268         possible.
10269         * config/aarch64/constraints.md (Uc0): New constraint.
10271 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
10273         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10275 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
10277         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10278         SECTION_EXCLUDE in XO mapping class.
10280 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
10282         PR target/54236
10283         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10284         and handle ne and eq codes.
10285         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10286         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
10287         CONST_INT_P.  Use reverse_condition.
10288         (sh_split_treg_set_expr): Likewise.
10290 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
10292         * config/arm/types.md (type): Add rotate_imm.
10293         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10294         ROR immediate case.
10295         (*rorsi3_insn_uxtw): Likewise.
10296         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10297         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10298         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10300 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10302         PR rtl-optimization/67481
10303         * ifcvt.c (contains_ccmode_rtx_p): New function.
10304         (insn_valid_noce_process_p): Use it.
10306 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10308         PR rtl-optimization/67456
10309         PR rtl-optimization/67464
10310         PR rtl-optimization/67465
10311         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10312         move in the mode of x.  Handle combination of complex and simple
10313         block pairs as well as the case when one is empty.
10315 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10317         * doc/gimple.texi: Update references to gimple_statement_base.
10318         * gdbhooks.py: Likewise.
10319         * gimple.h: Likewise.
10321 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10323         * config/sparc/driver-sparc.c: map LEON to leon3
10325 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10327         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10328           and make it inverse to change default
10329         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10330           supervisor mode
10331         * doc/invoke.texi: Document change of default
10333 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10335         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10336         true on %f0 for a target without FPU.
10337         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10338         without FPU.
10339         (untyped_return): Do not load %f0 for a target without FPU.
10341 2015-09-28  Andrew Pinski  <apinski@cavium.com>
10343         * config/aarch64/aarch64.md (prefetch):
10344         Change the predicate of operand 0 to register_operand.
10346 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
10348         * config/i386/predicates.md (register_sse4nonimm_operand): New
10349         predicate.
10350         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10351         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10352         Use register_sse4nonimm_operand as operand 0 predicate.
10353         (*vec_extractv8hi_sse2): Remove insn pattern.
10354         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10355         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10357 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
10358             Kaz Kojima  <kkojima@gcc.gnu.org>
10360         PR target/67391
10361         * config/sh/sh-protos.h (sh_lra_p): Declare.
10362         * config/sh/sh.c (sh_lra_p): Make non-static.
10363         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10364         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
10365         Expand into addsi3_scr if operands[2] if needed.
10366         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
10367         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
10368         (addsi3_scr, *addsi3): New insn_and_split patterns.
10370 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
10372         PR rtl-optimization/64164
10373         PR tree-optimization/67312
10374         PR middle-end/67340
10375         PR middle-end/67490
10376         PR bootstrap/67597
10377         * cfgexpand.c (parm_in_stack_slot_p): Remove.
10378         (ssa_default_def_partition): Remove.
10379         (get_rtl_for_parm_ssa_default_def): Remove.
10380         (set_rtl): Check that RTL assignments match expectations.
10381         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
10382         default def location for params and results.  Record SSA names
10383         or types in REG and MEM attrs, respectively.
10384         (set_parm_rtl): New.
10385         (expand_one_ssa_partition): Drop logic that assigned MEMs with
10386         unassigned addresses.
10387         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10388         deferred stack alloc vars.
10389         (expand_used_vars): Skip partitions holding parm default defs.
10390         Move adjust_one_expanded_partition_var loop...
10391         (pass_expand::execute): ... here.  Drop redundant assert.
10392         Adjust comments before the final loop over all ssa names.
10393         Require assigned rtl of parms and results to match exactly.
10394         Reset its attributes to match them, not any other variables in
10395         the same partition.
10396         (expand_debug_expr): Use entry value for PARM's default defs
10397         only iff they have zero nondebug uses.
10398         * cfgexpand.h (parm_in_stack_slot_p): Remove.
10399         (get_rtl_for_parm_ssa_default_def): Remove.
10400         (set_parm_rtl): Declare.
10401         * doc/invoke.texi: Improve wording.
10402         * explow.c (promote_decl_mode): Fix promote_function_mode for
10403         result decls not by reference.
10404         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10405         bypass TYPE_MODE to get the actual vector mode.
10406         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
10407         2015-08-19's changes as follows.  Drop include of
10408         basic-block.h and df.h.
10409         (rtl_for_parm): Remove.
10410         (maybe_reset_rtl_for_parm): Remove.
10411         (parm_in_unassigned_mem_p): Remove.
10412         (use_register_for_decl): Add logic for RESULT_DECLs matching
10413         assign_parms' behavior.
10414         (split_complex_args): Revert.
10415         (assign_parms_augmented_arg_list): Revert.  Add comment
10416         referencing the logic above.
10417         (assign_parm_adjust_stack_rtl): Revert.
10418         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
10419         of SET_DECL_RTL.  Set up a REG if the parm demands so.
10420         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
10421         calls into a single set_parm_rtl.  Set up a temporary RTL
10422         temporarily for expand_assignment.
10423         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
10424         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
10425         (assign_bounds): Revert.
10426         (assign_parms): Revert.  Use set_parm_rtl.
10427         (allocate_struct_function): Relayout result and parms of
10428         non-abstruct functions.
10429         (expand_function_start): Revert.  Use set_parm_rtl.  If the
10430         result is not a hard reg, create a pseudo from the promoted
10431         mode of the default def.  Promote static chain mode.
10432         * tree-outof-ssa.c (remove_ssa_form): Drop unused
10433         partition_has_default_def.  Set up
10434         partitions_for_parm_default_defs.
10435         (finish_out_of_ssa): Remove partition_has_default_def.
10436         Release partitions_for_parm_default_defs.
10437         * tree-outof-ssa.h (struct ssaexpand): Remove
10438         partition_has_default_def.  Add
10439         partitions_for_parm_default_defs.
10440         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10441         stor-layout.h.
10442         (build_ssa_conflict_graph): Fix conflict-detection of default
10443         defs of even unused default defs of params and results.
10444         (for_all_parms): New.
10445         (create_default_def): New.
10446         (register_default_def): New.
10447         (coalesce_with_default): New.
10448         (create_outofssa_var_map): Create default defs for all parms
10449         and results, and register their partitions.  Add GIMPLE_RETURN
10450         operands as coalesce candidates with results.  Add default
10451         defs of each parm or result as coalesce candidates with its
10452         other defs.  Mark each result def, and each default def of
10453         parms, as used_in_copy.
10454         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
10455         with the ssa names, even anonymous ones.  Drop
10456         parm_in_stack_slot_p calls.  Require same signedness and
10457         alignment.
10458         (coalesce_ssa_name): Add coalesce candidates for all defs of
10459         each parm and result, even unused ones.
10460         (parm_default_def_partition_arg): New type.
10461         (set_parm_default_def_partition): New.
10462         (get_parm_default_def_partitions): New.
10463         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
10464         * tree-ssa-live.c (partition_view_init): Regard unused defs of
10465         parms and results as used.
10466         (verify_live_on_entry): Don't error out just because they're
10467         not live.
10469 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
10471         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10472         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
10473         (output_fde): Don't output length for debug_frame on AIX.
10474         (output_call_frame_info): Don't output length for debug_frame on AIX.
10475         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
10476         HAVE_XCOFF_DWARF_EXTRAS.
10477         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
10478         HAVE_XCOFF_DWARF_EXTRAS.
10479         (output_compilation_unit_header): Don't output length on AIX.
10480         (output_pubnames): Don't output length on AIX.
10481         (output_aranges): Delete argument. Compute length locally. Don't
10482         output length on AIX.
10483         (output_line_info): Don't output length on AIX.
10484         (dwarf2out_finish): Don't compute aranges_length.
10485         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
10486         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
10487         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
10488         symbol decoration for AIX.
10489         (rs6000_xcoff_debug_unwind_info): New.
10490         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
10491         for SECTION_DEBUG.
10492         (rs6000_xcoff_declare_function_name): Emit different
10493         .function pseudo-op when DWARF2_DEBUG. Don't call
10494         xcoffout_declare_function for DWARF2_DEBUG.
10495         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
10496         Redefine.
10497         * config/rs6000/aix71.h: New.
10498         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
10499         locations support.
10500         * configure: Regenerate.
10501         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
10502         DWARF support.
10504 2015-09-26  Jeff Law  <law@redhat.com>
10506         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
10507         behaviour.
10508         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
10509         behaviour.
10511         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
10512         behaviour
10514         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
10515         undefined behaviour.
10517         * config/cris/cris.md (asrandb): Fix left shift undefined
10518         behaviour.
10519         (asrandw): Likewise.
10521 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
10523         PR target/61578
10524         * lra-constarints.c (match_reload): Check presence of the input pseudo
10525         in the output operand.
10527 2015-09-25  Tobias Burnus  <burnus@net-b.de>
10529         * doc/invoke.texi (-fsanitize): Minor wording tweak.
10531 2015-09-25  Tobias Burnus  <burnus@net-b.de>
10533         * doc/invoke.texi (-fsanitize): Update URLs.
10535 2015-09-25  Teresa Johnson  <tejohnson@google.com>
10537         * opts.c (finish_options): Unset -freorder-blocks-and-partition
10538         if not using profile.
10540 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10542         PR pretty-print/67567
10543         * pretty-print.c (pp_string): Add gcc_checking_assert.
10544         * pretty-print.h (output_buffer_append_r): Likewise.
10546 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
10548         PR target/67675
10549         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
10550         addr2 individually.  Don't emit logical or insn if one is known to
10551         be aligned approriately.
10552         (sh_expand_cmpnstr): Likewise.
10554 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
10556         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
10557         __builtin_aarch64_fp[sc]r arguments into a register.
10559 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
10561         * config.gcc (x86_archs): Replace lakemount with lakemont.
10562         (with_cpu): Likewise.
10563         (with_arch): Likewise.
10564         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10565         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
10566         __tune_lakemount__ with __tune_lakemont__.
10567         * config/i386/i386.c (lakemount_cost): Renamed to ...
10568         (lakemont_cost): This.
10569         (m_LAKEMOUNT): Renamed to ...
10570         (m_LAKEMONT): This.
10571         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
10572         (processor_target_table): Replace "lakemount" with "lakemont".
10573         (processor_alias_table): Likewise.
10574         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
10575         PROCESSOR_LAKEMONT.
10576         (ix86_adjust_cost): Likewise.
10577         (ia32_multipass_dfa_lookahead): Likewise.
10578         * config/i386/i386.h (processor_type): Likewise.
10579         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
10580         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
10581         Lakemount with Lakemont.
10583 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
10585         * config.gcc (x86_archs): Replace iamcu with lakemount.
10586         (with_cpu): Likewise.
10587         (with_arch): Likewise.
10588         * doc/invoke.texi: Likewise.
10589         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
10590         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
10591         __tune_iamcu__ with __tune_lakemount__.
10592         * config/i386/i386.c (iamcu_cost): Renamed to ...
10593         (lakemount_cost): This.
10594         (m_IAMCU): Renamed to ...
10595         (m_LAKEMOUNT): This.
10596         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
10597         (processor_target_table): Replace "iamcu" with "lakemount".
10598         (processor_alias_table): Likewise.
10599         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
10600         PROCESSOR_LAKEMOUNT.
10601         (ix86_adjust_cost): Likewise.
10602         (ia32_multipass_dfa_lookahead): Likewise.
10603         * config/i386/i386.h (processor_type): Likewise.
10604         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
10606 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
10608         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
10609         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
10610         Declare.
10611         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
10612         (pa_expand_compare_and_swap_loop): New.
10613         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
10614         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
10615         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
10616         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
10617         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
10618         Revise.
10620 2015-09-24  Michael Collison  <michael.collison@linaro.org>
10622         PR other/57195
10623         * read-md.c (read_name): Allow mode iterators inside angle
10624         brackets in rtl expressions.
10626 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
10628         PR target/61578
10629         * ira-color.c (update_allocno_cost): Add parameter.
10630         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
10631         parameter.
10633 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10635         PR driver/67640
10636         * opts-common.c (prune_options): Discard all -fdiagnostics-color
10637         but the last one, which is moved to the front to be processed
10638         first.
10639         * opts.c (enable_warning_as_error): Reject options that do not
10640         control warnings.
10642 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
10644         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
10646 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
10648         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
10649         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
10650         (aarch64_cannot_force_const_mem): Likewise.
10651         (aarch64_classify_address): Likewise.
10652         (aarch64_classify_symbolic_expression): Likewise.
10653         (aarch64_print_operand): Likewise.
10654         (aarch64_classify_symbol): Likewise.
10655         (aarch64_mov_operand_p): Likewise.
10656         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
10657         (aarch64_mov_operand): Likewise.
10659 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
10661         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
10662         for info->spe_gp_size.
10664 2015-09-24  Richard Biener  <rguenther@suse.de>
10666         PR lto/67699
10667         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
10668         abstract origins.
10670 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
10672         * tree-object-size.c (plus_stmt_object_size)
10673         (cond_expr_object_size): Change the formal parameters from gimple
10674         to gimple *.
10675         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
10676         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
10677         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
10679 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10681         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
10682         Check for ld -type pie on Solaris 11.x and 12.
10683         * configure: Regenerate.
10684         * config.in: Regenerate.
10686         * gcc.c (LD_PIE_SPEC): Allow redefinition.
10688         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
10689         (STARTFILE_SPEC): Use it.
10690         (ENDFILE_CRTEND_SPEC): Define.
10691         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
10692         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
10693         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
10694         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
10695         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
10696         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
10697         (ENDFILE_ARCH_SPEC): Define.
10698         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
10700 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10702         * configure.ac (gcc_cv_solaris_crts): New test.
10703         * configure. Regenerate.
10704         * config.in: Regenerate.
10705         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
10706         HAVE_SOLARIS_CRTS variant.
10708 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10710         * tree-inline.h (count_insns_seq): Delete prototype.
10711         (estimate_num_insns_seq): Define prototype.
10712         * tree-inline.c (count_insns_seq): Delete.
10713         (estimate_num_insns_seq): Remove static qualifier.
10714         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
10715         with estimate_num_insns_seq.
10717 2015-09-24  Richard Biener  <rguenther@suse.de>
10719         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
10720         members.
10721         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
10722         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
10723         offset.
10724         (ao_ref_init_from_vn_reference): Record clique and base in the
10725         built base.
10726         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
10728 2015-09-24  Richard Biener  <rguenther@suse.de>
10730         PR tree-optimization/48885
10731         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
10732         as not including any restrict tags from other pointers.
10734 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
10736         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
10737         character when appending to offload_targets.
10739         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
10740         offload targets by commas, not colons.
10741         * config.in: Regenerate.
10742         * configure: Likewise.
10743         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
10744         instead of setting up the default offload targets here...
10745         (process_command): ..., do it here.
10746         libgomp/
10747         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
10748         targets are separated by commas.
10749         * config.h.in: Regenerate.
10751 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
10752             Nathan Sidwell  <nathan@codesourcery.com>
10754         * omp-low.h (omp_reduction_init_op): Declare.
10755         * omp-low.c (omp_reduction_init_op): New, broken out of ...
10756         (omp_reduction_init): ... here.  Call it.
10757         * tree-parloops.c (initialize_reductions): Use
10758         omp_reduction_init_op.
10760 2015-09-23   Richard Biener  <rguenther@suse.de>
10762         PR middle-end/67662
10763         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
10764         undefined overflow unless they will cancel out.
10766 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10768         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
10769         insn emit.
10771 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10773         PR c/49655
10774         * opts.h (write_langs): Declare.
10775         * opts-global.c (write_langs): Make it extern.
10777 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
10779         PR target/67391
10780         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
10781         overlapping regs when matching the pattern.
10783 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
10785         * config/aarch64/aarch64-simd.md
10786         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
10787         (aarch64_float_truncate_hi_v4sf_le): New.
10788         (aarch64_float_truncate_hi_v4sf_be): Likewise.
10790 2015-09-23  Richard Biener  <rguenther@suse.de>
10792         * tree-ssa-structalias.c (intra_create_variable_infos): Build
10793         representatives for all restrict qualified pointer destinations.
10795 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10797         * config/i386/i386.md (define_code_attr mshift): New.
10798         (define_mode_iterator SWI1248_AVX512BW): Rename ...
10799         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
10800         only.
10801         (define_insn "*k<logic><mode>"): Use new iterator name.
10802         (define_insn "*<mshift><mode>3"): New.
10804 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
10806         PR middle-end/67649
10807         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
10808         mark the block as accessible.
10810 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
10812         * function.c (thread_prologue_and_epilogue_insns): Delete
10813         orig_entry_edge argument to try_shrink_wrapping.
10814         * shrink-wrap.c (can_get_prologue): New function.
10815         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
10816         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
10817         can_get_prologue where needed.  Remove code that finds a single
10818         edge for the prologue.  Remove code that tests if any reg clobbered
10819         by the prologue is live on the prologue edge.  Remove code that finds
10820         the new prologue edge after duplicating blocks.  Make a new prologue
10821         block and edge.
10822         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
10824 2015-09-22  Jeff Law  <law@redhat.com>
10826         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
10827         behavior.
10829 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
10831         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
10832         -Wtemplates, -Wnamespaces): Document.
10834 2015-09-22  Tom de Vries  <tom@codesourcery.com>
10836         PR tree-optimization/67671
10837         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
10838         pointer references as restrict.
10840 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10842         * config/nios2/nios2.c (nios2_legitimize_address): When handling
10843         'reg + reloc' cases, allow first operand to be non-REG, and use
10844         force_reg() to enforce address pattern.
10846 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
10848         PR target/67480
10849         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
10850         (define_mode_iterator VI12_AVX_AVX512F): New.
10851         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
10852         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
10853         (define_insn "*<code><mode>3"): ... Into new pattern using
10854         VI12_AVX_AVX512F iterators without masking.
10856 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10858         * config.gcc: Support "skylake-avx512".
10859         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10860         PROCESSOR_SKYLAKE_AVX512.
10861         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
10862         (processor_target_table): Add "skylake-avx512".
10863         (PTA_SKYLAKE_AVX512): Define.
10864         (ix86_option_override_internal): Add "skylake_avx512".
10865         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
10866         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
10867         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
10868         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
10869         * doc/invoke.texi (skylake-avx512): New.
10871 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10873         * config/i386/i386.md (define_insn "kunpckhi"): Fix
10874         operand in pattern.
10875         (define_insn "kunpcksi"): Ditto.
10876         (define_insn "kunpckdi"): Ditto.
10878 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10880         * config/i386/i386.md (define_split not/xor SWI1248x): Use
10881         iterator instead of fixed modes.
10883 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10885         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10886         Adjust declaration.
10887         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
10888         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
10889         out_result.  Update to support update-fetch operations.
10890         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
10891         Adjust for change to aarch64_gen_atomic_ldop.
10892         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
10893         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
10894         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
10895         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
10896         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
10898 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10900         * config/aarch64/aarch64-protos.h
10901         (aarch64_atomic_ldop_supported_p): Declare.
10902         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
10903         (enum aarch64_atomic_load_op_code): New.
10904         (aarch64_emit_atomic_load_op): New.
10905         (aarch64_gen_atomic_ldop): Update to support load-operate
10906         patterns.
10907         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
10908         to an expander.
10909         (aarch64_atomic_<atomic_optab><mode>): New.
10910         (aarch64_atomic_<atomic_optab><mode>_lse): New.
10911         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
10912         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
10913         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
10915 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10917         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
10918         (UNSPECV_ATOMIC_LDOP_OR): New.
10919         (UNSPECV_ATOMIC_LDOP_BIC): New.
10920         (UNSPECV_ATOMIC_LDOP_XOR): New.
10921         (UNSPECV_ATOMIC_LDOP_PLUS): New.
10922         (ATOMIC_LDOP): New.
10923         (atomic_ldop): New.
10924         (aarch64_atomic_load<atomic_ldop><mode>): New.
10926 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10928         * config/aarch64/aarch64.md
10929         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
10930         pattern.
10932 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
10934         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
10935         Declare.
10936         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
10937         (aarch64_gen_atomic_ldop): New.
10938         (aarch64_split_atomic_op): Fix whitespace and add a comment.
10939         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
10940         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
10941         (atomic_exchange<mode>): Replace with an expander.
10942         (aarch64_atomic_exchange<mode>): New.
10943         (aarch64_atomic_exchange<mode>_lse): New.
10944         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
10945         (aarch64_atomic_swp<mode>): New.
10947 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10949         * tree-inline.c (expand_call_inline): Use inform for extra note.
10950         Do not give a note with UNKNOWN_LOCATION.
10951         Replace input_location with gimple_location (stmt).
10952         Use true/false instead of TRUE/FALSE.
10954 2015-09-22  Tom de Vries  <tom@codesourcery.com>
10956         PR tree-optimization/67666
10957         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
10958         with single field non-conservative.
10960 2015-09-21  David S. Miller  <davem@davemloft.net>
10962         PR/67622
10963         Revert:
10964         2015-09-11  David S. Miller  <davem@davemloft.net>
10966         * config/sparc/constraints.md: Make "U" constraint a real register
10967         constraint.
10968         * config/sparc/sparc.c (TARGET_LRA_P): Define.
10969         (D_MODES, DF_MODES): Add missing cast.
10970         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10971         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10972         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10973         cost to 8.
10974         * config/sparc/sparc.h (PROMOTE_MODE): Define.
10975         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10976         provide these insn when flag_pic.
10978         2015-09-17  David S. Miller  <davem@davemloft.net>
10980         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
10981         Declare.
10982         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
10983         function.
10984         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10985         (HARD_REGNO_CALLER_SAVE_MODE): Define.
10986         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10987         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10988         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10989         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10990         provide when flag_pic.
10992 2015-09-21  Jeff Law  <law@redhat.com>
10994         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
10995         behavior.
10997 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10999         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11001 2015-09-21  Richard Biener  <rguenther@suse.de>
11003         * passes.c (rest_of_decl_compilation): Do not call
11004         dwarf2out_early_global_decl for aliases.
11006 2015-09-21  Richard Biener  <rguenther@suse.de>
11008         PR debug/67664
11009         * dwarf2out.c (add_location_or_const_value_attribute): Remove
11010         attribute parameter.  Early exit if either DW_AT_const_value
11011         or DW_AT_location are present already.
11012         (gen_variable_die): Adjust caller.
11013         (dwarf2out_late_global_decl): Likewise.
11015 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11017         PR target/67657
11018         * config/sh/sh.c (sh_remove_overlapping_post_inc,
11019         sh_peephole_emit_move_insn): Add new functions.
11020         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11021         sh_peephole_emit_move_insn): Declere them.
11022         * config/sh/sh.md: Use them in various peephole2 patterns.
11024 2015-09-21  Richard Biener  <rguenther@suse.de>
11026         PR middle-end/67651
11027         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11028         address with -fno-delete-null-pointer-checks.
11030 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
11032         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11033         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11034         (reduc_uplus_v16qi): Remove.
11036         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11037         (reduc_<VEC_reduc_name>_v2df): Remove.
11038         (reduc_<VEC_reduc_name>_v4sf): Remove.
11039         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11041         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11042         gen_ function by removing * prefix.
11043         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11045 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11047         PR middle-end/60832
11048         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11049         Print i_bound without converting it to a tree.
11051 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
11053         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11054         operands[4] operands[5] swap with std::swap, removed tmp variable.
11055         (arm_evpc_neon_vzip): Replaced in0/in1 and
11056         out0/out1 swaps with std::swap, removed x variable.
11057         (arm_evpc_neon_vtrn): Replaced in0/int1 and
11058         out0/out1 swaos with std::swap, removed x variable.
11059         (arm_expand_vec_perm_const_1): Replaced
11060         d->op0/d->op1 swap with std::swap, removed x variable.
11061         (arm_evpc_neon_vuzp): Replaced in0/in1 and
11062         out0/out1 swaps with std::swap, removed x variable.
11064 2015-09-21  Jonathan Yong  <10walls@gmail.com>
11066         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11067         sysroot/usr/lib/32api for additional win32 libraries,
11068         fixes failing Cygwin bootstrapping.
11070 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11072         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11074 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11076         PR target/67126
11077         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11078         (*mov_t_msb_neg): Rewrite negc pattern.
11080 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11082         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11083         immediate generation code.
11085 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11087         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11088         redundant immediate generation code.
11090 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11092         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11093         (AARCH64_NUM_BITMASKS): Remove.
11094         (aarch64_bitmasks_cmp): Remove.
11095         (aarch64_build_bitmask_table): Remove.
11097 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11099         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11100         slow immediate matching loops with a faster algorithm.
11102 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11104         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11105         faster algorithm.
11107 2015-09-20  Jeff Law  <law@redhat.com>
11109         PR tree-optimization/47679
11110         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11111         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11112         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11113         (thread_through_normal_block): Use record_temporary_equivalences.
11115 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
11117         * coretypes.h (gimple): Change typedef to be a forward declaration.
11118         * gimple.h (gimple_statement_base): rename to gimple.
11119         * (all functions and types using gimple): Adjust.
11120         * *.[ch]: Likewise.
11122 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
11123             David Edelsohn  <dje.gcc@gmail.com>
11125         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11126         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11127         (EH_FRAME_THROUGH_COLLECT2): Define.
11128         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11129         (ASM_OUTPUT_DWARF_PCREL): Define.
11130         (ASM_OUTPUT_DWARF_DATAREL): Define.
11132 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
11134         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11135         of TARGET_ELF32.
11137 2015-09-18  Jeff Law  <law@redhat.com>
11139         PR tree-optimization/47679
11140         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
11141         it here ...
11142         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11143         object.  Update constructor.
11144         (pass_dominator::execute):  Corresponding chagnes to declaration
11145         and initialization of avail_exprs_stack.  Update constructor call
11146         for dom_opt_dom_walker object.
11147         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
11148         it down to children as needed.
11149         (record_equivalences_from_incoming_edge): Likewise.
11150         (eliminate_redundant_computations): Likewise.
11151         (record_equivalences_from_stmt): Likewise.
11152         (simplify_stmt_for_jump_threading): Likewise.
11153         (record_temporary_equivalences): Likewise.
11154         (optimize_stmt): Likewise.
11155         (dom_opt_dom_walker::thread_across_edge): Update access to
11156         avail_exprs_stack object and pass it to children as needed.
11157         (dom_opt_dom_walker::before_dom_children): Similarly.
11158         (dom_opt_dom_walker::after_dom_children): Similarly.
11159         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11160         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11161         Add avail_expr_stack argument.  Pass it to children as needed.
11162         (dummy_simplify): Likewise.
11163         (simplify_control_stmt_condition): Likewise.
11164         (thread_around_empty_blocks): Likewise.
11165         (thread_through_normal_block): Likewise.
11166         (thread_across_edge): Likewise.
11167         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11168         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11170         PR tree-optimization/47679
11171         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
11172         it here ...
11173         (dom_opt_dom_walker): New private member holding the const_and_copies
11174         object.  Update constructor.
11175         (pass_dominator::execute): Corresponding changes to declaration
11176         and initialization of const_and_copies.  Update constructor call
11177         for the dom_opt_dom_walker object.
11178         (record_temporary_equivalences): Accept const_and_copies argument
11179         pass it down to children as needed.
11180         (record_equality): Likewise.
11181         (record_equivalences_from_incoming_edge): Likewise.
11182         (cprop_into_successor_phis, optimize_stmt): Likewise.
11183         (eliminate_redundant_computations): Likewise.
11184         (dom_opt_dom_walker::thread_across_edge): Update access to
11185         const_and_copies object and pass it to children as needed.
11186         (dom_opt_dom_walker::before_dom_children): Similarly.
11187         (dom_opt_dom_walker::after_dom_children): Similarly.
11189         PR tree-optimization/47679
11190         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
11191         it into the avail_exprs_stack class.
11192         (pass_dominator::execute): Corresponding changes to declaration
11193         and initialization of avail_exprs.  Pass avail_exprs to
11194         dump_dominator_optimization_stats.
11195         (record_cond): Extract avail_exprs from avail_exprs_stack.
11196         (lookup_avail_expr): Similarly.
11197         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
11198         position in file.
11199         (dump_dominator_optimization_stats): Make static and prototype.
11200         Add argument for the hash table to dump.
11201         (debug_dominator_optimization_stats): Remove.
11202         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11203         prototype.
11204         (debug_dominator_optimization_stats): Similarly.
11205         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11206         "void" in prototype for pop_to_marker method.  Add accessor method
11207         for the underlying avail_exprs table.
11209         * tree-ssa-threadedge.c: Remove trailing whitespace.
11211 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
11213         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11214         unsigned.
11215         (pa_ldil_cint_p): Likewise.
11216         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11217         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11218         Update callers.
11219         * config/pa/pa.md: Likewise.
11221 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
11223         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11224         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11225         (diagnostic_show_locus): Likewise.
11226         (diagnostic_print_caret_line): Likewise.
11227         * diagnostic-show-locus.c: New file.
11229 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
11231         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11232         "back" parameter. Declare label in #if block.
11234 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
11236         PR middle-end/67619
11237         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11238         the address to a register.
11240 2015-09-18  Jeff Law  <law@redhat.com>
11242         PR tree-optimization/47679
11243         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11244         * tree-ssa-dom.c: Remove unnecessary header includes.
11245         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11246         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11247         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11248         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11249         (pass_phi_only_cprop::execute): Likewise.
11250         (make_pass_phi_only_cprop): Likewise.
11251         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
11252         uses of file scoped statics by passing the required objects
11253         as parameters wherever needed.
11255 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
11256             David Edelsohn  <dje.gcc@gmail.com>
11258         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11259         EH_FRAME_THROUGH_COLLECT2.
11260         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11261         DW_EH_PE_datarel.
11262         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11263         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
11264         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11265         * except.c (switch_to_exception_section): Use a read-only section
11266         even if EH_FRAME_SECTION_NAME is undefined.
11267         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11268         * collect2.c (write_c_file_stat): Provide dbase on AIX.
11269         (scan_prog_file): Don't export __dso_handle nor
11270         __gcc_unwind_dbase.
11271         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11272         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11273         (ASM_OUTPUT_DWARF_PCREL): Define.
11274         (ASM_OUTPUT_DWARF_DATAREL): Define.
11275         (EH_FRAME_THROUGH_COLLECT2): Define.
11276         (EH_FRAME_IN_DATA_SECTION): Delete.
11277         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11278         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11279         Declare.
11280         (rs6000_asm_output_dwarf_datarel): Declare.
11281         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11282         (rs6000_aix_asm_output_dwarf_datarel): New.
11283         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11284         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11285         (EH_FRAME_THROUGH_COLLECT2): Define.
11286         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11287         (EH_FRAME_THROUGH_COLLECT2): Define.
11288         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11289         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11290         (EH_FRAME_THROUGH_COLLECT2): New.
11291         (ASM_OUTPUT_DWARF_DATAREL): New.
11292         * doc/tm.texi: Regenerate.
11294 2015-09-18  Richard Biener  <rguenther@suse.de>
11296         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11297         we're in early phase.
11298         (schedule_generic_params_dies_gen): Likewise.
11299         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11300         work as possible, retaining unhandled cases.
11301         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11302         clear out generic_type_instances at the end.
11303         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11304         (dwarf2out_early_finish): ... here.  Do most of
11305         gen_remaining_tmpl_value_param_die_attribute here.
11307 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
11309         PR tree-optimization/67283
11310         * tree-sra.c (type_consists_of_records_p): Rename to...
11311         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11312         (completely_scalarize_record): Rename to...
11313         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11314         (scalarize_elem): New.
11315         (analyze_all_variable_accesses): Follow renamings.
11317 2015-09-18  Richard Biener  <rguenther@suse.de>
11319         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11320         in early-dwarf.
11322 2015-09-18  Richard Biener  <rguenther@suse.de>
11324         PR tree-optimization/66142
11325         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11326         treat MEM[&x] and x the same.
11327         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11328         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11329         when we simplified sth.
11330         (vn_reference_maybe_forwprop_address): Likewise.
11331         (valueize_refs_1): When we simplified through
11332         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11333         set valueized_anything to true.
11334         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11335         one ref kills the other instead of just a offset-based test.
11336         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11337         for the operand_equal_p test to compare bases and also compare
11338         sizes.
11340 2015-09-17  Christian Bruel  <christian.bruel@st.com>
11342         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11344 2015-09-17  Richard Henderson  <rth@redhat.com>
11346         PR libstdc++/65913
11347         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11348         pointers that encode the alignment of the object.
11350 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11352         PR rtl-optimization/66790
11353         * df-problems.c (LIVE): Amend documentation.
11355 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
11357         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11358         and optabs-tree.o.
11359         (GTFILES): Replace optabs.c with optabs-libfunc.c.
11360         * genopinit.c (main): Add an include guard to insn-opinit.h.
11361         Protect the rtx_code parts with NUM_RTX_CODE.
11362         * optabs.h: Split parts out to...
11363         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11364         * optabs.c: Split parts out to...
11365         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11366         * cilk-common.c: Include optabs-query.h rather than optabs.h.
11367         * fold-const.c: Likewise.
11368         * target-globals.c: Likewise.
11369         * tree-if-conv.c: Likewise.
11370         * tree-ssa-forwprop.c: Likewise.
11371         * tree-ssa-loop-prefetch.c: Likewise.
11372         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11373         Remove unncessary include files.
11374         * tree-ssa-phiopt.c: Likewise.
11375         * tree-ssa-reassoc.c: Likewise.
11376         * tree-switch-conversion.c: Likewise.
11377         * tree-vect-data-refs.c: Likewise.
11378         * tree-vect-generic.c: Likewise.
11379         * tree-vect-loop.c: Likewise.
11380         * tree-vect-patterns.c: Likewise.
11381         * tree-vect-slp.c: Likewise.
11382         * tree-vect-stmts.c: Likewise.
11383         * tree-vrp.c: Likewise.
11384         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11385         rather than optabs.h.
11386         * expr.c: Include optabs-tree.h.
11387         * function.c: Likewise.
11389 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11391         PR middle-end/65958
11392         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11393         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11394         * config/arm/arm.c: Include common/common-target.h.
11395         (use_return_insn): Return 0 if the static chain register was saved
11396         above a non-APCS frame.
11397         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11398         (struct scratch_reg): New.
11399         (get_scratch_register_on_entry): New function.
11400         (release_scratch_register_on_entry): Likewise.
11401         (arm_emit_probe_stack_range): Likewise.
11402         (output_probe_stack_range): Likewise.
11403         (arm_expand_prologue): Factor out code dealing with the IP register
11404         for nested function and adjust it for stack checking.
11405         Invoke arm_emit_probe_stack_range if static builtin stack checking
11406         is enabled.
11407         (thumb1_expand_prologue): Sorry out if static builtin stack checking
11408         is enabled.
11409         (arm_expand_epilogue): Add the saved static chain register, if any, to
11410         the amount of pre-pushed registers to pop.
11411         (arm_frame_pointer_required): Return true if static stack checking is
11412         enabled and we want to catch the exception with the EABI unwinder.
11413         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11414         (UNSPEC_PROBE_STACK_RANGE): Likewise.
11415         * config/arm/arm.md (probe_stack): New insn.
11416         (probe_stack_range): Likewise.
11418 2015-09-17  Richard Biener  <rguenther@suse.de>
11420         * genmatch.c (parser::parse_expr): Improve error message
11421         for mis-placed flags.
11423 2015-09-17  Richard Biener  <rguenther@suse.de>
11425         * passes.c (rest_of_decl_compilation): Always call early_global_decl
11426         debug hook when we created a varpool node.
11427         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11428         dwarf2out_early_global_decl, when not just add location or
11429         value attributes to existing DIEs.
11431 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
11433         * config/aarch64/aarch64.md (copysigndf3): New.
11434         (copysignsf3): Likewise.
11436 2015-09-17  David S. Miller  <davem@davemloft.net>
11438         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11439         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11440         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11441         (HARD_REGNO_CALLER_SAVE_MODE): Define.
11442         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11443         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11444         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11445         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11446         provide when flag_pic.
11448 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11450         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
11451         object_allocator change.
11453 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
11455         PR tree-optimization/66388
11456         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
11457         (dump_iv): Dump no_overflow information.
11458         (alloc_iv): Initialize new field for struct iv.
11459         (mark_bivs): Count number of no_overflow bivs.
11460         (find_deriving_biv_for_expr, record_biv_for_address_use): New
11461         functions.
11462         (idx_find_step): Call new functions above.
11463         (add_candidate_1, add_candidate): New paramter.
11464         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
11465         (get_computation_aff): Simplify convertion of cand for BIV.
11466         (get_computation_cost_at): Step cand's base if necessary.
11468 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
11470         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
11471         parameter.
11472         (tree_simplify_using_condition): Ditto.
11473         (simplify_using_initial_conditions): Ditto.
11474         (loop_exits_before_overflow): Pass new argument to function
11475         simplify_using_initial_conditions.  Remove case for type conversions
11476         simplification.
11477         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
11478         parameter.
11479         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
11480         in iv base using loop initial conditions.
11482 2015-09-16  Jeff Law  <law@redhat.com>
11484         PR tree-optimization/47679
11485         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
11486         (free_all_edge_infos): Use it.
11487         (allocate_edge_info): Free preexisting edge info data.
11488         (pass_dominator::execute): Set up initial edge info structures.
11489         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
11490         thread_across_edge.
11491         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
11492         If non-null, then push/pop markers appropriately.
11493         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11494         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
11495         thread-across_edge.
11497 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
11499         * config/ft32/ft32.c: Fix the memory address space predicate.
11501 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11503         PR target/67573
11504         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
11505         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11507 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11509         * toplev.h (check_global_declaration): Remove declaration.
11510         * toplev.c (check_global_declaration): Move to ...
11511         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
11512         (analyze_functions): Update call.
11514 2015-09-16  David S. Miller  <davem@davemloft.net>
11516         * lra-constraints.c (simplify_operand_subreg): Do not assume that
11517         lowpart of a SUBREG has offset zero.
11519 2015-09-16  Jeff Law  <law@redhat.com>
11521         PR tree-optimization/47679
11522         * tree-ssa-dom.c (enum expr_kind): Moved from here to
11523         tree-ssa-scopedtables.h.
11524         (struct hashable_expr, class expr_hash_elt): Likewise.
11525         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
11526         Move associated methods into tree-ssa-scopedtables.c.
11527         (avail_expr_hash, initialize_expr_from_cond): Similarly.
11528         (hashable_expr_equal_p, add_expr_commutative): Likewise.
11529         (add_hashable_expr): Likewise.
11530         (record_cond): Delete element directly.
11531         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
11532         private copy ctor and assignment operator methods.
11533         (expr_elt_hasher): Inline trivial methods.
11534         (initialize_expr_from_cond): Prototype.
11535         * tree-ssa-scopedtables.c: Add necessary includes, functions and
11536         methods that were previously in tree-ssa-dom.c.  Improve various
11537         comments.
11539 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
11541         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
11543 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
11545         PR bootstrap/67587
11546         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
11547         fixup_partitions.
11549 2015-09-16  Richard Biener  <rguenther@suse.de>
11551         PR middle-end/67253
11552         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
11553         location of possibly shared trees.
11555 2015-09-16  Richard Biener  <rguenther@suse.de>
11557         PR middle-end/67271
11558         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
11560 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
11562         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
11563         offset and size computations instead of HOST_WIDE_INT.
11565 2015-09-16  Richard Biener  <rguenther@suse.de>
11567         PR middle-end/67442
11568         * fold-const.c (extract_muldiv_1): Properly extend multiplication
11569         result before builting a tree via wide_int_to_tree.
11571 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
11573         * Makefile.in: Add memory-block.cc
11574         (pool_allocator::initialize): Use fixed block size.
11575         (pool_allocator::release): Use memory_block_pool.
11576         (pool_allocator::allocate): Likewise.
11577         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
11578         object pools.
11579         * cfg.c (initialize_original_copy_tables): Likewise.
11580         * cselib.c (elt_list_pool, elt_loc_list_pool,
11581         cselib_val_pool): Likewise.
11582         * df-problems.c (df_chain_alloc): Likewise.
11583         * df-scan.c (df_scan_alloc): Likewise.
11584         * dse.c (cse_store_info_pool, rtx_store_info_pool,
11585         read_info_type_pool, insn_info_type_pool, bb_info_pool,
11586         group_info_pool, deferred_change_pool): Likewise.
11587         * et-forest.c (et_nodes, et_occurrences): Likewise.
11588         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
11589         ipcp_agg_lattice_pool): Likewise.
11590         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
11591         * ipa-profile.c (histogram_pool): Likewise.
11592         * ipa-prop.c (ipa_refdesc_pool): Likewise.
11593         * ira-build.c (live_range_pool, allocno_pool, object_pool,
11594         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
11595         * ira-color.c (update_cost_record_pool): Likewise.
11596         * lra-lives.c (lra_live_range_pool): Likewise.
11597         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
11598         * memory-block.cc: New file.
11599         * memory-block.h: New file.
11600         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
11601         * sched-deps.c (sched_deps_init): Likewise.
11602         * sel-sched-ir.c (sched_lists_pool): Likewise.
11603         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
11604         * tree-sra.c (access_pool): Likewise.
11605         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
11606         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
11607         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
11608         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11609         * tree-ssa-strlen.c (strinfo_pool): Likewise.
11610         * tree-ssa-structalias.c (variable_info_pool): Likewise.
11611         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
11612         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
11614 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
11616         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
11617         definition.
11618         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
11619         call0 ABI.
11621 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
11623         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
11624         to pass TLS call argument, according to current ABI.
11625         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
11626         callx0 for TLS call, according to current ABI.
11628 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11630         * tree-eh.c (lower_try_finally_dup_block): Clear location information
11631         on stack restore statements.
11632         (decide_copy_try_finally): Do not consider a stack restore statement as
11633         coming from sources.
11635 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
11637         * config/alpha/alpha.c (alpha_expand_block_clear): Use
11638         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
11640 2015-09-15  Jeff Law  <law@redhat.com>
11642         PR tree-optimization/47679
11643         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
11644         methods and private members.
11645         (avail_exprs_stack): Similarly.  Change type of global
11646         from a pair of expr_hash_elt_t to the new class.
11647         (expr_elt_hasher::hash): Corresponding changes.
11648         (expr_elt_hasher::equal): Similarly.
11649         (avail_expr_hash): Similarly.
11650         (pass_dominator::execute): Similarly.
11651         (dom_opt_dom_walker::thread_across_edge): Similarly.
11652         (record_cond): Similarly.
11653         (dom_opt_dom_walker::before_dom_children): Similarly.
11654         (dom_opt_dom_walker::after_dom_children): Similarly.
11655         (lookup_avail_expr): Likewise.
11656         (initialize_hash_element): Now a expr_hash_elt constructor.
11657         (initialize_hash_element_from_expr): Similarly.
11658         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
11659         (free_expr_hash_elt): Call dtor for the element.
11660         (remove_local_expressions_from_table): Now the "pop_to_marker"
11661         method in the available_exprs_stack class.
11662         (avail_expr_stack::record_expr): Method factored out.
11663         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
11664         Fix formatting.
11665         (hashable_expr_equal_p): Fix formatting.
11667 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
11669         * input.h (location_get_source_line): Drop "expanded_location"
11670         param in favor of a file and line number.
11671         * input.c (location_get_source_line): Likewise.
11672         (dump_location_info): Update for change in signature of
11673         location_get_source_line.
11674         * diagnostic.c (diagnostic_print_caret_line): Likewise.
11676 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11678         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
11679         Bump to 4KB for SJLJ exceptions.
11680         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
11681         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
11682         * doc/tm.texi: Regenerate.
11684 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11686         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
11687         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
11688         Update prototype.
11690 2015-09-15  Richard Biener  <rguenther@suse.de>
11692         PR tree-optimization/67470
11693         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
11694         structure for PHI hoisting by inserting a forwarder block
11695         if appropriate.
11697 2015-09-15  Christian Bruel  <christian.bruel@st.com>
11699         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
11700         (arm_option_print): New function.
11702 2015-09-15  Christian Bruel  <christian.bruel@st.com>
11704         PR target/52144
11705         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
11706         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
11707         Remove flags parameter.
11708         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
11709         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
11710         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
11711         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
11712         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
11713         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
11714         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
11715         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
11717 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11719         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
11721         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
11722         AARCH64_VALID_SIMD_DREG_MODE.
11724 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11726         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
11727         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
11728         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
11729         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
11730         aarch64_ld4_lane<mode>): Combine together, making...
11731         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11732         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11733         aarch64_st4_lane<mode>): Combine together, making...
11734         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
11735         * config/aarch64/iterators.md (nregs): Add comment.
11737 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11739         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
11740         Change operand mode from <V_TWO_ELEM> to BLK.
11741         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
11742         (aarch64_vec_store_lanesoi_lane<mode): Likewise
11743         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11744         (aarch64_ld2_lane<mode>): Likewise.
11745         (aarch64_st2_lane<VQ:mode>): Likewise.
11746         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
11748 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11750         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
11751         Change operand mode from <V_FOUR_ELEM> to BLK.
11752         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
11753         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
11754         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11755         (aarch64_ld4_lane<mode>): Likewise.
11756         (aarch64_st4_lane<mode>): Likewise.
11757         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
11759 2015-09-15  Richard Biener  <rguenther@suse.de>
11761         PR middle-end/67563
11762         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
11763         transfer EH info from old to new stmt.
11764         (replace_call_with_value): Likewise.
11765         (replace_call_with_call_and_fold): Likewise.
11766         (gimple_fold_builtin_memory_op): Likewise.
11767         (gimple_fold_builtin_memset): Likewise.
11768         (gimple_fold_builtin_stpcpy): Likewise.
11769         (gimple_fold_call): Likewise.
11771 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11773         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
11774         comment.
11775         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
11776         (aarch64_simd_intEI_type_node): Likewise.
11777         (aarch64_simd_builtin_std_type): Remove EImode case.
11778         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
11779         * config/aarch64/aarch64-modes.def: Remove EImode.
11781 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11783         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
11784         Change operand mode from <V_THREE_ELEM> to BLK.
11785         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
11786         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
11787         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
11788         (aarch64_ld3_lane<mode>): Likewise.
11789         (aarch64_st3_lane<mode>): Likewise.
11790         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
11792 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11794         * config/aarch64/aarch64-simd.md
11795         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
11796         Change all TImode operands to BLKmode.
11797         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
11798         Change all EImode operands to BLKmode.
11799         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
11800         Change all OImode operands to BLKmode.
11802         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
11803         and call set_mem_size.
11804         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
11806         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
11808 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
11810         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
11811         to...
11812         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
11814         (vec_store_lanesci_lane<mode>): Rename to...
11815         (aarch64_vec_store_lanesci_lane<mode>): ...this.
11817         (vec_store_lanesxi_lane<mode>): Rename to...
11818         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
11820         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
11821         aarch64_st4_lane<mode>): Follow renaming.
11823 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11825         * config/s390/s390.c (s390_const_operand_ok): Add missing
11826         brackets.
11828 2015-09-15  Richard Biener  <rguenther@suse.de>
11830         PR lto/67568
11831         * lto-streamer.h (lto_location_cache::current_sysp): Properly
11832         initialize.
11833         * lto-streamer-out.c (clear_line_info): Likewise.
11835 2015-09-15  Richard Biener  <rguenther@suse.de>
11837         * doc/match-and-simplify.texi: Fix wording.
11839 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
11841         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
11842         unnecessary type conversion in op1.
11844 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
11846         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
11847         (dup_block_and_redirect): Delete function.
11848         (can_dup_for_shrink_wrapping): New function.
11849         (fix_fake_fallthrough_edge): New function.
11850         (try_shrink_wrapping): Rewrite function.
11851         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
11853 2015-09-14  Rich Felker  <dalias@libc.org>
11855         * configure.ac: Change target pattern for sh TLS support
11856         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
11857         * configure: Regenerate.
11859 2015-09-14  Jeff Law  <law@redhat.com>
11861         PR tree-optimization/47679
11862         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
11863         type rather than void *.
11865 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11867         PR fortran/67460
11868         * diagnostic.c (diagnostic_initialize): Do not set
11869         some_warnings_are_errors.
11870         (diagnostic_finish): Use DK_WERROR count instead.
11871         (diagnostic_report_diagnostic): Do not set
11872         some_warnings_are_errors.
11873         * diagnostic.h (struct diagnostic_context): Remove
11874         some_warnings_are_errors.
11876 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
11878         * config/sparc/predicates.md (const_all_ones_operand): Use
11879         CONSTM1_RTX to simplify definition.
11881 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
11883         PR target/67061
11884         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
11885         Handle call insns.
11887 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
11889         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
11890         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
11891         OPT_fshow_column to handled saved option cases.
11892         (append_compiler_options): Do not skip the above added options.
11894 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11896         PR target/63304
11897         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
11898         nopcrelative_literal_loads.
11899         (aarch64_classify_address): Likewise.
11900         (aarch64_constant_pool_reload_icode): Define.
11901         (aarch64_secondary_reload): Handle secondary reloads for
11902         literal pools.
11903         (aarch64_override_options): Handle nopcrelative_literal_loads.
11904         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
11905         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11906         Define.
11907         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11908         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
11909         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
11910         predicate.
11911         * doc/invoke.texi (mpc-relative-literal-loads): Document.
11913 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
11915         PR middle-end/67401
11916         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
11917         sync_compare_and_swap_optab libcall to target_oval.
11919 2015-09-14  Marek Polacek  <polacek@redhat.com>
11921         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
11922         value.
11923         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
11925 2015-09-11  Mark Wielaard  <mjw@redhat.com>
11927         PR c/28901
11928         * toplev.c (check_global_declaration): Check and use
11929         warn_unused_const_variable.
11930         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
11931         (-Wunused-variable): Remove non-constant. For C implies
11932         -Wunused-const-variable.
11933         (-Wunused-const-variable): New.
11935 2015-09-14  Richard Biener  <rguenther@suse.de>
11937         * doc/match-and-simplify.texi: Update for changed syntax
11938         of inner ifs and the new switch expression.
11940 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
11942         * config/i386/haswell.md: New file describing Haswell pipeline.
11943         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
11944         haswell-like processors.
11945         (ix86_reassociation_width): Increase reassociation width for 64-bit
11946         Haswell processor family.
11947         * config/i386/i386.md: Introduce haswell cpu and include new md file.
11949 2015-09-14  Richard Biener  <rguenther@suse.de>
11951         * doc/match-and-simplify.texi: Fixup some formatting issues
11952         and document the 's' flag.
11954 2015-09-13  Olivier Hainque  <hainque@adacore.com>
11955             Eric Botcazou  <ebotcazou@adacore.com>
11957         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
11958         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
11959         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
11960         (TARGET_CPU_gr5): Likewise.
11961         (TARGET_CPU_gr6): Likewise.
11962         (MULTILIB_DEFAULTS): Likewise.
11963         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
11964         for mcpu=gr5 and mcpu=gr6.
11965         (MULTILIB_DIRNAMES): Adjust accordingly.
11967 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11969         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
11970         (mem_ref_p): Likewise.
11971         (outermost_indep_loop): Adjust.
11972         (mem_ref_in_stmt): Likewise.
11973         (determine_max_movement): Likewise.
11974         (mem_ref_alloc): Likewise.
11975         (record_mem_ref_loc): Likewise.
11976         (set_ref_stored_in_loop): Likewise.
11977         (mark_ref_stored): Likewise.
11978         (gather_mem_refs_stmt): Likewise.
11979         (mem_refs_may_alias_p): Likewise.
11980         (for_all_locs_in_loop): Likewise.
11981         (struct rewrite_mem_ref_loc): Likewise.
11982         (rewrite_mem_refs): Likewise.
11983         (struct first_mem_ref_loc_1): Likewise.
11984         (first_mem_ref_loc): Likewise.
11985         (struct sm_set_flag_if_changed): Likewise.
11986         (execute_sm_if_changed_flag_set): Likewise.
11987         (execute_sm): Likewise.
11988         (hoist_memory_references):
11989         (struct ref_always_accessed): Likewise.
11990         (ref_always_accessed_p): Likewise.
11991         (refs_independent_p): Likewise.
11992         (record_dep_loop): Likewise.
11993         (ref_indep_loop_p_1): Likewise.
11994         (ref_indep_loop_p_2): Likewise.
11995         (ref_indep_loop_p): Likewise.
11996         (can_sm_ref_p): Likewise.
11997         (find_refs_for_sm): Likewise.
11998         (tree_ssa_lim_finalize): Likewise.
12000 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12002         * dwarf2out.c (dw_attr_ref): Remove typedef.
12003         (dw_line_info_ref): Likewise.
12004         (pubname_ref): Likewise.
12005         (dw_ranges_ref): Likewise.
12006         (dw_ranges_by_label_ref): Likewise.
12007         (comdat_type_node_ref): Likewise.
12008         (get_AT): Adjust.
12009         (get_AT_low_pc): Likewise.
12010         (get_AT_hi_pc): Likewise.
12011         (get_AT_string): Likewise.
12012         (get_AT_flag): Likewise.
12013         (get_AT_unsigned): Likewise.
12014         (get_AT_ref): Likewise.
12015         (get_AT_file): Likewise.
12016         (remove_AT): Likewise.
12017         (print_die): Likewise.
12018         (check_die): Likewise.
12019         (die_checksum): Likewise.
12020         (attr_checksum_ordered): Likewise.
12021         (struct checksum_attributes): Likewise.
12022         (collect_checksum_attributes): Likewise.
12023         (die_checksum_ordered): Likewise.
12024         (same_die_p): Likewise.
12025         (is_declaration_die): Likewise.
12026         (clone_die): Likewise.
12027         (clone_as_declaration): Likewise.
12028         (copy_declaration_context): Likewise.
12029         (break_out_comdat_types): Likewise.
12030         (copy_decls_walk): Likewise.
12031         (output_location_lists): Likewise.
12032         (external_ref_hasher::hash): Likewise.
12033         (optimize_external_refs_1): Likewise.
12034         (build_abbrev_table): Likewise.
12035         (size_of_die): Likewise.
12036         (unmark_all_dies): Likewise.
12037         (size_of_pubnames): Likewise.
12038         (output_die_abbrevs): Likewise.
12039         (output_die): Likewise.
12040         (output_pubnames): Likewise.
12041         (add_ranges_num): Likewise.
12042         (add_ranges_by_labels): Likewise.
12043         (add_high_low_attributes): Likewise.
12044         (gen_producer_string): Likewise.
12045         (dwarf2out_set_name): Likewise.
12046         (new_line_info_table): Likewise.
12047         (prune_unused_types_walk_attribs): Likewise.
12048         (prune_unused_types_update_strings): Likewise.
12049         (prune_unused_types): Likewise.
12050         (resolve_addr): Likewise.
12051         (optimize_location_lists_1): Likewise.
12052         (index_location_lists): Likewise.
12053         (dwarf2out_finish): Likewise.
12055 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12057         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12059 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12061         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12062         (dump_asserts_for): Adjust.
12063         (register_new_assert_for): Likewise.
12064         (process_assert_insertions): Likewise.
12065         (insert_range_assertions): Likewise.
12067 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12069         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12070         and remove typedef.
12071         (new_temp_expr_table): Adjust.
12072         (free_temp_expr_table): Likewise.
12073         (version_to_be_replaced_p): Likewise.
12074         (make_dependent_on_partition): Likewise.
12075         (add_to_partition_kill_list): Likewise.
12076         (remove_from_partition_kill_list): Likewise.
12077         (add_dependence): Likewise.
12078         (finished_with_expr): Likewise.
12079         (process_replaceable): Likewise.
12080         (kill_expr): Likewise.
12081         (kill_virtual_exprs): Likewise.
12082         (mark_replaceable): Likewise.
12083         (find_replaceable_in_bb): Likewise.
12084         (find_replaceable_exprs): Likewise.
12085         (debug_ter): Likewise.
12087 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12089         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12090         (struct btr_user): Rename from btr_user_s.
12091         (struct btr_def): Rename from btr_def_s.
12092         (find_btr_def_group): Adjust.
12093         (add_btr_def): Likewise.
12094         (new_btr_user): Likewise.
12095         (note_other_use_this_block): Likewise.
12096         (compute_defs_uses_and_gen): Likewise.
12097         (link_btr_uses): Likewise.
12098         (build_btr_def_use_webs): Likewise.
12099         (block_at_edge_of_live_range_p): Likewise.
12100         (btr_def_live_range): Likewise.
12101         (combine_btr_defs): Likewise.
12102         (move_btr_def): Likewise.
12103         (migrate_btr_def): Likewise.
12104         (migrate_btr_defs): Likewise.
12106 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12108         * var-tracking.c (shared_hash_def): Rename to shared_hash.
12109         (shared_hash): Remove typedef.
12110         (struct dataflow_set): Adjust.
12111         (shared_hash_unshare): Likewise.
12112         (dataflow_set_merge): Likewise.
12113         (vt_initialize): Likewise.
12114         (vt_finalize): Likewise.
12116 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12118         * var-tracking.c (struct location_chain): Rename from
12119         location_chain_def.
12120         (struct variable_part): Adjust.
12121         (variable_htab_free): Likewise.
12122         (unshare_variable): Likewise.
12123         (get_init_value): Likewise.
12124         (get_addr_from_local_cache): Likewise.
12125         (drop_overlapping_mem_locs): Likewise.
12126         (val_reset): Likewise.
12127         (struct variable_union_info): Likewise.
12128         (variable_union): Likewise.
12129         (find_loc_in_1pdv): Likewise.
12130         (insert_into_intersection): Likewise.
12131         (intersect_loc_chains): Likewise.
12132         (canonicalize_loc_order_check): Likewise.
12133         (canonicalize_values_mark): Likewise.
12134         (canonicalize_values_star): Likewise.
12135         (canonicalize_vars_star): Likewise.
12136         (variable_merge_over_cur): Likewise.
12137         (remove_duplicate_values): Likewise.
12138         (variable_post_merge_new_vals): Likewise.
12139         (variable_post_merge_perm_vals): Likewise.
12140         (find_mem_expr_in_1pdv): Likewise.
12141         (dataflow_set_preserve_mem_locs): Likewise.
12142         (dataflow_set_remove_mem_locs): Likewise.
12143         (variable_part_different_p): Likewise.
12144         (onepart_variable_different_p): Likewise.
12145         (find_src_set_src): Likewise.
12146         (dump_var): Likewise.
12147         (set_slot_part): Likewise.
12148         (clobber_slot_part): Likewise.
12149         (delete_slot_part): Likewise.
12150         (vt_expand_var_loc_chain): Likewise.
12151         (emit_note_insn_var_location): Likewise.
12152         (vt_finalize): Likewise.
12154 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12156         * dse.c (store_info_t): Remove typedef.
12157         (group_info_t): Likewise.
12158         (const_group_info_t): Likewise.
12159         (deferred_change_t): Likewise.
12160         (get_group_info): Adjust.
12161         (free_store_info): Likewise.
12162         (canon_address): Likewise.
12163         (clear_rhs_from_active_local_stores): Likewise.
12164         (record_store): Likewise.
12165         (replace_read): Likewise.
12166         (check_mem_read_rtx): Likewise.
12167         (scan_insn): Likewise.
12168         (remove_useless_values): Likewise.
12169         (dse_step1): Likewise.
12170         (dse_step2_init): Likewise.
12171         (dse_step2_nospill): Likewise.
12172         (scan_stores_nospill): Likewise.
12173         (scan_reads_nospill): Likewise.
12174         (dse_step3_exit_block_scan): Likewise.
12175         (dse_step3): Likewise.
12176         (dse_step5_nospill): Likewise.
12177         (dse_step6): Likewise.
12179 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12181         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12182         (alias_set_entry): Remove typedef.
12183         (alias_set_subset_of): Adjust.
12184         (alias_sets_conflict_p): Likewise.
12185         (init_alias_set_entry): Likewise.
12186         (get_alias_set): Likewise.
12187         (new_alias_set): Likewise.
12188         (record_alias_subset): Likewise.
12190 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
12192         * doc/install.texi (Downloading the source): Mark up
12193         contrib/download_prerequisites properly and drop leading "./".
12195 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12197         * config/arc/arc.h: Remove define of STRUCT_VALUE.
12198         * config/lm32/lm32.h: Likewise.
12199         * config/mep/mep.h: Likewise.
12200         * config/visium/visium.h: Likewise.
12201         * system.h: Poison STRUCT_VALUE macro.
12203 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
12205         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12206         CONSTANT_P operands.
12208 2015-09-11  David S. Miller  <davem@davemloft.net>
12210         * config/sparc/constraints.md: Make "U" constraint a real register
12211         constraint.
12212         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12213         (D_MODES, DF_MODES): Add missing cast.
12214         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12215         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12216         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12217         cost to 8.
12218         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12219         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12220         provide these insn when flag_pic.
12222 2015-09-11  Jeff Law  <law@redhat.com>
12224         PR tree-optimization/47679
12225         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12226         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12227         member with m_.  Update inline member functions as necessary.  Add
12228         toplevel comment.
12229         * tree-ssa-scopedtables.c: Update const_and_copies's member
12230         functions to use m_ prefix to access the stack.
12232 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12234         * graphite-optimize-isl.c (disable_tiling): Remove.
12235         (get_schedule_for_band): Do not use disable_tiling.
12236         (get_prevector_map): Delete function.
12237         (enable_polly_vector): Remove.
12238         (get_schedule_for_band_list): Remove dead code.
12240 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12242         * graphite-optimize-isl.c (get_tile_map): Refactor.
12243         (get_schedule_for_band): Same.
12244         (getScheduleForBand): Same.
12245         (get_prevector_map): Same.
12246         (get_schedule_for_band_list): Same.
12247         (get_schedule_map): Same.
12248         (get_single_map): Same.
12249         (apply_schedule_map_to_scop): Same.
12250         (optimize_isl): Same.
12252 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12254         PR target/63304
12255         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12256         (movtf): Delete.
12257         * config/aarch64/iterators.md (GPF_TF_F16): New.
12258         (GPF_F16): Delete.
12260 2015-09-10  Nathan Sidwell  <nathan@acm.org>
12262         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12263         (nvptx_reorg): Adjust comments.
12265 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
12267         PR bootstrap/67363
12268         * configure.ac: Check if setenv and unsetenv are declared.
12269         * configure: Rebuild.
12270         * config.in: Rebuild.
12271         * system.h: Declare setenv and unsetenv if not declared.
12273 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12275         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12276         commentary to simplify permute mask adjustment equation.
12277         (special_handling_values): Add SH_VPERM.
12278         (const_load_sequence_p): New function.
12279         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12280         the mask loaded from the constant pool.
12281         (adjust_vperm): New function.
12282         (handle_special_swappables): Call adjust_vperm.
12283         (dump_swap_insn_table): Handle SH_VPERM.
12285 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12287         * shrink-wrap.c (requires_stack_frame_p): Remove static.
12288         * shrink-wrap.h (requires_stack_frame_p): Put back.
12290 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12292         * reload1.c (elimination_costs_in_insn): Locally turn
12293         -Wmaybe-uninitialized into a warning.
12295 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
12297         * shrink-wrap.c (requires_stack_frame_p): Make static.
12298         (prepare_shrink_wrap): Likewise.
12299         (dup_block_and_redirect): Likewise.
12300         * shrink-wrap.h: Remove declarations of those functions.
12302 2015-09-10  Mark Wielaard  <mjw@redhat.com>
12304         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12306 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
12308         PR target/67506
12309         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12310         missing simplify_gen_subreg.
12312 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12314         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12315         the vector element is bigger than 64 bit.
12317 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12319         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12320         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12322 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12324         * config/s390/s390.c: Add V1TImode to constant pool modes.
12326 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12328         PR target/67439
12329         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12330         predicate.  Set predicable_short_it attr to "no".
12332 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
12334         PR rtl-optimization/67421
12335         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12336         left wide shift tranformation.
12338 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
12340         * common/config/arc/arc-common.c: Remove references to A5.
12341         * config/arc/arc-opts.h: Likewise.
12342         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12343         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12344         * config/arc/t-arc-newlib: Likewise.
12346 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
12348         * config/arc/arc.md (length): Fix attribute length for conditional
12349         executed instructions with long immediate.
12351 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12353         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12354         type for second alternative.
12356 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
12358         * doc/invoke.texi (Downloading GCC): Mention
12359         contrib/download_prerequisites script.
12361 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
12363         PR c++/67523
12364         * gimplify.c (gimplify_omp_for): If inner stmt is not found
12365         for combined loop, assert seen_error () and return GS_ERROR.
12367         PR middle-end/67521
12368         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12369         if decl is already in outer->variables.
12371         PR middle-end/67517
12372         * gimplify.c (gimplify_scan_omp_clauses): Instead of
12373         asserting that decl is not specified in octx->variables,
12374         break out of the loop if it is.
12376         PR c++/67514
12377         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12378         iterator is not explicitly determined, but is defined inside
12379         of the combined workshare region, handle it like if it has
12380         DECL_EXPR in OMP_FOR_PRE_BODY.
12382 2015-09-09  Nathan Sidwell  <nathan@acm.org>
12384         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12385         (*cmp<mode>): Add assembler spacing.
12386         (setcc_int<mode>, set_cc_float<mode>): Likewise.
12387         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12388         level.
12389         (write_func_decl_from_insn): Refactor argument loops & comma emission.
12390         (nvptx_expand_call): Likewise.
12391         (nvptx_output_call_insn): Likewise.
12392         (nvptx_reorg_subreg): Add spacing.
12394 2015-09-09  Marek Polacek  <polacek@redhat.com>
12396         PR middle-end/67512
12397         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12398         for comparisons.
12400 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
12402         PR c++/53184
12403         * doc/invoke.texi ([Wsubobject-linkage]): Document.
12405 2015-09-09  Tom de Vries  <tom@codesourcery.com>
12407         * params-list.h: Add missing copyright notice.
12409 2015-09-09  Nathan Sidwell  <nathan@acm.org>
12411         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12412         sel_truesi, not andsi.
12414 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12416         * config/arm/arm.md (*subsi3_compare0): Rename to...
12417         (subsi3_compare0): ... This.
12418         (modsi3): New define_expand.
12419         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12420         when operand is power of 2.
12422 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12424         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12425         (*neg<mode>2_compare0): Rename to...
12426         (neg<mode>2_compare0): ... This.
12427         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12428         Move check for speed inside the if-then-elses.  Reflect
12429         CSNEG sequence in MOD by power of 2 case.
12431 2015-09-09  Alan Modra  <amodra@gmail.com>
12433         PR target/67378
12434         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12435         reload replacement for PRE_MODIFY address reg.
12437 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
12439         PR tree-optimization/53852
12440         * config.in: Regenerate.
12441         * configure: Regenerate.
12442         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
12443         * graphite-optimize-isl.c (optimize_isl): Stop computation when
12444         PARAM_MAX_ISL_OPERATIONS is reached.
12445         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
12446         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
12447         result equal to isl_stat_ok as the status now can be isl_error_quota.
12448         (subtract_commutative_associative_deps): Same.
12449         (compute_deps): Same.
12451 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
12452             Sebastian Pop  <s.pop@samsung.com>
12454         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12455         Return the parameter if it was saved in corresponding
12456         parameter_rename_map of the region.
12457         (copy_def): Copy def from sese region to the newly created region.
12458         (copy_internal_parameters): Copy all the internal parameters defined
12459         within a region to the newly created region.
12460         (graphite_regenerate_ast_isl): Copy parameters to the new region before
12461         translating isl to gimple.
12462         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
12463         the loop-nest does not have any data-references.
12464         (build_graphite_scops): Create a scop only when there is at least one
12465         loop inside it.
12466         (contains_only_close_phi_nodes): Deleted.
12467         (print_graphite_scop_statistics): Deleted
12468         (print_graphite_statistics): Deleted
12469         (limit_scops): Deleted.
12470         (build_scops): Removed call to limit_scops.
12471         * sese.c (new_sese): Construct.
12472         (free_sese): Destruct.
12473         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
12474         added.
12475         (set_rename): Pass sese region so that parameters inside the region can
12476         be added to its parameter_rename_map.
12477         (rename_uses): Pass sese region.
12478         (graphite_copy_stmts_from_block): Do not copy parameters that have been
12479         generated in the header of the scop. For each SSA_NAME in the
12480         parameter_rename_map rename its usage.
12481         (invariant_in_sese_p_rec): Return false if tree t is defined outside
12482         sese region.
12483         (scalar_evolution_in_region): If the tree t is invariant just return t.
12484         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
12485         struct sese to keep track of all the parameters which need renaming.
12486         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
12487         any data-refs.
12488         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
12490 2015-09-08  Tom de Vries  <tom@codesourcery.com>
12492         * Makefile.in (generated_files): Add params.list.
12493         (params.list, s-params.list): Add rule.
12494         * params.h (enum compiler_param): Include params-list.h.  Move define
12495         DEFPARAM, include params.def and undef DEFPARAM ...
12496         * params-list.h: ... here.  New file.
12498 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
12500         * pretty-print.h (printer_fn): Fix typo in comment.
12502 2015-09-07  Jeff Law  <law@redhat.com>
12504         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
12506 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12508         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
12509         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
12510         (arm_neon_fp16_hw): New.
12512 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12514         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
12515         UNITS_PER_WORD >= 4.
12517 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12519         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
12520         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
12521         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
12522         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
12523         (aarch64_float_extend_lo_v2df): Rename to...
12524         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
12526         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
12527         (float_extend_lo): Add v4sf.
12529         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
12530         * config/aarch64/iterators.md (VQ_HSF): New iterator.
12531         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
12532         (Vwide): New mode_attr.
12534 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12536         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
12537         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
12538         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
12539         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
12540         V4HF and V8HF variants to iterator.
12542         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
12544         * config/aarch64/iterators.md (VDQF_F16): New.
12545         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
12547 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12549         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
12550         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12551         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
12552         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
12553         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
12554         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12555         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
12556         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
12557         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
12558         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
12559         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
12560         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12561         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
12562         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
12563         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
12564         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
12565         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
12566         vld1q_dup_f16): New.
12568 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12570         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
12571         Reparameterize to...
12572         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
12573         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
12574         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
12576         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
12577         v8hf variant.
12578         (float_truncate_lo_): Use BUILTIN_VDF iterator.
12580         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
12582         * config/aarch64/iterators.md (VDF, Vdtype): New.
12583         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
12585 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12587         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
12588         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
12589         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
12590         Add __builtin_aarch64_simd_hf.
12591         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
12592         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
12593         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
12594         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
12595         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
12596         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
12597         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
12598         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
12599         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
12601         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
12602         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
12603         (VDC, Vdbl): Add V4HF.
12605 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12607         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
12608         V4HFmode and V8HFmode.
12609         (aarch64_split_simd_move): Add case for V8HFmode.
12610         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
12611         (aarch64_simd_builtin_std_type): Handle HFmode.
12612         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
12614         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
12615         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
12616         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
12618         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
12619         Float16x8_t.
12621         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
12622         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
12623         New typedefs.
12624         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
12625         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
12626         vst1q_lane_f16): New.
12627         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
12628         (VALLDI_F16, VALL_F16): New.
12629         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
12630         Add cases for V4HF and V8HF.
12631         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
12633 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12635         * config/arm/arm-builtins.c (VAR11, VAR12): New.
12636         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
12637         vld4_dup): Add v4hf variant.
12638         (vget_high, vget_low): Add v8hf variant.
12639         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
12640         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
12641         v4hf and v8hf variants.
12643         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
12644         (VDX): Add V4HF.
12645         (V_DOUBLE): Add case for V4HF.
12646         (VQX): Add V8HF.
12647         (V_HALF): Add case for V8HF.
12648         (VDQX): Add V4HF, V8HF.
12649         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
12650         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
12652         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
12653         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
12654         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
12655         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
12656         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
12657         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
12658         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
12659         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
12660         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
12662         (neon_vcreate, neon_vreinterpretv8qi<mode>,
12663         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12664         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
12665         Change VDX to VD_RE.
12667         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
12668         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
12669         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
12671         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
12672         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
12673         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
12674         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
12675         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
12676         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
12677         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
12678         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
12679         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
12681 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12683         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
12684         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
12685         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
12686         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
12687         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
12688         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
12689         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
12690         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
12691         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
12692         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
12693         New.
12695 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12697         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
12699         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
12701         * config/arm/arm-builtins.c (v8hf_UP): New.
12702         (arm_init_simd_builtin_types): Initialise Float16x8_t.
12704         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
12706         * config/arm/arm_neon.h (float16x8_t): New typedef.
12708 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
12710         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
12711         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
12712         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
12713         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
12714         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
12715         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
12716         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
12717         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
12718         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
12719         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
12721 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
12723         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
12724         non-alphanumeric characters in the symbol name.
12726 2015-09-07  Marek Polacek  <polacek@redhat.com>
12728         PR inline-asm/67448
12729         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
12730         a memory input.
12732 2015-09-07  Marek Polacek  <polacek@redhat.com>
12734         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
12736 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
12738         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
12739         not warn.
12741 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
12743         PR middle-end/67452
12744         * tree-ssa-live.c: Include cfgloop.h.
12745         (remove_unused_locals): Clear loop->simduid if simduid is about
12746         to be removed from cfun->local_decls.
12748 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12750         PR target/65210
12751         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
12752         attribute as well.
12754 2015-09-04  Tom de Vries  <tom@codesourcery.com>
12756         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
12758 2015-09-04  Jeff Law  <law@redhat.com>
12760         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
12761         unnecessary constructor.  It's now trivial and implemented inside...
12762         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
12763         constructor.  Add comments to various methods.  Remove unused
12764         private fields.
12765         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
12766         * tree-vrp.c (identify_jump_threads): Likewise.
12767         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
12768         indentation issues.
12769         (thread_across_edge): Similarly.
12770         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
12771         arguments in constructor call.
12773 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12775         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
12776         temp path contains a '-'.
12778 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12779             Petr Murzin  <petr.murzin@intel.com>
12780             Kirill Yukhin  <kirill.yukhin@intel.com>
12782         * config/i386/i386-builtin-types.def
12783         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
12784         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
12785         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
12786         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
12787         * config/i386/i386.c
12788         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
12789         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12790         IX86_BUILTIN_SCATTERALTDIV16SI.
12791         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
12792         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
12793         __builtin_ia32_scatteraltdiv8si.
12794         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
12795         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
12796         IX86_BUILTIN_SCATTERALTDIV16SI.
12797         (ix86_vectorize_builtin_scatter): New.
12798         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
12799         ix86_vectorize_builtin_scatter.
12801 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12802             Petr Murzin  <petr.murzin@intel.com>
12803             Kirill Yukhin  <kirill.yukhin@intel.com>
12805         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
12806         * doc/tm.texi: Regenerate.
12807         * target.def: Add scatter builtin.
12808         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
12809         for loads/stores in case of gather/scatter accordingly.
12810         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12811         STMT_VINFO_GATHER_P(S).
12812         (vect_check_gather): Rename to ...
12813         (vect_check_gather_scatter): this.
12814         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
12815         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
12816         (vect_check_gather_scatter): Use it instead of vect_check_gather.
12817         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
12818         variable and new checkings for it accordingly.
12819         * tree-vect-stmts.c
12820         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
12821         STMT_VINFO_GATHER_P(S).
12822         (vect_check_gather_scatter): Use it instead of vect_check_gather.
12823         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
12825 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
12827         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
12828         define_insn.
12829         (mulv16qi3): New define_expand.
12831 2015-09-03  Martin Sebor  <msebor@redhat.com>
12833         PR c/66516
12834         * doc/extend.texi (Other Builtins): Document when the address
12835         of a built-in function can be taken.
12837 2015-09-03  Richard Biener  <rguenther@suse.de>
12839         * dwarf2out.c (flush_limbo_die_list): Split out from ...
12840         (dwarf2out_early_finish): ... here.
12841         (dwarf2out_finish): Do not call dwarf2out_early_finish but
12842         flush_limbo_die_list.  Assert we have no deferred asm names.
12844 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12846         * optabs.c (expand_binop): Don't create a broadcast vector with a
12847         source element wider than the inner mode.
12849 2015-09-03  Richard Biener  <rguenther@suse.de>
12851         * varasm.c (output_constant): Use fold_convert instead of
12852         wide_int_to_tree.
12854 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12856         PR tree-optimization/65637
12857         * omp-low.c (expand_omp_for_static_chunk): Handle case that
12858         fin_bb has 2 predecessors.
12860 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12862         PR tree-optimization/65637
12863         * omp-low.c (find_phi_with_arg_on_edge): New function.
12864         (expand_omp_for_static_chunk): Fix inner loop phi.
12866 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12868         PR tree-optimization/65637
12869         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
12870         that head is NULL.
12872 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12874         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
12876 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12878         * doc/invoke.texi (parloops-chunk-size): Add item.
12879         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
12880         * tree-parloops.c: Include params.h.
12881         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
12882         param parloops-chunk-size is used.
12884 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12886         PR middle-end/67351
12887         * fold-const.c (fold_binary_loc) : Move
12888         Transform (x >> c) << c into x & (-1<<c) or
12889         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
12890         types using simplify and match.
12891         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
12892         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
12894 2015-09-03  Richard Biener  <rguenther@suse.de>
12896         PR ipa/66705
12897         * tree-ssa-structalias.c (ctor_for_analysis): New function.
12898         (create_variable_info_for_1): Use ctor_for_analysis instead
12899         of get_constructor.
12900         (create_variable_info_for): Likewise.
12902 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
12904         PR ipa/67280
12905         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
12906         in new callgraph edge.
12908 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
12910         PR target/59810
12911         PR target/63652
12912         PR target/63653
12913         * config/aarch64/aarch64-simd.md
12914         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
12915         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
12916         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
12917         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
12919 2015-09-02  Alan Modra  <amodra@gmail.com>
12921         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
12922         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
12923         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
12925 2015-09-02  Alan Modra  <amodra@gmail.com>
12927         PR target/67417
12928         * config/rs6000/predicates.md (current_file_function_operand): Don't
12929         return true for weak symbols.
12930         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
12932 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
12933             Andrew Bennett  <andrew.bennett@imgtec.com>
12935         * config/mips/mips-opts.h (mips_cb_setting): New enum.
12936         * config/mips/mips-protos.h: Add definitions for
12937         mips_output_jump and mips_output_equal_conditional_branch
12938         * config/mips/mips.c (MIPS_JR): Change to support the
12939         JIC instruction.
12940         (mips_emit_compare): Add support for the MIPS R6 conditional
12941         compact branches.
12942         (mips_process_sync_loop): Likewise.
12943         (mips_output_order_conditional_branch): Likewise.
12944         (mips16_build_call_stub): Change MIPS_CALL to
12945         mips_output_jump.
12946         (mips_print_operand_punctuation): Update 's' case to only
12947         apply to micromips r2.
12948         (mips_adjust_insn_length): Add support for forbidden slot
12949         hazards.
12950         (mips_avoid_hazard): Likewise.
12951         (mips_reorg_process_insns): Likewise.
12952         (mips_output_jump): New function.
12953         (mips_output_equal_conditional_branch): Likewise.
12954         (mips_output_conditional_branch): Use jrc/bc if compact
12955         branch support is enabled.  Ensure the forbidden slots
12956         between the two branch instructions is filled with a nop.
12957         (mips_option_override): Add support to process the compact
12958         branch option and set the correct defaults.  Prevent
12959         non-explict relocs being using for MIPS R6.
12960         (mips_trampoline_init): Add compact branch support.
12961         (mips_mult_zero_zero_cost): Allow zero initialisation of
12962         accumulators with TARGET_DSP.
12963         * config/mips/mips.h (TARGET_CB_NEVER): New define.
12964         (TARGET_CB_MAYBE): New define.
12965         (TARGET_CB_ALWAYS): New define.
12966         (ISA_HAS_DELAY_SLOTS): New define.
12967         (ISA_HAS_COMPACT_BRANCHES): New define.
12968         (ISA_HAS_JRC): New define.
12969         (MIPS_BRANCH_C): New define.
12970         (MIPS_CALL): Removed.
12971         (MICROMIPS_J): Removed.
12972         * config/mips/mips.md (compact_form): New attr.
12973         (hazard): Add support for forbidden slots.
12974         (define_delay): Add support for compact branches.
12975         (*branch_order<mode>): Likewise.
12976         (*branch_order<mode>_inverted): Likewise.
12977         (*branch_equality<mode>): Likewise.
12978         (*branch_equality<mode>_inverted): Likewise.
12979         (*jump_absolute): Likewise.
12980         (*jump_pic): Likewise.
12981         (indirect_jump): Use mips_output_jump to produce assembly output.
12982         (tablejump_<mode>"): Likewise.
12983         (*<optab>"): Likewise.
12984         (<optab>_internal): Likewise.
12985         (sibcall_internal): Likewise.
12986         (sibcall_value_internal): Likewise.
12987         (sibcall_value_multiple_internal): Likewise.
12988         (call_internal): Likewise.
12989         (call_split): Likewise.
12990         (call_internal_direct): Likewise.
12991         (call_direct_split): Likewise.
12992         (call_value_internal): Likewise.
12993         (call_value_split): Likewise.
12994         (call_value_internal_direct): Likewise.
12995         (call_value_direct_split): Likewise.
12996         (call_value_multiple_internal): Likewise.
12997         (call_value_multiple_split): Likewise.
12998         (mips_get_fcsr_mips16_<mode>): Likewise.
12999         (mips_set_fcsr_mips16_<mode>): Likewise.
13000         (tls_get_tp_mips16_<mode>): Likewise.
13001         * config/mips/mips.opt: Add -mcompact-branches option.
13002         * config/mips/predicates.md (order_operator): Ensure the
13003         conditional compact branches are only used if the ISA them.
13004         * doc/invoke.texi: Document -mcompact-branches option.
13006 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
13008         PR target/61578
13009         * lra-lives.c (process_bb_lives): Process move pseudos with the
13010         same value for copies and preferences
13011         * lra-constraints.c (match_reload): Create match reload pseudo
13012         with the same value from single dying input pseudo.
13014 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13016         PR target/67405
13017         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13019 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
13021         * trans-mem.c: Add contributed-by.
13022         * trans-mem.h: Same.
13024 2015-09-01  Richard Biener  <rguenther@suse.de>
13026         * expr.c (expand_expr_real_1): For expanding TERed defs
13027         set the current location to that of the def if not UNKNOWN.
13029 2015-09-01  David Sherwood  <david.sherwood@arm.com>
13031         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13033 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13035         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13036         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
13037         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13038         Include rtl-iter.h.
13039         (noce_simple_bbs): New function.
13040         (noce_try_move): Bail if basic blocks are not simple.
13041         (noce_try_store_flag): Likewise.
13042         (noce_try_store_flag_constants): Likewise.
13043         (noce_try_addcc): Likewise.
13044         (noce_try_store_flag_mask): Likewise.
13045         (noce_try_cmove): Likewise.
13046         (noce_try_minmax): Likewise.
13047         (noce_try_abs): Likewise.
13048         (noce_try_sign_mask): Likewise.
13049         (noce_try_bitop): Likewise.
13050         (bbs_ok_for_cmove_arith): New function.
13051         (noce_emit_all_but_last): Likewise.
13052         (noce_emit_insn): Likewise.
13053         (noce_emit_bb): Likewise.
13054         (noce_try_cmove_arith): Handle non-simple basic blocks.
13055         (insn_valid_noce_process_p): New function.
13056         (contains_mem_rtx_p): Likewise.
13057         (bb_valid_for_noce_process_p): Likewise.
13058         (noce_process_if_block): Allow non-simple basic blocks
13059         where appropriate.
13061 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
13063         * tree-ssa-dom.c (record_equivalences_from_phis,
13064         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13065         (lookup_avail_expr): Likewise, and remove comment and unused temp.
13067 2015-09-01  Nick Clifton  <nickc@redhat.com>
13069         * config/msp430/msp430.opt (mcpu): Fix typo.
13071 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13073         * config/aarch64/aarch64.c (aarch64_set_current_function):
13074         Re-layout any vector parameters have non-simd layout.
13075         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13076         Delete.
13077         (aarch64_simd_expand_args): Delete call to the above.
13079 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
13081         * doc/invoke.texi (asan-stack): Add space before option.
13083 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13085         * tree.h (zerop): New function.
13086         * tree.c (zerop): Likewise.
13087         (element_precision): Handle expressions.
13088         * match.pd (define_predicates): Add zerop.
13089         (x <= +Inf): Fix comment.
13090         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13091         * fold-const.c (fold_binary_loc): ... here. Remove.
13093 2015-08-31  Richard Biener  <rguenther@suse.de>
13095         PR middle-end/67381
13096         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13098 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13100         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13101         (CEXPI): New operator list.
13102         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13103         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13104         Converted from ...
13105         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13107 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13109         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13110         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13111         parameter.
13112         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13113         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13114         (rewrite_into_loop_closed_ssa): ... here.
13115         (replace_uses_in_dominated_bbs): Remove function.
13116         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13117         rewrite_into_loop_closed_ssa_1.
13119 2015-08-31  Michael Matz  <matz@suse.de>
13121         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13122         enter entry and exit blocks for reverse post order.
13124 2015-08-31  Richard Biener  <rguenther@suse.de>
13126         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13127         (lto_location_cache::current_sysp): Likewise.
13128         (output_block::current_sysp): Likewise.
13129         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13130         (lto_location_cache::apply_location_cache): Properly record
13131         system header locations.
13132         (lto_location_cache::input_location): Input whether a file
13133         is a system header.
13134         * lto-streamer-out.c (lto_output_location): Stream whether a file
13135         is a system header.
13137 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13139         PR bootstrap/67363
13140         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13142 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13144         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13145         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13146         Improve function header comments.
13148 2015-08-30  Michael Collison  <michael.collison@linaro.org>
13150         PR other/67320
13151         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13152         standard names
13154 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13156         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13157         special_handling bitfield.
13158         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13159         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13160         that represents a general xxpermdi.
13161         (insn_is_swappable_p): Add handling for vec_concat of two
13162         doublewords, which maps to a specific xxpermdi.
13163         (adjust_xxpermdi): New function.
13164         (adjust_concat): Likewise.
13165         (handle_special_swappables): Call adjust_xxpermdi and
13166         adjust_concat.
13167         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13169 2015-08-30  Rich Felker <dalias@libc.org>
13171         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13172         case instead of sh[123456ble]-*-*.
13174 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
13176         * ira.c (print_unform_and_important_classes,
13177         print_translated_classes): Remove reg_class_names static array.
13178         (print_unform_and_important_classes): Rename to ...
13179         (print_uniform_and_important_classes): ... this.
13180         (ira_debug_allocno_classes): Update accordingly.
13182 2015-08-29  Tom de Vries  <tom@codesourcery.com>
13184         PR tree-optimization/46193
13185         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13186         clause.
13188 2015-08-28  Jeff Law  <law@redhat.com>
13190         PR lto/66752
13191         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13192         unable to find X NE 0 in the tables, return X as the simplified
13193         condition.
13194         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13195         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13196         to VISISTED_BBS.
13197         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13198         after removing the control flow statement and unnecessary edges.
13200 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
13202         Revert:
13203         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13205         PR tree-optimization/67283
13206         * tree-sra.c (type_consists_of_records_p): Rename to...
13207         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13209         (completely_scalarize_record): Rename to...
13210         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13211         code to:
13212         (scalarize_elem): New.
13214 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
13216         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13217         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13218         (aarch64_symbol_type): Likewise.
13219         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13220         Likewise.
13221         (aarch64_expand_mov_immediate): Likewise.
13222         (aarch64_print_operand): Likewise.
13223         (aarch64_classify_tls_symbol): Likewise.
13225 2015-08-28  Richard Biener  <rguenther@suse.de>
13227         * cgraphunit.c (symbol_table::compile): Move early debug generation
13228         and finish...
13229         (symbol_table::finalize_compilation_unit): ... back here and
13230         add a !seen_error () guard.
13232 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13234         * toplev.c (process_options): Do not use flag_loop_block,
13235         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
13236         flag_loop_optimize_isl.
13238 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13240         * Makefile.in (OBJS): Remove graphite-blocking.o and
13241         graphite-interchange.o.
13242         * common.opt (floop-strip-mine, floop-interchange, floop-block):
13243         Alias of floop-nest-optimize.
13244         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13245         Document as alias of -floop-nest-optimize.
13246         * graphite-blocking.c: Remove.
13247         * graphite-interchange.c: Remove.
13248         * graphite-optimize-isl.c: Include dumpfile.h.
13249         (getScheduleForBand): Add dump for tiled loops.  Use
13250         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13251         * graphite-poly.c (scop_max_loop_depth): Remove.
13252         (print_scattering_function_1): Remove.
13253         (print_scattering_function): Remove.
13254         (print_scattering_functions): Remove.
13255         (debug_scattering_function): Remove.
13256         (debug_scattering_functions): Remove.
13257         (apply_poly_transforms): Remove use of flag_loop_block,
13258         flag_loop_strip_mine, and flag_loop_interchange.
13259         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13260         PBB_ORIGINAL.
13261         (print_pdr_access_layout): Remove.
13262         (print_pdr): Print ISL representation.
13263         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13264         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13265         (free_scop): Same.
13266         (openscop_print_pbb_domain): Remove.
13267         (print_pbb): Remove call to print_scattering_function.
13268         (openscop_print_scop_context): Remove.
13269         (print_scop_context): Do not print matrices anymore.
13270         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13271         SCOP_TRANSFORMED_SCHEDULE.
13272         (print_isl_set): Add printing of a new line.
13273         (print_isl_map): Same.
13274         (print_isl_aff): Same.
13275         (print_isl_constraint): Same.
13276         (loop_to_lst): Remove.
13277         (scop_to_lst): Remove.
13278         (lst_indent_to): Remove.
13279         (print_lst): Remove.
13280         (debug_lst): Remove.
13281         (dot_lst_1): Remove.
13282         (dot_lst): Remove.
13283         (reverse_loop_at_level): Remove.
13284         (reverse_loop_for_pbbs): Remove.
13285         * graphite-poly.h (pdr_dim_iter_domain): Remove.
13286         (pdr_nb_params): Remove.
13287         (pdr_alias_set_dim): Remove.
13288         (pdr_subscript_dim): Remove.
13289         (pdr_iterator_dim): Remove.
13290         (pdr_parameter_dim): Remove.
13291         (same_pdr_p): Remove.
13292         (struct poly_scattering): Remove.
13293         (struct poly_bb): Remove _original, _transformed, _saved.
13294         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13295         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13296         (PBB_NB_LOCAL_VARIABLES): Remove.
13297         (PBB_NB_SCATTERING_TRANSFORM): Remove.
13298         (schedule_to_scattering): Remove.
13299         (number_of_write_pdrs): Remove.
13300         (pbb_dim_iter_domain): Remove.
13301         (pbb_nb_params): Remove.
13302         (pbb_nb_scattering_orig): Remove.
13303         (pbb_nb_scattering_transform): Remove.
13304         (pbb_nb_dynamic_scattering_transform): Remove.
13305         (pbb_nb_local_vars): Remove.
13306         (pbb_iterator_dim): Remove.
13307         (pbb_parameter_dim): Remove.
13308         (psco_scattering_dim): Remove.
13309         (psct_scattering_dim): Remove.
13310         (psct_local_var_dim): Remove.
13311         (psco_iterator_dim): Remove.
13312         (psct_iterator_dim): Remove.
13313         (psco_parameter_dim): Remove.
13314         (psct_parameter_dim): Remove.
13315         (psct_dynamic_dim): Remove.
13316         (psct_static_dim): Remove.
13317         (psct_add_local_variable): Remove.
13318         (new_lst_loop): Remove.
13319         (new_lst_stmt): Remove.
13320         (free_lst): Remove.
13321         (copy_lst): Remove.
13322         (lst_add_loop_under_loop): Remove.
13323         (lst_depth): Remove.
13324         (lst_dewey_number): Remove.
13325         (lst_dewey_number_at_depth): Remove.
13326         (lst_pred): Remove.
13327         (lst_succ): Remove.
13328         (lst_find_pbb): Remove.
13329         (find_lst_loop): Remove.
13330         (lst_find_first_pbb): Remove.
13331         (lst_empty_p): Remove.
13332         (lst_find_last_pbb): Remove.
13333         (lst_contains_p): Remove.
13334         (lst_contains_pbb): Remove.
13335         (lst_create_nest): Remove.
13336         (lst_remove_from_sequence): Remove.
13337         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13338         (lst_niter_for_loop): Remove.
13339         (pbb_update_scattering): Remove.
13340         (lst_update_scattering_under): Remove.
13341         (lst_update_scattering): Remove.
13342         (lst_insert_in_sequence): Remove.
13343         (lst_replace): Remove.
13344         (lst_substitute_3): Remove.
13345         (lst_distribute_lst): Remove.
13346         (lst_remove_all_before_including_pbb): Remove.
13347         (lst_remove_all_before_excluding_pbb): Remove.
13348         (struct scop): Remove original_schedule, transformed_schedule, and
13349         saved_schedule.
13350         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13351         (SCOP_SAVED_SCHEDULE): Remove.
13352         (poly_scattering_new): Remove.
13353         (poly_scattering_free): Remove.
13354         (poly_scattering_copy): Remove.
13355         (store_scattering_pbb): Remove.
13356         (store_lst_schedule): Remove.
13357         (restore_lst_schedule): Remove.
13358         (store_scattering): Remove.
13359         (restore_scattering_pbb): Remove.
13360         (restore_scattering): Remove.
13361         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13362         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
13363         compute the scattering polyhedron dimension from the dimension of
13364         pbb->domain.
13365         (build_scop_scattering): Update call to
13366         build_pbb_scattering_polyhedrons.
13367         (build_poly_scop): Remove call to scop_to_lst.
13368         * graphite.c (graphite_transform_loops): Add call to print_scop.
13369         (gate_graphite_transforms): Remove use of flag_loop_block,
13370         flag_loop_interchange, and flag_loop_strip_mine.
13372 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13374         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13375         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13376         -floop-nest-optimize.
13377         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13378         (generate_luj_sepclass): Remove.
13379         (generate_luj_options): Remove.
13380         (set_options): Remove opt_luj.
13381         (scop_to_isl_ast): Remove opt_luj.
13382         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13383         flag_loop_unroll_jam.
13384         (getPrevectorMap_full): Remove.
13385         (getScheduleForBandList): Remove map_sepcl.
13386         (getScheduleMap): Same.
13387         (apply_schedule_map_to_scop): Remove sepcl.
13388         (optimize_isl): Same.
13389         * graphite-poly.c (apply_poly_transforms): Remove check for
13390         flag_loop_unroll_jam.
13391         (new_poly_bb): Remove map_sepclass.
13392         * graphite-poly.h (struct poly_bb): Same.
13393         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13394         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13395         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13396         * toplev.c (process_options): Remove flag_loop_unroll_jam.
13398 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
13400         PR target/67317
13401         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13402         (addqi3_cc): Ditto.
13403         (UNSPEC_ADD_CARRY): Remove.
13404         (addqi3_cconly_overflow): New expander.
13405         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13406         Adjust for changed add<mode>3_carry.
13407         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13408         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13409         (<plusminus_insn><mode>3_carry): Remove expander.
13410         (*<plusminus_insn><mode>3_carry): Split insn pattern to
13411         add<mode>3_carry and sub<mode>3_carry.
13412         (plusminus_carry_mnemonic): Remove code attribute.
13413         (add<mode>3_carry): Canonicalize insn pattern.
13414         (*addsi3_carry_zext): Ditto.
13415         (sub<mode>3_carry): Ditto.
13416         (*subsi3_carry_zext): Ditto.
13417         (adcx<mode>3): Remove insn pattern.
13418         (addcarry<mode>): New insn pattern.
13419         (subborrow<mode>): Ditto.
13420         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13421         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13422         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13423         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13424         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13425         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13426         Rewrite expander to not clobber carry flag chains.
13428 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
13430         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13431         instead of a rotate.
13433 2015-08-27  Marek Polacek  <polacek@redhat.com>
13435         PR middle-end/67005
13436         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13437         an entry into an irreducible region.
13439 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13441         * configure: Regenerate.
13443 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13445         PR tree-optimization/67283
13446         * tree-sra.c (type_consists_of_records_p): Rename to...
13447         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13449         (completely_scalarize_record): Rename to...
13450         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13451         (scalarize_elem): New.
13453 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13455         * tree-sra.c (completely_scalarize_var): Rename to...
13456         (create_total_scalarization_access): ... Here. Drop call to
13457         completely_scalarize_record.
13459         (analyze_all_variable_accesses): Replace completely_scalarize_var
13460         with create_total_scalarization_access and completely_scalarize_record.
13462 2015-08-27  Alan Modra  <amodra@gmail.com>
13464         PR target/67356
13465         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
13466         for operand 1.
13468 2015-08-27  Richard Biener  <rguenther@suse.de>
13470         * passes.c (rest_of_decl_compilation): Guard early_global_decl
13471         call with !seen_error ().
13472         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
13473         early debug generation and finish...
13474         (symbol_table::compile): ... here to put it after a !seen_error ()
13475         guard.
13477 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13479         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
13480         Solaris 12+.
13482 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13483             Andre Vieira  <andre.simoesdiasvieira@arm.com>
13485         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
13486         (*cb<optab><mode>1): Likewise.
13487         (*tb<optab><mode>1): Likewise.
13488         (*cb<optab><mode>1): Likewise.
13489         * config/aarch64/iterators.md (inv_cb): New code attribute.
13490         (inv_tb): Likewise.
13491         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
13492         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
13494 2015-08-27  Richard Biener  <rguenther@suse.de>
13496         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
13498 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13500         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
13501         trap to fix ICE.
13503 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13505         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
13506         Add declaration.
13508         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
13509         comment.
13510         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
13511         floating point in VSX registers.
13512         (rs6000_output_move_128bit): Always print out the set insn if we
13513         can't generate an appropriate 128-bit move.
13514         (rs6000_generate_compare): Add support for IEEE 128-bit floating
13515         point in VSX registers comparisons.
13516         (rs6000_expand_float128_convert): Likewise.
13518         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
13519         predicate for only GPR hard registers.
13521         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
13522         modes to iterators. Add new iterators for moving 128-bit values in
13523         scalar FPR registers and VSX registers.
13524         (FMOVE128): Likewise.
13525         (FMOVE128_FPR): Likewise.
13526         (FMOVE128_GPR): Likewise.
13527         (FMOVE128_VSX): Likewise.
13528         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
13529         in VSX registers.
13530         (IFKF): Likewise.
13531         (IBM128): Likewise.
13532         (TFIFKF): Likewise.
13533         (RELOAD): Add IEEE 128-bit floating point modes.
13534         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
13535         floating point in VSX registers modes.
13536         (signbit<mode>2, IBM128 iterator): Likewise.
13537         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
13538         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13539         (negtf2): Likewise.
13540         (neg<mode>2, TFIFKF iterator): Likewise.
13541         (negtf2_internal): Likewise.
13542         (abstf2): Likewise.
13543         (abs<mode>2, TFIFKF iterator): Likewise.
13544         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
13545         VSX insn support for negate, absolute value, and negative absolute
13546         value.
13547         (ieee_128bit_vsx_neg<mode>2): Likewise.
13548         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
13549         (ieee_128bit_vsx_abs<mode>2): Likewise.
13550         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
13551         (ieee_128bit_vsx_nabs<mode>2): Likewise.
13552         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
13553         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
13554         floating point in VSX registers.
13555         (unpack<mode>_dm): Likewise.
13556         (unpack<mode>_nodm): Likewise.
13557         (pack<mode>): Likewise.
13558         (unpackv1ti): Likewise.
13559         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
13560         (packv1ti): Likewise.
13561         (pack<mode>, FMOVE128_VSX iterator): Likewise.
13562         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
13563         registers.
13564         (extenddftf2_internal): Likewise.
13565         (trunctfdf2): Likewise.
13566         (trunctfdf2_internal2): Likewise.
13567         (fix_trunc_helper): Likewise.
13568         (fix_trunctfdi2"): Likewise.
13569         (floatditf2): Likewise.
13570         (floatuns<mode>tf2): Likewise.
13571         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
13572         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
13573         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
13574         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
13575         (float<SDI:mode><IFKF:mode>2): Likewise.
13576         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
13578 2015-08-26  Renlin Li  <renlin.li@arm.com>
13580         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
13582 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13583             Jiong Wang  <jiong.wang@arm.com>
13585         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
13586         (tlsie_tiny_<mode>): New define_insn.
13587         (tlsie_tiny_sidi): Likewise.
13588         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13589         SYMBOL_TINY_TLSIE.
13590         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
13591         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13592         SYMBOL_TINY_TLSIE.
13593         (aarch64_expand_mov_immediate): Likewise.
13594         (aarch64_print_operand): Likewise.
13595         (arch64_classify_tls_symbol): Likewise.
13597 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13599         * config/arm/arm-arches.def: Replace single value flags with
13600         an initializer built from ARM_FSET_MAKE_CPU1.
13601         * config/arm/arm-cores.def: Likewise.
13602         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
13603         derivation from the ARM_CORE macro definition, use the given value
13604         instead.
13605         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
13606         ARM_ARCH macro definition, use the given value instead.
13608 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13610         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
13611         feature set.
13612         (struct builtin_description): Replace field mask with field
13613         features.
13614         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
13615         (IWMMXT2_BUILTIN): Likewise.
13616         (IWMMXT2_BUILTIN2): Likewise.
13617         (FP_BUILTIN): Likewise.
13618         (CRC32_BUILTIN): Likewise.
13619         (CRYPTO_BUILTIN): Likewise.
13620         (iwmmx_mbuiltin): Likewise.
13621         (iwmmx2_mbuiltin): Likewise.
13622         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
13623         struct builtin_description.
13625 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13627         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
13628         (struct builtin_description): Change type of mask to unsigned
13629         long.
13630         * config/arm/arm-protos.h (insn_flags): Declare as type
13631         arm_feature_set.
13632         (tune_flags): Likewise.
13633         * config/arm/arm.c (feature_count): New.
13634         (insn_flags): Define as type arm_feature_set.
13635         (tune_flags): Likewise.
13636         (struct processors): Define field flags as type arm_feature_set.
13637         (all_cores): Update for change to struct processors.
13638         (all_architectures): Likewise.
13639         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
13640         macros.
13641         (arm_option_override_internal): Likewise.
13642         (arm_option_override): Likewise.
13644 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13645             Jiong Wang  <jiong.wang@arm.com>
13647         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
13648         tls size for tiny, small, large memory model.
13649         (aarch64_load_symref_appropriately): Support new symbol types.
13650         (aarch64_expand_mov_immediate): Likewise.
13651         (aarch64_print_operand): Likewise.
13652         (aarch64_classify_tls_symbol): Likewise.
13653         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
13654         (aarch64_symbol_type): Likewise.
13655         * config/aarch64/aarch64.md (tlsle): Deleted.
13656         (tlsle12_<mode>): New define_insn.
13657         (tlsle24_<mode>): Likewise.
13658         (tlsle32_<mode>): Likewise.
13659         (tlsle48_<mode>): Likewise.
13660         * doc/sourcebuild.texi (AArch64-specific attributes): Document
13661         "aarch64_tlsle32".
13663 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13665         * config/arm/arm-protos.h (FL_NONE): New.
13666         (FL_ANY): New.
13667         (arm_feature_set): New.
13668         (ARM_FSET_MAKE): New.
13669         (ARM_FSET_MAKE_CPU1): New.
13670         (ARM_FSET_MAKE_CPU2): New.
13671         (ARM_FSET_CPU1): New.
13672         (ARM_FSET_CPU2): New.
13673         (ARM_FSET_EMPTY): New.
13674         (ARM_FSET_ANY): New.
13675         (ARM_FSET_HAS_CPU1): New.
13676         (ARM_FSET_HAS_CPU2): New.
13677         (ARM_FSET_HAS_CPU): New.
13678         (ARM_FSET_ADD_CPU1): New.
13679         (ARM_FSET_ADD_CPU2): New.
13680         (ARM_FSET_DEL_CPU1): New.
13681         (ARM_FSET_DEL_CPU2): New.
13682         (ARM_FSET_UNION): New.
13683         (ARM_FSET_INTER): New.
13684         (ARM_FSET_XOR): New.
13685         (ARM_FSET_EXCLUDE): New.
13686         (AFM_FSET_IS_EMPTY): New.
13687         (ARM_FSET_CPU_SUBSET): New.
13689 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
13691         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13692         SYMBOL_TLSLE to SYMBOL_TLSLE24.
13693         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13694         Likewise.
13695         (aarch64_expand_mov_immediate): Likewise.
13696         (aarch64_print_operand): Likewise.
13697         (aarch64_classify_symbol): Likewise.
13699 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
13701         * config/aarch64/aarch64.opt (mtls-size): New entry.
13702         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
13703         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
13704         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
13706 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
13708         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
13709         ARM_CORE entry.  Fix some white-space.
13710         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
13711         ARM_CORE definition.
13713 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13715         * fold-const.c (fold_binary_loc) : Move Optimize
13716         root(x)*root(y) as root(x*y) to match.pd.
13717         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
13718         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
13719         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
13720         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
13721         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
13722         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
13723         (mult (exps:s @0) (exps:s @1)) : New simplifier.
13724         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
13725         (rdiv @0 (exps:s @1)) : New simplifier.
13727 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
13729         * gcc.c (driver::finalize): Only assign to extra_specs if
13730         [EXTRA_SPECS].
13732 2015-08-25  Marek Polacek  <polacek@redhat.com>
13734         PR middle-end/67330
13735         * varasm.c (declare_weak): Return after giving an error.
13737 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
13739         * gcc-main.c (main): Add params to driver ctor.
13740         * gcc.c (class env_manager): New.
13741         (env): New global.
13742         (env_manager::init): New.
13743         (env_manager::get): New.
13744         (env_manager::xput): New.
13745         (env_manager::restore): New.
13746         Poison getenv and putenv.
13747         (DEFAULT_TARGET_SYSTEM_ROOT): New.
13748         (target_system_root): Update initialization to use
13749         DEFAULT_TARGET_SYSTEM_ROOT.
13750         (struct spec_list): Add field "default_ptr".
13751         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
13752         (init_spec): Likewise.
13753         (set_spec): Clear field "default_ptr".
13754         (read_specs): Free "spec" and "buffer".
13755         (xputenv): Reimplement in terms of env_manager.
13756         (process_command): Replace ::getenv calls with calls to the
13757         env_manager singleton.
13758         (process_brace_body): Free string in three places.
13759         (driver::driver): New.
13760         (driver::~driver): New.
13761         (used_arg): Convert from a function to...
13762         (class used_arg_t): ...this class, and...
13763         (used_arg): ...this new global instance.
13764         (used_arg_t::finalize): New function.
13765         (getenv_spec_function): Add "const" to local "value".  Replace
13766         ::getenv call with call to the env_manager singleton.
13767         (path_prefix_reset): New function.
13768         (driver::finalize): New function.
13769         * gcc.h (driver::driver): New.
13770         (driver::~driver): New.
13771         (driver::finalize): New.
13773 2015-08-25  Nathan Sidwell  <nathan@acm.org>
13775         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
13776         target doesn't have one.
13778 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
13780         PR target/67346
13781         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
13783 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
13785         PR target/67344
13786         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
13787         a define_insn, remove second alternative.
13789 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
13790             Joseph Myers  <joseph@codesourcery.com>
13792         * gcc.c (struct switchstr): Expand comment.
13794 2015-08-25  Nathan Sidwell  <nathan@acm.org>
13796         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
13797         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
13799 2015-08-25  Richard Biener  <rguenther@suse.de>
13801         PR middle-end/67306
13802         * genmatch.c (expr::gen_transform): Verify the result of
13803         builtin_decl_implicit.
13804         (dt_simplify::gen_1): Likewise.
13806 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13808         * config/arm/constraints.md: Also list Cs and US ARM-specific
13809         constraints as used.
13811 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
13813         PR target/66609
13814         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
13815         UNSPEC_PCREL.
13816         (nonpic_symbol_mentioned_p): Likewise.
13817         (sh_delegitimize_address): Likewise.
13818         (sh_function_ok_for_sibcall): Take into account weak symbols.
13819         (sh_expand_sym_label2reg): New.
13820         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
13821         * config/sh/sh.md (UNSPEC_PCREL): New enum.
13822         (call_pcrel): Use sh_expand_sym_label2reg.
13823         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13824         (symPCREL_label2reg) New expand.
13826 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
13828         * graphite-poly.c: Change type of region from void* to sese.
13829         * graphite-poly.h (struct scop): Changing the type of scop::region
13830         from void* to sese. Change accessor macro accordingly.
13831         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
13833 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
13835         * graphite-scop-detection.c (stmt_simple_for_scop_p):
13836         Constrain only on INTEGER_TYPE.
13838 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13840         PR target/67211
13841         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
13842         -mefficient-unaligned-vsx on ISA 2.7.
13844         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
13845         option to a masked option.
13847         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
13848         logic for -mefficient-unaligned-vsx so that it is set via an arch
13849         ISA option, instead of being set if -mtune=power8 is set. Move
13850         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
13851         near other default option handling.
13853 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13855         * genflags.c (gen_macro): Delete.
13856         (gen_proto): Don't create GEN.*CALL.* macros.
13857         * gensupport.h (get_file_location): Declare.
13858         * gensupport.c (rtx_locs): New variable.
13859         (read_md_rtx): Record rtx locations.
13860         (get_file_location): New function.
13861         * target-insns.def (call, call_pop, call_value, call_value_pop)
13862         (sibcall, sibcall_value): New patterns.
13863         * gentarget-def.c (parse_argument): New function.
13864         (def_target_insn): Use it.  Handle optional operands.  Raise an
13865         error if an .md pattern has the wrong number of operands for the
13866         pattern name.  Remove the names of unused operands from the prototype.
13867         * builtins.c (expand_builtin_apply): Use targetm functions
13868         instead of HAVE_call_value and GEN_CALL_VALUE.
13869         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
13870         and sibcall_value_pop.
13871         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
13872         of GEN_CALL.
13873         * config/alpha/alpha.md (untyped_call): Likewise.
13874         * config/iq2000/iq2000.md (untyped_call): Likewise.
13875         * config/m68k/m68k.md (untyped_call): Likewise.
13876         * config/mips/mips.md (untyped_call): Likewise.
13877         * config/pa/pa.md (untyped_call): Likewise.
13878         * config/rs6000/rs6000.md (untyped_call): Likewise.
13879         * config/sparc/sparc.md (untyped_call): Likewise.
13880         * config/tilegx/tilegx.md (untyped_call): Likewise.
13881         * config/tilepro/tilepro.md (untyped_call): Likewise.
13882         * config/visium/visium.md (untyped_call): Likewise.
13883         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
13884         gen_call_value instead of GEN_CALL_VALUE.
13885         * config/arm/arm.md (untyped_call): Likewise.
13886         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
13887         GEN_CALL.
13889 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13891         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
13892         (have_cbranchcc4): New variable.
13893         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
13894         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
13895         (if_convert): Initialize have_cbranchcc4.
13897 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13899         * builtins.c (expand_cmpstrn): Rename to...
13900         (expand_cmpstrn_or_cmpmem): ...this.
13901         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
13902         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
13903         Remove mode argument.
13904         (expand_builtin): Update accordingly.
13906 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13908         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
13909         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
13910         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
13911         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
13912         Add predicates for operands 0 and 3.
13913         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
13914         operand.
13915         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
13916         immediate_operand to nonmemory_operand.
13918 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13920         * df-scan.c (df_insn_info_init_fields): New function, split out
13921         from...
13922         (df_insn_create_insn_record): ...here.
13923         (df_insn_info_free_fields): New function, split out from...
13924         (df_insn_info_delete): ...here.
13925         (df_insn_rescan): Use the new functions instead of freeing and
13926         reallocating the df_insn_info.
13928 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13930         * doc/install.texi (Binaries): Remove links no longer valid.
13932 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
13934         * config/nvptx/mkoffload.c (process): Replace
13935         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
13937 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
13939         PR target/67329
13940         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
13942 2015-08-24  Renlin Li  <renlin.li@arm.com>
13944         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
13945         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
13946         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
13947         * config/arm/constraints.md ("j"): Add check for high code.
13949 2015-08-24  Tom de Vries  <tom@codesourcery.com>
13951         PR tree-optimization/65468
13952         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
13953         chunk_size is one.
13955 2015-08-24  Nathan Sidwell  <nathan@acm.org>
13957         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
13958         change to nvptx_type_from_mode call. Use arg_promotion for both
13959         split and non-split args.
13961 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13963         * target-insns.def (movstr): New pattern.
13964         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
13965         (expand_movstr): Use targetm rather than HAVE_movstr/
13966         CODE_FOR_movstr.
13968 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
13970         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
13971         cast syntax.
13973 2015-08-24  Andrew Pinski  <apinski@cavium.com>
13975         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
13976         AARCH64_EXTRA_TUNING_OPTION.
13977         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
13978         New enum.
13979         (aarch64_extra_tuning_flags): Base the shifted value on the index
13980         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
13981         * config/aarch64/aarch64.c: Remove the last argument to
13982         AARCH64_EXTRA_TUNING_OPTION.
13984 2015-08-23  Nathan Sidwell  <nathan@acm.org>
13986         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
13987         decls.
13988         (nvptx_declare_function_name): Insert formatting tabs for
13989         consistency.
13991 2015-08-23  Tom de Vries  <tom@codesourcery.com>
13993         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
13994         parm_decl, rather than generating a dummy default def in cfun.
13995         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
13996         ssa_name from cfun and child_fn do not share a stmt as def stmt.
13997         (move_stmt_op): Handle PARM_DECl.
13998         (gather_ssa_name_hash_map_from): New function.
13999         (move_sese_region_to_fn): Add default defs for function params, and add
14000         them to vars_map.  Release copied ssa names.
14001         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14003 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14005         * doc/sourcebuild.texi: Rename vect_no_int_max with
14006         vect_no_int_min_max.  Update description.
14008 2015-08-22  Andrew Pinski  <apinski@cavium.com>
14010          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14011         * config/aarch64/aarch64-protos.h
14012         (aarch64_fusion_pairs_index): New enum.
14013         (aarch64_fusion_pairs): Base the shifted value on the index instead
14014         Rewrite AARCH64_FUSE_ALL to be based on the end index.
14015         of the argument to AARCH64_FUSION_PAIR.
14016         * config/aarch64/aarch64.c: Remove the last argument to
14017         AARCH64_FUSION_PAIR.
14019 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
14021         * dominance.c (new_zero_array): Define.
14022         (dom_info): Redefine as class with proper encapsulation.
14023         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14024         Add new members.
14025         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
14026         allocations/deallocations.  Pass function as parameter (instead of
14027         using cfun).
14028         (dom_info::get_idom): Define accessor method.
14029         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14030         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
14031         (calculate_dominance_info): Adjust to use dom_info class.
14032         (verify_dominators): Likewise.
14034 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
14036         * print-rtl.c (print_rtx): Check the correct range for
14037         flag_dump_unnumbered_links to behave as documented.
14039         PR rtl-optimization/67227
14040         PR rtl-optimization/64164
14041         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14042         (nonoverlapping_memrefs_p): Test offsets and sizes when given
14043         identical gimple_reg exprs.
14045 2015-08-21  Nathan Sidwell  <nathan@acm.org>
14047         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14048         expansion.
14049         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14050         crtl->stack_alignment_needed to determine alignment.
14051         (nvptx_get_drap_rtx): New.
14052         (TARGET_GET_DRAP_RTX): Override.
14053         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14055 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14057         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14059 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14061         * configure.ac: Remove uwin* cases.
14062         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14063         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14064         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14065         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14066         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14067         i[34567]86-*-uwin*, powerpc-*-beos*.
14069 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
14071         * gencodes.c (gencodes): Print the comma for the preceding
14072         enum value rather than the current one.  Use aliased enum values
14073         rather than #defines for compiled-out patterns.
14074         (main): Update accordingly.  Replace LAST_INSN_CODE with
14075         NUM_INSN_CODES.
14076         * lra.c (insn_code_data): Update accordingly.
14077         (finish_insn_code_data_once, get_static_insn_data): Likewise.
14078         * recog.h (target_recog): Likewise.
14079         (preprocess_insn_constraints): Change parameter to unsigned int.
14080         * recog.c (preprocess_insn_constraints): Likewise.
14081         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14082         * tree-vect-stmts.c (vectorizable_operation): Simplify.
14084 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14086         PR rtl-optimization/61657
14087         * loop-iv.c (iv_number_of_iterations): Declare up and down as
14088         unsigned.  Remove superflous uint64_t cast.
14090 2014-08-21  Felix Yang  <felix.yang@huawei.com>
14091             Jiji Jiang  <jiangjiji@huawei.com>
14093         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14094         argument and get builtin function code directly from CALL.
14095         (gimple_stringop_fixed_value): Modified accordingly.
14096         (gimple_stringops_transform, gimple_stringops_values_to_profile):
14097         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14099 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14101         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14103 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14105         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14106         to match.pd.
14107         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14108         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14109         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14110         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14111         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14112         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14113         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14114         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14115         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14116         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14118         * match.pd (SIN ) : New Operator.
14119         (TAN) : New Operator.
14120         (mult (SQRT@1 @0) @1) : New simplifier.
14121         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14122         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14123         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14124         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14125         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14126         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14127         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14128         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14129         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14130         (rdiv @0 (POW:s @1 @2)) : New simplifier.
14132 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
14134         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14135         loop if EXPR is simplified to const value.
14137 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
14139         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14140         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14142 2015-08-21  Richard Biener  <rguenther@suse.de>
14144         PR middle-end/67285
14145         * gimple-fold.c (replace_stmt_with_simplification): Assert
14146         seq is empty when replacing a call with itself but different
14147         arguments.
14148         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14149         a call require that it is const.
14151 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14153         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14154         * builtins.c (get_object_alignment_2): Adjust.
14155         * varasm.c (align_variable): Likewise.
14156         (get_variable_align): Likewise.
14157         (build_constant_desc): Likewise.
14158         (force_const_mem): Likewise.
14159         * doc/tm.texi.in: Likewise.
14160         * doc/tm.texi: Regenerate.
14162 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14164         * genconfig.c (main): Always define HAVE_cc0.
14165         * recog.c (rest_of_handle_peephole2): Adjust.
14167 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14169         * reorg.c (relax_delay_slots): Don't use #if to check value of
14170         HAVE_cc0.
14172 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14174         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14175         * targhooks.c (default_have_conditional_execution): Adjust.
14177 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14179         * rtl.h (rtvec_all_equal_p): Declare.
14180         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14181         * rtl.c (rtvec_all_equal_p): New function.
14182         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14183         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14184         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14185         * config/arm/arm.c (neon_vdup_constant): Likewise.
14186         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14187         * config/tilegx/constraints.md (W, Y): Likewise.
14188         * config/tilepro/constraints.md (W, Y): Likewise.
14189         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14190         (classify_immediate): Use unwrap_const_vec_duplicate.
14191         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14192         (reg_or_v2s8bit_operand): Likewise.
14193         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14194         (reg_or_v4s8bit_operand): Likewise.
14196 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14198         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14199         (vec_shasigma_be): New #define.
14200         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14201         (VPMSUMH): Likewise.
14202         (VPMSUMW): Likewise.
14203         (VPMSUMD): Likewise.
14204         (VPMSUM): New BU_P8V_OVERLOAD_2.
14205         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14206         entries for VEC_MADD and VEC_VPMSUM.
14208 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
14210         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14211         Multiply argument avr_n_flash by 64 to match unit of "KiB".
14212         (avr_pgm_check_var_decl): Same.
14214 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
14216         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14217         initialization of HFmode scalar type (float16_t) to...
14218         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14219         code.
14221         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14223         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14224         having an -mfp16-format.
14226 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14228         * config/i386/predicates.md (vector_all_ones_operand): Use
14229         CONSTM1_RTX to simplify definition.
14231 2015-08-20  Richard Biener  <rguenther@suse.de>
14233         * toplev.c (compile_file): Remove loop calling late_global_decl
14234         on all symbols.
14235         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14236         on decls we assembled.
14238 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
14240         * common/config/aarch64/aarch64-common.c
14241         (AARCH64_CPU_NAME_LENGTH): Delete.
14242         (aarch64_option_extension): New.
14243         (all_extensions): Likewise.
14244         (processor_name_to_arch): Likewise.
14245         (arch_to_arch_name): Likewise.
14246         (all_cores): New.
14247         (all_architectures): Likewise.
14248         (aarch64_get_extension_string_for_isa_flags): Likewise.
14249         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14250         architecture names.
14251         * config/aarch64/aarch64-protos.h
14252         (aarch64_get_extension_string_for_isa_flags): New.
14253         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14254         (aarch64_option_print): Get the string to print from
14255         aarch64_get_extension_string_for_isa_flags.
14256         (aarch64_declare_function_name): Likewise.
14257         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14258         (MCPU_TO_MARCH_SPEC): This.
14259         (ASM_CPU_SPEC): Use it.
14260         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14261         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14262         (EXTRA_SPEC_FUNCTIONS): Use it.
14264 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
14266         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14267         expansion when !ISA_HAS_LWL_LWR.
14268         (mips_block_move_straight): Update the size of elements copied to
14269         account for alignment when !ISA_HAS_LWL_LWR.
14270         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14272 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14274         * expr.c (expand_expr_real_2): Check gimple statement during
14275         LSHIFT_EXPR expand.
14277 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
14279         * common.opt (fstack-protector): Initialize to -1.
14280         (fstack-protector-all): Likewise.
14281         (fstack-protector-strong): Likewise.
14282         (fstack-protector-explicit): Likewise.
14283         * configure.ac: Add --enable-default-ssp.
14284         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
14285         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14286         -1.
14287         * doc/install.texi: Document --enable-default-ssp.
14288         * config.in: Regenerated.
14289         * configure: Likewise.
14291 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
14293         PR rtl-optimization/64164
14294         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14295         (parm_in_stack_slot_p): ... this.  Disregard mode, what
14296         matters is whether the parm will live in a pseudo or a stack
14297         slot.
14298         (expand_one_ssa_partition): Deal with params without a default
14299         def.  Disregard mode.
14300         * cfgexpand.h: Renamed function declaration.
14301         * tree-ssa-coalesce.c: Adjust.
14302         * function.c (split_complex_args): Allocate stack slot for
14303         unassigned parms before splitting.
14304         (parm_in_unassigned_mem_p): New.  Use it instead of
14305         parm_maybe_byref_p throughout this file.
14306         (assign_parm_setup_block): Use it.  Accept pseudos in the
14307         expand-assigned rtl.
14308         (assign_parm_setup_reg): Drop BLKmode requirement.
14309         (assign_parm_setup_stack): Allocate and fill in the address of
14310         unassigned MEM parms.
14312 2015-08-19  David Sherwood  <david.sherwood@arm.com>
14314         * genmodes.c (emit_mode_unit_size_inline): New function.
14315         (emit_mode_unit_precision_inline): New function.
14316         (emit_insn_modes_h): Emit new #define.  Emit new functions.
14317         (emit_mode_unit_size): New function.
14318         (emit_mode_unit_precision): New function.
14319         (emit_mode_adjustments): Add mode_unit_size adjustments.
14320         (emit_insn_modes_c): Emit new arrays.
14321         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14322         use new inline methods.
14324 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14326         * config/aarch64/aarch64.c (bit_count): Delete prototype
14327         and definition.
14328         (aarch64_print_operand): Use popcount_hwi instead of the above.
14330 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14332         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14333         comment.
14335 2015-08-19  Marek Polacek  <polacek@redhat.com>
14337         PR middle-end/67133
14338         * gimple-ssa-isolate-paths.c
14339         (insert_trap_and_remove_trailing_statements): Rename to ...
14340         (insert_trap): ... this.  Don't remove trailing statements; split
14341         block instead.
14342         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14344 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
14346         PR other/67042
14347         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14348         conditionalize the whole on __GNUC__.  Add fallback code
14349         depending neither on undefined nor implementation-defined behaviour.
14351 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14353         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14354         whitespaces with tab.
14356 2015-08-19  Florian Weimer  <fweimer@redhat.com>
14358         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14359         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14360         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14361         Move Name_Ids instantiation to the Prj.Proc package, to avoid
14362         trampolines.
14364 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14366         * config/arm/arm.c (bounds_check): Use %wd print format
14367         for HOST_WIDE_INT arguments.
14369 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
14371         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14372         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14373         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14374         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14375         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14376         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14377         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14378         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14379         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14380         typedefs.
14382 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
14384         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14385         function.c, graphite-scop-detection.c, haifa-sched.c,
14386         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14387         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14388         varasm.c: Remove typedefs of structs.
14390 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14392         * config/rs6000/altivec.h (vec_adde): New define.
14393         (vec_addec): Likewise.
14394         (vec_double): Likewise.
14395         (vec_bperm): Likewise.
14396         (vec_gb): Likewise.
14397         * config/rs6000/rs6000-builtin.def (ADDE): New
14398         BU_ALTIVEC_OVERLOAD_3.
14399         (ADDEC): Likewise.
14400         (DOUBLE): New BU_VSX_OVERLOAD_1.
14401         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14402         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14403         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14404         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14405         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14406         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14407         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14408         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14409         and P8V_BUILTIN_VEC_VBPERMQ.
14411 2015-08-18  Jason Merrill  <jason@redhat.com>
14413         * print-tree.c (print_node): Handle TREE_BINFO.
14415 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14417         PR middle-end/36757
14418         * builtins.c (expand_builtin_signbit): Add asserts to make sure
14419         we can expand BUILT_IN_SIGNBIT inline.
14420         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14421         * doc/extend.texi: Document the type-generic __builtin_signbit.
14423 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
14425         PR rtl-optimization/67218
14426         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14427         (simplify_unary_operation_1): Use it.
14429 2015-08-18  Marek Polacek  <polacek@redhat.com>
14431         PR middle-end/67222
14432         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14433         if the call isn't valid.
14434         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14435         gimple_call_builtin_p.
14436         (call_may_clobber_ref_p_1): Likewise.
14437         (stmt_kills_ref_p): Likewise.
14439 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
14441         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
14442         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
14443         (mips_hard_regno_scratch_ok): Likewise.
14444         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
14445         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
14447 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
14449         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
14450         (determine_value_range): Call refine_value_range_using_guard for
14451         each loop initial condition to improve value range.
14453 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
14455         * config/i386/i386.c: Remove include of fibheap.h.
14457 2015-08-17  Richard Biener  <rguenther@suse.de>
14459         PR tree-optimization/67221
14460         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
14461         (sccvn_dom_walker::before_dom_children): Mark backedges of
14462         non-executable blocks as not executable.
14464 2015-08-17  David Sherwood  <david.sherwood@arm.com>
14466         * config/arm/arm.c (neon_element_bits): Replace call to
14467         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
14468         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
14469         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
14470         (neon_vdup_lane<mode>): Likewise.
14471         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
14472         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
14473         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
14474         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
14475         * config/spu/spu.c (arith_immediate_p): Likewise.
14476         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
14477         * expr.c (expand_expr_real_2): Likewise.
14478         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
14479         * simplify-rtx.c (simplify_immed_subreg): Likewise.
14480         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
14481         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
14482         New variable.
14483         * fold-const.c (fold_binary_loc): Replace call to
14484         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
14485         GET_MODE_UNIT_PRECISION (m).
14487 2015-08-17  Mike Stump  <mikestump@comcast.net>
14489         * config/arm/arm.c (arm_block_move_unaligned_straight):
14490         Emit normal move instead of unaligned load when source or destination
14491         are appropriately aligned.
14493 2015-08-17  Richard Biener  <rguenther@suse.de>
14494             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14496         PR middle-end/16107
14497         * match.pd (div (coss (op @0) : New simplifier.
14499 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
14501         PR rtl-optimization/64164
14502         PR bootstrap/66978
14503         PR middle-end/66983
14504         PR rtl-optimization/67000
14505         PR middle-end/67034
14506         PR middle-end/67035
14507         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14508         * tree-ssa-copyrename.c: Removed.
14509         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14510         -ftree-coalesce-vars.
14511         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14512         * common.opt (ftree-copyrename): Ignore.
14513         (ftree-coalesce-inlined-vars): Likewise.
14514         * doc/invoke.texi: Remove the ignored options above.
14515         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14516         * tree-ssa-coalesce.h: ... here.
14517         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14518         headers required by it.
14519         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14520         across variables when flag_tree_coalesce_vars.  Check register
14521         use and promoted modes to allow coalescing.  Do not coalesce
14522         maybe-byref parms with SSA_NAMEs of other variables, or
14523         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
14524         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14525         with its member functions to tree-ssa-coalesce.c.
14526         (var_map_base_init): Likewise.  Renamed to
14527         compute_samebase_partition_bases.
14528         (partition_view_normal): Drop want_bases parameter.
14529         (partition_view_bitmap): Likewise.
14530         * tree-ssa-live.h: Adjust declarations.
14531         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
14532         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14533         default defs at the entry point.
14534         (dump_part_var_map): New.
14535         (compute_optimized_partition_bases): New, called by...
14536         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14537         of compute_samebase_partition_bases.  Adjust.
14538         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14539         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
14540         (ssa_default_def_partition): New.
14541         (get_rtl_for_parm_ssa_default_def): New.
14542         (align_local_variable, add_stack_var): Support anonymous SSA
14543         names.
14544         (defer_stack_allocation): Likewise.  Declare earlier.
14545         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14546         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14547         Do no record deferred-allocation marker in
14548         SA.partition_to_pseudo.
14549         (expand_stack_vars): Adjust check for the marker in it.
14550         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14551         redundant MEM attr setting.
14552         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14553         from...
14554         (expand_one_stack_var): ... this.  New wrapper to check and
14555         skip already expanded SSA partitions.
14556         (record_alignment_for_reg_var): New, factored out of...
14557         (expand_one_var): ... this.
14558         (expand_one_ssa_partition): New.
14559         (adjust_one_expanded_partition_var): New.
14560         (expand_one_register_var): Check and skip already expanded SSA
14561         partitions.
14562         (expand_used_vars): Don't create DECLs for anonymous SSA
14563         names.  Expand all SSA partitions, then adjust all SSA names.
14564         (pass::execute): Replace the loops that set
14565         SA.partition_to_pseudo from partition leaders and cleared
14566         DECL_RTL for multi-location variables, and that which used to
14567         rename vars and set attrs, with one that clears DECL_RTL and
14568         checks that PARMs and RESULTs default_defs match DECL_RTL.
14569         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14570         * emit-rtl.c: Include stor-layout.h.
14571         (set_reg_attrs_for_parm): Handle NULL decl.
14572         (set_reg_attrs_for_decl_rtl): Take mode from expression if
14573         it's not a DECL.
14574         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
14575         rather than its possibly-NULL DECL.
14576         * explow.c (promote_ssa_mode): New.
14577         * explow.h (promote_ssa_mode): Declare.
14578         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14579         (read_complex_part): Export.
14580         * expr.h (read_complex_part): Declare.
14581         * cfgexpand.h (parm_maybe_byref_p): Declare.
14582         * function.c: Include cfgexpand.h.
14583         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14584         (use_register_for_parm_decl): Wrapper for the above to
14585         special-case the result_ptr.
14586         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14587         (split_complex_args): Take assign_parm_data_all argument.
14588         Pass it to rtl_for_parm.  Set up rtl and context for split
14589         args.  Reset complex parm before fetching its default decl
14590         rtl.
14591         (assign_parms_unsplit_complex): Use the default-def complex
14592         parm rtl if it matches the components.
14593         (assign_parms_augmented_arg_list): Adjust.
14594         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14595         multiple locations.  Recognize split complex args.
14596         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14597         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14598         (assign_parm_setup_block): Prefer SSA-assigned location, and
14599         fill in its address if the memory location of a maybe-byref
14600         parm was not assigned by cfgexpand.
14601         (assign_parm_setup_reg): Likewise.  Adjust its mode as
14602         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
14603         sure passed_pointer parms don't need conversion.  Copy address
14604         or value as needed.
14605         (assign_parm_setup_stack): Prefer SSA-assigned location.
14606         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14607         rtl before testing for pointer bounds.  Special-case result_ptr.
14608         (expand_function_start): Maybe reset DECL_RTL of result.
14609         Prefer SSA-assigned location for result and static chain.
14610         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
14611         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
14612         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14613         anonymous SSA names.  Use promote_ssa_mode.
14614         (get_temp_reg): Likewise.
14615         (remove_ssa_form): Adjust.
14616         * stor-layout.c (layout_decl): Don't set mem attributes of
14617         non-MEMs.
14618         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14619         and get its reg_usage for reg invalidation.
14620         (compute_bb_dataflow): Pass it insn.
14621         (emit_notes_in_bb): Likewise.
14623 2015-08-14  Marek Polacek  <polacek@redhat.com>
14625         * tree-core.h (tree_base): Fix typo.
14627 2015-08-14  Marek Polacek  <polacek@redhat.com>
14629         PR middle-end/67133
14630         * gimple.c (infer_nonnull_range_by_attribute): Check that the
14631         nonnull argument position is not outside function arguments.
14633 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
14635         PR target/67143
14636         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
14637         'lconst_atomic' with 'const_atomic'.
14638         (atomic_fetch_<optab><mode>): Likewise.
14639         (atomic_<optab>_fetch<mode>): Likewise.
14640         * config/aarch64/iterators.md (lconst-atomic): Move below
14641         'const_atomic'.
14642         (const_atomic): New.
14644 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
14645             Bernd Schmidt  <bernds@codesourcery.com>
14647         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
14648         debug options.
14649         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
14650         (DWARF2_DEBUGGING_INFO): Don't define.
14651         * debug.h (dwarf2_lineno_debug_hooks): Declare.
14652         * toplev.c (process_options): Add a case for it.
14653         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
14654         (dwarf2out_init): Skip most initializations if
14655         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
14656         case.
14657         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
14658         DWARF2_LINENO_DEBUGGING_INFO.
14659         * opts.c (set_debug_level): Likewise.
14661 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
14663         * config/arm/types.md (is_neon_type): Add missing types.
14665 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
14667         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
14668         for skylake.
14669         * config/i386/i386.c (PTA_SKYLAKE): New macros.
14670         (processor_alias_table): Add skylake description.
14671         (enum processor_model): Add skylake processor.
14672         (arch_names_table): Add skylake record.
14673         * doc/invoke.texi: Add skylake item.
14675 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
14677         * ira-int.h: Include recog.h.
14678         * ira-build.c: Don't include recog.h.
14679         * ira-color.c: Likewise.
14680         * ira-conflicts.c: Likewise.
14681         * ira-costs.c: Likewise.
14682         * ira-emit.c: Likewise.
14683         * ira-lives.c: Likewise.
14684         * ira.c: Likewise.
14685         * sched-deps.c: Likewise.
14686         * sel-sched.c: Likewise.
14687         * target-globals.c: Likewise.
14689 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
14691         PR bootstrap/55035
14692         * reload1.c (elimination_costs_in_insn): Make it obvious to the
14693         compiler that the n_dups and n_operands loop bounds are invariant.
14695 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14697         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
14698         expressions in A and B.
14700 2015-08-13  Richard Biener  <rguenther@suse.de>
14702         * tree.c (nonnull_arg_p): Move from ...
14703         * tree-vrp.c (nonnull_arg_p): ... here.
14704         * tree.h (nonnull_arg_p): Declare.
14705         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
14706         here, register ptr != 0 for nonnull_arg_p pointer arguments.
14707         Properly initialize static chain and by-reference result pointer.
14708         (run_scc_vn): Adjust.
14710 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
14712         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
14713         TUNE_I6400.
14715 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
14717         * config/aarch64/aarch64-protos.h
14718         (aarch64_gen_atomic_cas): Declare.
14719         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
14720         Choose appropriate instruction pattern for the target.
14721         (aarch64_gen_atomic_cas): New.
14722         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
14723         (atomic_compare_and_swap<mode>_1): Rename to
14724         aarch64_compare_and_swap<mode>.  Fix some indentation.
14725         (aarch64_compare_and_swap<mode>_lse): New.
14726         (aarch64_atomic_cas<mode>): New.
14728 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
14730         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
14731         (TARGET_LSE): New.
14733 2015-08-13  Richard Biener  <rguenther@suse.de>
14735         PR tree-optimization/67191
14736         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
14737         assert we value-numbered last stmts operand because it can validly
14738         trigger for unreachable code.
14740 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14742         PR rtl-optimization/67103
14743         * ifcvt.c (noce_try_store_flag_constants): Move
14744         x = (-(test != 0) & (b - a)) + a transformation to...
14745         (noce_try_cmove): ... Here.  Try it if normal conditional
14746         move fails.
14748 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
14750         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
14751         pseudo-processors.
14752         * config/mips/mips.md (processor): Remove w32 and w64.
14754 2015-08-13  Richard Biener  <rguenther@suse.de>
14756         PR tree-optimization/66502
14757         PR tree-optimization/67167
14758         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
14759         backedge arguments.
14760         (vn_phi_lookup): Adjust.
14761         (vn_phi_insert): Likewise.
14762         (visit_phi): Prefer to value-number to another PHI node
14763         over value-numbering to a PHI argument.
14764         (init_scc_vn): Mark DFS back edges.
14766 2015-08-13  Richard Biener  <rguenther@suse.de>
14768         * gimple.h (gcall::code_): New constant static member.
14769         (gcond::code_): Likewise.
14770         * gimple.c (gcall::code_): Define.
14771         (gcond::code_): Likewise.
14772         (is_a_helper <const gcond *>): Add.
14773         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
14774         and forward to a new gcall overload with less checking and a
14775         cheaper way to access the operand.
14776         (gimple_call_lhs_ptr): Likewise.
14777         (gimple_call_set_lhs): Likewise.
14778         (gimple_call_internal_p): Likewise.
14779         (gimple_call_with_bounds_p): Likewise.
14780         (gimple_call_set_with_bounds): Likewise.
14781         (gimple_call_internal_fn): Likewise.
14782         (gimple_call_set_ctrl_altering): Likewise.
14783         (gimple_call_ctrl_altering_p): Likewise.
14784         (gimple_call_fntype): Likewise.
14785         (gimple_call_fn): Likewise.
14786         (gimple_call_fn_ptr): Likewise.
14787         (gimple_call_set_fndecl): Likewise.
14788         (gimple_call_fndecl): Likewise.
14789         (gimple_call_chain): Likewise.
14790         (gimple_call_num_args): Likewise.
14791         (gimple_call_arg): Likewise.
14792         (gimple_call_arg_ptr): Likewise.
14793         (gimple_call_set_arg): Likewise.
14794         (gimple_call_noreturn_p): Likewise.
14795         (gimple_cond_code): Likewise.
14796         (gimple_cond_lhs): Likewise.
14797         (gimple_cond_rhs): Likewise.
14798         (gimple_has_lhs): Reduce checking.
14800 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14802         PR middle-end/25529
14803         * match.pd (div (mult @0 @1) @1) : New simplifier.
14805 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14807         PR target/67071
14808         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
14809         predicate to allow construction of vector constants using the
14810         VSLDOI vector shift instruction.
14812         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
14813         declaration.
14815         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
14816         the number of bytes to be shifted left and filled in with either
14817         all zero or all one bits.
14818         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
14819         methods exist.
14820         (output_vec_const_move): On power8, generate XXLORC to generate
14821         a vector constant with all 1's. Do a split if we need to use a
14822         VSLDOI instruction.
14824         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
14825         properly test for the MSB.
14827         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
14828         vector constants that can be created with VSLDOI.
14830 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
14832         revert:
14833         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14834         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14835         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14836         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14837         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14838         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14839         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14840         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14841         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14843 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
14845         * config/xtensa/constraints.md (define_constraint "Y"): New
14846         constraint.
14847         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
14848         * config/xtensa/linux.h (ASM_SPEC): Likewise.
14849         * config/xtensa/predicates.md (move_operand): Match constants
14850         and symbols in the presence of TARGET_AUTO_LITPOOLS.
14851         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
14852         immediate references to TLS data.
14853         (xtensa_emit_move_sequence): Don't force constants to memory in
14854         the presence of TARGET_AUTO_LITPOOLS.
14855         (print_operand): Add 'y' format, same as default, but capable of
14856         printing SF mode constants as well.
14857         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
14858         (movsf_internal): Add movi pattern that loads literal.
14859         (movsf, movdf): Don't force constants to memory in the presence
14860         of TARGET_AUTO_LITPOOLS.
14861         (movdf_internal): Add 'Y' constraint.
14862         * config/xtensa/xtensa.opt (mauto-litpools): New option.
14863         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
14865 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
14867         * config/arm/arm-fpus.def: Replace booleans with feature flags.
14868         Update comment.
14869         * config/arm/arm.c (ARM_FPU): Update macro.
14870         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
14871         (TARGET_FP16): Likewise.
14872         (TARGET_CRYPTO): Likewise.
14873         (TARGET_NEON): Likewise.
14874         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
14875         field features.
14877 2015-08-12  Tom de Vries  <tom@codesourcery.com>
14879         PR other/67092
14880         PR other/67098
14881         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
14882         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
14883         accordingly.  Mention default for --with-stage1-ldflags.
14885 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
14887         * config/arm/arm.h (arm_fpu_feature_set): New.
14888         (ARM_FPU_FSET_HAS): New.
14889         (FPU_FL_NONE): New.
14890         (FPU_FL_NEON): New.
14891         (FPU_FL_FP16): New.
14892         (FPU_FL_CRYPTO): New.
14894 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14896         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
14897         after -mcmodel=large -fPIC sorry.
14899 2015-08-12  Richard Biener  <rguenther@suse.de>
14901         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
14902         comparison operand order and commutative ternary op operand order.
14903         (sccvn_dom_walker::cond_stack): New state to track temporary
14904         expressions.
14905         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
14906         no longer valid.
14907         (sccvn_dom_walker::record_cond): Add a single temporary conditional
14908         expression.
14909         (sccvn_dom_walker::record_conds): Add a temporary conditional
14910         expressions and all related expressions also true/false.
14911         (sccvn_dom_walker::before_dom_children): Record temporary
14912         expressions based on the controlling condition of a single
14913         predecessor.  When trying to simplify a conditional statement
14914         lookup expressions we might have inserted earlier.
14916 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
14918         PR target/67127
14919         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
14920         to ARM core registers.
14922 2015-08-12  Nathan Sidwell  <nathan@acm.org>
14924         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
14925         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
14927 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
14929         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
14930         line with comments.
14931         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
14933 2015-08-12  Richard Biener  <rguenther@suse.de>
14935         * gimple.h (remove_pointer): New trait.
14936         (GIMPLE_CHECK2): New inline template function.
14937         (gassign::code_): New constant static member.
14938         (is_a_helper<const gassign *>): Add.
14939         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
14940         and forward to a new gassign overload with less checking and a
14941         cheaper way to access the operand.
14942         (gimple_assign_lhs_ptr): Likewise.
14943         (gimple_assign_set_lhs): Likewise.
14944         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
14945         Likewise.
14946         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
14947         Likewise.
14948         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
14949         Likewise.
14950         (gimple_assign_rhs_code): Likewise.
14951         * gimple.c (gassign::code_): Define.
14953 2015-08-12  Richard Biener  <rguenther@suse.de>
14955         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14956         Eliminate edges marked as not executable by SCCVN.
14957         * tree-ssa-sccvn.c: Include gimple-iterator.h.
14958         (cond_dom_walker): Rename to sccvn_dom_walker.
14959         (sccvn_dom_walker::before_dom_children): Value-number defs
14960         of all stmts.
14961         (run_scc_vn): Remove loop value-numbering all SSA names.
14962         Drop not visited SSA names to varying.
14964 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
14966         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
14967         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
14968         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
14969         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
14970         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14971         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14972         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
14973         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
14974         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14976 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
14978         PR target/66954
14979         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
14980         to enum feature_priority and feature_list.
14981         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
14982         and isa_names_table.
14984 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
14986         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
14987         vect_induction_def.
14989 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14991         PR c/66098
14992         PR c/66711
14993         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
14994         account when deciding what was the command-line status.
14996 2015-08-11  Nathan Sidwell  <nathan@acm.org>
14998         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15000         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15001         we're not the only contributor to target phi.
15003 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
15005         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15006         FIXED_REG0.
15008 2015-08-11  Tom de Vries  <tom@codesourcery.com>
15010         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15012 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
15014         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15015         with CPU_SLM.
15016         * config/i386/i386.md (cpu): Remove knl.
15018 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15020         PR libgomp/65742
15021         PR middle-end/66332
15022         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15023         open-coded sequence.
15024         * omp-low.c (oacc_process_reduction_data): Remove handline of
15025         GOMP_DEVICE_HOST_NONSHM.
15027         * lto-streamer-in.c (lto_input_mode_table): Adjust to
15028         GET_MODE_INNER changes.
15030 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15031             Ilya Verbin  <ilya.verbin@intel.com>
15033         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15035 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15037         * doc/options.texi (EnabledBy): Document that the argument must be
15038         a Common option.
15039         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15040         Not enabled by -Wall.
15041         * optc-gen.awk: Give nicer error messages. Detect if the argument
15042         of EnabledBy is not a Common option.
15043         * common.opt (Wnull-dereference): Not enabled by -Wall.
15044         * opt-functions.awk (lang_enabled_by): Nicer error messages.
15046 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15048         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15049         model == 0x4f as Broadwell.
15051 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
15053         PR rtl-optimization/67028
15054         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
15055         Add test to see if a const_int fits in the new mode.
15057 2015-08-07  DJ Delorie  <dj@redhat.com>
15059         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15061 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
15063         PR rtl-optimization/67029
15064         * ira-color.c: Include "recog.h" before including "ira-int.h".
15065         * target-globals.c: Likewise.
15066         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15067         adds an alternative_mask argument and use it instead of
15068         preferred_alternatives.
15069         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15070         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15071         * sched-deps.c: Include "ira-int.h" after including "ira.h".
15072         (sched_analyze_insn): Update call to
15073         ira_implicitly_set_insn_hard_regs.
15074         * sel-sched.c: Include "ira-int.h" after including "ira.h".
15075         (implicit_clobber_conflict_p): Update call to
15076         ira_implicitly_set_insn_hard_regs.
15078 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15080         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15082 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15084         PR target/67002
15085         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15086         currently_expanding_to_rtl is set.
15088 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
15090         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15091         * configure: Regenerate.
15093 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15094             Jiong Wang  <jiong.wang@arm.com>
15096         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15097         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15098         (REG_CLASS_NAMES): Likewise.
15099         (REG_CLASS_CONTENTS): Likewise.
15100         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15101         (aarch64_register_move_cost): Likewise.
15102         (aarch64_load_symref_appropriately): Invoke the new added pattern if
15103         possible.
15104         * config/aarch64/constraints.md (Uc0): New constraint.
15106 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15108         * config/aarch64/constraints.md (Usf): Add the test of
15109         aarch64_is_noplt_call_p.
15111 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15113         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15114         declaration.
15115         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15116         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15117         (call_symbol): Likewise.
15119 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
15121         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15122         for vectorizing multiplication patterns.
15123         * tree-vectorizer.h: Adjust the number of patterns.
15125 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15127         * config/i386/sse.md (*vec_concatv2df): Declare added
15128         alternatives as sselog type.
15130 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15132         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15133         all GPRs.
15135 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15137         * config/s390/s390.c (s390_expand_tbegin): Expand either
15138         tbegin_1_z13 or tbegin_1 depending on VX flag.
15139         * config/s390/s390.md ("tbegin_1_z13"): New expander.
15141 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15143         * config/s390/s390.opt: Clarify description for -mzvector
15144         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15145         -mzvector.
15147 2015-08-06  Richard Biener  <rguenther@suse.de>
15149         * gimple.h (gimple_call_set_fn): Access op member directly.
15150         (gimple_call_chain_ptr): Likewise.
15151         (gimple_call_set_chain): Likewise.
15152         (gimple_cond_lhs_ptr): Likewise.
15153         (gimple_cond_set_lhs): Likewise.
15154         (gimple_cond_rhs_ptr): Likewise.
15155         (gimple_cond_set_rhs): Likewise.
15156         (gimple_cond_true_label): Likewise.
15157         (gimple_cond_set_true_label): Likewise.
15158         (gimple_cond_set_false_label): Likewise.
15159         (gimple_cond_false_label): Likewise.
15160         (gimple_label_label): Likewise.
15161         (gimple_label_set_label): Likewise.
15162         (gimple_goto_set_dest): Likewise.
15163         (gimple_asm_input_op): Likewise.
15164         (gimple_asm_input_op_ptr): Likewise.
15165         (gimple_asm_set_input_op): Likewise.
15166         (gimple_asm_output_op): Likewise.
15167         (gimple_asm_output_op_ptr): Likewise.
15168         (gimple_asm_set_output_op): Likewise.
15169         (gimple_asm_clobber_op): Likewise.
15170         (gimple_asm_set_clobber_op): Likewise.
15171         (gimple_asm_label_op): Likewise.
15172         (gimple_asm_set_label_op): Likewise.
15173         (gimple_switch_index): Likewise.
15174         (gimple_switch_index_ptr): Likewise.
15175         (gimple_return_retval_ptr): Likewise.
15176         (gimple_return_retval): Likewise.
15177         (gimple_return_set_retval): Likewise.
15178         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
15179         (gimple_switch_label): Likewise.
15180         (gimple_switch_set_label): Likewise.
15182 2015-08-06  Richard Biener  <rguenther@suse.de>
15184         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15185         bool comparison canonicalization and restrict to integers.
15187 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
15189         * coretypes.h (enum symbol_visibility): Relocate here.
15190         * flag-types.h (enum symbol_visibility): Remove.
15191         * tree-core.h (enum symbol_visibility): Remove.
15193 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
15195         PR target/66870
15196         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15197         for no_split_stack function attribute along with
15198         flag_split_stack.
15199         (rs6000_expand_split_stack_prologue): Likewise.
15201 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15202             Jeff Law  <law@redhat.com>
15204         PR c/16351
15205         * doc/invoke.texi (Wnull-dereference): New.
15206         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15207         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15208         Warn for potential NULL dereferences.
15209         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15210         * ubsan.c (instrument_nonnull_arg): Call
15211         infer_nonnull_range_by_attribute.
15212         (instrument_nonnull_return): Likewise.
15213         * common.opt (Wnull-dereference); New.
15214         * gimple.c (infer_nonnull_range): Remove bool arguments.
15215         (infer_nonnull_range_by_dereference): New.
15216         (infer_nonnull_range_by_attribute): New.
15217         * gimple.h: Update declarations.
15219 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15221         * gensupport.c (sequence_num): Replace with...
15222         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15223         ...these new variables.
15224         (init_rtx_reader_args_cb): Update accordingly.
15225         (get_num_code_insns): Likewise.
15226         (read_md_rtx): Rework to use a while loop and get_c_test.
15227         Use the new counters.  Remove redundant DEFINE_SUBST case.
15228         * genoutput.c (gen_split): Delete.
15229         (main): Don't call it.
15231 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15233         * gensupport.h (get_c_test): Declare.
15234         * gensupport.c (get_c_test): New function.
15235         * genconditions.c (main): Use it.
15236         * genrecog.c (validate_pattern): Likewise.
15237         (match_pattern_1): Likewise.  Remove c_test argument.
15238         (match_pattern): Update accordingly and remove c_test argument.
15239         (main): Update accordingly.
15241 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15243         * gensupport.h (get_num_insn_codes): Declare.
15244         * gensupport.c (get_num_insn_codes): New function.
15245         * genattrtab.c (optimize_attrs): Rename max_insn_code to
15246         num_insn_codes.
15247         (main): Likewise.  Use get_num_insn_codes.
15248         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15250 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15252         PR middle-end/66311
15253         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15254         is zero- rather than sign-extended.
15256 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15258         * target-insns.def (can_extend): Delete.
15260 2015-08-05  Richard Biener  <rguenther@suse.de>
15262         PR tree-optimization/67121
15263         * tree-if-conv.c (combine_blocks): Clear range-info produced
15264         by stmts no longer executed conditionally.
15266 2015-08-05  Nick Clifton  <nickc@redhat.com>
15268         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15269         to allow identical far pointers to remain.
15271 2015-08-05  Richard Biener  <rguenther@suse.de>
15273         PR middle-end/67120
15274         * match.pd: Compare address bases with == if they are decls
15275         or SSA names, not operand_equal_p.  Otherwise fail.
15277 2015-08-05  Richard Biener  <rguenther@suse.de>
15279         PR tree-optimization/67055
15280         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15281         NULL gimple_block.
15283         * g++.dg/torture/pr67055.C: New testcase.
15285 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15287         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15288         noavx512vl.
15289         (define_attr "enabled"): Handle avx521vl and noavx512vl.
15290         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15291         AVX-512 alternative out of SSE.
15292         (define_insn "*vec_concatv2df"): Ditto.
15294 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15296         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15297         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15298         CODE_FOR_avx_ptestv4di.
15299         * config/i386/sse.md (define_mode_iterator V_AVX): New.
15300         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15301         (define_insn "avx_ptest256"): Merge this ...
15302         (define_insn "sse4_1_ptest"): And this ...
15303         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15305 2015-08-05  Richard Biener  <rguenther@suse.de>
15307         PR tree-optimization/67109
15308         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15309         against too big groups.  Print whether this is a load or store
15310         group.  Rename from ...
15311         (vect_analyze_group_access): ... this which is now a wrapper
15312         dissolving an invalid group.
15313         (vect_analyze_data_ref_accesses): Print whether this is a load
15314         or store group.
15316 2015-08-05  Richard Biener  <rguenther@suse.de>
15318         PR middle-end/67107
15319         * match.pd: Guard const_binop result checking against NULL_TREE
15320         result.
15322 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
15324         * cse.c (cse_insn): Restoring old behaviour for src_eqv
15325          when dest and value in the REG_EQUAL are same and dest
15326          is STRICT_LOW_PART.
15328 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
15330         * config/moxie/moxie.h (PRINT_OPERAND,
15331           PRINT_OPERAND_ADDRESS): Remove macros.
15332         * config/moxie/moxie-protos.h (moxie_print_operand,
15333           moxie_print_operand_address): Remove declaration.
15334         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15335           TARGET_PRINT_OPERAND_ADDRESS): Define.
15336           (moxie_print_operand, moxie_print_operand_address): Make static.
15338 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15340         PR target/66731
15341         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15342         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15344 2015-08-04  Richard Biener  <rguenther@suse.de>
15346         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15347         generated code.
15348         (dt_operand::gen_gimple_expr): Adjust.
15350 2015-08-04  Richard Biener  <rguenther@suse.de>
15352         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15353         bool compares on RHS.
15354         * match.pd: Add X ==/!= !X is false/true pattern.
15356 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
15358         * config/aarch64/aarch64.c: Change inner loop statement cost
15359         to be consistent with other targets.
15361 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
15363         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15364         targets.
15366 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
15368         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15369         (machine_function): Remove pseudos field.
15371 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15373         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15374         Exit early and use target_option_current_node if processing current
15375         pragma.
15377 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15379         * doc/extend.texi (AArch64 Function Attributes): New node.
15380         (AArch64 Pragmas): Likewise.
15382 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15384         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15385         Initialize simd builtins if TARGET_SIMD.
15386         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15387         Make sure that the builtins are initialized only once no matter how
15388         many times the function is called.
15389         (aarch64_init_builtins): Unconditionally initialize crc builtins.
15390         (aarch64_relayout_simd_param): New function.
15391         (aarch64_simd_expand_args): Use above during argument expansion.
15392         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15393         simd builtins if TARGET_SIMD.
15394         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15395         prototype.
15396         (aarch64_relayout_simd_types): Likewise.
15398 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15400         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15401         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15402         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15403         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15404         static keyword.
15405         (aarch64_reset_previous_fndecl): New function.
15406         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15407         the string.
15408         * config/aarch64/aarch64-c.c: New file.
15409         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15410         Push and pop options at beginning and end.  Remove ifdef
15411         __ARM_FEATURE_CRC32.
15412         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15413         Add pragma +nothing+simd and +nothing+crypto where appropriate.
15414         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15415         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15416         Define prototype.
15417         (aarch64_register_pragmas): Likewise.
15418         (aarch64_reset_previous_fndecl): Likewise.
15419         (aarch64_process_target_attr): Likewise.
15420         (aarch64_override_options_internal): Likewise.
15422 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15424         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15425         New function.
15426         (aarch64_can_inline_p): Likewise.
15427         (TARGET_CAN_INLINE_P): Define.
15429 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15431         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15432         Remove static.  Handle OPT_mgeneral_regs_only,
15433         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15434         OPT_momit_leaf_frame_pointer.
15435         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15436         (aarch64_attr_opt_type): New enum.
15437         (aarch64_attribute_info): New struct.
15438         (aarch64_handle_attr_arch): New function.
15439         (aarch64_handle_attr_cpu): Likewise.
15440         (aarch64_handle_attr_tune): Likewise.
15441         (aarch64_handle_attr_isa_flags): Likewise.
15442         (aarch64_attributes): New table.
15443         (aarch64_process_one_target_attr): New function.
15444         (num_occurences_in_str): Likewise.
15445         (aarch64_process_target_attr): Likewise.
15446         (aarch64_option_valid_attribute_p): Likewise.
15447         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15448         * config/aarch64/aarch64-protos.h: Include input.h
15449         (aarch64_handle_option): Declare prototype.
15451 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15453         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
15454         * config/aarch64/aarch64.c: Include target-globals.h
15455         (aarch64_previous_fndecl): New variable.
15456         (aarch64_set_current_function): New function.
15457         (TARGET_SET_CURRENT_FUNCTION): Define.
15459 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15461         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
15462         (explicit_arch): Likewise.
15463         (x_aarch64_isa_flags): Likewise.
15464         (mgeneral-regs-only): Mark as Save.
15465         (mfix-cortex-a53-835769): Likewise.
15466         (mcmodel=): Likewise.
15467         (mstrict-align): Likewise.
15468         (momit-leaf-frame-pointer): Likewise.
15469         (mtls-dialect): Likewise.
15470         (master=): Likewise.
15471         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
15472         (aarch64_isa_flags): Remove extern declaration.
15473         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
15474         to indicate success or failure.
15475         (aarch64_validate_march): Likewise.
15476         (aarch64_validate_mtune): Likewise.
15477         (aarch64_isa_flags): Delete.
15478         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
15479         instead of aarch64_isa_flags.
15480         (aarch64_get_tune_cpu): New function.
15481         (aarch64_get_arch): Likewise.
15482         (aarch64_override_options): Use above and set up explicit_tune_core
15483         and explicit_arch.
15484         (aarch64_print_extension): Move earlier in file.  Add isa_flags
15485         argument and use that instead of the global aarch64_isa_flags.
15486         (aarch64_option_save): New function.
15487         (aarch64_option_restore): Likewise.
15488         (aarch64_option_print): Likewise.
15489         (aarch64_declare_function_name): Likewise.
15490         (aarch64_start_file): Delete.
15491         (TARGET_ASM_FILE_START): Do not define.
15492         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
15493         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
15494         Declare prototype.
15496 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15498         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
15499         flag_omit_leaf_frame_pointer to 2.
15501 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15503         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
15504         define to 0 or 1.
15505         (TARGET_FIX_ERR_A53_835769): New macro.
15506         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15507         handling of opts->x_aarch64_fix_a53_err835769.
15508         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
15509         than aarch64_fix_a53_err835769.
15510         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
15511         * config/aarch64/aarch64-linux.h: Likewise.
15513 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
15515         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
15516         ix86_expand_int_movcc as boolean.
15518 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15520         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
15521         (aarch64_cpu_string): Likewise.
15522         (aarch64_tune_string): Likewise.
15523         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
15524         (aarch64_parse_extension): Return aarch64_parse_opt_result.
15525         Add extra argument to put result into.
15526         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
15527         (aarch64_parse_cpu): Add arguments to put results into. Return
15528         aarch64_parse_opt_result.
15529         (aarch64_parse_tune): Likewise.
15530         (aarch64_override_options_after_change_1): New function.
15531         (aarch64_override_options_internal): New function.
15532         (aarch64_validate_mcpu): Likewise.
15533         (aarch64_validate_march): Likewise.
15534         (aarch64_validate_mtune): Likewise.
15535         (aarch64_override_options): Update to reflect above changes.
15536         Move some logic into aarch64_override_options_internal.
15537         Initialize target_option_default_node and target_option_current_node.
15538         (aarch64_override_options_after_change): Move logic into
15539         aarch64_override_options_after_change_1 and call it with global_options.
15540         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
15541         flag values from that.
15543 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15545         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15546         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
15547         * config/aarch64/aarch64.c (struct processor): Add arch field.
15548         (all_architectures): Handle above, move above all_cores.
15549         (all_cores): Handle above.
15550         (aarch64_parse_arch): Handle above changes.
15551         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
15552         above.  Update comments.
15553         (armv8.1-a): Likewise.
15554         * config/aarch64/aarch64-cores.def: Update according to above.
15555         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
15556         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
15557         aarch64_arch_driver_info.
15559 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15561         * config/aarch64/aarch64.c (struct processor): Add ident field.
15562         Rename core sched_core.
15563         (all_cores): Handle above changes.
15564         (all_architectures): Likewise.
15565         (aarch64_parse_arch): Likewise.
15566         (aarch64_override_options): Likewise.
15568 2015-08-04  Richard Biener  <rguenther@suse.de>
15570         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15571         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
15572         comparisons embedded in [VEC_]COND_EXPRs.
15574 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
15576         * tree-if-conv.c: Fix various typos in comments.
15577         * tree-vect-stmts.c: Likewise.
15579 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15581         PR tree-optimization/67043
15582         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
15583         preheader after hoisting invariant in it.
15584         (find_defs): Force recomputation of all luids.
15586 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
15588         * config/rs6000/htm.md (tabort.): Restrict the source operand to
15589         using a base register.
15591 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
15593         * main.c (main): Pass in NULL for toplev's external_timer.
15594         * timevar.c: Include coretypes.h.
15595         (class timer::named_items): New.
15596         (timer::named_items::named_items): New.
15597         (timer::named_items::~named_items): New.
15598         (timer::named_items::push): New.
15599         (timer::named_items::pop): New.
15600         (timer::named_items::print): New.
15601         (timer::timer): Initialize field "m_jit_client_items".
15602         (timer::~timer): New.
15603         (timer::push): Move bulk of implementation to...
15604         (timer::push_internal): ...here.  New function.
15605         (timer::pop): Move bulk of implementation to...
15606         (timer::pop_internal): ...here.  New function.
15607         (timer::push_client_item): New.
15608         (timer::pop_client_item): New.
15609         (timer::print_row): New function, taken from timer::print.
15610         (timer::print): Print "GCC items" header if we also have client
15611         items.  Move row-printing to timer::print_row.  Print any client
15612         items.
15613         (timer::get_topmost_item_name): New method.
15614         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
15615         (TV_JIT_CLIENT_CODE): New.
15616         * timevar.h (timer::push_client_item): New declaration.
15617         (timer::pop_client_item): New declaration.
15618         (timer::get_topmost_item_name): New method.
15619         (timer::push_internal): New declaration.
15620         (timer::pop_internal): New declaration.
15621         (timer::print_row): New declaration.
15622         (timer::named_items): New declaration.
15623         (timer::m_jit_client_items): New field.
15624         (timer): Add friend class named_items.
15625         (auto_timevar::auto_timevar): Add timer param.
15626         (auto_timevar::~auto_timevar): Use field "m_timer".
15627         (auto_timevar::m_timer): New field.
15628         * toplev.c (initialize_rtl): Add g_timer as param when
15629         constructing auto_timevar instance.
15630         (toplev::toplev): Add "external_timer" param, and use it to
15631         initialize the "g_timer" global if non-NULL.
15632         (toplev::~toplev): If this created "g_timer", delete it.
15633         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
15634         with "external_timer" timer *.
15636 2015-08-03  Alexander Basov <coohpt@gmail.com>
15638         PR middle-end/64744
15639         PR middle-end/48470
15640         PR middle-end/43404
15641         * cfgexpand.c (expand_one_var): Add check if stack is going to
15642         be used in naked function.
15643         * expr.c (expand_expr_addr_expr_1): Remove excess checking
15644         whether expression should not reside in MEM.
15645         * function.c (use_register_for_decl): Do not use registers for
15646         non-register things (volatile, float, BLKMode) in naked functions.
15648 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
15650         PR target/67060
15651         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
15652         Adjust splits to match new pattern.
15654 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15656         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
15657         (VEC_M): Likewise.
15658         (VEC_N): Likewise.
15659         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
15660         point in VSX registers.
15662         * config/rs6000/constraints.md (wb constraint): Document unused
15663         w<x> constraint.
15664         (we constraint): Likewise.
15665         (wo constraint): Likewise.
15666         (wp constraint): New constraint for IEEE 128-bit floating point in
15667         VSX registers.
15668         (wq constraint): Likewise.
15670         * config/rs6000/predicates.md (easy_fp_constant): Add support for
15671         IEEE 128-bit floating point in VSX registers.
15672         (easy_scalar_constant): Likewise.
15674         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
15675         constraints (wp, wq) for IEEE 128-bit floating point in VSX
15676         registers.
15677         (rs6000_init_hard_regno_mode_ok): Likewise.
15679         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
15680         floating point in VSX registers.
15681         (VSX_L): Likewise.
15682         (VSX_M): Likewise.
15683         (VSX_M2): Likewise.
15684         (VSm): Likewise.
15685         (VSs): Likewise.
15686         (VSr): Likewise.
15687         (VSa): Likewise.
15688         (VSv): Likewise.
15689         (vsx_le_permute_<mode>): Add support to properly swap bytes for
15690         IEEE 128-bit floating point in VSX registers on little endian.
15691         (vsx_le_undo_permute_<mode>): Likewise.
15692         (vsx_le_perm_load_<mode>): Likewise.
15693         (vsx_le_perm_store_<mode>): Likewise.
15694         (splitters for IEEE 128-bit fp moves): Likewise.
15696         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
15697         wq constraints.
15699         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
15700         floating point in VSX registers.
15701         (VM2): Likewise.
15703         * doc/md.text (Machine Constraints): Document wp and wq
15704         constraints on PowerPC.
15706 2015-08-03  Jeff Law  <law@redhat.com>
15708         PR middle-end/66314
15709         PR gcov-profile/66899
15710         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
15711         iterate over the jump threading paths when an element in the
15712         jump threading paths array is eliminated.
15714 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
15716         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
15718 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
15720         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
15721         is_use_properly_guarded the variable def_preds.  Free its
15722         contents before returning.
15723         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
15724         (is_use_properly_guarded): Replace local variable def_preds with
15725         a parameter.  Adjust accordingly.  Only update *def_preds if it's
15726         the empty vector.
15728 2015-08-03  Richard Biener  <rguenther@suse.de>
15730         * genmatch.c (simplify::for_subst_vec): New member.
15731         (binary_ok): New helper for for lowering.
15732         (lower_for): Delay substituting operators into result expressions
15733         if we can merge the results eventually again.
15734         (capture_info::walk_result): Adjust for user_id appearing as
15735         result expression operator.
15736         (expr::gen_transform): Likewise.
15737         (dt_simplify::gen_1): Likewise.
15738         (dt_simplify::gen): Pass not substituted operators to tail
15739         functions or initialize local variable with it.
15740         (decision_tree::gen): Adjust function signature.
15741         * match.pd: Fix tests against global code and add default
15742         cases to switch stmts.
15744 2015-08-03  Richard Biener  <rguenther@suse.de>
15746         * genmatch.c (dt_simplify::gen): Create captures array
15747         with an initializer.
15749 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15751         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
15752         the host compiler is affected by placement new aliasing bug.
15753         * configure: Regenerate.
15754         * Makefile.in (ALIASING_FLAGS): New variable.
15755         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
15757 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15759         PR target/66731
15760         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
15761         (negmulsf3_vfp): Likewise.
15762         (muldf3negdf_vfp): Disable for -frounding-math.
15763         (mulsf3negsf_vfp): Likewise.
15764         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
15765         fix MULT cost with -frounding-math.
15767 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15769         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
15770         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
15771         explicit.  Prefer to add the flag whenever possible.
15772         (noce_process_if_block): Try noce_try_store_flag_constants before
15773         noce_try_cmove.
15775 2015-08-03  Richard Biener  <rguenther@suse.de>
15777         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
15778         New hash-map to record equivalent transforms.
15779         (dt_node::analyze): Populate the equivalent transforms hash-map.
15780         (dt_simplify::info): Add reference to hash-map entry.
15781         (dt_simplify::gen): If we have split out a function for the
15782         transform, generate a call to it.
15783         (sinfo_hashmap_traits::hash): New function.
15784         (compare_op): New helper function for ...
15785         (sinfo_hashmap_traits::equal_keys): ... this new function.
15786         (decision_tree::gen): Split out common equivalent transforms
15787         into functions.
15789 2015-08-03  Richard Biener  <rguenther@suse.de>
15791         * gimple-fold.c (fold_gimple_assign): Remove folding of
15792         the comparison in COND_EXPRs.
15794 2015-08-03  Richard Biener  <rguenther@suse.de>
15796         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
15797         on the rhs of assignments first simplify the embedded
15798         GENERIC condition.
15800 2015-08-03  Richard Biener  <rguenther@suse.de>
15802         PR tree-optimization/66917
15803         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
15804         field.
15805         (DR_VECT_AUX): New macro.
15806         (set_dr_misalignment): Adjust.
15807         (dr_misalignment): Likewise.
15808         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15809         Compute whether the base is at least element aligned.
15810         * tree-vect-stmts.c (ensure_base_align): Adjust.
15811         (vectorizable_store): If the base is not element aligned
15812         preserve alignment of the original access if misalignment is unknown.
15813         (vectorizable_load): Likewise.
15815 2015-08-02  Martin Sebor  <msebor@redhat.com>
15817         * c-family/c.opt (-Wframe-address): New warning option.
15818         * doc/invoke.texi (Wframe-address): Document it.
15819         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
15820         Clarify possible effects of calling the functions with non-zero
15821         arguments and mention -Wframe-address.
15822         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
15824 2015-08-01  Michael Collison  <michael.collison@linaro.org
15825             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15827         * config/arm/arm.md (*arm_smin_cmp): New pattern.
15828         (*arm_umin_cmp): Likewise.
15830 2015-08-01  Caroline Tice  <cmtice@google.com>
15832         PR 66521
15833         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
15834         global variables.
15835         (vtbl_find_mangled_name):  New function.
15836         (vtbl_register_mangled_name):  New function.
15837         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
15838         mangled name in mangled name vectors.
15839         (find_or_create_vtbl_map_node):  Ditto.
15840         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
15841         update recursion_depth on function entry; pass it to every recursive
15842         call; automatically exit if depth > 25 (give up looking at that point).
15843         (verify_bb_vtables):  Initialize recursion_depth and pass it to
15844         var_is_used_for_virtual_call_p.
15845         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
15846         global variable decls.
15847         (vtbl_register_mangled_name): New extern function decl.
15849 2015-08-01  Tom de Vries  <tom@codesourcery.com>
15851         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
15852         function.
15853         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
15854         Declare.
15855         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
15856         operation_no_trapping_overflow.  Allow non-overflow operations.
15857         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
15858         operations.
15860 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15862         PR target/67049
15863         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
15865 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15867         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
15868         Enable for TARGET_32BIT.
15869         (*if_move_neg): Likewise.
15871 2015-07-31  Nick Clifton  <nickc@redhat.com>
15873         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
15874         Returns true for __model__.
15875         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15877 2015-07-31  Alan Modra  <amodra@gmail.com>
15879         PR target/66870
15880         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
15881         (rs6000_emit_prologue): Set it.
15882         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
15884 2015-07-31  Richard Biener  <rguenther@suse.de>
15886         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
15887         -> X == (C1 ^ C2) which is already implemented in match.pd.
15888         Remove redundant dispatching to fold_relational_const.
15889         Move unordered self and NaN compares ...
15890         * match.pd: ... as patterns here.  Remove some stray captures
15891         and add a comment.
15893 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
15895         * config/i386/i386.c
15896         (bdesc_special_args): Convert mask type from signed to unsigned for
15897         masked builtins.
15898         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
15899         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
15900         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
15901         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
15902         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
15903         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
15904         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
15905         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
15906         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
15907         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
15908         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
15909         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
15910         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
15911         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
15912         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
15913         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
15914         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
15915         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
15916         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
15917         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
15918         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
15919         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
15920         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
15921         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
15922         * config/i386/i386-builtin-types.def
15923         (V16QI_FTYPE_V16SI): Remove.
15924         (V8DF_FTYPE_V8SI): Ditto.
15925         (V8HI_FTYPE_V8DI): Ditto.
15926         (V8SI_FTYPE_V8DI): Ditto.
15927         (V8SF_FTYPE_V8DF): Ditto.
15928         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
15929         (V16HI_FTYPE_V16SI): Ditto.
15930         (V16SF_FTYPE_V16HI): Ditto.
15931         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
15932         (V16SF_FTYPE_V16SI): Ditto.
15933         (V4DI_FTYPE_V4DI): Ditto.
15934         (V16SI_FTYPE_V16SF): Ditto.
15935         (V16SF_FTYPE_FLOAT): Ditto.
15936         (V8DF_FTYPE_DOUBLE): Ditto.
15937         (V8DI_FTYPE_INT64): Ditto.
15938         (V8DI_FTYPE_V4DI): Ditto.
15939         (V16QI_FTYPE_V8DI): Ditto.
15940         (UINT_FTYPE_V4SF): Ditto.
15941         (UINT64_FTYPE_V4SF): Ditto.
15942         (UINT_FTYPE_V2DF): Ditto.
15943         (UINT64_FTYPE_V2DF): Ditto.
15944         (V16SI_FTYPE_V16SI): Ditto.
15945         (V8DI_FTYPE_V8DI): Ditto.
15946         (V16SI_FTYPE_PV4SI): Ditto.
15947         (V16SF_FTYPE_PV4SF): Ditto.
15948         (V8DI_FTYPE_PV2DI): Ditto.
15949         (V8DF_FTYPE_PV2DF): Ditto.
15950         (V4DI_FTYPE_PV2DI): Ditto.
15951         (V4DF_FTYPE_PV2DF): Ditto.
15952         (V16SI_FTYPE_PV2SI): Ditto.
15953         (V16SF_FTYPE_PV2SF): Ditto.
15954         (V8DI_FTYPE_PV4DI): Ditto.
15955         (V8DF_FTYPE_PV4DF): Ditto.
15956         (V8SF_FTYPE_FLOAT): Ditto.
15957         (V4SF_FTYPE_FLOAT): Ditto.
15958         (V4DF_FTYPE_DOUBLE): Ditto.
15959         (V8SF_FTYPE_PV4SF): Ditto.
15960         (V8SI_FTYPE_PV4SI): Ditto.
15961         (V4SI_FTYPE_PV2SI): Ditto.
15962         (V8SF_FTYPE_PV2SF): Ditto.
15963         (V8SI_FTYPE_PV2SI): Ditto.
15964         (V16SF_FTYPE_PV8SF): Ditto.
15965         (V16SI_FTYPE_PV8SI): Ditto.
15966         (V8DI_FTYPE_V8SF): Ditto.
15967         (V4DI_FTYPE_V4SF): Ditto.
15968         (V2DI_FTYPE_V4SF): Ditto.
15969         (V64QI_FTYPE_QI): Ditto.
15970         (V32HI_FTYPE_HI): Ditto.
15971         (V8UHI_FTYPE_V8UHI): Ditto.
15972         (V16UHI_FTYPE_V16UHI): Ditto.
15973         (V32UHI_FTYPE_V32UHI): Ditto.
15974         (V2UDI_FTYPE_V2UDI): Ditto.
15975         (V4UDI_FTYPE_V4UDI): Ditto.
15976         (V8UDI_FTYPE_V8UDI): Ditto.
15977         (V4USI_FTYPE_V4USI): Ditto.
15978         (V8USI_FTYPE_V8USI): Ditto.
15979         (V16USI_FTYPE_V16USI): Ditto.
15980         (V2DF_FTYPE_V2DF_UINT64): Ditto.
15981         (V2DI_FTYPE_V2DF_V2DF): Ditto.
15982         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
15983         (V8DF_FTYPE_V8DF_V8DI): Ditto.
15984         (V4SF_FTYPE_V4SF_UINT64): Ditto.
15985         (V4SI_FTYPE_V4SF_V4SF): Ditto.
15986         (V16SF_FTYPE_V16SF_V16SI): Ditto.
15987         (V64QI_FTYPE_V32HI_V32HI): Ditto.
15988         (V32HI_FTYPE_V16SI_V16SI): Ditto.
15989         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
15990         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
15991         (V32HI_FTYPE_V64QI_V64QI): Ditto.
15992         (V32HI_FTYPE_V32HI_V32HI): Ditto.
15993         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
15994         (V16SI_FTYPE_V16SI_V4SI): Ditto.
15995         (V16SI_FTYPE_V16SI_V16SI): Ditto.
15996         (V16SI_FTYPE_V32HI_V32HI): Ditto.
15997         (V16SI_FTYPE_V16SI_SI): Ditto.
15998         (V8DI_FTYPE_V8DI_V8DI): Ditto.
15999         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16000         (V8DI_FTYPE_V16SI_V16SI): Ditto.
16001         (V8DI_FTYPE_V8DI_V2DI): Ditto.
16002         (QI_FTYPE_QI): Ditto.
16003         (SI_FTYPE_SI): Ditto.
16004         (DI_FTYPE_DI): Ditto.
16005         (QI_FTYPE_QI_QI): Ditto.
16006         (QI_FTYPE_QI_INT): Ditto.
16007         (HI_FTYPE_HI_INT): Ditto.
16008         (SI_FTYPE_SI_INT): Ditto.
16009         (DI_FTYPE_DI_INT): Ditto.
16010         (HI_FTYPE_V16QI_V16QI): Ditto.
16011         (SI_FTYPE_V32QI_V32QI): Ditto.
16012         (DI_FTYPE_V64QI_V64QI): Ditto.
16013         (QI_FTYPE_V8HI_V8HI): Ditto.
16014         (HI_FTYPE_V16HI_V16HI): Ditto.
16015         (SI_FTYPE_V32HI_V32HI): Ditto.
16016         (QI_FTYPE_V4SI_V4SI): Ditto.
16017         (QI_FTYPE_V8SI_V8SI): Ditto.
16018         (QI_FTYPE_V2DI_V2DI): Ditto.
16019         (QI_FTYPE_V4DI_V4DI): Ditto.
16020         (QI_FTYPE_V8DI_V8DI): Ditto.
16021         (HI_FTYPE_V16SI_V16SI): Ditto.
16022         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16023         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16024         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16025         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16026         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16027         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16028         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16029         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16030         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16031         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16032         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16033         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16034         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16035         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16036         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16037         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16038         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16039         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16040         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16041         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16042         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16043         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16044         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16045         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16046         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16047         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16048         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16049         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16050         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16051         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16052         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16053         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16054         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16055         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16056         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16057         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16058         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16059         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16060         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16061         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16062         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16063         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16064         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16065         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16066         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16067         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16068         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16069         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16070         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16071         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16072         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16073         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16074         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16075         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16076         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16077         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16078         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16079         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16080         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16081         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16082         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16083         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16084         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16085         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16086         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16087         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16088         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16089         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16090         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16091         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16092         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16093         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16094         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16095         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16096         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16097         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16098         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16099         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16100         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16101         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16102         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16103         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16104         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16105         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16106         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16107         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16108         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16109         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16110         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16111         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16112         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16113         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16114         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16115         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16116         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16117         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16118         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16119         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16120         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16121         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16122         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16123         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16124         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16125         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16126         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16127         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16128         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16129         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16130         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16131         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16132         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16133         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16134         (HI_FTYPE_HI): Ditto.
16135         (HI_FTYPE_V16QI): Ditto.
16136         (SI_FTYPE_V32QI): Ditto.
16137         (DI_FTYPE_V64QI): Ditto.
16138         (QI_FTYPE_V8HI): Ditto.
16139         (HI_FTYPE_V16HI): Ditto.
16140         (SI_FTYPE_V32HI): Ditto.
16141         (QI_FTYPE_V4SI): Ditto.
16142         (QI_FTYPE_V8SI): Ditto.
16143         (HI_FTYPE_V16SI): Ditto.
16144         (QI_FTYPE_V2DI): Ditto.
16145         (QI_FTYPE_V4DI): Ditto.
16146         (QI_FTYPE_V8DI): Ditto.
16147         (V16QI_FTYPE_HI): Ditto.
16148         (V32QI_FTYPE_SI): Ditto.
16149         (V64QI_FTYPE_DI): Ditto.
16150         (V8HI_FTYPE_QI): Ditto.
16151         (V16HI_FTYPE_HI): Ditto.
16152         (V32HI_FTYPE_SI): Ditto.
16153         (V4SI_FTYPE_QI): Ditto.
16154         (V4SI_FTYPE_HI): Ditto.
16155         (V8SI_FTYPE_QI): Ditto.
16156         (V8SI_FTYPE_HI): Ditto.
16157         (V2DI_FTYPE_QI): Ditto.
16158         (V4DI_FTYPE_QI): Ditto.
16159         (HI_FTYPE_HI_HI): Ditto.
16160         (SI_FTYPE_SI_SI): Ditto.
16161         (DI_FTYPE_DI_DI): Ditto.
16162         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16163         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16164         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16165         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16166         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16167         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16168         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16169         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16170         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16171         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16172         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16173         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16174         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16175         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16176         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16177         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16178         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16179         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16180         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16181         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16182         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16183         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16184         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16185         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16186         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16187         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16188         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16189         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16190         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16191         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16192         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16193         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16194         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16195         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16196         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16197         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16198         (V16SI_FTYPE_HI): Ditto.
16199         (V8DI_FTYPE_QI): Ditto.
16200         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16201         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16202         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16203         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16204         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16205         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16206         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16207         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16208         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16209         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16210         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16211         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16212         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16213         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16214         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16215         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16216         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16217         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16218         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16219         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16220         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16221         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16222         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16223         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16224         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16225         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16226         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16227         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16228         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16229         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16230         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16231         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16232         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16233         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16234         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16235         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16236         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16237         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16238         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16239         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16240         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16241         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16242         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16243         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16244         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16245         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16246         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16247         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16248         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16249         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16250         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16251         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16252         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16253         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16254         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16255         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16256         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16257         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16258         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16259         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16260         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16261         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16262         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16263         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16264         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16265         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16266         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16267         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16268         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16269         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16270         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16271         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16272         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16273         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16274         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16275         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16276         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16277         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16278         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16279         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16280         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16281         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16282         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16283         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16284         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16285         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16286         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16287         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16288         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16289         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16290         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16291         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16292         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16293         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16294         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16295         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16296         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16297         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16298         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16299         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16300         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16301         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16302         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16303         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16304         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16305         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16306         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16307         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16308         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16309         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16310         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16311         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16312         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16313         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16314         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16315         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16316         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16317         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16318         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16319         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16320         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16321         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16322         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16323         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16324         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16325         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16326         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16327         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16328         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16329         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16330         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16331         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16332         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16333         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16334         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16335         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16336         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16337         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16338         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16339         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16340         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16341         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16342         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16343         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16344         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16345         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16346         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16347         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16348         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16349         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16350         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16351         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16352         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16353         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16354         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16355         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16356         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16357         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16358         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16359         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16360         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16361         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16362         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16363         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16364         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16365         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16366         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16367         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16368         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16369         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16370         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16371         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16372         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16373         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16374         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16375         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16376         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16377         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16378         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16379         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16380         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16381         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16382         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16383         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16384         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16385         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16386         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16387         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16388         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16389         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16390         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16391         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16392         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16393         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16394         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16395         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16396         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16397         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16398         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16399         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16400         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16401         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16402         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16403         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16404         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16405         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16406         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16407         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16408         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16409         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16410         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16411         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16412         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16413         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16414         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16415         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16416         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16417         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16418         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16419         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16420         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16421         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16422         (QI_FTYPE_V8DF_INT_QI): Ditto.
16423         (QI_FTYPE_V4DF_INT_QI): Ditto.
16424         (QI_FTYPE_V2DF_INT_QI): Ditto.
16425         (HI_FTYPE_V16SF_INT_HI): Ditto.
16426         (QI_FTYPE_V8SF_INT_QI): Ditto.
16427         (QI_FTYPE_V4SF_INT_QI): Ditto.
16428         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16430 2015-07-31  Richard Biener  <rguenther@suse.de>
16432         * gimple-fold.c (fold_gimple_assign): Remove folding of
16433         GIMPLE_BINARY_RHS.
16435 2015-07-31  Tom de Vries  <tom@codesourcery.com>
16437         PR tree-optimization/66846
16438         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16439         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16440         (expand_omp_target) [ENABLE_CHECKING]: Same.
16441         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
16442         cfun if !LOOPS_NEED_FIXUP.
16443         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
16444         that omp_for already has its own loop struct.
16445         * tree-parloops.c (create_phi_for_local_result)
16446         (create_call_for_reduction): Handle simple latch bb.
16447         (create_parallel_loop): Add simple latch bb to preserve
16448         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
16449         (gen_parallel_loop): Remove call to cancel_loop_tree.
16450         (parallelize_loops): Skip loops that are inner loops of parallelized
16451         loops.
16452         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
16453         verify_loop_structure.
16455 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
16457         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
16458         * config/v850/v850.md (RV_REGNUM): New constants.
16459         * config/v850/v850.c (v850_libcall_value): New functions.
16460         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
16461         (TARGET_LIBCALL_VALUE): Define.
16463 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
16465         * rtl.h (lowpart_subreg): Move in file.
16466         * loop-iv.c (lowpart_subreg): Move to...
16467         * simplify-rtx.c (lowpart_subreg): ...here.
16468           (simplify_binary_operation_1): Use lowpart_subreg instead of
16469           simplify_gen_subreg.
16470         * expr.c (expand_expr_real_2): Ditto.
16471         * emit-rtl.c (gen_lowpart_common): Ditto.
16472         * combine.c (gen_lowpart_for_combine): Ditto.
16473         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
16474           expand_debug_source_expr): Ditto.
16476 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
16478         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
16479         (expand_builtin_atomic_clear): Remove support for atomic_clear
16480         pattern.
16482 2015-07-30  Richard Biener  <rguenther@suse.de>
16484         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
16485         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
16486         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
16487         redundant operand canonicalization.
16489 2015-07-30  David Sherwood  <david.sherwood@arm.com>
16491         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
16492         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
16493         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
16494         * config/arm/arm.c (neon_valid_immediate): Likewise.
16495         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
16496         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
16497         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
16498         (expand_vec_perm_vpshufb2_vpermq): Likewise.
16499         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
16500         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
16501         * config/i386/sse.md
16502         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
16503         (*ssse3_palignr<mode>_perm): Likewise.
16504         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
16505         * config/spu/spu.c (arith_immediate_p): Likewise.
16506         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16507         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
16509 2015-07-30  Richard Biener  <rguenther@suse.de>
16511         * genmatch.c (decision_tree::gen_gimple): Merge with ...
16512         (decision_tree::gen_generic): ... this into ...
16513         (decision_tree::gen): ... this.
16514         (main): Adjust callers.
16516 2015-07-30  Richard Biener  <rguenther@suse.de>
16518         * genmatch.c (verbose): New global.
16519         (warning_at): Add overload with source_location.
16520         (capture_info::capture_info): Add bool whether generating gimple
16521         or generic.  Add gimple member.
16522         (capture_info::cinfo): Add capture member.
16523         (capture_info::walk_match): Record capture.  Warn on
16524         non-captured leafs.
16525         (capture_info::walk_c_expr): Add more fragments captures cannot
16526         escape through.  Warn on escaped captures.
16527         (dt_simplify::gen_1): Warn on operands we force to have no
16528         side-effects.
16529         (main): Initialize verbose.
16530         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
16532 2015-07-30  Richard Biener  <rguenther@suse.de>
16534         PR middle-end/67053
16535         * match.pd: Allow both operands to independently have conversion
16536         when simplifying compares of addresses.
16538 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
16540         PR target/66217
16541         PR target/67045
16542         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
16543         around those cases that need one.
16545 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
16547         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
16549 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
16551         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
16552         New.  Copied from config/i386/gnu-user.h.
16553         (ASM_COMMENT_START): Likewise.
16554         (DBX_REGISTER_NUMBER): Likewise.
16556 2015-07-29  Richard Biener  <rguenther@suse.de>
16558         * gimple-fold.c (fold_gimple_cond): Remove.
16559         (fold_stmt_1): Do not call it.
16561 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
16563         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
16564         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
16566         * config/aarch64/aarch64-modes.def: Add HFmode.
16568         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16569         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
16571         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
16572         aarch64_promoted_type): New.
16574         (aarch64_float_const_representable_p): Disable HFmode.
16575         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
16576         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
16577         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
16579         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
16580         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
16582         * config/aarch64/iterators.md (GPF_F16): New.
16584 2015-07-29  Richard Biener  <rguenther@suse.de>
16586         * match.pd: Merge address comparison patterns and make them
16587         handle some more cases.
16589 2015-07-29  Richard Biener  <rguenther@suse.de>
16591         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
16592         (parser::parse_capture): Add bool argument on whether to reject
16593         unknown captures.
16594         (parser::parse_expr): Adjust.
16595         (parser::parse_op): Likewise.
16596         (parser::parse_pattern): Likewise.
16598 2015-07-29  Richard Biener  <rguenther@suse.de>
16600         * gimple-fold.c (has_use_on_stmt): New function.
16601         (replace_stmt_with_simplification): Use it to allow
16602         abnormals originally referenced in the stmt.
16603         (fold_stmt_1): Canonicalize operand order.
16605 2015-07-28  David Sherwood  <david.sherwood@arm.com>
16607         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
16608         GET_MODE_INNER unconditionally.
16609         * config/spu/spu.c (arith_immediate_p): Likewise.
16610         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
16611         * expmed.c (synth_mult): Remove check for VOIDmode result from
16612         GET_MODE_INNER.
16613         (expand_mult_const): Likewise.
16614         * fold-const.c (fold_binary_loc): Replace call to element_precision
16615         with call to GET_MODE_PRECISION.
16616         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
16617         m->name.
16618         (emit_mode_inner): Likewise.
16619         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
16620         result check.
16621         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
16622         (GET_MODE_UNIT_PRECISION): Likewise.
16623         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
16624         * simplify-rtx.c (simplify_immed_subreg): Likewise.
16625         * stor-layout.c (bitwise_type_for_mode): Update assert.
16626         (element_precision): Remove.
16628 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16630         * target-insns.def (reload_load_address): New targetm instruction
16631         pattern.
16632         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
16634 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16636         * target-insns.def (atomic_test_and_set): New targetm instruction
16637         pattern.
16638         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
16639         HAVE_*/gen_* interface.
16641 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16643         * target-insns.def (can_extend, ptr_extend): New targetm instruction
16644         patterns.
16645         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
16646         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16647         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
16648         * rtlanal.c (nonzero_bits1): Likewise.
16649         (num_sign_bit_copies1): Likewise.
16651 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16653         * target-insns.def (eh_return): New targetm instruction pattern.
16654         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
16655         interface.
16656         * function.c (thread_prologue_and_epilogue_insns): Remove
16657         preprocessor condition.
16659 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16661         * target-insns.def (indirect_jump): New targetm instruction pattern.
16662         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
16663         interface.
16665 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
16667         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
16668         instead of nonimmediate_operand.  Remove C condiition.
16670 2015-07-28  Richard Biener  <rguenther@suse.de>
16672         * match.pd: Add more simplification of address comparisons.
16674 2015-07-28  Richard Biener  <rguenther@suse.de>
16676         * match.pd: Re-order two cases in comparison with max/min
16677         value simplification to make it apply for bools.
16679 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16681         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
16682         Handle simple SIGN_EXTEND or ZERO_EXTEND.
16683         (aarch64_rtx_costs): Properly strip extend or extract before
16684         passing down to rtx costs again.
16686 2015-07-28  Nick Clifton  <nickc@redhat.com>
16688         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
16689         Optimizes the case where -mes0 is active and a constant symbolic
16690         address is used.
16691         * config/rl78/rl78-protos.h: Prototype the new function.
16692         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
16694 2015-07-28  Tom de Vries  <tom@codesourcery.com>
16696         * tree-parloops.c (reduc_stmt_res): New function.
16697         (initialize_reductions, add_field_for_reduction)
16698         (create_phi_for_local_result, create_loads_for_reductions)
16699         (create_stores_for_reduction, build_new_reduction): Handle case that
16700         reduc_stmt is a phi.
16701         (gather_scalar_reductions): Allow double_reduc reductions.
16703 2015-07-28  Richard Biener  <rguenther@suse.de>
16705         * fold-const.c (fold_comparison): Remove equality folding
16706         of decl addresses ...
16707         * match.pd: ... here and merge with existing pattern.
16709 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16711         PR tree-optimization/66828
16712         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
16713         from int64_t to uint64_t.
16715 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16717         * opts-common.c (read_cmdline_option): List DriverOnly enum values
16718         as valid only in the error message of the driver, not in the
16719         messages of the language compilers.
16721 2015-07-27  Tom de Vries  <tom@codesourcery.com>
16723         * tree-parloops.c (gather_scalar_reductions): Simplify function
16724         structure.
16726 2015-07-27  Marek Polacek  <polacek@redhat.com>
16728         * ipa-devirt.c (types_same_for_odr): Fix typo.
16730 2015-07-27  Jason Merrill  <jason@redhat.com>
16732         PR debug/66468
16733         * dwarf2out.c (gen_inlined_subroutine_die): Check
16734         cgraph_function_possibly_inlined_p.
16736 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
16738         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
16739         Place integer variant first.
16740         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16742 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
16744         PR/63870
16745         * config/arm/arm-builtins.c (enum arm_builtins):
16746         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
16747         (ARM_BUILTIN_NEON_BASE): Rename macro to....
16748         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
16749         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
16750         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
16752 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
16754         PR/63870
16755         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
16756         Add qualifier_lane_index.
16757         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
16758         (arm_getlane_qualifiers): Use qualifier_lane_index.
16759         (arm_lanemac_qualifiers): Rename to...
16760         (arm_mac_n_qualifiers): ...this.
16761         (LANEMAC_QUALIFIERS): Rename to...
16762         (MAC_N_QUALIFIERS): ...this.
16763         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
16764         (arm_setlane_qualifiers): Use qualifier_lane_index.
16765         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
16766         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
16767         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
16768         (arm_expand_neon_builtin): Handle qualifier_lane_index.
16770         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
16771         * config/arm/arm.c (bounds_check): Likewise, improve error message.
16772         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
16773         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
16774         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
16775         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
16776         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
16777         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
16778         qualifiers to TERNOP_IMM.
16779         (vdup_lane): Change qualifiers to GETLANE.
16780         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
16781         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
16782         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
16783         vqdmlsl_n): Change qualifiers to MAC_N.
16785         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
16786         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
16787         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
16788         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
16789         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
16790         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
16791         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
16792         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
16793         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
16794         Remove call to neon_lane_bounds.
16796 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
16798         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16799         Place integer variant first.
16801 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
16803         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
16804         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
16805         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
16806         for armv6kz targets.
16807         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
16808         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
16809         (FL_FOR_ARCH6ZK): Remove.
16810         (FL_FOR_ARCH6KZ): New.
16811         (arm_arch6zk): New declaration.
16812         * config/arm/arm-tables.opt: Regenerate.
16813         * config/arm/arm.c (arm_arch6kz): New.
16814         (arm_option_override): Set arm_arch6kz.
16815         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
16816         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
16817         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
16819 2015-07-27  Marek Polacek  <polacek@redhat.com>
16821         PR c++/66555
16822         PR c/54979
16823         * doc/invoke.texi: Document -Wtautological-compare.
16825 2015-07-27  Richard Biener  <rguenther@suse.de>
16827         * genmatch.c (decision_tree::gen_gimple): Split out large
16828         subtrees into separate functions.
16829         (decision_tree::gen_generic): Likewise.
16831 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
16833         * config/alpha/alpha.c: Use SUBREG_P predicate.
16834         * config/alpha/predicates.md: Ditto.
16836 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16838         * config.host (s390*-*-*): Include driver-native.c only when
16839         building with s390* as host *and* target.
16841 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
16843         PR target/66930
16844         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
16845         T bit register modified_between_p check.
16847 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16849         * config/i386/i386.c: Use SUBREG_P predicate.
16850         * config/i386/i386.md: Ditto.
16851         * config/i386/sse.md: Ditto.
16852         * config/i386/predicates.md: Ditto.
16854 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16856         PR target/67004
16857         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
16858         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
16860 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
16862         * Makefile.in: Remove use of TREEBROWSER.
16863         * config.in: Regenerated.
16864         * configure: Regenerated.
16865         * configure.ac: Remove definition of TREEBROWSER.
16866         * tree-browser.c: Removed.
16867         * tree-browser.def: Removed.
16869 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
16871         * graphite-scop-detection.c: Include gimple-pretty-print.h.
16872         (stmt_simple_for_scop_p): Print when a stmt is not handled in
16873         Graphite.
16874         (scopdet_basic_block_info): Print when a loop or bb cannot be
16875         represented in Graphite.
16877 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
16879         PR target/66648
16880         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
16881         execution guard when min_size is less than size_needed.
16883 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
16885         * doc/install.texi: Document supported versions of ISL.
16887 2015-07-25  Jeff Law  <law@redhat.com>
16889         Revert:
16890         PR lto/66752
16891         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16892         unable to find X NE 0 in the tables, return X as the simplified
16893         condition.
16894         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16895         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16896         to VISISTED_BBS.  */
16897         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16898         after removing the control flow statement and unnecessary edges.
16900 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
16902         Revert:
16903         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
16905         PR rtl-optimization/64164
16906         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16907         * tree-ssa-copyrename.c: Removed.
16908         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16909         -ftree-coalesce-vars.
16910         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16911         * common.opt (ftree-copyrename): Ignore.
16912         (ftree-coalesce-inlined-vars): Likewise.
16913         * doc/invoke.texi: Remove the ignored options above.
16914         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16915         * tree-ssa-coalesce.h: ... here.
16916         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16917         headers required by it.
16918         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16919         across variables when flag_tree_coalesce_vars.  Check register
16920         use and promoted modes to allow coalescing.  Moved to
16921         tree-ssa-coalesce.c.
16922         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16923         with its member functions to tree-ssa-coalesce.c.
16924         (var_map_base_init): Likewise.  Renamed to
16925         compute_samebase_partition_bases.
16926         (partition_view_normal): Drop want_bases parameter.
16927         (partition_view_bitmap): Likewise.
16928         * tree-ssa-live.h: Adjust declarations.
16929         * tree-ssa-coalesce.c: Include explow.h.
16930         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16931         default defs at the entry point.
16932         (dump_part_var_map): New.
16933         (compute_optimized_partition_bases): New, called by...
16934         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16935         of compute_samebase_partition_bases.  Adjust.
16936         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16937         * cfgexpand.c (leader_merge): New.
16938         (get_rtl_for_parm_ssa_default_def): New.
16939         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16940         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16941         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16942         redundant MEM attr setting.
16943         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16944         from...
16945         (expand_one_stack_var): ... this.  New wrapper to check and
16946         skip already expanded SSA partitions.
16947         (record_alignment_for_reg_var): New, factored out of...
16948         (expand_one_var): ... this.
16949         (expand_one_ssa_partition): New.
16950         (adjust_one_expanded_partition_var): New.
16951         (expand_one_register_var): Check and skip already expanded SSA
16952         partitions.
16953         (expand_used_vars): Don't create DECLs for anonymous SSA
16954         names.  Expand all SSA partitions, then adjust all SSA names.
16955         (pass::execute): Replace the loops that set
16956         SA.partition_to_pseudo from partition leaders and cleared
16957         DECL_RTL for multi-location variables, and that which used to
16958         rename vars and set attrs, with one that clears DECL_RTL and
16959         checks that PARMs and RESULTs default_defs match DECL_RTL.
16960         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16961         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16962         * explow.c (promote_ssa_mode): New.
16963         * explow.h (promote_ssa_mode): Declare.
16964         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16965         * function.c: Include cfgexpand.h.
16966         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16967         (use_register_for_parm_decl): Wrapper for the above to
16968         special-case the result_ptr.
16969         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16970         (split_complex_args): Take assign_parm_data_all argument.
16971         Pass it to rtl_for_parm.  Set up rtl and context for split
16972         args.
16973         (assign_parms_augmented_arg_list): Adjust.
16974         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16975         multiple locations.  Recognize split complex args.
16976         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16977         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16978         (assign_parm_setup_block): Prefer SSA-assigned location.
16979         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16980         if stack_parm is NULL.
16981         (assign_parm_setup_stack): Prefer SSA-assigned location.
16982         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16983         rtl before testing for pointer bounds.  Special-case result_ptr.
16984         (expand_function_start): Maybe reset DECL_RTL of result.
16985         Prefer SSA-assigned location for result and static chain.
16986         Factor out DECL_RESULT and SET_DECL_RTL.
16987         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16988         anonymous SSA names.  Use promote_ssa_mode.
16989         (get_temp_reg): Likewise.
16990         (remove_ssa_form): Adjust.
16991         * stor-layout.c (layout_decl): Don't set mem attributes of
16992         non-MEMs.
16993         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16994         and get its reg_usage for reg invalidation.
16995         (compute_bb_dataflow): Pass it insn.
16996         (emit_notes_in_bb): Likewise.
16998 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17000         * config/i386/i386.c (ix86_va_start): Remove
17001         unneeded !TARGET_64BIT check.
17002         (ix86_gimplify_va_arg): Ditto.
17004 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17006         * graphite-sese-to-poly.c (build_poly_scop): Always call
17007         rewrite_commutative_reductions_out_of_ssa.
17009 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17011         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17012         flag_associative_math to FLOAT_TYPE_P.  Honour
17013         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17015 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17017         PR c++/64079
17018         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17019         and "%qD" in warning_at instead of "%q+D" in warning.
17021 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17023         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17024         (ix86_function_abi): Cleanup.
17026 2015-07-24  Michael Darling  <darlingm@gmail.com>
17028         PR other/66259
17029         * acinclude.m4: Reflects renaming of configure.in to configure.ac
17030         * configure: Likewise
17031         * configure.ac: Likewise
17032         * doc/install.texi: Likewise
17033         * doc/tm.texi: Likewise
17034         * doc/tm.texi.in: Likewise
17036 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17038         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17039         manually swapping values.
17040         * cse.c (fold_rtx): Likewise.
17041         * lra-eliminations.c (form_sum): Likewise.
17043 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17045         PR target/64003
17046         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17047         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17048         (*jcc_1, *jcc_2, jump, simple_return_internal)
17049         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17050         Set length_nobnd attribute instead of length attribute.
17051         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17052         (length_nobnd): Remove attribute.
17053         (length): Remove length_nobnd processing.
17055 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
17057         * gimplify.c (omp_default_clause): New function.  Reorganize flow
17058         for clarity. Broken out of ...
17059         (omp_notice_variable): ... here.
17061 2015-07-24  Gary Funck  <gary@intrepid.com>
17063         PR middle-end/66984
17064         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17065         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17067 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17069         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17070         exit-first loop transform.
17072 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
17074         PR 66714
17075         * tree-cfg.c (struct replace_decls_d): New struct.
17076         (replace_block_vars_by_duplicates_1): New function.
17077         (replace_block_vars_by_duplicates): Use it to replace the decls
17078         in the value exprs by duplicates.
17080 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17082         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17083         -shared, -symbolic, -rdynamic.
17085 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17087         PR target/65711
17088         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17089         -dynamic-linker within %{!static %{!shared, and -rdynamic within
17090         %{!static.
17092 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
17094         PR ipa/66566
17095         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17096         edge summary is available.
17098 2015-07-24  Richard Biener  <rguenther@suse.de>
17100         * genmatch.c (struct dt_node): Add statistic fields.
17101         (dt_node::analyze): New method.
17102         (decision_tree::gen_gimple): Call analyze on the root node
17103         and print statistics to stderr.
17104         (decision_tree::gen_generic): Likewise.
17106 2015-07-24  Richard Biener  <rguenther@suse.de>
17108         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17109         against the highest or lowest possible integer ...
17110         * match.pd: ... as patterns here.
17112 2015-07-24  Richard Biener  <rguenther@suse.de>
17114         * genmatch.c (struct capture_info): Add same_as field.
17115         (capture_info::capture_info): Initialize same_as.
17116         (capture_info::walk_match): Compute same_as.
17117         (capture_info::walk_result): Compute stuff for the leader.
17118         (capture_info::walk_c_expr): Likewise.
17119         (dt_simplify::gen_1): Only look at leaders when deciding
17120         to force no side-effects or emit side-effects of omitted operands.
17122 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17124         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17125         reg note to the GPR -> FPR save instructions.
17127 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17129         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17130         cheaper.
17131         (s390_expand_insv): Don't generate risbg pattern for constant zero
17132         sources.
17133         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17134         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
17135         splitters.
17137 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17139         * config/s390/s390.c (s390_reorg): Clean up handling of processors
17140         with
17141         -mtune=
17142         (s390_issue_rate): Likewise.
17143         (s390_sched_reorder): Likewise.
17144         (s390_sched_variable_issue): Likewise.
17145         (s390_loop_unroll_adjust): Likewise.
17146         (s390_option_override):  Likewise.
17148 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17150         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17151         processor capabilities with -march=native.
17152         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17153         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
17154         (S390_TARGET_BITS_STRING): Macro to simplify specs.
17156 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17158         * config/s390/s390.c (s390_issue_rate): Handle
17159         PROCESSOR_2094_Z9_EC.
17160         (s390_option_override): Likewise.
17161         (s390_adjust_priority): Likewise.
17163 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17165         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17166         when cross compiling.
17168 2015-07-24  Richard Biener  <rguenther@suse.de>
17170         * fold-const.c (maybe_canonicalize_comparison_1): Move
17171         A code CST canonicalization ...
17172         * match.pd: ... to a pattern here.
17174 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
17176         Revert:
17177         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17178         PR target/63521
17179         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17180         (HONOR_REG_ALLOC_ORDER): Define.
17182 2015-07-24  Richard Biener  <rguenther@suse.de>
17184         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17185         * fold-const.c (fold_comparison): Move parameter does not
17186         alias &local simplification ...
17187         * match.pd: ... as a pattern here.
17189 2015-07-24  Richard Biener  <rguenther@suse.de>
17191         * gimple-fold.c (replace_stmt_with_simplification): Special-case
17192         valueizing call operands.
17193         * gimple-match-head.c (maybe_push_res_to_seq): Take
17194         number of call arguments from ops array.
17195         (do_valueize): New function.
17196         (gimple_simplify): Return true if valueization changed
17197         any operand even if the result didn't simplify further.
17199 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17201         PR middle-end/25530
17202         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17204 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17206         PR middle-end/25529
17207         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17209 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17211         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17212         instruction.
17214 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17216         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17217         clean up.
17219 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
17221         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17222         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
17223         targets here.
17224         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17225         ms_va_list_type_node initialization.
17227 2015-07-23  Jeff Law  <law@redhat.com>
17229         PR lto/66752
17230         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17231         unable to find X NE 0 in the tables, return X as the simplified
17232         condition.
17233         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17234         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17235         to VISISTED_BBS.  */
17236         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17237         after removing the control flow statement and unnecessary edges.
17239 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17241         * tree-pass.h (get_current_pass_name): Removed.
17243 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17245         PR rtl-optimization/64164
17246         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17247         * tree-ssa-copyrename.c: Removed.
17248         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17249         -ftree-coalesce-vars.
17250         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17251         * common.opt (ftree-copyrename): Ignore.
17252         (ftree-coalesce-inlined-vars): Likewise.
17253         * doc/invoke.texi: Remove the ignored options above.
17254         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17255         * tree-ssa-coalesce.h: ... here.
17256         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17257         headers required by it.
17258         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17259         across variables when flag_tree_coalesce_vars.  Check register
17260         use and promoted modes to allow coalescing.  Moved to
17261         tree-ssa-coalesce.c.
17262         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17263         with its member functions to tree-ssa-coalesce.c.
17264         (var_map_base_init): Likewise.  Renamed to
17265         compute_samebase_partition_bases.
17266         (partition_view_normal): Drop want_bases parameter.
17267         (partition_view_bitmap): Likewise.
17268         * tree-ssa-live.h: Adjust declarations.
17269         * tree-ssa-coalesce.c: Include explow.h.
17270         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17271         default defs at the entry point.
17272         (dump_part_var_map): New.
17273         (compute_optimized_partition_bases): New, called by...
17274         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17275         of compute_samebase_partition_bases.  Adjust.
17276         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17277         * cfgexpand.c (leader_merge): New.
17278         (get_rtl_for_parm_ssa_default_def): New.
17279         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17280         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17281         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17282         redundant MEM attr setting.
17283         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17284         from...
17285         (expand_one_stack_var): ... this.  New wrapper to check and
17286         skip already expanded SSA partitions.
17287         (record_alignment_for_reg_var): New, factored out of...
17288         (expand_one_var): ... this.
17289         (expand_one_ssa_partition): New.
17290         (adjust_one_expanded_partition_var): New.
17291         (expand_one_register_var): Check and skip already expanded SSA
17292         partitions.
17293         (expand_used_vars): Don't create DECLs for anonymous SSA
17294         names.  Expand all SSA partitions, then adjust all SSA names.
17295         (pass::execute): Replace the loops that set
17296         SA.partition_to_pseudo from partition leaders and cleared
17297         DECL_RTL for multi-location variables, and that which used to
17298         rename vars and set attrs, with one that clears DECL_RTL and
17299         checks that PARMs and RESULTs default_defs match DECL_RTL.
17300         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17301         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17302         * explow.c (promote_ssa_mode): New.
17303         * explow.h (promote_ssa_mode): Declare.
17304         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17305         * function.c: Include cfgexpand.h.
17306         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17307         (use_register_for_parm_decl): Wrapper for the above to
17308         special-case the result_ptr.
17309         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17310         (split_complex_args): Take assign_parm_data_all argument.
17311         Pass it to rtl_for_parm.  Set up rtl and context for split
17312         args.
17313         (assign_parms_augmented_arg_list): Adjust.
17314         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17315         multiple locations.  Recognize split complex args.
17316         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17317         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17318         (assign_parm_setup_block): Prefer SSA-assigned location.
17319         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17320         if stack_parm is NULL.
17321         (assign_parm_setup_stack): Prefer SSA-assigned location.
17322         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17323         rtl before testing for pointer bounds.  Special-case result_ptr.
17324         (expand_function_start): Maybe reset DECL_RTL of result.
17325         Prefer SSA-assigned location for result and static chain.
17326         Factor out DECL_RESULT and SET_DECL_RTL.
17327         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17328         anonymous SSA names.  Use promote_ssa_mode.
17329         (get_temp_reg): Likewise.
17330         (remove_ssa_form): Adjust.
17331         * stor-layout.c (layout_decl): Don't set mem attributes of
17332         non-MEMs.
17333         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17334         and get its reg_usage for reg invalidation.
17335         (compute_bb_dataflow): Pass it insn.
17336         (emit_notes_in_bb): Likewise.
17338 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17340         PR target/66217
17341         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17342         prototype.
17343         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17344         (rs6000_emit_2insn_and): Handle dot forms.
17345         * config/rs6000/rs6000.md (and<mode>3): Adjust.
17346         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
17347         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17349 2015-07-23  Richard Biener  <rguenther@suse.de>
17351         * generic-match-head.c: Include cgraph.h.
17352         * gimple-match-head.c: Likewise.
17353         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17354         SSA names.
17355         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17356         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
17357         pattern.
17359 2015-07-23  Richard Biener  <rguenther@suse.de>
17361         * gimple-fold.c (fold_gimple_cond): Do not require folding
17362         results to pass valid_gimple_rhs_p.
17363         * tree-cfg.h (fold_cond_expr_cond): Remove.
17364         * tree-cfg.c (fold_cond_expr_cond): Likewise.
17365         (make_edges): Do not call it.
17366         * tree-inline.c (tree_function_versioning): Likewise.
17368 2015-07-23  Tom de Vries  <tom@codesourcery.com>
17370         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17371         vect_force_simple_reduction.
17372         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17373         (vect_is_simple_reduction_1): Add and handle
17374         need_wrapping_integral_overflow parameter.
17375         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17376         need_wrapping_integral_overflow parameter.
17377         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17378         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17379         decl.
17381 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
17383         PR tree-optimization/66926,66951
17384         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17385         INNER_LOOP and fix up condition for renaming virtual operands.
17387 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17389         * combine.c (try_combine): Use std::swap instead of manually
17390         swapping.
17392 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
17394         * config/mips/i6400.md: New file.
17395         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17396         (mips64r6): Likewise.
17397         (i6400): Define.
17398         * config/mips/mips-tables.opt: Regenerate.
17399         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17400         (mips_issue_rate): Add support for i6400.
17401         (mips_multipass_dfa_lookahead): Likewise.
17402         * config/mips/mips.h (TUNE_I6400): Define.
17403         * config/mips/mips.md: Include i6400.md.
17404         (processor): Add i6400.
17405         * doc/invoke.texi (-march=@var{arch}): Add i6400.
17407 2015-07-23  Richard Biener  <rguenther@suse.de>
17409         PR middle-end/66916
17410         * match.pd: Guard widen and sign-change comparison simplification
17411         with single_use.
17413 2015-07-23  Richard Biener  <rguenther@suse.de>
17415         PR tree-optimization/66945
17416         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17417         ::before_dom_children): Force the propagators idea of
17418         non-executable edges to materialize, not what the folder
17419         chooses.
17421 2015-07-23  Richard Biener  <rguenther@suse.de>
17423         * gimple.h (gimple_cond_make_false): Use 0 != 0.
17424         (gimple_cond_make_true): Use 1 != 0.
17426 2015-07-22  DJ Delorie  <dj@redhat.com>
17428         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17429         slashes.
17431         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17432         (ashrhi3): Likewise.
17433         (lshrhi3): Likewise.
17434         (movhi): Take advantage of zero-extend to load small constants.
17435         (movpsi): Likewise.
17436         (and<mode>3): Likewise.
17437         (zero_extendqihi2): Likewise.
17438         (zero_extendqisi2): New.
17439         * config/msp430/constraints.md (N,O): New.
17440         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
17442 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
17444         PR target/66954
17445         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
17446         to enum feature_priority and feature_list.
17447         (fold_builtin_cpu): Add F_AES to enum processor_features
17448         and isa_names_table.
17450 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
17452         PR driver/66737
17453         * config/i386/linux-common.h (MPX_SPEC): Use linker option
17454         for 64bit target only.
17456 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17458         * config/nvptx/nvptx.c: Expand some comments.
17460 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
17462         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
17463         (cortex_a53_advsimd): ...This.
17465 2015-07-22  Richard Biener  <rguenther@suse.de>
17467         * genmatch.c (expr::gen_transform): Clarify error message
17468         and display location.
17470 2015-07-22  Richard Biener  <rguenther@suse.de>
17472         * genmatch.c (struct operand): Add location member.
17473         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
17474         constructors.
17475         (struct simplify): Remove match_location and result_location
17476         members.
17477         (elsehwere): Adjust.
17479 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
17481         * config/mips/m5100.md: New file.
17482         * config/mips/mips-cpus.def (m5100, m5101): Define.
17483         * config/mips/mips-tables.opt: Regenerate.
17484         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
17485         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
17486         -march=m5101 to -mips32r5.
17487         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
17488         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
17489         !-msoft-float.
17490         * config/mips/mips.md: Include m5100.md.
17491         (processor): Add m5100.
17492         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
17494 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
17496         * config/mips/mips-cpus.def (interaptiv): Define.
17497         * config/mips/mips-tables.opt: Regenerate.
17498         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
17499         -mips32r2.
17500         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
17501         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
17503 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17505         PR target/63521
17506         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17507         (HONOR_REG_ALLOC_ORDER): Define.
17509 2015-07-22  Richard Biener  <rguenther@suse.de>
17511         PR tree-optimization/66952
17512         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
17513         blocks we end up executing unconditionally reset all SSA
17514         info such as range and alignment.
17515         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
17516         * tree-ssanames.c (reset_flow_sensitive_info): New function.
17518 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
17520         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
17521         typo in attribute.
17523 2015-07-22  Richard Biener  <rguenther@suse.de>
17525         * genmatch.c (parser::parse_result): Properly handle
17526         match with result operands and conditions.
17528 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
17530         PR target/63870
17531         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17532         Add qualifier_struct_load_store_lane_index.
17533         (aarch64_types_loadstruct_lane_qualifiers): Use
17534         qualifier_struct_load_store_lane_index for lane index argument for
17535         last argument.
17536         (aarch64_types_storestruct_lane_qualifiers): Ditto.
17537         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17538         (aarch64_simd_expand_args): Add new argument describing mode of
17539         builtin. Check lane bounds for arguments with
17540         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17541         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
17542         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
17543         (aarch64_simd_expand_builtin): Handle arguments with
17544         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
17545         aarch64_simd_expand_args.
17546         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
17547         vst[234]_lane with BUILTIN_VALLDIF.
17548         * config/aarch64/aarch64-simd.md:
17549         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
17550         endianness reversal on lane index.
17551         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
17552         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
17553         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
17554         (vec_store_lanesci_lane<mode>): Ditto.
17555         (vec_store_lanesxi_lane<mode>): Ditto.
17556         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
17557         reversal of lane index.
17558         (aarch64_ld3_lane<mode>): Ditto.
17559         (aarch64_ld4_lane<mode>): Ditto.
17560         (aarch64_st2_lane<mode>): Ditto.
17561         (aarch64_st3_lane<mode>): Ditto.
17562         (aarch64_st4_lane<mode>): Ditto.
17563         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
17564         to qmode. Add new mode parameter. Update uses.
17565         (__LD3_LANE_FUNC): Ditto.
17566         (__LD4_LANE_FUNC): Ditto.
17567         (__ST2_LANE_FUNC): Ditto.
17568         (__ST3_LANE_FUNC): Ditto.
17569         (__ST4_LANE_FUNC): Ditto.
17571 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
17573         * doc/invoke.texi (Language Independent Options): Rename node to
17574         Diagnostic Message Formatting Options.
17576 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
17578         PR ipa/66424.
17579         * lra-remat.c (operand_to_remat): Prevent using insns with input
17580         subregs processed separately by IRA.
17582 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
17584         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
17585         straight loops.
17586         (single_imm_use): Check for iterator node.
17587         (num_imm_uses): Likewise.
17588         * tree-ssa-operands.c (has_zero_uses_1): Delete.
17589         (single_imm_use_1): Check for iterator node.
17591 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
17592             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17594         * configure.ac: Add check for new options in isl-0.15.
17595         * config.in, configure: Rebuilt.
17596         * graphite-blocking.c: Include <isl/constraint.h>
17597         * graphite-interchange.c,  graphite-poly.c: Likewise.
17598         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
17599         * graphite.c: Likewise.
17600         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
17601         <isl/union_set.h>.
17602         * graphite-dependences.c: Include <isl/constraint.h>.
17603         (max_number_of_out_dimensions): Returns isl_stat.
17604         (extend_schedule_1): Likewise
17605         (extend_schedule): Corresponding changes.
17606         * graphite-optimize-isl.c: Include <isl/constraint.h> and
17607         <isl/union_set.h>.
17608         (getSingleMap): Change return type of isl_stat.
17609         (optimize_isl): Conditionally use
17610         isl_options_set_schedule_serialize_sccs.
17611         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
17612         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
17614 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
17616         PR target/66956
17617         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
17618         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
17620 2015-07-21  Richard Biener  <rguenther@suse.de>
17622         PR tree-optimization/66948
17623         * genmatch.c (capture_info::walk_match): Also recurse to
17624         captures.  Properly compute expr state from captures of
17625         captures.
17626         * match.pd: Add single-use guards to
17627         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
17629 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
17631         * config/nvptx/mkoffload.c (process): Add static destructor call.
17633 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17635         PR middle-end/66915
17636         * match.pd (A - B -> A + (-B)): Don't allow folding
17637         when type if a fixed-point type.
17639 2015-07-20  DJ Delorie  <dj@redhat.com>
17641         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
17642         (iorqi3_real): Likewise for set1.
17644 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
17646         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
17647         for !TARGET_64BIT.
17649 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
17651         * graphite-isl-ast-to-gimple.c:
17652         Refactor so that each function can access 'region'. This will help
17653         maintain a parameter rename_map within a region.
17655 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
17657         * config/rs6000/rs6000.md (*lt0_disi): New.
17659 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
17661         PR target/66217
17662         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
17663         "available letters" comment.
17664         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
17665         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
17666         and_2rld_operand):  Delete.
17667         (and_operand): Adjust.
17668         (rotate_mask_operator): New.
17669         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
17670         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
17671         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
17672         extract_ME): Delete.
17673         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17674         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
17675         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
17676         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17677         rs6000_emit_2insn_and): New.
17678         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
17679         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
17680         includes_rldic_lshift_p, includes_rldicr_lshift_p,
17681         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
17682         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
17683         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
17684         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
17685         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
17686         rs6000_emit_2insn_and): New.
17687         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
17688         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
17689         handling.
17690         <NOT>: Don't fall through to next case.
17691         <AND>: Handle the various rotate-and-mask cases directly.
17692         <IOR>: Always cost as one insn.
17693         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
17694         (and<mode>3): Adjust expander for the new patterns.
17695         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
17696         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
17697         (*and<mode>3_imm_dot_shifted): New.
17698         (*and<mode>3_mask): Delete, rewrite as ...
17699         (and<mode>3_mask): ... New.
17700         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
17701         (andsi3_internal0_nomc): Delete.
17702         (*andsi3_internal6): Delete.
17703         (*and<mode>3_2insn): New.
17704         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17705         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17706         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
17707         *insvdi_internal3): Delete.
17708         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
17709         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
17710         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
17711         *ior<mode>_mask): New.
17712         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
17713         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17714         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17715         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17716         Delete.
17717         (ashr<mode>3): Delete expander.
17718         (*ashr<mode>3): Rename to ...
17719         (ashr<mode>3): ... This.
17720         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
17721         (*rotldi3_internal4, *rotldi3_internal5 and split,
17722         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
17723         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
17724         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
17725         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
17726         (splitter for loading a mask): Adjust.
17727         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
17729 2015-07-20  Marek Polacek  <polacek@redhat.com>
17731         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
17732         output_add_clobbers, output_added_clobbers_hard_reg_p,
17733         gen_rtx_scratch): Remove declarations.
17735 2015-07-20  Marek Polacek  <polacek@redhat.com>
17737         PR c++/55095
17738         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
17740 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17742         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
17743         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
17745 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17747         * combine.c (combine_simplify_rtx): Move simplification step
17748         before various transformations/substitutions.
17750 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
17752         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
17753         (struct int_traits): Likewise.
17755 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17757         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
17758         function to vmsdbgout_function_decl.
17760 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
17762         PR target/66922
17763         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
17764         from misaligned positions.
17765         (ix86_expand_pinsr): Reject insertions to misaligned positions.
17767 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
17769         PR middle-end/46851
17770         PR middle-end/60340
17771         * Makefile.in: Removed omega.o.
17772         * common.opt: Document flag fcheck-data-deps as deprecated.
17773         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
17774         its associated params: omega-max-vars, omega-max-geqs,
17775         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
17776         omega-max-keys, omega-eliminate-redundant-constraints.
17777         * doc/loop.texi: Remove all the section on Omega.
17778         * graphite-blocking.c: Include missing params.h: it used to be
17779         included through tree-data-ref.h and omega.h.
17780         * graphite-isl-ast-to-gimple.c: Same.
17781         * graphite-optimize-isl.c: Same.
17782         * graphite-sese-to-poly.c: Same.
17783         * graphite.c: Same.
17784         * omega.c: Remove.
17785         * omega.h: Remove.
17786         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
17787         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
17788         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
17789         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
17790         * passes.def: Remove pass_check_data_deps.
17791         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
17792         (dump_conflict_function): Same.
17793         (dump_subscript): Same.
17794         (print_direction_vector): Same.
17795         (print_dir_vectors): Same.
17796         (print_lambda_vector): Same.
17797         (print_dist_vectors): Same.
17798         (dump_data_dependence_relation): Same.
17799         (dump_data_dependence_relations): Same.
17800         (dump_dist_dir_vectors): Same.
17801         (dump_ddrs): Same.
17802         (init_omega_eq_with_af): Removed.
17803         (omega_extract_distance_vectors): Removed.
17804         (omega_setup_subscript): Removed.
17805         (init_omega_for_ddr_1): Removed.
17806         (init_omega_for_ddr): Removed.
17807         (ddr_consistent_p): Removed.
17808         (compute_affine_dependence): Do not use omega to check data
17809         dependences.
17810         (compute_data_dependences_for_bb): Removed.
17811         (analyze_all_data_dependences): Removed.
17812         (tree_check_data_deps): Removed.
17813         * tree-data-ref.h: Do not include omega.h.
17814         (compute_data_dependences_for_bb): Removed.
17815         (tree_check_data_deps): Removed.
17816         * tree-ssa-loop.c (pass_check_data_deps): Removed.
17817         (make_pass_check_data_deps): Removed.
17818         * tree-ssa-phiopt.c: Include params.h.
17819         * tree-vect-data-refs.c: Same.
17820         * tree-vect-slp.c: Same.
17822 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
17824         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
17825         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
17826         (mem->fpreg splitters): Ditto.
17827         (general_operand->nonimmediate_operand splitter): Use explicit modes.
17828         Disable DFmode for TARGET_64BIT.
17830 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
17832         PR target/66906
17833         * config/i386/i386.c (ix86_expand_prologue): Replicate static
17834         chain on the stack.
17836 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
17838         * config/nvptx/mkoffload.c (process): Constify host data.
17839         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17840         Constify host data.
17841         (generate_host_descr_file): Likewise.
17843 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
17844             Sebastian Pop  <s.pop@samsung.com>
17846         PR middle-end/61929
17847         * graphite-dependences.c (add_pdr_constraints): Renamed
17848         pdr->extent to pdr->subscript_sizes.
17849         * graphite-interchange.c (build_linearized_memory_access): Add
17850         back all gcc_assert's that the "isl_int to isl_val conversion"
17851         patch has removed.  Refactored.
17852         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
17853         * graphite-poly.c (new_poly_dr): Same.
17854         (free_poly_dr): Same.
17855         * graphite-poly.h (struct poly_dr): Same.
17856         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
17857         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
17858         * graphite-scop-detection.h: Fix space.
17859         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
17860         back all gcc_assert's removed by a previous patch.
17861         (wrap): Remove the_isl_ctx global variable that the same patch has
17862         added.
17863         (build_loop_iteration_domains): Same.
17864         (add_param_constraints): Same.
17865         (pdr_add_data_dimensions): Same.  Refactored.
17866         (build_poly_dr): Renamed extent to subscript_sizes.
17868 2015-07-17  Marek Polacek  <polacek@redhat.com>
17870         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
17871         * match.pd: ... here.
17873 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
17875         * config/nvptx/mkoffload.c (process): Constify target data.
17876         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
17877         Constify target data.
17878         (generate_target_offloadend_file): Likewise.
17880 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
17882         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
17883         to allow renaming of PHI arguments on edges incoming from outer
17884         loop header, add corresponding check before start PHI iterator.
17885         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
17886         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
17887         with true force_vectorize.  Set-up dominator for outer loop too.
17888         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
17889         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
17890         was marked with force_vectorize and has restricted cfg.
17891         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
17892         inner loop.
17893         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
17894         do peeling for outer loops.
17896 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
17897             Matthias Klose  <doko@ubuntu.com>
17899         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
17900         build-sysroot, sysroot from the `Miscenalleous configure options' to
17901         the `Directories' section and strip trailing `/' from with_sysroot.
17902         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
17903         * configure: Regenerated.
17905 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
17907         PR target/66824
17908         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
17909         (TARGET_HARD_DF_REGS): Ditto.
17910         (TARGET_HARD_XF_REGS): Ditto.
17911         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
17912         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
17913         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
17914         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
17915         (*movsf_internal): Add alternatives 16 and 17. Enable
17916         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
17918 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
17920         PR rtl-optimization/66891
17921         * calls.c (expand_call): Wrap precompute_register_parameters with
17922         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
17924 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
17926         * config/nvptx/mkoffload.c (process): Constify mapping variables.
17927         Define target data struct and initialize it.
17929 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
17931         PR rtl-optimization/66626
17932         * ira.h (emit-rtl.h): Include.
17933         (non_spilled_static_chain_regno_p): New.
17934         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
17935         unless it is non spilled static chain pseudo.
17936         (assign_hard_rego): Spill memory profitable allocno unless it is
17937         non spilled static chain pseudo.
17938         (allocno_spill_priority_compare): Put non spilled static chain
17939         pseudo at the end of sorted array.
17940         (improve_allocation): Do nothing if we have static chain and
17941         non-local goto.
17942         (allocno__priority_compare_func): Put non spilled static chain
17943         pseudo at the beginning of sorted array.
17944         (move_spill_restore): Ignore non spilled static chain pseudo.
17945         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
17946         to non spilled static chain pseudo.
17947         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
17948         pseudo at the beginning of sorted array.
17949         (spill_for): Spill non spilled static chain pseudo last.
17950         * lra-constraints.c (lra_constraints): Remove static chain pseudo
17951         check for equivalence.
17953 2015-07-16  Martin Liska  <mliska@suse.cz>
17955         PR ipa/66896.
17956         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
17957         dst_ctx if it does not exist.
17959 2015-07-16  Martin Liska  <mliska@suse.cz>
17961         * hash-set.h (remove): New function.
17962         (iterator): New iteration class for hash_set.
17964 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17966         * genattrtab.c (make_canonical): Add a file_location parameter.
17967         Use fatal_at rather than fatal.
17968         (get_attr_value): Likewise.  Update call to make_canonical.
17969         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
17970         (make_internal_attr): Update calls accordingly.
17972 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17974         * read-md.h (message_with_line, error_with_line): Delete.
17975         * read-md.c (message_with_line, error_with_line): Delete.
17976         * gensupport.h: Include read-md.h.
17977         (md_rtx_info): New structure.
17978         (read_md_rtx): Use it.  Return a bool success value.
17979         * gensupport.c (read_md_rtx): Likewise.
17980         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
17981         (main): Update after interface changes.
17982         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
17983         (main): Update after interface changes.
17984         * genattrtab.c (insn_code_number): Delete.
17985         (optimize_attrs): Add a max_insn_code parameter and use it instead
17986         of insn_code_number.
17987         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
17988         Use *_at rather than *_with_line functions.
17989         (gen_insn): Likewise.
17990         (gen_delay): Likewise.
17991         (gen_insn_reserv): Likewise.
17992         (gen_bypass): Take an md_rtx_info rather than an rtx.
17993         (main): Update after interface changes.  Use a local max_insn_code
17994         variable instead of insn_code_number.
17995         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
17996         an rtx.  Use fatal_at rather than fatal.
17997         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
17998         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
17999         (gen_absence_set, gen_final_absence_set, gen_automaton)
18000         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18001         (main): Update after interface changes.
18002         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18003         and code number.
18004         (main): Update after interface changes.
18005         * genconditions.c (main): Use new read_md_rtx interface.
18006         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18007         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18008         (main): Update after interface changes.
18009         * genemit.c (insn_code_number, insn_index_number): Delete.
18010         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18011         Use fatal_at rather than fatal.
18012         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
18013         rather than fatal.
18014         (gen_split): Likewise.
18015         (main): Update after interface changes.
18016         * genextract.c (line_no): Delete.
18017         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18018         Update call to walk_rtx.
18019         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
18020         rather than message_with_line.
18021         (walk_rtx): Add an md_rtx_info argument.  Update call to
18022         VEC_safe_set_locstr.
18023         (main): Update after interface changes.
18024         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18025         and lineno.  Use error_at rather than separate message_with_line
18026         calls and have_error assignments.
18027         (main): Update after interface changes.
18028         * genmddump.c (main): Use new read_md_rtx interface.
18029         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18030         (main): Update after interface changes.
18031         * genoutput.c (next_code_number): Delete.
18032         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18033         (gen_peephole, gen_expand, gen_split): Likewise.
18034         (note_constraint): Likewise.  Use *_at rather than *_with_line
18035         functions.
18036         (main): Update after interface changes.
18037         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18038         rtx and lineno.
18039         (main): Update after interface changes.
18040         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18041         than an rtx and lineno.
18042         (process_define_constraint): Likewise.
18043         (process_define_register_constraint): Likewise.
18044         (main): Update after interface changes.
18045         * genrecog.c (next_insn_code, pattern_lineno): Delete.
18046         (validate_pattern): Replace top-level rtx with an md_rtx_info.
18047         Use *_at rather than *_with_line functions.
18048         (match_pattern_2): Likewise.
18049         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18050         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18051         Use *_at rather than *_with_line functions.
18052         * gentarget-def.c (add_insn): New function.
18053         (main): Use it.  Use new read_md_rtx interface.
18055 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18057         * gensupport.h (compute_test_codes): Take a file_location rather
18058         than a line number.
18059         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
18060         rather than *_with_line functions.
18061         (process_define_predicate): Update call to compute_test_codes.
18062         * genpreds.c (validate_exp): Take a file_location rather than a
18063         line number.  Use *_at functions rather than *_with_line functions.
18064         (process_define_predicate): Update call to validate_exp.
18065         (constraint_data): Replace lineno field with a file_location.
18066         (add_constraint): Take a file_location rather than a line number.
18067         Use *_at functions rather than *_with_line functions.  Fix error
18068         message for address constraints.  Update after changes to
18069         validate_exp, constraint_data and compute_test_codes.
18070         (process_define_constraint): Update accordingly.
18071         (process_define_register_constraint): Likewise.
18073 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18075         * genoutput.c (data): Use a file_location to record the source
18076         position.
18077         (nothing): Delete.
18078         (idata, idata_end): Remove initialization.
18079         (constraint_data): Replace lineno with a file_location.
18080         (output_insn_data): Update after changes to data.
18081         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18082         (scan_operands): Likewise, using *_at rather than *_with_line
18083         functions.
18084         (process_template): Likewise.
18085         (validate_insn_alternatives): Likewise.
18086         (validate_insn_operands): Likewise.
18087         (validate_optab_operands): Likewise.
18088         (init_insn_for_nothing): Initialize idata and idata_end.
18089         (note_constraint): Update after changes to constraint_data,
18090         using at rather than with_line functions.
18091         (mdep_constraint_len): Take a file_location rather than a
18092         line number.  Use at rather than with_line functions.
18094 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18096         * read-md.h (fatal_at): Declare.
18097         * read-md.c (fatal_at): New function.
18098         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18099         to record the source position.
18100         (check_attr_test): Take a file_location instead of a line number.
18101         Use fatal_at instead of fatal.
18102         (check_attr_value): Update after above changes, using "at"
18103         rather than "with_line" reporting functions.
18104         (convert_set_attr_alternative): Likewise.
18105         (gen_attr): Likewise.
18106         (check_defs): Likewise.  Don't assign to read_md_filename.
18107         (gen_insn): Update initialization after above changes.
18108         (gen_delay): Likewise.
18109         (write_insn_cases): Print the filename for a define_peephole.
18110         (gen_insn_reserv): Take a line number as argument and update
18111         the call to check_attr_test.
18112         (main): Pass a line number to gen_insn_reserv.
18114 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18116         * read-md.h (file_location): New structure.
18117         (directive_handler_t): Take a file_location rather than a line number.
18118         (message_at, error_at): Declare.
18119         (read_skip_construct): Delete.
18120         * read-md.c (message_with_line_1): Replace with...
18121         (message_at_1): ...this new function.
18122         (message_at, error_at): New functions.
18123         (message_with_line, error_with_line): Update to use message_at_1.
18124         (handle_enum): Take a file_location rather than a line number
18125         and use error_at for error reporting.
18126         (handle_include): Likewise.
18127         (read_skip_construct): Likewise.  Make static.
18128         (handle_file): Update after above changes.  Pass a file_location
18129         rather than a line number to handle_directive.
18130         * gensupport.c (queue_elem): Replace separate filename and lineno
18131         with a file_location.
18132         (queue_pattern): Replace filename and lineno arguments with a
18133         file_location.  Update after change to queue_elem.
18134         (process_define_predicate): Replace lineno argument with a
18135         file_location and use error_at for error reporting.  Update
18136         after above changes.
18137         (process_rtx): Likewise.
18138         (subst_pattern_match): Likewise.
18139         (get_alternatives_number): Likewise.
18140         (alter_predicate_for_insn): Likewise.
18141         (rtx_handle_directive): Likewise.
18142         (is_predicable): Update after above changes, using error_at rather
18143         than error_with_line.
18144         (has_subst_attribute): Likewise.
18145         (identify_predicable_attribute): Likewise.
18146         (alter_attrs_for_subst_insn): Likewise.
18147         (process_one_cond_exec): Likewise.
18148         (process_substs_on_one_elem): Likewise.
18149         (process_define_subst): Likewise.
18150         (check_define_attr_duplicates): Likewise.
18151         (read_md_rtx): Update after change to queue_elem.
18153 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18155         * genoutput.c (next_index_number): Delete.
18156         (data): Remove index_number.
18157         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18158         (main): Remove manipulation of next_index_number.
18160 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18162         * genattrtab.c (check_attr_value): Remove handling of null attrs.
18163         (make_canonical): Likewise.
18165 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
18167         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18168         instead of adjust_address_nv.
18169         (restore_stack_nonlocal): Likewise.
18170         (nonlocal_goto): Likewise.
18172 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18174         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18175         not have a corresponding loop header phi.
18177 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18179         * tree-parloops.c (create_loads_for_reductions): Handle case that
18180         reduction is unused.
18182 2015-07-16  Richard Biener  <rguenther@suse.de>
18184         PR tree-optimization/66894
18185         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18186         about deriving NE_EXPR from truncated values.
18188 2015-07-16  Martin Liska  <mliska@suse.cz>
18190         * alloc-pool.h
18191         (object_allocator): Add new class.
18192         (pool_allocator::initialize): Use the underlying class.
18193         (pool_allocator::allocate): Likewise.
18194         (pool_allocator::remove): Likewise.
18195         (operator new): A new generic allocator.
18196         * asan.c (struct asan_mem_ref): Remove unused members.
18197         (asan_mem_ref_new): Replace new operator with
18198         object_allocator::allocate.
18199         (free_mem_ref_resources): Change deallocation.
18200         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18201         with object_allocator.
18202         * config/sh/sh.c (add_constant): Replace new operator with
18203         object_allocator::allocate.
18204         (sh_reorg): Change call to a release method.
18205         * cselib.c (struct elt_list): Remove unused members.
18206         (new_elt_list): Replace new operator with
18207         object_allocator::allocate.
18208         (new_elt_loc_list): Likewise.
18209         (new_cselib_val): Likewise.
18210         (unchain_one_elt_list): Change delete operator with remove method.
18211         (unchain_one_elt_loc_list): Likewise.
18212         (unchain_one_value): Likewise.
18213         (cselib_finish): Release newly added static allocators.
18214         * cselib.h (struct cselib_val): Remove unused members.
18215         (struct elt_loc_list): Likewise.
18216         * df-problems.c (df_chain_alloc): Replace pool_allocator with
18217         object_allocator.
18218         * df-scan.c (struct df_scan_problem_data): Likewise.
18219         (df_scan_alloc): Likewise.
18220         * df.h (struct dataflow): Likewise.
18221         * dse.c (struct read_info_type): Likewise.
18222         (struct insn_info_type): Likewise.
18223         (struct dse_bb_info_type): Likewise.
18224         (struct group_info): Likewise.
18225         (struct deferred_change): Likewise.
18226         (get_group_info): Likewise.
18227         (delete_dead_store_insn): Likewise.
18228         (free_read_records): Likewise.
18229         (replace_read): Likewise.
18230         (check_mem_read_rtx): Likewise.
18231         (scan_insn): Likewise.
18232         (dse_step1): Likewise.
18233         (dse_step7): Likewise.
18234         * et-forest.c (struct et_occ): Remove unused members.
18235         (et_new_occ): Use allocate instead of new operator.
18236         (et_new_tree): Likewise.
18237         (et_free_tree): Call release method explicitly.
18238         (et_free_tree_force): Likewise.
18239         (et_free_pools): Likewise.
18240         (et_split): Use remove instead of delete operator.
18241         * et-forest.h (struct et_node): Remove unused members.
18242         * ipa-cp.c: Change pool_allocator to object_allocator.
18243         * ipa-inline-analysis.c: Likewise.
18244         * ipa-profile.c: Likewise.
18245         * ipa-prop.c: Likewise.
18246         * ipa-prop.h: Likewise.
18247         * ira-build.c (initiate_cost_vectors): Cast return value.
18248         (ira_allocate_cost_vector): Likewise.
18249         * ira-color.c (struct update_cost_record): Remove unused members.
18250         * lra-int.h (struct lra_live_range): Likewise.
18251         (struct lra_copy): Likewise.
18252         (struct lra_insn_reg): Likewise.
18253         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18254         * lra.c (new_insn_reg): Replace new operator with allocate method.
18255         (free_insn_regs): Same for operator delete.
18256         (finish_insn_regs): Release new static allocator.
18257         (finish_insn_recog_data): Likewise.
18258         (lra_free_copies): Replace delete operator with remove method.
18259         (lra_create_copy): Replace operator new with allocate method.
18260         (invalidate_insn_data_regno_info): Same for remove method.
18261         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18262         (free_debug_insn_changes): Replace delete operator with remove method.
18263         (replace_oldest_value_reg): Replace operator new with allocate method.
18264         (pass_cprop_hardreg::execute): Release new static variable.
18265         * sched-deps.c (sched_deps_init): Change pool_allocator to
18266         object_allocator.
18267         * sel-sched-ir.c: Likewise.
18268         * sel-sched-ir.h: Likewise.
18269         * stmt.c (expand_case): Likewise.
18270         (expand_sjlj_dispatch_table): Likewise.
18271         * tree-sra.c (struct access): Remove unused members.
18272         (struct assign_link): Likewise.
18273         (sra_deinitialize): Release newly added static pools.
18274         (create_access_1):Replace operator new with allocate method.
18275         (build_accesses_from_assign): Likewise.
18276         (create_artificial_child_access): Likewise.
18277         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18278         pool_allocator to object_allocator.
18279         * tree-ssa-pre.c: Likewise.
18280         * tree-ssa-reassoc.c: Likewise.
18281         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18282         * tree-ssa-strlen.c: Likewise.
18283         * tree-ssa-structalias.c: Likewise.
18284         * var-tracking.c (onepart_pool_allocate): New function.
18285         (unshare_variable): Use the newly added function.
18286         (variable_merge_over_cur): Likewise.
18287         (variable_from_dropped): Likewise.
18288         (variable_was_changed): Likewise.
18289         (set_slot_part): Likewise.
18290         (emit_notes_for_differences_1): Likewise.
18291         (vt_finalize): Release newly added static pools.
18293 2015-07-16  Martin Jambor  <mjambor@suse.cz>
18295         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
18296         all uses.  Fix two typos in its general comment.
18297         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
18299 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
18301         * config/i386/linux-common.h (LINK_MPX): New.
18302         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18303         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18304         indicating '-z bndplt' support by linker.
18305         * configure: Regenerate.
18306         * config.in: Regenerate.
18308 2015-07-16  Richard Biener  <rguenther@suse.de>
18310         * fold-const.c (fold_widened_comparison): Remove.
18311         (fold_sign_changed_comparison): Likewise.
18312         (fold_comparison): Move widened and sign-changed comparison
18313         simplification ...
18314         * match.pd: ... to patterns here.
18315         * generic-match-head.c: Include target.h.
18316         * gimple-match-head.c: Likewise.
18318 2015-07-16  Richard Biener  <rguenther@suse.de>
18320         * tree-ssa-dom.c (dom_valueize): New function.
18321         (record_temporary_equivalences): Also record equivalences
18322         for dominating stmts that have uses of equivalences we are
18323         about to record.
18325 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
18327         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18328         add_autoinc_candidates.
18329         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18330         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18331         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18332         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18333         Call new function.
18334         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18335         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18336         Remove parameter struct iv*.  Call add_autoinc_candidates here.
18337         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18338         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18339         Call new function.
18340         (find_iv_candidates): Call new functions.
18342 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
18344         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18345         uninitialized-variable warning.
18347 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
18349         PR target/65249
18350         * config/sh/sh.md (movdi): Split simple reg move to two movsi
18351         when the destination is R0.
18353 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
18355         PR target/66866
18356         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18357         * config/i386/i386.c (ix86_expand_pextr): New function.
18358         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
18359         for non-lowpart subregs.
18360         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18361         (insv<mode>): Use SWI248 mode iterator.
18362         (insv<mode>_1): Ditto.
18364 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18365             Sebastian Pop  <s.pop@samsung.com>
18367         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18368         iterator to use_stmt.
18370 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18371             Sebastian Pop <s.pop@samsung.com>
18373         * graphite-scop-detection.c (build_scops_1): Discard scops for
18374         which entry==exit.
18376 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18377             Sebastian Pop <s.pop@samsung.com>
18379         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18380         case of a return statement in scop.
18382 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18383             Sebastian Pop <s.pop@samsung.com>
18385         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18386         INTEGER_TYPE parameters.
18387         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18388         VECTOR_CST in scan_tree_for_params.
18389         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18391 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
18393         * gimple-pretty-print.h: Don't include pretty-print.h.
18394         * tree-streamer.h: Don't include lto-streamer.h.
18395         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18396         * gimple-streamer-in.c: Remove redundant includes.
18397         * gimple-streamer-out.c: Likewise.
18398         * ipa-devirt.c: Likewise.
18399         * ipa-icf.c: Likewise.
18400         * ipa-inline-analysis.c: Likewise.
18401         * ipa-polymorphic-call.c: Likewise.
18402         * ipa-profile.c: Likewise.
18403         * ipa-prop.c: Likewise.
18404         * ipa-pure-const.c: Likewise.
18405         * lto-cgraph.c: Likewise.
18406         * lto-streamer-in.c: Likewise.
18407         * lto-streamer-out.c: Likewise.
18408         * lto-streamer.c: Likewise.
18409         * tree-streamer-in.c: Likewise.
18410         * tree-streamer-out.c: Likewise.
18411         * tree-streamer.c: Likewise.
18413 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
18415         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18416         include input.h.
18417         * opts.c: Remove multiline #include comment.
18419 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
18421         * config/nvptx/mkoffload.c (process): Add C++ protection to
18422         emitted code.
18424 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18426         PR target/66854
18427         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18428         null before IEEE 128-bit floating point support patch.
18430 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18432         * simplify-rtx.c (simplify_ternary_operation): Add simplification
18433         for (!c) != {0,...,0} ? a : b for vector modes.
18435 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
18436             Martin Jambor  <mjambor@suse.cz>
18438         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18439         struct func_body_info* instead of struct ipa_node_params*, expecting
18440         fbi->info to be filled in.  Replace throughout.  Adjust call to
18441         ipa_load_from_parm_agg.
18442         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
18443         instead of struct ipa_node_params*.  Adjust calls to other functions
18444         so that they pass either fbi or fbi->info.
18445         (set_switch_stmt_execution_predicate): Likewise.
18446         (will_be_nonconstant_predicate): Likewise.
18447         (compute_bb_predicates): Likewise.
18448         (estimate_function_body_sizes): Move asserts earlier.  Fill in
18449         struct func_body_info, replace parms_info with fbi.info.  Adjust
18450         calls to functions that now accept struct func_body_info.
18451         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
18452         (struct func_body_info): Likewise.
18453         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
18454         remove static.  Adjust callers.
18455         (ipa_load_from_parm_agg): Remove.
18456         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
18457         (func_body_info): Likewise.
18458         (ipa_load_from_parm_agg): Adjust prototype.
18460 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18462         * gensupport.c (rtx_handle_directive): Adjust.
18463         * read-rtl.c (apply_iterators): Take vector to add rtxs to
18464         instead of expr list rtx.
18465         (add_define_attr_for_define_subst): Likewise.
18466         (add_define_subst_attr): Likewise.
18467         (read_subst_mapping): Likewise.
18468         (read_rtx): Likewise.
18469         * rtl.h (read_rtx): Adjust.
18471 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18473         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
18475 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
18477         PR target/58066
18478         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
18479         (*tls_local_dynamic_base_64_<mode>): Ditto.
18480         (*tls_local_dynamic_base_64_largepic): Ditto.
18481         (tls_global_dynamic_64_<mode>): Update expander pattern.
18482         (tls_local_dynamic_base_64_<mode>): Ditto.
18484 2015-07-15  Richard Biener  <rguenther@suse.de>
18486         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
18487         and bool_var == 1 -> bool_var simplifications ...
18488         * match.pd: ... to patterns here.  Factor out negate_expr_p
18489         cases from the A - B -> A + (-B) patterns as negate_expr_p
18490         predicate and add a -(A + B) -> (-B) - A pattern.
18492 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
18494         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
18496 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
18497             Robert Suchanek  <robert.suchanek@imgtec.com>
18499         * config/mips/mips.c (mips_int_mask): New enum.
18500         (mips_shadow_set): Likewise.
18501         (int_mask): New variable.
18502         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
18503         (machine_function): Add int_mask and use_shadow_register_set.
18504         (mips_attribute_table): Add attribute handlers for interrupt and
18505         use_shadow_register_set.
18506         (mips_interrupt_mask): New static function.
18507         (mips_handle_interrupt_attr): Likewise.
18508         (mips_handle_use_shadow_register_set_attr): Likewise.
18509         (mips_use_shadow_register_set): Change return type to enum
18510         mips_shadow_set.  Add argument handling for use_shadow_register_set
18511         attribute.
18512         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
18513         compare with mips_shadow_set enum.
18514         (mips_compute_frame_info): Add interrupt mask and
18515         use_shadow_register_set to per-function information structure.
18516         Add a stack slot for EPC unconditionally.
18517         (mips_expand_prologue): Compare use_shadow_register_set value
18518         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
18519         masked interrupt register but in EIC mode use K0 and save Cause in K0.
18520         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
18521         copying the stack pointer from the shadow register set.
18522         * config/mips/mips.h (SR_IM0): New define.
18523         * config/mips/mips.md (mips_rdpgpr): Rename to...
18524         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
18525         * doc/extend.texi (Declaring Attributes of Functions): Document
18526         optional arguments for interrupt and use_shadow_register_set
18527         attributes.
18529 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
18531         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
18532         interrupt attribute.
18533         (mips_expand_prologue): Disable the floating point unit in an ISR.
18534         * config/mips/mips.h (SR_COP1): New define.
18536 2015-07-15  Richard Biener  <rguenther@suse.de>
18538         * genmatch.c (parser::peek, parser::peek_ident): Add argument
18539         to tell how many tokens to peek ahead (default 1).
18540         (parser::eat_token, parser::eat_ident): Return token consumed.
18541         (parser::parse_result): Parse new switch statement.
18542         * match.pd: Use case statements where appropriate.
18544 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
18546         PR rtl-optimization/58066
18547         * calls.c (expand_call): Precompute register parameters before stack
18548         alignment is performed.
18550 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
18552         PR rtl-optimization/66838
18553         * postreload.c (reload_cse_move2add): Also process
18554         CALL_INSN_FUNCTION_USAGE when resetting information of
18555         call-clobbered registers.
18557 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18558             Cesar Philippidis  <cesar@codesourcery.com>
18559             Chung-Lin Tang  <cltang@codesourcery.com>
18561         * config/nios2/constraints.md (U, v): New constraints.
18562         * config/nios2/predicates.md (rdprs_dcache_operand): New.
18563         (ldstex_memory_operand): New.
18564         * config/nios2/sync.md: New file.
18565         * config/nios2/nios2.md (unspecv): Add new builtin function
18566         UNSPECV codes.
18567         (rdprs, flushd, flushda, wrpie, eni): New patterns.
18568         (top-level): Include sync.md.
18569         * config/nios2/nios2.c (N2_FTYPES): Add function types for
18570         new builtins.
18571         (N2_BUILTINS): Add arch field setting, add new builtins.
18572         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
18573         for arch field.
18574         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
18575         Also handle ldex/stex/ldsex/stsex builtins.
18576         (nios2_expand_rdprs_builtin): New function.
18577         (nios2_expand_cache_builtin): New function.
18578         (nios2_expand_wrpie_builtin): New function.
18579         (nios2_expand_eni_builtin): New function.
18580         (nios2_expand_builtin): Add arch field handling and new builtin
18581         cases.
18582         * doc/extend.texi (Altera Nios II Built-in Functions): Document
18583         new builtins.
18584         * doc/md.texi (Machine Constraints): Document U and v constraints.
18586 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18587             Cesar Philippidis  <cesar@codesourcery.com>
18588             Chung-Lin Tang  <cltang@codesourcery.com>
18590         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
18591         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
18592         callee_save_reg_size and uses_anonymous_args fields.
18593         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
18594         (nios2_create_cfa_notes): New function.
18595         (nios2_adjust_stack): New function for adjusting stack.
18596         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
18597         Use nios2_adjust_stack.
18598         (nios2_expand_epilogue): Likewise.
18599         (nios2_expand_return): New function.
18600         (nios2_can_use_return_insn): Update for CDX pop.n usage.
18601         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
18602         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
18603         * config/nios2/nios2.md (return): Use nios2_expand_return.
18605 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18606             Cesar Philippidis  <cesar@codesourcery.com>
18607             Chung-Lin Tang  <cltang@codesourcery.com>
18609         * config/nios2/predicates.md (pop_operation): New.
18610         (ldwm_operation, stwm_operation): New.
18611         (nios2_hard_register_operand): New.
18612         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
18613         (ldstwm_operation_p): Declare.
18614         (gen_ldstwm_peep): Declare.
18615         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
18616         (base_reg_adjustment_p): New.
18617         (pop_operation_p): New.
18618         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
18619         (nios2_ldstwm_regset_p): New.
18620         (ldstwm_operation_p): New.
18621         (gen_ldst): New.
18622         (nios2_ldst_parallel): New.
18623         (struct ldswm_operand): Declare.
18624         (compare_ldstwm_operands): New.
18625         (can_use_cdx_ldstw): New.
18626         (gen_ldstwm_peep): New.
18627         * config/nios2/nios2-ldstwm.sml: New.
18628         * config/nios2/nios2.md: Include ldstwm.md.
18629         * config/nios2/ldstwm.md: Generated.
18631 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18632             Cesar Philippidis  <cesar@codesourcery.com>
18633             Chung-Lin Tang  <cltang@codesourcery.com>
18635         * config/nios2/nios2.h (LABEL_ALIGN): Define.
18636         (REG_ALLOC_ORDER): Define.
18637         (ADJUST_REG_ALLOC_ORDER): Define.
18638         (HONOR_REG_ALLOC_ORDER): Define.
18639         (CDX_REG_P): Define.
18640         (ANDCLEAR_INT): Define.
18641         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
18642         (nios2_label_align): Declare.
18643         (nios2_cdx_narrow_form_p): Declare.
18644         (nios2_adjust_reg_alloc_order): Declare.
18645         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
18646         operation.
18647         (nios2_large_unspec_reloc_p): New function, split from...
18648         (nios2_legitimate_pic_operand_p): ...here.
18649         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
18650         (nios2_print_operand_punct_valid_p): New.
18651         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
18652         (split_mem_address): New.
18653         (split_alu_insn): New.
18654         (cdxreg): New.
18655         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
18656         (enum nios2_add_insn_kind): New.
18657         (nios2_add_insn_names, nios2_add_insn_narrow): New.
18658         (nios2_add_insn_classify): New.
18659         (nios2_add_insn_asm): New.
18660         (nios2_cdx_narrow_form_p): New.
18661         (label_align, min_labelno, max_labelno): New.
18662         (nios2_reorg): New.
18663         (nios2_label_align): New.
18664         (nios2_adjust_reg_alloc_order): New.
18665         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18666         (TARGET_MACHINE_DEPENDENT_REORG): Define.
18667         * config/nios2/constraints.md (P): New constraint.
18668         * config/nios2/predicates.md (const_and_operand): New.
18669         (and_operand): New.
18670         (stack_memory_operand): New.
18671         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
18672         (length): Update to use nios2_cdx_narrow_form_p().
18673         (type): Add new insn type values.
18674         (control, alu, st, ld, shift): Update insn reservations with
18675         new insn type values.
18676         (*high, *lo_sum): Define new insn patterns for constant generation.
18677         (movqi_internal, movhi_internal, movsi_internal): Reduce
18678         alternatives, update asm template to handle CDX variants, update
18679         type attributes.
18680         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
18681         template, update type attributes.
18682         (extendhisi2, extendqi<mode>2): Likewise.
18683         (addsi3): Change to use function for asm string.
18684         (subsi3): Add CDX notation to asm template, update type attributes.
18685         (negsi3, one_cmplsi3): Likewise.
18686         (andsi3): New pattern, specialized from logical patterns.
18687         (<code>si3): Remove and case, combine alternatives, update asm
18688         template.
18689         (<shift_op>si3): Add CDX notation, update type attributes.
18690         (rotrsi3): Update type attribute.
18691         (*merge, extzv, insv): New insn patterns.
18692         (return): Change to define_expand.
18693         (simple_return): Add CDX notation, update type attributes.
18694         (indirect_jump): Add CDX notation.
18695         (jump): Update asm cases, update length attribute expression.
18696         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
18697         (nios2_cbranch): Update asm cases and length attribute expression
18698         to handle CDX variants.
18699         (nios2_cmp<code>): Update asm template.
18700         (nop): Add CDX notation, update type attributes.
18701         (trap): Add CDX notation.
18702         (ctrapsi4): Update asm cases and length attribute expression to
18703         handle CDX variant.
18704         * doc/md.texi (Machine Constraints): Document P constraint.
18706 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18707             Cesar Philippidis  <cesar@codesourcery.com>
18708             Chung-Lin Tang  <cltang@codesourcery.com>
18710         * config/nios2/nios2.h (SMALL_INT12): New macro.
18711         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
18712         (nios2_valid_addr_expr_p): Use it.
18713         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
18714         with implicit "io" instructions on R2.
18715         * config/nios2/constraints.md (w): New constraint.
18716         * config/nios2/predicates.md (ldstio_memory_operand): New.
18717         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
18718         operand predicate and constraint.
18719         (ld<bh>io_signed, st<bhw>io>): Likewise.
18720         * doc/md.texi (Machine Constraints): Document w constraint.
18722 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18723             Cesar Philippidis  <cesar@codesourcery.com>
18724             Chung-Lin Tang  <cltang@codesourcery.com>
18726         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
18727         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
18728         Nios II architecture level.
18729         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
18730         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
18731         (OPTION_DEFAULT_SPECS): Define.
18732         (ASM_SPEC): Add -march= spec strings.
18733         * config/nios2/nios2.c (nios2_option_override): Check for
18734         conflicts involving new options.
18735         * config.gcc (nios2*-*-*): Support --with-arch=.
18736         * doc/invoke.texi (Option Summary, Nios II Options): Document
18737         -march=, -mbmx, and -mcdx.
18739 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
18741         PR rtl-optimization/66626
18742         * lra-constraints.c (lra_constraints): Prevent equivalence
18743         substitution for static chain pseudo in functions with nonlocal
18744         goto.
18746 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
18748         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
18749         (nios2_emit_stack_limit_check): Add size parameter.  Handle
18750         -fstack-limit-symbol as well as -fstack-limit-register.
18751         (nios2_expand_prologue): Emit only a single stack limit check,
18752         even if multiple stack adjustments are required.
18753         (nios2_option_override): Diagnose unsupported combination of -fpic
18754         and -stack-limit-symbol.
18756 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
18758         * Makefile.in (top_srcdir): New.
18759         * configure.ac: Use AM_ZLIB.
18760         * configure: Regeneated.
18762 2015-07-14  Matthias Klose  <doko@ubuntu.com>
18764         PR target/66840
18765         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
18767 2015-07-14  Richard Biener  <rguenther@suse.de>
18769         PR tree-optimization/66863
18770         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
18771         what we record for conversion use stmt lhs inequalities.
18773 2015-07-14  Richard Biener  <rguenther@suse.de>
18775         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
18776         (decision_tree::gen_gimple): Likewise.
18778 2015-07-14  Tom de Vries  <tom@codesourcery.com>
18780         * gcc.c (greater_than_spec_func): Declare forward.
18781         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
18782         -ftree-parallelize-loops={0,1}.
18783         (static_spec_functions): Add greater_than_spec_func function with name
18784         "gt".
18785         (greater_than_spec_func): New function.
18787 2015-07-14  Richard Biener  <rguenther@suse.de>
18789         * tree-ssa-dom.c (record_temporary_equivalences): Merge
18790         wideing type conversion case from record_equivalences_from_incoming_edge
18791         and use record_equality to record equivalences.
18792         (record_equivalences_from_incoming_edge): Call
18793         record_temporary_equivalences.
18795 2015-07-14  Richard Biener  <rguenther@suse.de>
18797         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
18798         (struct if_expr): New.
18799         (struct with_expr): Likewise.
18800         (is_a_helper): Add helpers for if_expr and with_expr.
18801         (struct simplify): Add simplify_kind enum and member.  Remove
18802         ifexpr_vec member.
18803         (simplify::simplify): Adjust.
18804         (lower_commutative): Adjust.
18805         (lower_opt_convert): Likewise.
18806         (lower_cond): Likewise.
18807         (replace_id): Handle with_expr and if_expr.
18808         (lower_for): Adjust.
18809         (dt_simplify::gen_1): New recursive worker, split out from ...
18810         (dt_simplify::gen): ... here.  Deal with if and with expansion
18811         recursively.
18812         (capture_info::capture_info): Take context argument
18813         (capture_info::walk_result): Only analyze specific result.
18814         (parser::parse_result): New function.
18815         (parser::parse_simplify): Adjust to parse ifs with then end
18816         else case.
18817         (parser::parse_if): Simplify.
18818         (parser::parse_pattern): Pass down simplify kind.
18819         * match.pd: Convert if structure to new syntax.
18821 2015-07-13  Marek Polacek  <polacek@redhat.com>
18823         * rtl.c (rtx_equal_p_cb): Fix typo.
18825 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
18827         * omega.h: Don't include config.h, don't include params.h again if
18828         omega.h has already been included.
18829         * graphite-poly.h: Include sese.h.
18830         * graphite.c: Don't include sese.h, remove needless includes and
18831         minimize includes outside #ifdef HAVE_isl block.
18832         * graphite-blocking.c: Don't include sese.h, remove needless includes,
18833         and wrap entire file in #ifdef HAVE_isl
18834         * graphite-dependences.c: Likewise.
18835         * graphite-interchange.c: Likewise.
18836         * graphite-isl-ast-to-gimple.c: Likewise.
18837         * graphite-optimize-isl.c: Likewise.
18838         * graphite-poly.c: Likewise.
18839         * graphite-scop-detection.c: Likewise.
18840         * graphite-sese-to-poly.c: Likewise.
18842 2015-07-13  Tom de Vries  <tom@codesourcery.com>
18844         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
18846 2015-07-13  Renlin Li  <renlin.li@arm.com>
18848         PR rtl/66556
18849         * simplify-rtx.c (simplify_const_relational_operation): Add
18850         side_effects_p checks.
18852 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
18854         * bitmap.h: Fix double word typos.
18855         * builtins.c: Same.
18856         * calls.c: Same.
18857         * cfgloopmanip.c: Same.
18858         * cgraph.c: Same.
18859         * cgraph.h: Same.
18860         * cgraphclones.c: Same.
18861         * combine.c: Same.
18862         * config/aarch64/aarch64-protos.h: Same.
18863         * config/aarch64/aarch64.c: Same.
18864         * config/aarch64/aarch64.md: Same.
18865         * config/arm/arm.md: Same.
18866         * config/arm/arm1020e.md: Same.
18867         * config/arm/arm1026ejs.md: Same.
18868         * config/arm/arm926ejs.md: Same.
18869         * config/arm/fa526.md: Same.
18870         * config/arm/fa606te.md: Same.
18871         * config/arm/fa626te.md: Same.
18872         * config/arm/fa726te.md: Same.
18873         * config/arm/fmp626.md: Same.
18874         * config/darwin.c: Same.
18875         * config/epiphany/epiphany.c: Same.
18876         * config/frv/frv.c: Same.
18877         * config/ft32/ft32.c: Same.
18878         * config/gnu-user.h: Same.
18879         * config/h8300/constraints.md: Same.
18880         * config/i386/i386.c: Same.
18881         * config/i386/i386.md: Same.
18882         * config/iq2000/iq2000.md: Same.
18883         * config/mips/mips.c: Same.
18884         * config/mmix/mmix.md: Same.
18885         * config/moxie/moxie.c: Same.
18886         * config/nds32/nds32.md: Same.
18887         * config/pa/pa.h: Same.
18888         * config/rs6000/aix.h: Same.
18889         * config/rs6000/rs6000.h: Same.
18890         * config/sh/sh.c: Same.
18891         * config/tilegx/tilegx.md: Same.
18892         * config/tilepro/gen-mul-tables.cc: Same.
18893         * cse.c: Same.
18894         * dbxout.c: Same.
18895         * doc/invoke.texi: Same.
18896         * dse.c: Same.
18897         * dwarf2out.c: Same.
18898         * final.c: Same.
18899         * gcc.c: Same.
18900         * genmatch.c: Same.
18901         * gimplify.c: Same.
18902         * hash-table.h: Same.
18903         * internal-fn.c: Same.
18904         * ipa-cp.c: Same.
18905         * ipa-devirt.c: Same.
18906         * ipa-icf.c: Same.
18907         * ipa-icf.h: Same.
18908         * ipa-profile.c: Same.
18909         * ipa-prop.c: Same.
18910         * ipa-prop.h: Same.
18911         * ira.c: Same.
18912         * omp-low.c: Same.
18913         * reg-stack.c: Same.
18914         * regcprop.c: Same.
18915         * reorg.c: Same.
18916         * rtl.h: Same.
18917         * sbitmap.h: Same.
18918         * tree-eh.c: Same.
18919         * tree-inline.c: Same.
18920         * tree-sra.c: Same.
18921         * tree-ssa-dom.c: Same.
18922         * tree-ssa-loop-ivopts.c: Same.
18923         * tree-ssa-structalias.c: Same.
18924         * tree-ssa-tail-merge.c: Same.
18925         * tree-ssa-ter.c: Same.
18926         * tree-ssa-threadupdate.c: Same.
18927         * tree-ssa-uninit.c: Same.
18928         * tree-ssanames.c: Same.
18929         * tree-vect-loop-manip.c: Same.
18930         * tree-vrp.c: Same.
18931         * tree.c: Same.
18932         * valtrack.c: Same.
18933         * vec.h: Same.
18935 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18937         PR middle-end/66726
18938         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
18939         tree_ssa_phiopt_worker): Call it.
18941 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18943         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
18944         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
18945         REG_EQUAL note.
18947 2015-07-11  Marek Polacek  <polacek@redhat.com>
18949         PR middle-end/66353
18950         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
18951         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
18952         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
18953         rather than bb_has_abnormal_call_pred.
18954         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
18955         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
18956         rather than bb_has_abnormal_call_pred.
18958 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
18960         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18961         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
18962         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18963         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
18964         v850_legitimate_address_p): New functions.
18965         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18967 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
18969         PR target/66819
18970         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
18971         indirect sibcall with register arguments if register available
18972         for argument passing.
18973         (init_cumulative_args): Set cfun->machine->arg_reg_available
18974         to (cum->nregs > 0) or to true if function has a variable
18975         argument list.
18976         (function_arg_advance_32): Set cfun->machine->arg_reg_available
18977         to false if cum->nregs <= 0.
18978         * config/i386/i386.h (machine_function): Add arg_reg_available.
18980 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
18982         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
18983         and gen_higpart instead of gen_rtx_SUBREG.
18984         * config/i386/i386.md
18985         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
18986         (read-modify peephole2): Use gen_lowpart instead of
18987         gen_rtx_SUBREG for operand 5.
18989 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
18991         * config/tilepro/gen-mul-tables.cc (main): Change include list for
18992         generated files.
18993         * config/tilepro/mul-tables.c: Regenerate.
18994         * config/tilegx/mul-tables.c: Regenerate.
18996 2015-07-10  Richard Biener  <rguenther@suse.de>
18998         * fold-const.c (distribute_bit_expr): Remove.
18999         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19000         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19001         to A & (B | C) and simplifying A << C1 << C2 to ...
19002         * match.pd: ... patterns here.
19004 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
19006         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19007         Mark mem as READONLY and NOTRAP for PIC symbol.
19009 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19011         * gimple-predict.h: New file.
19012         (gimple_predict_predictor, gimple_predict_set_predictor,
19013         gimple_predict_outcome, gimple_predict_set_outcome,
19014         gimple_build_predict): Relocate here.
19015         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19016         gimple_predict_outcome, gimple_predict_set_outcome): Move to
19017         gimple-predict.h.
19018         * gimple.c (gimple_build_predict): Move to gimple-predict.h
19019         * basic-block.h: Don't include cfghooks.h.
19020         * backend.h: Don't include predict.h.
19021         * cfghooks.h: Include predict.h.
19022         * gimple-pretty-print.c: Include gimple-predict.h.
19023         * gimplify.c: Likwise.
19024         * predict.c: Adjust includes.
19025         * tree-inline.c: Likewise.
19026         * asan.c: Likewise.
19027         * auto-inc-dec.c: Likewise.
19028         * auto-profile.c: Likewise.
19029         * bb-reorder.c: Likewise.
19030         * builtins.c: Likewise.
19031         * caller-save.c: Likewise.
19032         * calls.c: Likewise.
19033         * cfganal.c: Likewise.
19034         * cfgbuild.c: Likewise.
19035         * cfg.c: Likewise.
19036         * cfgcleanup.c: Likewise.
19037         * cfgexpand.c: Likewise.
19038         * cfghooks.c: Likewise.
19039         * cfgloopanal.c: Likewise.
19040         * cfgloop.c: Likewise.
19041         * cfgloopmanip.c: Likewise.
19042         * cfgrtl.c: Likewise.
19043         * cgraph.c: Likewise.
19044         * cgraphunit.c: Likewise.
19045         * combine.c: Likewise.
19046         * cprop.c: Likewise.
19047         * cse.c: Likewise.
19048         * dce.c: Likewise.
19049         * dojump.c: Likewise.
19050         * dse.c: Likewise.
19051         * except.c: Likewise.
19052         * expmed.c: Likewise.
19053         * expr.c: Likewise.
19054         * final.c: Likewise.
19055         * fold-const.c: Likewise.
19056         * function.c: Likewise.
19057         * fwprop.c: Likewise.
19058         * gcc-plugin.h: Likewise.
19059         * gcse.c: Likewise.
19060         * genattrtab.c: Likewise.
19061         * genemit.c: Likewise.
19062         * gengtype.c: Likewise.
19063         * genopinit.c: Likewise.
19064         * genoutput.c: Likewise.
19065         * genpreds.c: Likewise.
19066         * genrecog.c: Likewise.
19067         * gimple-fold.c: Likewise.
19068         * gimple-iterator.c: Likewise.
19069         * gimple-ssa-isolate-paths.c: Likewise.
19070         * gimple-ssa-strength-reduction.c: Likewise.
19071         * graph.c: Likewise.
19072         * graphite-blocking.c: Likewise.
19073         * graphite.c: Likewise.
19074         * graphite-dependences.c: Likewise.
19075         * graphite-interchange.c: Likewise.
19076         * graphite-isl-ast-to-gimple.c: Likewise.
19077         * graphite-optimize-isl.c: Likewise.
19078         * graphite-poly.c: Likewise.
19079         * graphite-scop-detection.c: Likewise.
19080         * graphite-sese-to-poly.c: Likewise.
19081         * haifa-sched.c: Likewise.
19082         * ifcvt.c: Likewise.
19083         * internal-fn.c: Likewise.
19084         * ipa-cp.c: Likewise.
19085         * ipa-profile.c: Likewise.
19086         * ipa-split.c: Likewise.
19087         * ipa-utils.c: Likewise.
19088         * ira-build.c: Likewise.
19089         * ira-color.c: Likewise.
19090         * ira-conflicts.c: Likewise.
19091         * ira-costs.c: Likewise.
19092         * ira-emit.c: Likewise.
19093         * ira-lives.c: Likewise.
19094         * jump.c: Likewise.
19095         * loop-doloop.c: Likewise.
19096         * loop-init.c: Likewise.
19097         * loop-invariant.c: Likewise.
19098         * loop-unroll.c: Likewise.
19099         * lower-subreg.c: Likewise.
19100         * lra-assigns.c: Likewise.
19101         * lra.c: Likewise.
19102         * lra-coalesce.c: Likewise.
19103         * lra-constraints.c: Likewise.
19104         * lra-lives.c: Likewise.
19105         * lto-cgraph.c: Likewise.
19106         * lto-streamer-in.c: Likewise.
19107         * mode-switching.c: Likewise.
19108         * modulo-sched.c: Likewise.
19109         * omp-low.c: Likewise.
19110         * optabs.c: Likewise.
19111         * passes.c: Likewise.
19112         * postreload.c: Likewise.
19113         * postreload-gcse.c: Likewise.
19114         * profile.c: Likewise.
19115         * recog.c: Likewise.
19116         * regstat.c: Likewise.
19117         * reload1.c: Likewise.
19118         * reorg.c: Likewise.
19119         * rtlanal.c: Likewise.
19120         * sched-ebb.c: Likewise.
19121         * sel-sched-ir.c: Likewise.
19122         * sese.c: Likewise.
19123         * shrink-wrap.c: Likewise.
19124         * simplify-rtx.c: Likewise.
19125         * stmt.c: Likewise.
19126         * store-motion.c: Likewise.
19127         * tracer.c: Likewise.
19128         * trans-mem.c: Likewise.
19129         * tree-call-cdce.c: Likewise.
19130         * tree-cfg.c: Likewise.
19131         * tree-cfgcleanup.c: Likewise.
19132         * tree-chkp.c: Likewise.
19133         * tree-complex.c: Likewise.
19134         * tree-eh.c: Likewise.
19135         * tree-if-conv.c: Likewise.
19136         * tree-loop-distribution.c: Likewise.
19137         * tree-outof-ssa.c: Likewise.
19138         * tree-parloops.c: Likewise.
19139         * tree-predcom.c: Likewise.
19140         * tree-pretty-print.c: Likewise.
19141         * tree-profile.c: Likewise.
19142         * tree-sra.c: Likewise.
19143         * tree-ssa.c: Likewise.
19144         * tree-ssa-coalesce.c: Likewise.
19145         * tree-ssa-dce.c: Likewise.
19146         * tree-ssa-dom.c: Likewise.
19147         * tree-ssa-forwprop.c: Likewise.
19148         * tree-ssa-ifcombine.c: Likewise.
19149         * tree-ssa-loop-ch.c: Likewise.
19150         * tree-ssa-loop-im.c: Likewise.
19151         * tree-ssa-loop-ivcanon.c: Likewise.
19152         * tree-ssa-loop-ivopts.c: Likewise.
19153         * tree-ssa-loop-manip.c: Likewise.
19154         * tree-ssa-loop-prefetch.c: Likewise.
19155         * tree-ssa-loop-unswitch.c: Likewise.
19156         * tree-ssa-math-opts.c: Likewise.
19157         * tree-ssa-phiopt.c: Likewise.
19158         * tree-ssa-pre.c: Likewise.
19159         * tree-ssa-reassoc.c: Likewise.
19160         * tree-ssa-sink.c: Likewise.
19161         * tree-ssa-tail-merge.c: Likewise.
19162         * tree-ssa-threadedge.c: Likewise.
19163         * tree-ssa-threadupdate.c: Likewise.
19164         * tree-switch-conversion.c: Likewise.
19165         * tree-tailcall.c: Likewise.
19166         * tree-vect-data-refs.c: Likewise.
19167         * tree-vect-loop.c: Likewise.
19168         * tree-vect-loop-manip.c: Likewise.
19169         * tree-vectorizer.c: Likewise.
19170         * tree-vrp.c: Likewise.
19171         * ubsan.c: Likewise.
19172         * value-prof.c: Likewise.
19173         * varasm.c: Likewise.
19174         * var-tracking.c: Likewise.
19175         * config/aarch64/aarch64-builtins.c: Likewise.
19176         * config/aarch64/aarch64.c: Likewise.
19177         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19178         * config/alpha/alpha.c: Likewise.
19179         * config/arc/arc.c: Likewise.
19180         * config/arm/arm.c: Likewise.
19181         * config/avr/avr.c: Likewise.
19182         * config/bfin/bfin.c: Likewise.
19183         * config/c6x/c6x.c: Likewise.
19184         * config/cr16/cr16.c: Likewise.
19185         * config/cris/cris.c: Likewise.
19186         * config/darwin.c: Likewise.
19187         * config/darwin-c.c: Likewise.
19188         * config/epiphany/epiphany.c: Likewise.
19189         * config/epiphany/mode-switch-use.c: Likewise.
19190         * config/epiphany/resolve-sw-modes.c: Likewise.
19191         * config/fr30/fr30.c: Likewise.
19192         * config/frv/frv.c: Likewise.
19193         * config/ft32/ft32.c: Likewise.
19194         * config/h8300/h8300.c: Likewise.
19195         * config/i386/i386.c: Likewise.
19196         * config/i386/winnt.c: Likewise.
19197         * config/ia64/ia64.c: Likewise.
19198         * config/iq2000/iq2000.c: Likewise.
19199         * config/lm32/lm32.c: Likewise.
19200         * config/m32c/m32c.c: Likewise.
19201         * config/m32r/m32r.c: Likewise.
19202         * config/m68k/m68k.c: Likewise.
19203         * config/mcore/mcore.c: Likewise.
19204         * config/mep/mep.c: Likewise.
19205         * config/microblaze/microblaze.c: Likewise.
19206         * config/mips/mips.c: Likewise.
19207         * config/mmix/mmix.c: Likewise.
19208         * config/mn10300/mn10300.c: Likewise.
19209         * config/moxie/moxie.c: Likewise.
19210         * config/msp430/msp430.c: Likewise.
19211         * config/nds32/nds32.c: Likewise.
19212         * config/nds32/nds32-cost.c: Likewise.
19213         * config/nds32/nds32-fp-as-gp.c: Likewise.
19214         * config/nds32/nds32-intrinsic.c: Likewise.
19215         * config/nds32/nds32-isr.c: Likewise.
19216         * config/nds32/nds32-md-auxiliary.c: Likewise.
19217         * config/nds32/nds32-memory-manipulation.c: Likewise.
19218         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19219         * config/nds32/nds32-predicates.c: Likewise.
19220         * config/nios2/nios2.c: Likewise.
19221         * config/nvptx/nvptx.c: Likewise.
19222         * config/pa/pa.c: Likewise.
19223         * config/pdp11/pdp11.c: Likewise.
19224         * config/rl78/rl78.c: Likewise.
19225         * config/rs6000/rs6000.c: Likewise.
19226         * config/rx/rx.c: Likewise.
19227         * config/s390/s390.c: Likewise.
19228         * config/sh/sh.c: Likewise.
19229         * config/sh/sh-mem.cc: Likewise.
19230         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19231         * config/sh/sh_treg_combine.cc: Likewise.
19232         * config/sparc/sparc.c: Likewise.
19233         * config/spu/spu.c: Likewise.
19234         * config/stormy16/stormy16.c: Likewise.
19235         * config/tilegx/tilegx.c: Likewise.
19236         * config/tilepro/tilepro.c: Likewise.
19237         * config/v850/v850.c: Likewise.
19238         * config/vax/vax.c: Likewise.
19239         * config/visium/visium.c: Likewise.
19240         * config/xtensa/xtensa.c: Likewise.
19242 2015-07-10  Richard Biener  <rguenther@suse.de>
19244         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19245         (decision_tree::gen_gimple): Likewise.
19246         (decision_tree::gen_generic): Likewise.
19248 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19250         PR target/66813
19251         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19252         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19254 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
19256         PR middle-end/66820
19257         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19258         or ORT_TASK contexts.
19259         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19260         is non-zero.
19262 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19264         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19265         above function.
19267 2015-07-10  Tom de Vries  <tom@codesourcery.com>
19269         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19270         insert nit + 1 bound.
19272 2015-07-10  Richard Biener  <rguenther@suse.de>
19274         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19275         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19276         (if_convertible_loop_p_1): For this always compute bb predicates.
19277         (if_convertible_loop_p): And free them.
19279 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19281         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19282         in dump message.
19284 2015-07-10  Richard Biener  <rguenther@suse.de>
19286         PR tree-optimization/66823
19287         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19288         inverted predicate.
19290 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
19292         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19293         to handle mips[32|64]r3 and mips[32|64]r5.
19295 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
19297         PR middle-end/66633
19298         * tree-nested.c (get_static_chain): Or in a flag into
19299         info->static_chain_added.
19300         (get_frame_field, get_nonlocal_debug_decl): Likewise.
19301         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19302         2015-07-01 changes.
19303         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19304         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19305         add it to clauses.
19307         PR tree-optimization/66718
19308         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19309         field.
19310         (vect_simd_lane_linear): New function.
19311         (vectorizable_simd_clone_call): Support using linear arguments for
19312         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19314 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19316         PR target/66821
19317         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19319 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
19321         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19322         Use machine mode, not enum machine_mode in the prototype.
19324         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19325         classify 128-bit floating point support.
19326         (FLOAT128_IBM_P): Likewise.
19327         (FLOAT128_VECTOR_P): Likewise.
19328         (FLOAT128_2REG_P): Likewise.
19329         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19330         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19331         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19332         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19334         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19335         tests against TFmode/TDmode, since those modes do not use VSX
19336         addresses.
19337         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19338         support.
19339         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19340         tests against TFmode, etc.
19341         (invalid_e500_subreg): Add tests against IFmode/KFmode.
19342         (reg_offset_addressing_ok_p): Likewise.
19343         (rs6000_legitimate_offset_address_p): Likewise.
19344         (rs6000_legitimize_address): Likewise.
19345         (rs6000_legitimize_reload_address): Likewise.
19346         (rs6000_legitimate_address_p): Clean up tests against TFmode and
19347         TDmode to use the new helper macros, which will include IFmode and
19348         KFmode.
19349         (rs6000_emit_move): Likewise.
19350         (rs6000_darwin64_record_arg_recurse): Likewise.
19351         (print_operand): Likewise.
19352         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19353         that uses a single vector register as a vector and not as a
19354         floating point register in terms of the calling sequence.
19355         (rs6000_discover_homogeneous_aggregate): Likewise.
19356         (rs6000_return_in_memory): Likewise.
19357         (init_cumulative_args): Likewise.
19358         (rs6000_function_arg_boundary): Likewise.
19359         (rs6000_function_arg_advance_1): Likewise.
19360         (rs6000_function_arg): Likewise.
19361         (rs6000_pass_by_reference): Likewise.
19362         (rs6000_gimplify_va_arg): Likewise.
19363         (rs6000_secondary_reload_memory): Use machine_mode not enum
19364         machine mode.
19365         (rs6000_split_multireg_move): Use new helper macros.
19366         (spe_func_has_64bit_regs_p): Likewise.
19367         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19368         (output_toc): Use new helper macros.
19369         (rs6000_register_move_cost): Likewise.
19370         (rs6000_function_value): Add IEEE 128-bit floating point calling
19371         sequence support.
19372         (rs6000_libcall_value): Likewise.
19373         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19374         floating point support.
19375         (rs6000_vector_mode_supported_p): Likewise.
19377 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
19379         PR rtl-optimization/66782
19380         * lra-int.h (struct lra_insn_recog_data): Add comment about
19381         clobbered hard regs for arg_hard_regs.
19382         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19383         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19384         Add condition for processing used hard regs.
19385         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19386         Process clobbered hard regs.
19388 2015-07-09  Michael Matz  <matz@suse.de>
19390         * genmatch.c (fprintf_indent): New function.
19391         (operand::gen_transform): Add indent parameter.
19392         (expr::gen_transform, c_expr::gen_transform,
19393         capture::gen_transform): Ditto and use fprintf_indent.
19394         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19395         (dt_operand::gen, dt_operand::gen_predicate,
19396         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19397         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19398         (decision_tree::gen_gimple): Adjust calls and indent generated
19399         code.
19400         (decision_tree::gen_generic): Ditto.
19401         (write_predicate): Ditto.
19403 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19405         PR target/66814
19406         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19407         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19408         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19409         {GENERAL,SSE,MMX}_REG_P where appropriate.
19411 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
19413         * lto-streamer.h: Don't include target.h and alloc-pool.h.
19414         * builtins.c: Adjust includes.
19415         * gimple.c: Likewise.
19416         * ipa-icf.c: Likewise.
19417         * lto-opts.c: Likewise.
19418         * ipa-reference.c: Likewise.
19419         * lto-section-out.c: Likewise.
19420         * lto-streamer-in.c: Likewise.
19421         * lto-streamer-out.c: Likewise.
19422         * opts-global.c: Likewise.
19423         * symtab.c: Likewise.
19424         * tree-chkp.c: Likewise.
19425         * tree-ssa-live.c: Likewise.
19426         * tree-streamer-in.c: Likewise.
19427         * tree-streamer-out.c: Likewise.
19428         * config/darwin.c: Likewise.
19429         * config/i386/winnt.c: Likewise.
19431 2015-07-09  Richard Biener  <rguenther@suse.de>
19433         * genmatch.c (struct expr): Add force_single_use flag.
19434         (expr::expr): Add copy constructor.
19435         (capture_info::walk_match): Gather force_single_use captures.
19436         (expr::gen_transform): Use possibly NULLified sequence.
19437         (dt_simplify::gen): Apply single-use restrictions by NULLifying
19438         seq if any constrained expr is not single-use.
19439         (parser::parse_expr): Refactor to allow multiple flags.  Handle
19440         's' flag to force an expression have a single-use if the pattern
19441         simplifies to more than one statement.
19442         * match.pd: Convert most single_use conditionals to :s flags.
19444 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19446         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
19447         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19448         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
19450 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
19452         * flags.h: Don't include flag-types.h or options.h.
19453         * opts-common.c: Adjust includes.
19454         * opts-global.c: Likewise.
19455         * common/config/epiphany/epiphany-common.c: Likewise.
19457 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19459         PR target/66818
19460         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
19461         for IA MCU.
19463 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19465         PR target/66817
19466         * config/i386/i386.c (ix86_return_in_memory): Return true
19467         if int_size_in_bytes returns negative for IA MCU.
19469 2015-07-09  Marek Polacek  <polacek@redhat.com>
19471         PR tree-optimization/66718
19472         * Makefile.in (OBJS): Add gimple-laddress.o.
19473         * passes.def: Schedule pass_laddress.
19474         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
19475         * tree-pass.h (make_pass_laddress): Declare.
19476         * gimple-laddress.c: New file.
19478 2015-07-09  Richard Biener  <rguenther@suse.de>
19480         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
19482 2015-07-09  Richard Biener  <rguenther@suse.de>
19484         PR tree-optimization/66807
19485         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
19487 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
19489         * function.c (stack_protect_epilogue): Use if rather than switch for
19490         check targetm.have_stack_protect_test.
19492 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19494         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
19495         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
19496         * config/arc/arc.h: Likewise.
19497         * config/arm/arm.h: Likewise.
19498         * config/bfin/bfin.h: Likewise.
19499         * config/epiphany/epiphany.h: Likewise.
19500         * config/frv/frv.h: Likewise.
19501         * config/ia64/ia64.h: Likewise.
19502         * config/iq2000/iq2000.h: Likewise.
19503         * config/lm32/lm32.h: Likewise.
19504         * config/m32r/m32r.h: Likewise.
19505         * config/mcore/mcore.h: Likewise.
19506         * config/mep/mep.h: Likewise.
19507         * config/microblaze/microblaze.h: Likewise.
19508         * config/mips/mips.h: Likewise.
19509         * config/mmix/mmix.h: Likewise.
19510         * config/mn10300/mn10300.h: Likewise.
19511         * config/nds32/nds32.h: Likewise.
19512         * config/nios2/nios2.h: Likewise.
19513         * config/pa/pa.h: Likewise.
19514         * config/rl78/rl78.h: Likewise.
19515         * config/sh/sh.h: Likewise.
19516         * config/sparc/sparc.h: Likewise.
19517         * config/stormy16/stormy16.h: Likewise.
19518         * config/tilegx/tilegx.h: Likewise.
19519         * config/tilepro/tilepro.h: Likewise.
19520         * config/v850/v850.h: Likewise.
19521         * config/xtensa/xtensa.h: Likewise.
19522         * doc/tm.texi: Regenerate.
19523         * doc/tm.texi.in: Adjust.
19524         * combine.c (simplify_set): Likewise.
19525         (simplify_comparison): Likewise.
19526         * expr.c (store_constructor): Likewise.
19527         * internal-fn.c (expand_arith_overflow): Likewise.
19528         * reload.c (push_reload): Likewise.
19529         (find_reloads): Likewise.
19530         (find_reloads_subreg_address): Likewise.
19531         * reload1.c (eliminate_regs_1): Likewise.
19532         * rtlanal.c (nonzero_bits1): Likewise.
19533         (num_sign_bit_copies1): Likewise.
19534         * simplify-rtx.c (simplify_truncation): Likewise.
19536 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19538         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
19539         of AUTO_INC_DEC with the preprocessor.
19540         * combine.c (combine_instructions): Likewise.
19541         (can_combine_p): Likewise.
19542         (try_combine): Likewise.
19543         * emit-rtl.c (try_split): Likewise.
19544         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19545         * lower-subreg.c (resolve_simple_move): Likewise.
19546         * lra.c (update_inc_notes): Likewise.
19547         * recog.c (asm_operand_ok): Likewise.
19548         (constrain_operands): Likewise.
19549         * regrename.c (scan_rtx_address): Likewise.
19550         * reload.c (update_auto_inc_notes): Likewise.
19551         (reg_inc_found_and_valid_p): Likewise.
19552         * reload1.c (reload): Likewise.
19553         (emit_input_reload_insns): Likewise.
19554         (delete_output_reload): Likewise.
19555         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19556         * valtrack.c (cleanup_auto_inc_dec): Likewise.
19558 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19560         * rtl.h: Always define AUTO_INC_DEC.
19561         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
19562         * combine.c (combine_instructions): Likewise.
19563         (can_combine_p): Likewise.
19564         (try_combine): Likewise.
19565         * emit-rtl.c (try_split): Likewise.
19566         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
19567         * lower-subreg.c (resolve_simple_move): Likewise.
19568         * lra.c (update_inc_notes): Likewise.
19569         * recog.c (asm_operand_ok): Likewise.
19570         (constrain_operands): Likewise.
19571         * regrename.c (scan_rtx_address): Likewise.
19572         * reload.c (update_auto_inc_notes): Likewise.
19573         (find_equiv_reg): Likewise.
19574         * reload1.c (reload): Likewise.
19575         (reload_as_needed): Likewise.
19576         (choose_reload_regs): Likewise.
19577         (emit_input_reload_insns): Likewise.
19578         (delete_output_reload): Likewise.
19579         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
19580         * valtrack.c (cleanup_auto_inc_dec): Likewise.
19582 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19584         * combine.c (can_combine_def_p): Don't check the value of
19585         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
19586         (combinable_i3pat): Likewise.
19587         (mark_used_regs_combine): Likewise.
19588         * regrename.c (rename_chains): Likewise.
19589         * reload.c (find_reloads_address): Likewise.
19590         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19592 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19594         * combine.c (update_rsp_from_reg_equal): Don't check if
19595         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
19596         (reg_nonzero_bits_for_combine): Likewise.
19597         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
19598         1.
19599         * config/frv/frv.h: Likewise.
19600         * config/lm32/lm32.h: Likewise.
19601         * config/mep/mep.h: Likewise.
19602         * config/mips/mips.h: Likewise.
19603         * config/rs6000/rs6000.h: Likewise.
19604         * config/sh/sh.h: Likewise.
19605         * config/tilegx/tilegx.h (enum reg_class): Likewise.
19606         * config/tilepro/tilepro.h: Likewise.
19607         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
19608         * doc/tm.texi: Regenerate.
19609         * doc/tm.texi.in: Adjust.
19610         * rtlanal.c (nonzero_bits1): Likewise.
19612 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19614         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
19615         with the preprocessor.
19616         (combine_instructions): Likewise.
19617         (try_combine): Likewise.
19618         (subst): Likewise.
19619         (distribute_notes): Likewise.
19621 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19623         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
19624         defined.
19625         (simplify_set): Likewise.
19626         * cse.c (cse_insn): Likewise.
19627         * fold-const.c (fold_single_bit_test): Likewise.
19628         (fold_unary_loc): Likewise.
19629         * postreload.c (reload_cse_simplify_set): Likewise.
19630         (reload_cse_simplify_operands): Likewise.
19632 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
19634         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
19635         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
19637 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
19639         PR target/66746
19640         * config/i386/x86intrin.h: Include <adxintrin.h> even if
19641         __iamcu__ is defined.
19643 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19645         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
19647 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
19649         PR target/66523
19650         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
19651         names from preservation.
19653 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
19655         PR target/66806
19656         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
19657         change for IAMCU.
19658         (function_arg_advance_32): Don't pass vectors in registers for
19659         IAMCU.
19660         (function_arg_32): Likewise.
19661         (ix86_return_in_memory): Don't return vectors in registers for
19662         IAMCU.
19664 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
19666         PR middle-end/66334
19667         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
19668         hard regno live at the start of BB with incoming abnormal edges.
19669         * lra-lives.c (process_bb_lives): Ditto.
19671 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
19673         PR libgomp/65099
19674         * config/nvptx/mkoffload.c (main): Create an offload image only in
19675         64-bit configurations.
19677 2015-07-08  Martin Liska  <mliska@suse.cz>
19679         PR bootstrap/66744
19680         * tree-sra.c (create_access_1): Call ctor without brackets.
19681         (create_artificial_child_access): Likewise.
19683 2015-07-08  Richard Biener  <rguenther@suse.de>
19685         PR tree-optimization/66793
19686         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
19687         Properly split the block after stmts ending it.
19689 2015-07-08  Richard Biener  <rguenther@suse.de>
19691         PR tree-optimization/66794
19692         * passes.c (execute_function_todo): Assert that post-dominators
19693         are not computed.
19694         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
19695         Free post-dominators.
19697 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19699         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
19700         with early exit.
19702 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19704         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
19705         more than or equal 8 and less than 32 when optimizing for size.
19707 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19709         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
19710         COSTS_N_INSNS (1) and increment it appropriately throughout the
19711         function.
19713 2015-07-08  Richard Biener  <rguenther@suse.de>
19715         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
19717 2015-07-08  Alan Modra  <amodra@gmail.com>
19719         * target.def (rtx_costs): Remove "code" param, add "mode".
19720         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
19721         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
19722         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
19723         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
19724         call.  Track mode when given in rtx.
19725         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
19726         (default_address_cost): Pass Pmode to rtx_cost.
19727         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
19728         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
19729         with NULL set.
19730         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
19731         (notreg_cost): Add mode param.  Use it.
19732         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
19733         mode param and pass to set_src_cost.  Update all calls.
19734         (hash_scan_set): Formatting.
19735         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
19736         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
19737         * hooks.h: Ditto.
19738         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
19739         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
19740         emit_store_flag): Update set_src_cost and rtx_cost calls.
19741         * auto-inc-dec.c (attempt_change): Likewise.
19742         * calls.c (precompute_register_parameters): Likewise.
19743         * combine.c (expand_compound_operation, make_extraction,
19744         force_to_mode, distribute_and_simplify_rtx): Likewise.
19745         * dojump.c (prefer_and_bit_test): Likewise.
19746         * dse.c (find_shift_sequence): Likewise.
19747         * expr.c (compress_float_constant): Likewise.
19748         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
19749         * ifcvt.c (noce_try_sign_mask): Likewise.
19750         * loop-doloop.c (doloop_optimize): Likewise.
19751         * loop-invariant.c (create_new_invariant): Likewise.
19752         * lower-subreg.c (shift_cost, compute_costs): Likewise.
19753         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
19754         lshift_cheap_p): Likewise.
19755         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
19756         try_replace_in_use, reload_cse_move2add): Likewise.
19757         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
19758         Likewise.
19759         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19760         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19761         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
19762         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19763         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
19764         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
19765         to rtx_cost calls.
19766         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
19767         * config/arc/arc.c (arc_rtx_costs): Likewise.
19768         * config/arm/arm.c (arm_rtx_costs): Likewise.
19769         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
19770         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
19771         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
19772         * config/cris/cris.c (cris_rtx_costs): Likewise.
19773         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
19774         * config/frv/frv.c (frv_rtx_costs): Likewise.
19775         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
19776         * config/i386/i386.c (ix86_rtx_costs): Likewise.
19777         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
19778         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
19779         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
19780         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
19781         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
19782         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
19783         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
19784         * config/mep/mep.c (mep_rtx_cost): Likewise.
19785         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
19786         * config/mips/mips.c (mips_rtx_costs): Likewise.
19787         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
19788         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
19789         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
19790         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
19791         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
19792         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
19793         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
19794         * config/pa/pa.c (hppa_rtx_costs): Likewise.
19795         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
19796         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
19797         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
19798         * config/s390/s390.c (s390_rtx_costs): Likewise.
19799         * config/sh/sh.c (sh_rtx_costs): Likewise.
19800         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
19801         * config/spu/spu.c (spu_rtx_costs): Likewise.
19802         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
19803         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
19804         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
19805         * config/v850/v850.c (v850_rtx_costs): Likewise.
19806         * config/vax/vax.c (vax_rtx_costs): Likewise.
19807         * config/visium/visium.c (visium_rtx_costs): Likewise.
19808         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
19809         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
19810         "code" param, and pass as outer_code to first rtx_cost call.  Pass
19811         mode to rtx_cost calls.
19812         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
19813         calls.
19814         (aarch64_rtx_costs_wrapper): Update.
19815         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
19816         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
19817         rtx_cost calls.
19818         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
19819         and rtx_cost calls.
19820         (avr_operand_rtx_cost): Similarly.
19821         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
19822         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
19823         * config/mips/mips.c (mips_stack_address_p): Comment typo.
19824         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
19825         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
19826         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
19827         rtx_cost.
19828         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
19829         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
19830         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
19831         * doc/tm.texi: Regenerate.
19833 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
19835         * tree-core.h: Include symtab.h.
19836         * rtl.h: Include hard-reg-set.h but not flags.h.
19837         (HARD_CONST): Remove condition compilation involving HARD_CONST since
19838         hard-reg-set.h is always included.
19839         * regs.h: Don't include hard-reg-set.h or rtl.h.
19840         * cfg.h: Include dominance.h.
19841         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
19842         * backend.h: New.  Aggregate commonly used backend header files.
19843         * gimple-ssa.h: Don't include tree-hasher.h.
19844         * ssa.h: New.  Aggregate commonly used SSA header files.
19845         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
19846         * sel-sched-ir.h: Flatten includes.
19847         * lra-int.h: Flatten completely.
19848         * sel-sched-dump.h: Flatten includes.
19849         * ira-int.h: Flatten includes.
19850         * gimple-streamer.h: Remove all includes.
19851         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
19852         * resource.h: Flatten hard-reg-set.h and df.h.
19853         * sched-int.h: Flatten insn-arrt.h and df.h.
19854         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
19855         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
19856         * genattrtab.c (write_header): Adjust generated includes.
19857         * genautomata.c (main): Likewise.
19858         * genconditions.c (write-header): Likewise.
19859         * genemit.c (main): Likewise.
19860         * gengtype.c (open_base_files): Likewise.
19861         * genopinit.c (main): Likewise.
19862         * genoutput.c (output_prologue): Likewise.
19863         * genpeep.c (main): Likewise.
19864         * genpreds.c (write_insn_preds_c): Likewise.
19865         * genrecog.c (write_header): Likewise.
19866         * alias.c: Adjust includes.
19867         * asan.c: Likewise.
19868         * attribs.c: Likewise.
19869         * auto-inc-dec.c: Likewise.
19870         * auto-profile.c: Likewise.
19871         * bb-reorder.c: Likewise.
19872         * bt-load.c: Likewise.
19873         * builtins.c: Likewise.
19874         * caller-save.c: Likewise.
19875         * calls.c: Likewise.
19876         * ccmp.c: Likewise.
19877         * cfg.c: Likewise.
19878         * cfganal.c: Likewise.
19879         * cfgbuild.c: Likewise.
19880         * cfgcleanup.c: Likewise.
19881         * cfgexpand.c: Likewise.
19882         * cfghooks.c: Likewise.
19883         * cfgloop.c: Likewise.
19884         * cfgloopanal.c: Likewise.
19885         * cfgloopmanip.c: Likewise.
19886         * cfgrtl.c: Likewise.
19887         * cgraph.c: Likewise.
19888         * cgraphbuild.c: Likewise.
19889         * cgraphclones.c: Likewise.
19890         * cgraphunit.c: Likewise.
19891         * cilk-common.c: Likewise.
19892         * combine-stack-adj.c: Likewise.
19893         * combine.c: Likewise.
19894         * compare-elim.c: Likewise.
19895         * convert.c: Likewise.
19896         * coverage.c: Likewise.
19897         * cppbuiltin.c: Likewise.
19898         * cprop.c: Likewise.
19899         * cse.c: Likewise.
19900         * cselib.c: Likewise.
19901         * data-streamer-in.c: Likewise.
19902         * data-streamer-out.c: Likewise.
19903         * data-streamer.c: Likewise.
19904         * dbxout.c: Likewise.
19905         * dce.c: Likewise.
19906         * ddg.c: Likewise.
19907         * debug.c: Likewise.
19908         * df-core.c: Likewise.
19909         * df-problems.c: Likewise.
19910         * df-scan.c: Likewise.
19911         * dfp.c: Likewise.
19912         * dojump.c: Likewise.
19913         * dominance.c: Likewise.
19914         * domwalk.c: Likewise.
19915         * double-int.c: Likewise.
19916         * dse.c: Likewise.
19917         * dumpfile.c: Likewise.
19918         * dwarf2asm.c: Likewise.
19919         * dwarf2cfi.c: Likewise.
19920         * dwarf2out.c: Likewise.
19921         * emit-rtl.c: Likewise.
19922         * et-forest.c: Likewise.
19923         * except.c: Likewise.
19924         * explow.c: Likewise.
19925         * expmed.c: Likewise.
19926         * expr.c: Likewise.
19927         * final.c: Likewise.
19928         * fixed-value.c: Likewise.
19929         * fold-const.c: Likewise.
19930         * function.c: Likewise.
19931         * fwprop.c: Likewise.
19932         * gcc-plugin.h: Likewise.
19933         * gcse-common.c: Likewise.
19934         * gcse.c: Likewise.
19935         * generic-match-head.c: Likewise.
19936         * ggc-page.c: Likewise.
19937         * gimple-builder.c: Likewise.
19938         * gimple-expr.c: Likewise.
19939         * gimple-fold.c: Likewise.
19940         * gimple-iterator.c: Likewise.
19941         * gimple-low.c: Likewise.
19942         * gimple-match-head.c: Likewise.
19943         * gimple-pretty-print.c: Likewise.
19944         * gimple-ssa-isolate-paths.c: Likewise.
19945         * gimple-ssa-strength-reduction.c: Likewise.
19946         * gimple-streamer-in.c: Likewise.
19947         * gimple-streamer-out.c: Likewise.
19948         * gimple-walk.c: Likewise.
19949         * gimple.c: Likewise.
19950         * gimplify-me.c: Likewise.
19951         * gimplify.c: Likewise.
19952         * godump.c: Likewise.
19953         * graph.c: Likewise.
19954         * graphite-blocking.c: Likewise.
19955         * graphite-dependences.c: Likewise.
19956         * graphite-interchange.c: Likewise.
19957         * graphite-isl-ast-to-gimple.c: Likewise.
19958         * graphite-optimize-isl.c: Likewise.
19959         * graphite-poly.c: Likewise.
19960         * graphite-scop-detection.c: Likewise.
19961         * graphite-sese-to-poly.c: Likewise.
19962         * graphite.c: Likewise.
19963         * haifa-sched.c: Likewise.
19964         * hw-doloop.c: Likewise.
19965         * ifcvt.c: Likewise.
19966         * init-regs.c: Likewise.
19967         * internal-fn.c: Likewise.
19968         * ipa-chkp.c: Likewise.
19969         * ipa-comdats.c: Likewise.
19970         * ipa-cp.c: Likewise.
19971         * ipa-devirt.c: Likewise.
19972         * ipa-icf-gimple.c: Likewise.
19973         * ipa-icf.c: Likewise.
19974         * ipa-inline-analysis.c: Likewise.
19975         * ipa-inline-transform.c: Likewise.
19976         * ipa-inline.c: Likewise.
19977         * ipa-polymorphic-call.c: Likewise.
19978         * ipa-profile.c: Likewise.
19979         * ipa-prop.c: Likewise.
19980         * ipa-pure-const.c: Likewise.
19981         * ipa-ref.c: Likewise.
19982         * ipa-reference.c: Likewise.
19983         * ipa-split.c: Likewise.
19984         * ipa-utils.c: Likewise.
19985         * ipa-visibility.c: Likewise.
19986         * ipa.c: Likewise.
19987         * ira-build.c: Likewise.
19988         * ira-color.c: Likewise.
19989         * ira-conflicts.c: Likewise.
19990         * ira-costs.c: Likewise.
19991         * ira-emit.c: Likewise.
19992         * ira-lives.c: Likewise.
19993         * ira.c: Likewise.
19994         * jump.c: Likewise.
19995         * langhooks.c: Likewise.
19996         * lcm.c: Likewise.
19997         * loop-doloop.c: Likewise.
19998         * loop-init.c: Likewise.
19999         * loop-invariant.c: Likewise.
20000         * loop-iv.c: Likewise.
20001         * loop-unroll.c: Likewise.
20002         * lower-subreg.c: Likewise.
20003         * lra-assigns.c: Likewise.
20004         * lra-coalesce.c: Likewise.
20005         * lra-constraints.c: Likewise.
20006         * lra-eliminations.c: Likewise.
20007         * lra-lives.c: Likewise.
20008         * lra-remat.c: Likewise.
20009         * lra-spills.c: Likewise.
20010         * lra.c: Likewise.
20011         * lto-cgraph.c: Likewise.
20012         * lto-compress.c: Likewise.
20013         * lto-opts.c: Likewise.
20014         * lto-section-in.c: Likewise.
20015         * lto-section-out.c: Likewise.
20016         * lto-streamer-in.c: Likewise.
20017         * lto-streamer-out.c: Likewise.
20018         * lto-streamer.c: Likewise.
20019         * mcf.c: Likewise.
20020         * mode-switching.c: Likewise.
20021         * modulo-sched.c: Likewise.
20022         * omega.c: Likewise.
20023         * omp-low.c: Likewise.
20024         * optabs.c: Likewise.
20025         * opts-global.c: Likewise.
20026         * passes.c: Likewise.
20027         * plugin.c: Likewise.
20028         * postreload-gcse.c: Likewise.
20029         * postreload.c: Likewise.
20030         * predict.c: Likewise.
20031         * print-rtl.c: Likewise.
20032         * print-tree.c: Likewise.
20033         * profile.c: Likewise.
20034         * real.c: Likewise.
20035         * realmpfr.c: Likewise.
20036         * recog.c: Likewise.
20037         * ree.c: Likewise.
20038         * reg-stack.c: Likewise.
20039         * regcprop.c: Likewise.
20040         * reginfo.c: Likewise.
20041         * regrename.c: Likewise.
20042         * regstat.c: Likewise.
20043         * reload.c: Likewise.
20044         * reload1.c: Likewise.
20045         * reorg.c: Likewise.
20046         * resource.c: Likewise.
20047         * rtl-chkp.c: Likewise.
20048         * rtlanal.c: Likewise.
20049         * rtlhooks.c: Likewise.
20050         * sanopt.c: Likewise.
20051         * sched-deps.c: Likewise.
20052         * sched-ebb.c: Likewise.
20053         * sched-rgn.c: Likewise.
20054         * sched-vis.c: Likewise.
20055         * sdbout.c: Likewise.
20056         * sel-sched-dump.c: Likewise.
20057         * sel-sched-ir.c: Likewise.
20058         * sel-sched.c: Likewise.
20059         * sese.c: Likewise.
20060         * shrink-wrap.c: Likewise.
20061         * simplify-rtx.c: Likewise.
20062         * stack-ptr-mod.c: Likewise.
20063         * stmt.c: Likewise.
20064         * stor-layout.c: Likewise.
20065         * store-motion.c: Likewise.
20066         * stringpool.c: Likewise.
20067         * symtab.c: Likewise.
20068         * target-globals.c: Likewise.
20069         * targhooks.c: Likewise.
20070         * toplev.c: Likewise.
20071         * tracer.c: Likewise.
20072         * trans-mem.c: Likewise.
20073         * tree-affine.c: Likewise.
20074         * tree-browser.c: Likewise.
20075         * tree-call-cdce.c: Likewise.
20076         * tree-cfg.c: Likewise.
20077         * tree-cfgcleanup.c: Likewise.
20078         * tree-chkp-opt.c: Likewise.
20079         * tree-chkp.c: Likewise.
20080         * tree-chrec.c: Likewise.
20081         * tree-complex.c: Likewise.
20082         * tree-data-ref.c: Likewise.
20083         * tree-dfa.c: Likewise.
20084         * tree-diagnostic.c: Likewise.
20085         * tree-dump.c: Likewise.
20086         * tree-eh.c: Likewise.
20087         * tree-emutls.c: Likewise.
20088         * tree-if-conv.c: Likewise.
20089         * tree-inline.c: Likewise.
20090         * tree-into-ssa.c: Likewise.
20091         * tree-iterator.c: Likewise.
20092         * tree-loop-distribution.c: Likewise.
20093         * tree-nested.c: Likewise.
20094         * tree-nrv.c: Likewise.
20095         * tree-object-size.c: Likewise.
20096         * tree-outof-ssa.c: Likewise.
20097         * tree-parloops.c: Likewise.
20098         * tree-phinodes.c: Likewise.
20099         * tree-predcom.c: Likewise.
20100         * tree-pretty-print.c: Likewise.
20101         * tree-profile.c: Likewise.
20102         * tree-scalar-evolution.c: Likewise.
20103         * tree-sra.c: Likewise.
20104         * tree-ssa-address.c: Likewise.
20105         * tree-ssa-alias.c: Likewise.
20106         * tree-ssa-ccp.c: Likewise.
20107         * tree-ssa-coalesce.c: Likewise.
20108         * tree-ssa-copy.c: Likewise.
20109         * tree-ssa-copyrename.c: Likewise.
20110         * tree-ssa-dce.c: Likewise.
20111         * tree-ssa-dom.c: Likewise.
20112         * tree-ssa-dse.c: Likewise.
20113         * tree-ssa-forwprop.c: Likewise.
20114         * tree-ssa-ifcombine.c: Likewise.
20115         * tree-ssa-live.c: Likewise.
20116         * tree-ssa-loop-ch.c: Likewise.
20117         * tree-ssa-loop-im.c: Likewise.
20118         * tree-ssa-loop-ivcanon.c: Likewise.
20119         * tree-ssa-loop-ivopts.c: Likewise.
20120         * tree-ssa-loop-manip.c: Likewise.
20121         * tree-ssa-loop-niter.c: Likewise.
20122         * tree-ssa-loop-prefetch.c: Likewise.
20123         * tree-ssa-loop-unswitch.c: Likewise.
20124         * tree-ssa-loop.c: Likewise.
20125         * tree-ssa-math-opts.c: Likewise.
20126         * tree-ssa-operands.c: Likewise.
20127         * tree-ssa-phiopt.c: Likewise.
20128         * tree-ssa-phiprop.c: Likewise.
20129         * tree-ssa-pre.c: Likewise.
20130         * tree-ssa-propagate.c: Likewise.
20131         * tree-ssa-reassoc.c: Likewise.
20132         * tree-ssa-sccvn.c: Likewise.
20133         * tree-ssa-scopedtables.c: Likewise.
20134         * tree-ssa-sink.c: Likewise.
20135         * tree-ssa-strlen.c: Likewise.
20136         * tree-ssa-structalias.c: Likewise.
20137         * tree-ssa-tail-merge.c: Likewise.
20138         * tree-ssa-ter.c: Likewise.
20139         * tree-ssa-threadedge.c: Likewise.
20140         * tree-ssa-threadupdate.c: Likewise.
20141         * tree-ssa-uncprop.c: Likewise.
20142         * tree-ssa-uninit.c: Likewise.
20143         * tree-ssa.c: Likewise.
20144         * tree-ssanames.c: Likewise.
20145         * tree-stdarg.c: Likewise.
20146         * tree-streamer-in.c: Likewise.
20147         * tree-streamer-out.c: Likewise.
20148         * tree-streamer.c: Likewise.
20149         * tree-switch-conversion.c: Likewise.
20150         * tree-tailcall.c: Likewise.
20151         * tree-vect-data-refs.c: Likewise.
20152         * tree-vect-generic.c: Likewise.
20153         * tree-vect-loop-manip.c: Likewise.
20154         * tree-vect-loop.c: Likewise.
20155         * tree-vect-patterns.c: Likewise.
20156         * tree-vect-slp.c: Likewise.
20157         * tree-vect-stmts.c: Likewise.
20158         * tree-vectorizer.c: Likewise.
20159         * tree-vrp.c: Likewise.
20160         * tree.c: Likewise.
20161         * tsan.c: Likewise.
20162         * ubsan.c: Likewise.
20163         * valtrack.c: Likewise.
20164         * value-prof.c: Likewise.
20165         * var-tracking.c: Likewise.
20166         * varasm.c: Likewise.
20167         * varpool.c: Likewise.
20168         * vmsdbgout.c: Likewise.
20169         * vtable-verify.c: Likewise.
20170         * web.c: Likewise.
20171         * wide-int.cc: Likewise.
20172         * xcoffout.c: Likewise.
20173         * config/aarch64/aarch64-builtins.c: Likewise.
20174         * config/aarch64/aarch64.c: Likewise.
20175         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20176         * config/alpha/alpha.c: Likewise.
20177         * config/arc/arc.c: Likewise.
20178         * config/arm/aarch-common.c: Likewise.
20179         * config/arm/arm-builtins.c: Likewise.
20180         * config/arm/arm-c.c: Likewise.
20181         * config/arm/arm.c: Likewise.
20182         * config/avr/avr-c.c: Likewise.
20183         * config/avr/avr-log.c: Likewise.
20184         * config/avr/avr.c: Likewise.
20185         * config/bfin/bfin.c: Likewise.
20186         * config/c6x/c6x.c: Likewise.
20187         * config/cr16/cr16.c: Likewise.
20188         * config/cris/cris.c: Likewise.
20189         * config/darwin-c.c: Likewise.
20190         * config/darwin.c: Likewise.
20191         * config/epiphany/epiphany.c: Likewise.
20192         * config/epiphany/mode-switch-use.c: Likewise.
20193         * config/epiphany/resolve-sw-modes.c: Likewise.
20194         * config/fr30/fr30.c: Likewise.
20195         * config/frv/frv.c: Likewise.
20196         * config/ft32/ft32.c: Likewise.
20197         * config/h8300/h8300.c: Likewise.
20198         * config/i386/i386-c.c: Likewise.
20199         * config/i386/i386.c: Likewise.
20200         * config/i386/msformat-c.c: Likewise.
20201         * config/i386/winnt-cxx.c: Likewise.
20202         * config/i386/winnt-stubs.c: Likewise.
20203         * config/i386/winnt.c: Likewise.
20204         * config/ia64/ia64-c.c: Likewise.
20205         * config/ia64/ia64.c: Likewise.
20206         * config/iq2000/iq2000.c: Likewise.
20207         * config/lm32/lm32.c: Likewise.
20208         * config/m32c/m32c-pragma.c: Likewise.
20209         * config/m32c/m32c.c: Likewise.
20210         * config/m32r/m32r.c: Likewise.
20211         * config/m68k/m68k.c: Likewise.
20212         * config/mcore/mcore.c: Likewise.
20213         * config/mep/mep-pragma.c: Likewise.
20214         * config/mep/mep.c: Likewise.
20215         * config/microblaze/microblaze-c.c: Likewise.
20216         * config/microblaze/microblaze.c: Likewise.
20217         * config/mips/mips.c: Likewise.
20218         * config/mmix/mmix.c: Likewise.
20219         * config/mn10300/mn10300.c: Likewise.
20220         * config/moxie/moxie.c: Likewise.
20221         * config/msp430/msp430-c.c: Likewise.
20222         * config/msp430/msp430.c: Likewise.
20223         * config/nds32/nds32-cost.c: Likewise.
20224         * config/nds32/nds32-fp-as-gp.c: Likewise.
20225         * config/nds32/nds32-intrinsic.c: Likewise.
20226         * config/nds32/nds32-isr.c: Likewise.
20227         * config/nds32/nds32-md-auxiliary.c: Likewise.
20228         * config/nds32/nds32-memory-manipulation.c: Likewise.
20229         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20230         * config/nds32/nds32-predicates.c: Likewise.
20231         * config/nds32/nds32.c: Likewise.
20232         * config/nios2/nios2.c: Likewise.
20233         * config/nvptx/nvptx.c: Likewise.
20234         * config/pa/pa.c: Likewise.
20235         * config/pdp11/pdp11.c: Likewise.
20236         * config/rl78/rl78-c.c: Likewise.
20237         * config/rl78/rl78.c: Likewise.
20238         * config/rs6000/rs6000-c.c: Likewise.
20239         * config/rs6000/rs6000.c: Likewise.
20240         * config/rx/rx.c: Likewise.
20241         * config/s390/s390-c.c: Likewise.
20242         * config/s390/s390.c: Likewise.
20243         * config/sh/sh-c.c: Likewise.
20244         * config/sh/sh-mem.cc: Likewise.
20245         * config/sh/sh.c: Likewise.
20246         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20247         * config/sh/sh_treg_combine.cc: Likewise.
20248         * config/sol2-c.c: Likewise.
20249         * config/sol2-cxx.c: Likewise.
20250         * config/sol2-stubs.c: Likewise.
20251         * config/sol2.c: Likewise.
20252         * config/sparc/sparc-c.c: Likewise.
20253         * config/sparc/sparc.c: Likewise.
20254         * config/spu/spu-c.c: Likewise.
20255         * config/spu/spu.c: Likewise.
20256         * config/stormy16/stormy16.c: Likewise.
20257         * config/tilegx/mul-tables.c: Likewise.
20258         * config/tilegx/tilegx-c.c: Likewise.
20259         * config/tilegx/tilegx.c: Likewise.
20260         * config/tilepro/mul-tables.c: Likewise.
20261         * config/tilepro/tilepro-c.c: Likewise.
20262         * config/tilepro/tilepro.c: Likewise.
20263         * config/v850/v850-c.c: Likewise.
20264         * config/v850/v850.c: Likewise.
20265         * config/vax/vax.c: Likewise.
20266         * config/visium/visium.c: Likewise.
20267         * config/vms/vms-c.c: Likewise.
20268         * config/vms/vms.c: Likewise.
20269         * config/vxworks.c: Likewise.
20270         * config/xtensa/xtensa.c: Likewise.
20272 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
20274         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20275         Remove operand constraints.  Change operand 2 predicate to
20276         nonmemory operand.  Limit const_int values to mode bitsize.  Only
20277         allow const_int values less than 32 when optimizing for size.
20278         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20279         Remove operand constraints.
20280         (*bt<mode>): Use SImode for const_int values less than 32.
20281         (regmode): Remove mode attribute.
20283 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
20285         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20286         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20287           moxie_legitimate_address_p): New functions.
20288           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20290 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20292         PR tree-optimization/66642
20293         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20294         header comment.  Rename split_edge variable to edge_at_split.  Split
20295         exit edge to create new loop exit bb.  Insert loop exit phis in new
20296         loop exit bb.
20298 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20300         * tree-cfg.c (get_virtual_phi): New function.
20301         * tree-cfg.h (get_virtual_phi): Declare.
20302         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20303         (rewrite_virtuals_into_loop_closed_ssa): New function.
20304         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20305         Declare.
20306         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20307         (transform_to_exit_first_loop_alt): Use
20308         rewrite_virtuals_into_loop_closed_ssa.
20310 2015-07-07  Richard Biener  <rguenther@suse.de>
20312         * fold-const.c (fold_binary_loc): Move
20313         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20314         * match.pd: ... here.
20315         Add (X * C1) % C2 -> 0 simplification pattern derived from
20316         extract_muldiv_1.
20318 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
20320         PR target/66780
20321         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20322         change for target/65249.
20324 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
20326         * symtab.c (address_matters_1): Fix typo in comment above.
20327         (can_increase_alignment_p): Likewise.
20329 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20331         * function.c (free_after_compilation): Clear PROP_cfg in
20332         f->curr_properties.
20334 2015-07-07  Richard Biener  <rguenther@suse.de>
20336         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20337         add which use to.
20338         (add_control_edge): Remove excessive vertical space in dumping.
20339         (process_ssa_edge_worklist): Simulate at most one statement and
20340         return whether we did.  Do not simulate PHIs if they are in a
20341         BB not yet simulated.
20342         (ssa_propagate): Adjust to always drain the BB worklist whenever
20343         a BB is available there, likewise the VARYING edges list before
20344         the interesting edge list.
20346 2015-07-07  Christian Bruel  <christian.bruel@st.com>
20348         PR target/52144
20349         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20351 2015-07-07  Richard Biener  <rguenther@suse.de>
20353         PR middle-end/66739
20354         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20355         A - B.
20357 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
20359         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
20360         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
20361         Copy operand 0 to a temporary if !ext_register_operand.  Remove
20362         ancient extract_bit_field workaround.
20363         (insv<mode>_1): Rename from mov<mode>_insv_1.
20364         (*insvqi): Rename from *movqi_insv_2.
20365         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20366         for renamed insvsi_1.
20367         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20369 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
20371         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
20372         call to nvptx_reorg_subreg.
20374 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
20376         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20377         * graphite-dependencies.c, graphite-interchange.c,
20378         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20379         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20380         Likewise.
20382 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
20384         * match.pd: Remove element_mode inside HONOR_*.
20385         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20386         (~X | X -> -1, ~X ^ X -> -1): Merge.
20387         * tree.c (build_each_one_cst): New function.
20388         * tree.h (build_each_one_cst): Likewise.
20390 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20392         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20393         PROCESSOR_IAMCU.
20395 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
20397         * config.gcc <mips*-*-*>: Add fused-madd.opt.
20398         * config/mips/mips.opt (mfused-madd): Remove.
20399         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20400         * config/mips/mips.h (TARGET_MIPS8000): New.
20401         (ISA_HAS_FP_MADD4_MSUB4): Remove.
20402         (ISA_HAS_FP_MADDF_MSUBF): Remove.
20403         (ISA_HAS_FP_MADD3_MSUB3): Remove.
20404         (ISA_HAS_NMADD4_NMSUB4): Remove.
20405         (ISA_HAS_NMADD3_NMSUB3): Remove.
20406         (ISA_HAS_FUSED_MADD4): New.
20407         (ISA_HAS_UNFUSED_MADD4): New.
20408         (ISA_HAS_FUSED_MADDF): New.
20409         (ISA_HAS_FUSED_MADD3): New.
20410         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20411         (*fma<mode>4_madd3) New.
20412         (*fma<mode>4_madd4) New.
20413         (*fma<mode>4_maddf) New.
20414         (fms<mode>4) New.
20415         (*fms<mode>4_msub3) New.
20416         (*fms<mode>4_msub4) New.
20417         (fnma<mode>4) New.
20418         (*fnma<mode>4_nmadd3) New.
20419         (*fnma<mode>4_nmadd4) New.
20420         (fnms<mode>4) New.
20421         (*fnms<mode>4_nmsub3) New.
20422         (*fnms<mode>4_nmsub4) New.
20423         (*madd4<mode>) Modify to be unfused only.
20424         (*msub4<mode>) Modify to be unfused only.
20425         (*nmadd4<mode>) Modify to be unfused only.
20426         (*nmsub4<mode>) Modify to be unfused only.
20427         (*madd3<mode>) Remove.
20428         (*msub3<mode>) Remove.
20429         (*nmadd3<mode>) Remove.
20430         (*nmsub3<mode>) Remove.
20431         (*nmadd3<mode>_fastmath) Remove.
20432         (*nmsub3<mode>_fastmath) Remove.
20433         (*nmadd4<mode>_fastmath) Update condition.
20434         (*nmsub4<mode>_fastmath) Update condition.
20436 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
20438         PR target/65956
20439         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20440         alignment attribute, exploring one level down for records and arrays.
20442 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
20444         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
20445         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
20446         Copy operand 1 to a temporary if !ext_register_operand.  Remove
20447         ancient extract_bit_field workaround.
20448         (*extv<mode>): Rename from *mov<mode>_extv_1.
20449         (*extvqi): Rename from *movqi_extv_1.
20450         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
20451         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
20452         to a temporary if !ext_register_operand.  Remove ancient
20453         extract_bit_field workaround.
20454         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
20455         (*extzvqi): Rename from *movqi_extzv_2.
20456         (*testqi_ext_3): Remove modes from const_int_operand predicated
20457         operands.  Add "n" constraint.
20458         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
20459         operand.  Add "J" constraint.
20460         (*btsq, *btrq, *btcq peephole2s): Remove mode from
20461         const_0_to_63 predicated operand.
20462         (regmode): New insn attribute.
20463         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
20464         to nonmemory_operand.  Use regmode insn attribute.
20465         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
20466         (*jcc_bt<mode>_mask): Remove mode from operand 3.
20467         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
20468         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
20469         operands.  Use "N" constraint instead of "n".
20471 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
20473         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
20475 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20477         PR target/66749
20478         * config/i386/i386.c (iamcu_cost): New.
20479         (m_IAMCU): Likewise.
20480         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
20481         (processor_target_table): Add an entry for "iamcu".
20482         (processor_alias_table): Likewise.
20483         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
20484         (ix86_adjust_cost): Likewise.
20485         (ia32_multipass_dfa_lookahead): Likewise.
20486         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
20487         * config/i386/x86-tune.def: Updated for m_IAMCU.
20489 2015-07-06  Richard Biener  <rguenther@suse.de>
20491         PR tree-optimization/66772
20492         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
20493         values are available in the PHI node BB when there are
20494         still unexecutable edges.
20496 2015-07-06  Richard Biener  <rguenther@suse.de>
20498         PR tree-optimization/66767
20499         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
20500         Make sure to build the alignment test on a SSA name without
20501         final alignment info valid only if the alignment test
20502         evaluates to true.
20504 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
20506         PR target/66620
20507         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
20508         loop start when inserting LSETUP.
20510 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20512         PR target/53383
20513         * config/i386/i386.c (ix86_option_override_internal): Allow
20514         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
20516 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20518         * read-md.c (decimal_string): Rename to ...
20519         (md_decimal_string): ... this.
20520         (handle_enum): Reflect this.
20522 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20524         PR target/66731
20525         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
20527 2015-07-06  Richard Biener  <rguenther@suse.de>
20529         PR middle-end/66759
20530         * match.pd: Add missing constraint of y to REAL_CST in
20531         REAL_CST - x CMP y to y - CST CMP x simplification.
20533 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
20535         PR tree-optimization/66757
20536         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
20538 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
20539             Sandra Loosemore <sandra@codesourcery.com>
20541         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
20542         Delete extern declaration.
20543         (gprel_constant_p): Add extern declaration.
20544         * config/nios2/constraints.md ("S"): Use gprel_constant_p
20545         instead of nios2_symbol_ref_in_small_data_p.
20546         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
20547         (nios2_symbol_ref_in_small_data_p): Make static.
20548         (gprel_constant_p): Make non-static.
20550 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
20552         * doc/fragments.texi (Target Fragment): Convert debian.org
20553         link to use https.
20554         * doc/install.texi (Configuration): Ditto.
20556 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
20558         PR tree-optimization/66718
20559         * tree-vect-stmts.c (vectorizable_call): Replace uses of
20560         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
20562         PR tree-optimization/66718
20563         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
20564         vectorizable_load, vectorizable_condition): Move vectype,
20565         nunits, ncopies computation after checking what kind of statement
20566         stmt is.
20568 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20570         * target-insns.def (extv, extzv, insv): New targetm instruction
20571         patterns.
20572         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
20573         interface.
20574         * recog.c (simplify_while_replacing): Likewise.
20576 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20578         * target-insns.def (doloop_begin, doloop_end): New targetm
20579         instruction patterns.
20580         * loop-init.c: Include target.h.
20581         (pass_loop2::gate): Use the new targetm patterns instead of
20582         HAVE_*/gen_* interface.
20583         (pass_rtl_doloop::gate): Likewise.
20584         (pass_rtl_doloop::execute): Remove preprocessor condition.
20585         * hw-doloop.c: Build unconditionally.
20586         * loop-doloop.c: Likewise.
20587         (doloop_optimize): Use the new targetm patterns instead of
20588         HAVE_*/gen_* interface.
20589         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
20590         * modulo-sched.c (doloop_register_get): Likewise.
20592 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20594         * target-insns.def (clear_cache): New targetm instruction pattern.
20595         * builtins.c (expand_builtin___clear_cache): Use it instead of
20596         HAVE_*/gen_* interface.
20598 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20600         * target-insns.def (allocate_stack, check_stack, probe_stack)
20601         (probe_stack_address, split_stack_prologue, split_stack_space_check):
20602         New targetm instruction patterns.
20603         * explow.c (allocate_dynamic_stack_space): Use them instead of
20604         HAVE_*/gen_* interface.
20605         (emit_stack_probe): Likewise.
20606         (probe_stack_range): Likewise.
20607         * function.c (thread_prologue_and_epilogue_insns): Likewise.
20609 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20611         * target-insns.def (stack_protect_set, stack_protect_test): New
20612         targetm instruction patterns.
20613         * cfgexpand.c (stack_protect_prologue): Use them instead of
20614         HAVE_*/gen_* interface.
20615         * function.c (stack_protect_epilogue): Likewise.
20617 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20619         * expr.h (gen_move_insn_uncast): Delete.
20620         * expr.c (gen_move_insn_uncast): Delete.
20622 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20624         * target-insns.def (restore_stack_block, restore_stack_function)
20625         (restore_stack_nonlocal, save_stack_block, save_stack_function)
20626         (save_stack_nonlocal): New targetm instruction patterns.
20627         * builtins.c (expand_builtin_apply): Use them instead of
20628         HAVE_*/gen_* interface.
20629         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
20631 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20633         * target-insns.def (trap): New targetm instruction pattern.
20634         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
20635         interface.
20636         * explow.c (allocate_dynamic_stack_space): Likewise.
20637         * ifcvt.c (find_if_header): Likewise.
20639 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20641         * target-insns.def (prefetch): New targetm instruction pattern.
20642         * tree-ssa-loop-prefetch.c: Include targeth.
20643         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
20644         of HAVE_*/gen_* interface.
20645         * builtins.c (expand_builtin_prefetch): Likewise.
20646         * toplev.c (process_options): Likewise.
20648 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20650         * target-insns.def (untyped_call, untyped_return): New targetm
20651         instruction patterns.
20652         * builtins.c (expand_builtin_apply): Use them instead of
20653         HAVE_*/gen_* interface.
20654         (result_vector): Define unconditionally.
20656 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20658         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
20659         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
20660         (nonlocal_goto_receiver): New targetm instruction patterns.
20661         * builtins.c (expand_builtin_setjmp_setup): Use them instead
20662         of HAVE_*/gen_* interface.
20663         (expand_builtin_setjmp_receiver): Likewise.
20664         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
20665         * except.c (expand_dw2_landing_pad_for_region): Likewise.
20667 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
20669         * target.def: Add code_for_* hooks.
20670         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
20671         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
20672         * target-insns.def (casesi, tablejump): New targetm instruction
20673         patterns.
20674         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
20675         (do_tablejump): Likewise.
20676         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
20677         (expand_sjlj_dispatch_table): Likewise.
20678         * targhooks.c (default_case_values_threshold): Likewise.
20680 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
20682         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
20683         Use rtx_insn * instead of rtx.
20684         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
20685         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
20686         (nios2_call_tls_get_addr): Likewise.
20687         (nios2_emit_expensive_div): Likewise.
20688         (nios2_emit_move_sequence): Change return type to bool.
20689         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
20690         Change return type to bool.
20692 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20694         PR target/66747
20695         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
20697 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
20699         PR target/66114
20700         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
20701         of register_operand.  Remove constraint.
20703 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
20705         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
20706         the first argument.
20708 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
20710         * attribs.c (decl_attributes): Guard inform with the return value
20711         of the preceding warning.
20713 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20715         * doc/invoke.texi (moverride): Move to correct section.
20717 2015-07-03  Richard Biener  <rguenther@suse.de>
20719         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
20720         Copy from tree.c
20721         (dt_operand::gen_gimple_expr): After valueizing operands
20722         re-canonicalize operand order for commutative tree codes.
20724 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
20726         PR target/66746.
20727         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
20728         is defined.
20729         (__crc32w): Likewise.
20730         (__crc32d): Likewise.
20731         (__rdpmc): Likewise.
20732         (__rdtscp): Likewise.
20733         (_rdpmc): Likewise.
20734         (_rdtscp): Likewise.
20735         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
20736         is defined.
20738 2015-07-03  Richard Biener  <rguenther@suse.de>
20740         * fold-const.c (fold_mathfn_compare): Remove.
20741         (fold_inf_compare): Likewise.
20742         (fold_comparison): Move floating point comparison simplifications...
20743         * match.pd: ... to patterns here.  Introduce simple_comparisons
20744         operator list and use it for patterns formerly in fold_comparison.
20746 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20748         PR tree-optimization/66119
20749         * toplev.c (process_options): Don't set up default values for
20750         the sra_max_scalarization_size_{speed,size} parameters.
20751         * tree-sra (analyze_all_variable_accesses): If no values
20752         have been set for the sra_max_scalarization_size_{speed,size}
20753         parameters, call get_move_ratio to get target defaults.
20755 2015-07-03  Richard Biener  <rguenther@suse.de>
20757         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
20758         * match.pd: ... here.
20760 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
20762         PR target/37072
20763         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
20764         is not actually the default on FreeBSD.
20766 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20768         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
20769         definition.
20770         (CMPGE_8HI): Likewise.
20771         (CMPGE_4SI): Likewise.
20772         (CMPGE_2DI): Likewise.
20773         (CMPGE_U16QI): Likewise.
20774         (CMPGE_U8HI): Likewise.
20775         (CMPGE_U4SI): Likewise.
20776         (CMPGE_U2DI): Likewise.
20777         (CMPLE_16QI): Likewise.
20778         (CMPLE_8HI): Likewise.
20779         (CMPLE_4SI): Likewise.
20780         (CMPLE_2DI): Likewise.
20781         (CMPLE_U16QI): Likewise.
20782         (CMPLE_U8HI): Likewise.
20783         (CMPLE_U4SI): Likewise.
20784         (CMPLE_U2DI): Likewise.
20785         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20786         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
20787         ALTIVEC_BUILTIN_VEC_CMPLE.
20788         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
20789         floating-point vector modes.
20790         (vector_nlt<mode>): New define_expand.
20791         (vector_nltu<mode>): Likewise.
20792         (vector_ngt<mode>): Likewise.
20793         (vector_ngtu<mode>): Likewise.
20795 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
20797         PR rtl-optimization/66706
20798         * combine.c (make_compound_operation): If an AND of SUBREG of
20799         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
20801 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
20803         * tree-pass.h (make_pass_ch_vect): New.
20804         * passes.def: Add pass_ch_vect just before pass_if_conversion.
20806         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
20807         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
20808         make_pass_ch_vect): New.
20809         (pass_ch): Extend ch_base.
20811         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
20812         (ch_base::copy_headers): ...here.
20814 2015-07-02  Richard Biener  <rguenther@suse.de>
20816         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
20817         * fold-const.c (get_pointer_modulus_and_residue): Remove.
20818         (fold_binary_loc): Implement (T)ptr & CST in terms of
20819         get_pointer_alignment_1.
20820         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20821         Make sure to build the alignment test on a SSA name without
20822         final alignment info valid only after the prologue.
20824 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
20826         * config/cris/cris.md ("epilogue"): Remove condition.
20827         ("prologue"): Ditto.
20829 2015-07-02  Richard Biener  <rguenther@suse.de>
20831         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
20832         parameter to record a condition that is false.
20833         (record_conditions): When recording an extra NE_EXPR that is
20834         true also record a EQ_EXPR that is false.
20836 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
20838         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
20839         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
20840         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
20841         (set_iv, find_interesting_uses_address, add_candidate_1): New
20842         argument to alloc_iv.
20843         (find_interesting_uses_op, find_interesting_uses_cond): Don't
20844         duplicate struct iv.
20845         (free_loop_data): Don't free struct iv explicitly.
20846         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
20848 2015-07-01  DJ Delorie  <dj@redhat.com>
20850         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
20851         (LIB_SPEC): Add.
20852         (SUPPORTS_DISCRIMINATOR): Define.
20854 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
20856         PR bootstrap/66685
20857         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
20858         there are no CALLs in the same pattern.
20860 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20862         PR rtl-optimization/61047
20863         * rtlanal.c (get_initial_register_offset): New function.
20864         (rtx_addr_can_trap_p_1): Check offsets of stack references.
20866 2015-07-01  Richard Biener  <rguenther@suse.de>
20868         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
20869         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
20870         ~X CMP C -> X CMP' ~C to ...
20871         * match.pd: ... patterns here.
20873 2015-07-01  Nick Clifton  <nickc@redhat.com>
20875         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
20876         a 16-bit value into a 20-bit memory slot.
20878 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
20880         * doc/sourcebuild.texi (AArch64-specific attributes): Document
20881         "aarch64_tiny", "aarch64_small", "aarch64_large",
20882         "aarch64_little_endian", "aarch64_big_endian".
20884 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
20886         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
20887         Document "aarch64_small_fpic".
20889 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
20891         * configure.ac: Add check for aarch64 assembler -fpic relocation
20892         modifier support.
20893         * configure: Regenerate.
20894         * config.in: Regenerate.
20895         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
20896         to -fPIC if not support of -fpic relocation modifier in assembler.
20898 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
20900         PR bootstrap/66685
20901         * rtl.c (classify_insn): Handle returns in PARALLELs.
20903 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
20905         PR middle-end/66633
20906         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
20907         to true if the function is nested and if not optimizing.
20908         (convert_local_omp_clauses): Initialize need_frame to true if the
20909         function contains nested functions and if not optimizing.
20911 2015-07-01  Richard Biener  <rguenther@suse.de>
20913         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
20914         (X & Y) ^ Y -> ~X & Y transforms to ...
20915         * match.pd: ... here.
20917 2015-07-01  Richard Biener <rguenther@suse.de>
20919         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
20920         of converts to avoid uninteresting noise from the conversion
20921         simplifying patterns.
20923 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
20925         * config/c6x/c6x.c (try_rename_operands): Do not depend on
20926         gcc_assert evaluating its argument for side-effect.
20928 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
20930         PR target/64833
20931         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
20932         flag_pic is set.
20934 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
20936         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
20937         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
20938         (hash_scc): Add this_ref_p and ref_p parameters and pass them
20939         to the inner DFS walk.
20941 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20943         * target-insns.def (jump): New targetm instruction pattern.
20944         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
20945         instead of gen_jump.
20946         (fix_up_crossing_landing_pad): Likewise.
20947         (add_labels_and_missing_jumps): Likewise.
20948         (fix_crossing_conditional_branches): Likewise.
20949         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20950         (force_nonfallthru_and_redirect): Likewise.
20951         * cse.c (cse_insn): Likewise.
20952         * expmed.c (expand_divmod): Likewise.
20953         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
20954         * haifa-sched.c (init_before_recovery): Likewise.
20955         (sched_create_recovery_edges): Likewise.
20956         * ifcvt.c (find_cond_trap): Likewise.
20957         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
20958         (expand_float, expand_fix): Likewise.
20959         * stmt.c (emit_jump): Likewise.
20961 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20963         * defaults.h (HAVE_load_multiple, gen_load_multiple)
20964         (HAVE_store_multiple, gen_store_multiple): Delete.
20965         * target-insns.def (load_multiple, store_multiple): New targetm
20966         instruction patterns.
20967         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
20968         of HAVE_*/gen_* interface.
20970 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20972         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
20973         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
20974         (gen_mem_signal_fence): Delete.
20975         * target-insns.def (mem_signal_fence, mem_thread_fence)
20976         (memory_barrier): New targetm instruction patterns.
20977         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
20978         interface.
20979         (expand_mem_signal_fence): Likewise.
20981 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
20983         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
20984         * target-insns.def (epilogue, prologue, sibcall_prologue): New
20985         targetm instruction patterns.
20986         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
20987         interface.
20988         * calls.c (expand_call): Likewise.
20989         * cfgrtl.c (cfg_layout_finalize): Likewise.
20990         * df-scan.c (df_get_entry_block_def_set): Likewise.
20991         (df_get_exit_block_use_set): Likewise.
20992         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
20993         * final.c (final_start_function): Likewise.
20994         * function.c (thread_prologue_and_epilogue_insns): Likewise.
20995         (reposition_prologue_and_epilogue_notes): Likewise.
20996         * reorg.c (find_end_label): Likewise.
20997         * toplev.c (process_options): Likewise.
20999 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
21001         * typed-splay-tree.h: New file.
21003 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
21005         PR debug/66691
21006         * lra-int.h (lra_substitute_pseudo): Add a parameter.
21007         (lra_substitute_pseudo_within_insn): Ditto.
21008         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
21009         of constant.
21010         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
21011         to lra_substitute_pseudo.
21012         * lra-lives.c (process_bb_lives): Add an argument to
21013         lra_substitute_pseudo_within_insn call.
21014         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21015         argument to lra_substitute_pseudo and
21016         lra_substitute_pseudo_within_insn calls.
21017         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21019 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21021         * configure: Regenerated.
21023 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21025         * config.gcc: Support i[34567]86-*-elfiamcu target.
21026         * config/i386/iamcu.h: New.
21027         * config/i386/i386.opt: Add -miamcu.
21028         * doc/invoke.texi: Document -miamcu.
21029         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
21030         off x87/MMX/SSE/AVX codegen for -miamcu.
21031         * config/i386/i386-c.c (ix86_target_macros_internal): Define
21032         __iamcu/__iamcu__ for -miamcu.
21033         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21034         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21035         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21036         * config/i386/i386.c (ix86_option_override_internal): Ignore and
21037         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
21038         MCU by default.  Default long double to 64-bit for Intel MCU.
21039         Turn on -freg-struct-return for Intel MCU.  Issue an error when
21040         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21041         AVX is turned on.
21042         (function_arg_advance_32): Pass value whose size is no larger
21043         than 8 bytes in registers for Intel MCU.
21044         (function_arg_32): Likewise.
21045         (ix86_return_in_memory): Return value whose size is no larger
21046         than 8 bytes in registers for Intel MCU.
21047         (iamcu_alignment): New function.
21048         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21049         true.
21050         (ix86_local_alignment): Don't increase alignment for Intel MCU.
21051         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21052         true.
21054 2015-06-30  Marek Polacek  <polacek@redhat.com>
21056         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
21057         both operands of the resulting expression.
21059         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
21060         the final expression with the operand's type and then convert
21061         it to the type of the expression.
21063 2015-06-30  Richard Biener  <rguenther@suse.de>
21065         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21066         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21067         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21068         * match.pd: ... to patterns here.
21070 2015-06-30  Richard Biener  <rguenther@suse.de>
21072         PR tree-optimization/66704
21073         * tree-vect-data-refs.c (vect_setup_realignment): Use
21074         make_ssa_name for non-SSA name source.
21076 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
21078         PR middle-end/66702
21079         * omp-low.c (simd_clone_adjust): Handle addressable linear
21080         or uniform parameters or non-gimple type uniform parameters.
21082 2015-06-30  Richard Biener  <rguenther@suse.de>
21084         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21085         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21086         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21087         * match.pd: ... here.
21088         Add a few cases of A - B -> A + (-B) when B "easily" negates.
21089         Move (x & y) | x -> x and friends before
21090         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21092 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21094         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21095         -mfix-ut699 is not specified.
21096         (leon3_load): Rename into...
21097         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
21098         is specified.
21100 2015-06-30  Marek Polacek  <polacek@redhat.com>
21102         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21103         * match.pd: ... here.
21105 2015-06-30  Richard Biener  <rguenther@suse.de>
21107         * target-insns.def (canonicalize_funcptr_for_compare): Add.
21108         * fold-const.c (build_range_check): Replace uses of
21109         HAVE_canonicalize_funcptr_for_compare.
21110         (fold_widened_comparison): Likewise.
21111         (fold_sign_changed_comparison): Likewise.
21112         * dojump.c: Include "target.h".
21113         (do_compare_and_jump): Replace uses of
21114         HAVE_canonicalize_funcptr_for_compare and
21115         gen_canonicalize_funcptr_for_compare.
21116         * expr.c (do_store_flag): Likewise.
21118 2015-06-30  Tom de Vries  <tom@codesourcery.com>
21120         PR tree-optimization/66652
21121         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21122         max_loop_iterations to determine if nit + 1 overflows.
21124 2015-06-30  Richard Biener  <rguenther@suse.de>
21126         * tree-vrp.c (register_edge_assert_for_2): Also register
21127         asserts for dominating conversion results.
21129 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
21131         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21132         field in struct iv.
21134 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
21136         PR target/66509
21137         * configure.ac: Fix filds and fildq test for 64-bit.
21138         * configure: Regenerated.
21140 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
21142         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21143         (nvptx_reorg): Here.  Keep the non-subreg pieces.
21145 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
21147         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21148         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21150 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
21152         * config/i386/i386.md (*jcc_1): Use %! in asm template.
21153         Set attribute "length_nobnd" instead of "length".
21154         (*jcc_2): Ditto.
21155         (jump): Ditto.
21156         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21158 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
21160         * config/nios2/nios2.c (nios2_delegitimize_address): Make
21161         assert less restrictive.
21163 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21165         PR fortran/66605
21166         * cgraphunit.c (cgraph_node::finalize_function): Do not call
21167         do_warn_unused_parameter.
21168         * function.c (do_warn_unused_parameter): Move from here.
21169         * function.h (do_warn_unused_parameter): Do not declare.
21171 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21173         PR target/65697
21174         * gcc.target/arm/armv-sync-comp-swap.c: New.
21175         * gcc.target/arm/armv-sync-op-acquire.c: New.
21176         * gcc.target/arm/armv-sync-op-full.c: New.
21177         * gcc.target/arm/armv-sync-op-release.c: New.
21179 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21181         PR target/65697
21182         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21183         initial acquire barrier with final barrier.
21185 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21187         PR target/65697
21188         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21189         initial acquire barrier with final barrier.
21191 2015-06-29  Richard Henderson  <rth@redhat.com>
21193         * config/i386/constraints.md (Bf): New constraint.
21194         * config/i386/i386-c.c (ix86_target_macros): Define
21195         __GCC_ASM_FLAG_OUTPUTS__.
21196         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21197         as flags outputs.
21198         * doc/extend.texi (FlagOutputOperands): Document them.
21200 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
21202         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21203         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21204         unspec name.
21205         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21206         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21207         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21208         (aarch64_symbol_context): Ditto.
21209         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21210         and use new pattern name.
21211         (aarch64_expand_mov_immediate): Ditto.
21212         (aarch64_print_operand): Ditto.
21213         (aarch64_classify_tls_symbol): Ditto.
21215 2015-06-29  Marek Polacek  <polacek@redhat.com>
21216             Marc Glisse  <marc.glisse@inria.fr>
21218         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21219         * match.pd: ... pattern here.
21221 2015-06-29  Tom de Vries  <tom@codesourcery.com>
21223         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21224         function structure.
21226 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21228         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21229         feature description, split out the native option, add a link to
21230         the feature documentation, rearrange and slightly rewrite text.
21231         (Aarch64 options, -mcpu): Likewise.
21232         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
21233         +rdma implies Adv. SIMD.
21235 2015-06-29  Marek Polacek  <polacek@redhat.com>
21237         PR c/66322
21238         * function.c (stack_protect_epilogue): Remove a cast to int.
21239         * doc/invoke.texi: Update -Wswitch-bool description.
21241 2015-06-29  Richard Biener  <rguenther@suse.de>
21243         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21244         * fold-const.c (fold_binary_loc): Move &A - &B simplification
21245         via ptr_difference_const ...
21246         * match.pd: ... here.
21247         When matching (X ^ Y) == Y also match with swapped operands.
21249 2015-06-29  Richard Biener  <rguenther@suse.de>
21251         * lto-streamer.h (LTO_major_version): Bump to 5.
21253 2015-06-29  Richard Biener  <rguenther@suse.de>
21255         PR tree-optimization/66677
21256         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21257         STMT_VINFO_VEC_STMT clobbering less strict.
21259 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
21261         PR middle-end/64130
21262         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21263         division, compute max and min when value ranges for dividend and
21264         divisor are available.
21266 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
21267             Sandra Loosemore <sandra@codesourcery.com>
21269         * regrename.h (regrename_do_replace): Change to return bool.
21270         * regrename.c (rename_chains): Check return value of
21271         regname_do_replace.
21272         (regrename_do_replace): Re-validate the modified insns and
21273         return bool status.
21274         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21275         Update to match rename_chains changes.
21276         * config/c6x/c6x.c (try_rename_operands): Assert that
21277         regrename_do_replace returns true.
21279 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
21281         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21282         operand 2 here.  Use copy_addr_to_reg to copy non-index
21283         register operand 2 to a temporary.
21284         (<mode>_stx): Ditto for operand 1.
21285         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21286         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21287         (ix86_store_bounds): Ditto.
21289 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
21291         * print-tree.c (print_node) [TREE_VEC]: Print its length.
21293 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
21295         * gimple.c (gimple_call_set_fndecl): Remove.
21296         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21297         build1_loc directly instead of build_fold_addr_expr_loc.
21299 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
21301         * hash-map.h (hash_map::traverse): Use the definition of the
21302         Key typedef rather than the typedef itself.
21304 2015-06-26  Martin Jambor  <mjambor@suse.cz>
21306         PR debug/66301
21307         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21308         NULL instead of calling dump_enabled_p.
21310 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21312         * config/aarch64/aarch64.opt: (override): New.
21313         * doc/invoke.texi (override): Document.
21314         * config/aarch64/aarch64.c (aarch64_flag_desc): New
21315         (aarch64_fusible_pairs): Likewise.
21316         (aarch64_tuning_flags): Likewise.
21317         (aarch64_tuning_override_function): Likewise.
21318         (aarch64_tuning_override_functions): Likewise.
21319         (aarch64_parse_one_option_token): Likewise.
21320         (aarch64_parse_boolean_options): Likewise.
21321         (aarch64_parse_fuse_string): Likewise.
21322         (aarch64_parse_tune_string): Likewise.
21323         (aarch64_parse_one_override_token): Likewise.
21324         (aarch64_parse_override_string): Likewise.
21325         (aarch64_override_options): Parse the -override string if it
21326         is present.
21328 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21330         * config/aarch64/aarch64-protos.h (tune_params): Remove
21331         const from members.
21332         (aarch64_tune_params): Remove const, change to no longer be
21333         a pointer.
21334         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21335         change to no longer be a pointer, initialize to generic_tunings.
21336         (aarch64_min_divisions_for_recip_mul): Change dereference of
21337         aarch64_tune_params to member access.
21338         (aarch64_reassociation_width): Likewise.
21339         (aarch64_rtx_mult_cost): Likewise.
21340         (aarch64_address_cost): Likewise.
21341         (aarch64_branch_cost): Likewise.
21342         (aarch64_rtx_costs): Likewise.
21343         (aarch64_register_move_cost): Likewise.
21344         (aarch64_memory_move_cost): Likewise.
21345         (aarch64_sched_issue_rate): Likewise.
21346         (aarch64_builtin_vectorization_cost): Likewise.
21347         (aarch64_override_options): Take a copy of the selected tuning
21348         struct in to aarch64_tune_params, rather than just setting
21349         a pointer, change dereferences of aarch64_tune_params to member
21350         accesses.
21351         (aarch64_override_options_after_change): Change dereferences of
21352         aarch64_tune_params to member access.
21353         (aarch64_macro_fusion_p): Likewise.
21354         (aarch_macro_fusion_pair_p): Likewise.
21355         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21357 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21359         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21360         (aarch64_tune_flags): Likewise.
21361         (AARCH64_TUNE_FMA_STEERING): Likewise.
21362         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21363         to AARCH64_FL_USE_FMA_STEERING_PASS.
21364         (cortex-a57.cortex-a53): Likewise.
21365         (cortex-a72): Use cortexa72_tunings.
21366         (cortex-a72.cortex-a53): Likewise.
21367         (exynos-m1): Likewise.
21368         * config/aarch64/aarch64-protos.h (tune_params): Add
21369         a field: extra_tuning_flags.
21370         * config/aarch64/aarch64-tuning-flags.def: New.
21371         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21372         (aarch64_extra_tuning_flags): Likewise.
21373         (aarch64_tune_params): Declare here.
21374         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21375         (cortexa53_tunings): Likewise.
21376         (cortexa57_tunings): Likewise.
21377         (thunderx_tunings): Likewise.
21378         (xgene1_tunings): Likewise.
21379         (cortexa72_tunings): New.
21380         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21381          (gate): Check against aarch64_tune_params.
21382         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21383         aarch64-protos.h.
21385 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21387         * config/aarch64/aarch64-fusion-pairs.def: New.
21388         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21389         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21390         aarch64_fusion_pairs.
21391         (AARCH64_FUSE_MOV_MOVK): Likewise.
21392         (AARCH64_FUSE_ADRP_ADD): Likewise.
21393         (AARCH64_FUSE_MOVK_MOVK): Likewise.
21394         (AARCH64_FUSE_ADRP_LDR): Likewise.
21395         (AARCH64_FUSE_CMP_BRANCH): Likewise.
21397 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
21399         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21400         SYMBOL_SMALL_GOT_28K.
21401         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21402         relocation modifiers.
21403         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21404         (ldr_got_small_28k_<mode>): New.
21405         (ldr_got_small_28k_sidi): New.
21406         * config/aarch64/iterators.md (got_modifier): New mode iterator.
21407         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21408         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21409         SYMBOL_SMALL_GOT_28K.
21410         (aarch64_rtx_costs): Add costs for new instruction sequences.
21411         (initialize_aarch64_code_model): Initialize new model.
21412         (aarch64_classify_symbol): Recognize new model and new symbol classification.
21413         (aarch64_asm_preferred_eh_data_format): Support new model.
21414         (aarch64_load_symref_appropriately): Generate new instruction
21415         sequences for -fpic.
21416         (TARGET_USE_PSEUDO_PIC_REG): New definition.
21417         (aarch64_use_pseudo_pic_reg): New function.
21419 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
21421         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21422         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21423         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21424         (aarch64_expand_mov_immediate): Ditto.
21425         (aarch64_print_operand): Ditto.
21426         (aarch64_classify_symbol): Ditto.
21428 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
21430         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21432 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
21434         PR bootstrap/66638
21435         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21436         assertion failed.  Remove assertion itself.
21438 2015-06-26  Richard Biener  <rguenther@suse.de>
21440         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21441         and -A CMP CST -> A CMP -CST which is redundant with a pattern
21442         in match.pd.
21443         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
21444         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
21445         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
21446         * match.pd: ... patterns here.
21448 2015-06-26  Marek Polacek  <polacek@redhat.com>
21450         * match.pd ((x | y) & ~(x & y) -> x ^ y,
21451         (x | y) & (~x ^ y) -> x & y): New patterns.
21453 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
21455         * rtl.h (emit): Add an optional boolean parameter to control
21456         whether barriers are emitted.
21457         * emit-rtl.c (emit): Likewise.
21458         * gensupport.c (get_emit_function): Return null rather than "emit".
21459         * genemit.c (gen_emit_seq): Handle the null return value.
21460         Don't emit barriers after the final instruction in the sequence.
21461         * gentarget-def.c (main): Don't emit barriers after the instruction.
21463 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21465         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
21466         TARGET_UNIFIED_ASM.
21468 2015-06-26  Richard Biener  <rguenther@suse.de>
21470         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
21472 2015-06-26  Richard Biener  <rguenther@suse.de>
21474         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
21475         irrespective on whether the inner operation has a single use
21476         of both off are constant.
21478 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
21479             Segher Boessenkool  <segher@kernel.crashing.org>
21481         PR target/66412
21482         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
21483         before doing PUT_MODE or PUT_CODE on operands to avoid
21484         in-place RTX modification.
21486 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21488         * gentarget-def.c (def_target_insn): Cast return of strtol to
21489         unsigned int.
21491 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21493         * gimple.h (gimple_call_set_fn): Move inline function.
21494         * gimple.c (gimple_call_set_fn): Relocate here.
21496 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
21498         PR target/65979
21499         PR target/66611
21500         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
21501         the replacement insn will work.
21503 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21505         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
21506         by default.
21508 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21510         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
21511         * cgraph.h: Include ipa-ref.h and plugin-api.h.
21512         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
21513         (symtab_node::address_can_be_compared_p): Move function.
21514         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
21515         definition here.
21516         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
21517         * auto-profile.c: Likewise.
21518         * bb-reorder.c: Likewise.
21519         * builtins.c: Likewise.
21520         * calls.c: Likewise.
21521         * cfgexpand.c: Likewise.
21522         * cgraphbuild.c: Likewise.
21523         * cgraphclones.c: Likewise.
21524         * cgraphunit.c: Likewise.
21525         * combine.c: Likewise.
21526         * coverage.c: Likewise.
21527         * data-streamer-in.c: Likewise.
21528         * data-streamer-out.c: Likewise.
21529         * data-streamer.c: Likewise.
21530         * dbxout.c: Likewise.
21531         * dwarf2out.c: Likewise.
21532         * except.c: Likewise.
21533         * expr.c: Likewise.
21534         * final.c: Likewise.
21535         * fold-const.c: Likewise.
21536         * ggc-page.c: Likewise.
21537         * gimple-fold.c: Likewise.
21538         * gimple-iterator.c: Likewise.
21539         * gimple-pretty-print.c: Likewise.
21540         * gimple-streamer-in.c: Likewise.
21541         * gimple-streamer-out.c: Likewise.
21542         * gimple.c: Likewise.
21543         * gimplify.c: Likewise.
21544         * ipa-chkp.c: Likewise.
21545         * ipa-comdats.c: Likewise.
21546         * ipa-cp.c: Likewise.
21547         * ipa-devirt.c: Likewise.
21548         * ipa-icf-gimple.c: Likewise.
21549         * ipa-icf.c: Likewise.
21550         * ipa-inline-analysis.c: Likewise.
21551         * ipa-inline-transform.c: Likewise.
21552         * ipa-inline.c: Likewise.
21553         * ipa-polymorphic-call.c: Likewise.
21554         * ipa-profile.c: Likewise.
21555         * ipa-prop.c: Likewise.
21556         * ipa-pure-const.c: Likewise.
21557         * ipa-ref.c: Likewise.
21558         * ipa-reference.c: Likewise.
21559         * ipa-split.c: Likewise.
21560         * ipa-utils.c: Likewise.
21561         * ipa-visibility.c: Likewise.
21562         * ipa.c: Likewise.
21563         * langhooks.c: Likewise.
21564         * lto-cgraph.c: Likewise.
21565         * lto-compress.c: Likewise.
21566         * lto-opts.c: Likewise.
21567         * lto-section-in.c: Likewise.
21568         * lto-section-out.c: Likewise.
21569         * lto-streamer-in.c: Likewise.
21570         * lto-streamer-out.c: Likewise.
21571         * lto-streamer.c: Likewise.
21572         * omp-low.c: Likewise.
21573         * opts-global.c: Likewise.
21574         * passes.c: Likewise.
21575         * predict.c: Likewise.
21576         * print-tree.c: Likewise.
21577         * profile.c: Likewise.
21578         * ree.c: Likewise.
21579         * sanopt.c: Likewise.
21580         * stor-layout.c: Likewise.
21581         * symtab.c: Likewise.
21582         * toplev.c: Likewise.
21583         * trans-mem.c: Likewise.
21584         * tree-cfg.c: Likewise.
21585         * tree-chkp.c: Likewise.
21586         * tree-eh.c: Likewise.
21587         * tree-emutls.c: Likewise.
21588         * tree-inline.c: Likewise.
21589         * tree-nested.c: Likewise.
21590         * tree-parloops.c: Likewise.
21591         * tree-pretty-print.c: Likewise.
21592         * tree-profile.c: Likewise.
21593         * tree-sra.c: Likewise.
21594         * tree-ssa-alias.c: Likewise.
21595         * tree-ssa-live.c: Likewise.
21596         * tree-ssa-loop-ivcanon.c: Likewise.
21597         * tree-ssa-loop-ivopts.c: Likewise.
21598         * tree-ssa-pre.c: Likewise.
21599         * tree-ssa-sccvn.c: Likewise.
21600         * tree-ssa-strlen.c: Likewise.
21601         * tree-ssa-structalias.c: Likewise.
21602         * tree-streamer-in.c: Likewise.
21603         * tree-streamer-out.c: Likewise.
21604         * tree-streamer.c: Likewise.
21605         * tree-switch-conversion.c: Likewise.
21606         * tree-tailcall.c: Likewise.
21607         * tree-vect-data-refs.c: Likewise.
21608         * tree-vect-stmts.c: Likewise.
21609         * tree-vectorizer.c: Likewise.
21610         * tree.c: Likewise.
21611         * tsan.c: Likewise.
21612         * ubsan.c: Likewise.
21613         * value-prof.c: Likewise.
21614         * varasm.c: Likewise.
21615         * varpool.c: Likewise.
21616         * config/arm/arm.c: Likewise.
21617         * config/bfin/bfin.c: Likewise.
21618         * config/c6x/c6x.c: Likewise.
21619         * config/cris/cris.c: Likewise.
21620         * config/darwin-c.c: Likewise.
21621         * config/darwin.c: Likewise.
21622         * config/i386/i386.c: Likewise.
21623         * config/i386/winnt.c: Likewise.
21624         * config/microblaze/microblaze.c: Likewise.
21625         * config/mips/mips.c: Likewise.
21626         * config/rs6000/rs6000.c: Likewise.
21627         * config/rx/rx.c: Likewise.
21628         * config/s390/s390.c: Likewise.
21629         * config/tilegx/mul-tables.c: Likewise.
21631 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21633         * config/aarch64/aarch64.c, config/alpha/alpha.c,
21634         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
21635         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
21636         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
21637         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21638         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21639         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21640         config/microblaze/microblaze.c, config/mips/mips.c,
21641         config/mmix/mmix.c, config/mn10300/mn10300.c,
21642         config/moxie/moxie.c, config/msp430/msp430.c,
21643         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21644         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21645         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21646         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21647         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21648         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21649         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
21650         target-def.h include.
21651         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
21653 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21655         * Makefile.in (TARGET_DEF): Add target-insns.def.
21656         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
21657         (build/gentarget-def.o): New rule.
21658         (genprogrtl): Add target-def.
21659         * target-insns.def, gentarget-def.c: New files.
21660         * target.def: Add targetm.have_* and targetm.gen_* hooks,
21661         based on the contents of target-insns.def.
21662         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
21663         (HAVE_return, gen_return): Delete.
21664         * target-def.h: Include insn-target-def.h.
21665         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
21666         instead of direct calls.  Rely on them to do the appropriate assertions.
21667         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
21668         (convert_jumps_to_returns): Use targetm interface instead of
21669         direct calls.
21670         (thread_prologue_and_epilogue_insns): Likewise.
21671         * reorg.c (find_end_label, dbr_schedule): Likewise.
21672         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
21673         * shrink-wrap.c (convert_to_simple_return): Likewise.
21674         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
21676 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21678         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
21679         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21680         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
21681         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
21682         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
21683         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
21684         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
21685         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
21686         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
21687         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
21688         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
21689         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
21690         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
21691         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21692         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
21693         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
21694         includes to end.
21696 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21698         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
21699         (unbounded_int_hashmap_traits::key_type): Likewise.
21700         * hash-map.h (hash_map): Get the key type from the traits.
21701         * hash-traits.h (default_hash_traits): By default, inherit from the
21702         template parameter.
21703         * alias.c (alias_set_traits): Delete.
21704         (alias_set_entry_d::children): Use alias_set_hash as the first
21705         template parameter.
21706         (record_alias_subset): Update accordingly.
21707         * except.c (tree_hash_traits): Delete.
21708         (type_to_runtime_map): Use tree_hash as the first template parameter.
21709         (init_eh): Update accordingly.
21710         * genmatch.c (capture_id_map_hasher): Delete.
21711         (cid_map_t): Use nofree_string_hash as first template parameter.
21712         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
21713         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21714         Use symbol_compare_hash as the first template parameter in
21715         subdivide_hash_map.
21716         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
21717         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
21718         template parameter.
21719         * passes.c (pass_registry_hasher): Delete.
21720         (name_to_pass_map): Use nofree_string_hash as the first template
21721         parameter.
21722         (register_pass_name): Update accordingly.
21723         * sanopt.c (sanopt_tree_map_traits): Delete.
21724         (sanopt_tree_triplet_map_traits): Delete.
21725         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
21726         template parameter.
21727         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
21728         the first template parameter.
21729         * sese.c (rename_map_hasher): Delete.
21730         (rename_map_type): Use tree_ssa_name_hash as the first template
21731         parameter.
21732         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
21733         (function_summary::m_map): Use map_hash as the first template
21734         parameter.
21735         (function_summary::release): Update accordingly.
21736         * tree-if-conv.c (phi_args_hash_traits): Delete.
21737         (predicate_scalar_phi): Use tree_operand_hash as the first template
21738         parameter to phi_arg_map.
21739         * tree-inline.h (dependence_hasher): Delete.
21740         (copy_body_data::dependence_map): Use dependence_hash as the first
21741         template parameter.
21742         * tree-inline.c (remap_dependence_clique): Update accordingly.
21743         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
21744         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
21745         parameter.
21746         (addr_stridxptr): Update accordingly.
21747         * value-prof.c (profile_id_traits): Delete.
21748         (cgraph_node_map): Use profile_id_hash as the first template
21749         parameter.
21750         (init_node_map): Update accordingly.
21751         * config/alpha/alpha.c (string_traits): Delete.
21752         (machine_function::links): Use nofree_string_hash as the first
21753         template parameter.
21754         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
21755         * config/m32c/m32c.c (pragma_traits): Delete.
21756         (pragma_htab): Use nofree_string_hash as the first template parameter.
21757         (m32c_note_pragma_address): Update accordingly.
21758         * config/mep/mep.c (pragma_traits): Delete.
21759         (pragma_htab): Use nofree_string_hash as the first template parameter.
21760         (mep_note_pragma_flag): Update accordingly.
21761         * config/mips/mips.c (mips16_flip_traits): Delete.
21762         (mflip_mips16_htab): Use nofree_string_hash as the first template
21763         parameter.
21764         (mflip_mips16_use_mips16_p): Update accordingly.
21765         (local_alias_traits): Delete.
21766         (mips16_local_aliases): Use nofree_string_hash as the first template
21767         parameter.
21768         (mips16_local_alias): Update accordingly.
21770 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21772         * hash-map-traits.h (default_hashmap_traits): Delete.
21774 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21776         * hash-map-traits.h (unbounded_hashmap_traits): New class.
21777         (unbounded_int_hashmap_traits): Likewise.
21778         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
21780 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21782         * ipa-icf.h (symbol_compare_hash): New class.
21783         (symbol_compare_hashmap_traits): Use it.
21784         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
21785         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
21786         (mem_alloc_description::reverse_mem_map_t): Remove redundant
21787         default_hashmap_traits.
21788         * sanopt.c (sanopt_tree_triplet_hash): New class.
21789         (sanopt_tree_triplet_map_traits): Use it.
21791 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21793         * gengtype-parse.c (require_template_declaration): Allow '+' in
21794         template parameters.  Consolidate cases.
21795         * hash-traits.h (int_hash): New class.
21796         * alias.c (alias_set_hash): New structure.
21797         (alias_set_traits): Use it.
21798         * symbol-summary.h (function_summary::map_hash): New class.
21799         (function_summary::summary_hashmap_traits): Use it.
21800         * tree-inline.h (dependence_hash): New class.
21801         (dependence_hasher): Use it.
21802         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
21803         * value-prof.c (profile_id_hash): New class.
21804         (profile_id_traits): Use it.
21806 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21808         * config/mips/mips.c (mips16_flip_traits): Use it.
21809         (local_alias_traits, mips16_local_aliases): Convert from a map of
21810         rtxes to a map of symbol names.
21811         (mips16_local_alias): Update accordingly.
21813 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21815         * hash-traits.h (string_hash, nofree_string_hash): New classes.
21816         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
21817         * passes.c (pass_registry_hasher): Likewise.
21818         * config/alpha/alpha.c (string_traits): Likewise.
21819         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
21820         * config/m32c/m32c.c (pragma_traits): Likewise.
21821         * config/mep/mep.c (pragma_traits): Likewise.
21823 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21825         * tree-hash-traits.h (tree_hash): New class.
21826         * except.c: Include tree-hash-traits.h.
21827         (tree_hash_traits): Use tree_hash.
21829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21831         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
21832         * sese.c: Include tree-hash-traits.h.
21833         (rename_map_hasher): Use tree_ssa_name_hasher.
21835 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21837         * tree-hash-traits.h (tree_decl_hash): New class.
21838         * tree-ssa-strlen.c: Include tree-hash-traits.h.
21839         (stridxlist_hash_traits): Use tree_decl_hash.
21841 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21843         * tree-hash-traits.h: New file.
21844         (tree_operand_hash): New class.
21845         * sanopt.c: Include tree-hash-traits.h.
21846         (sanopt_tree_map_traits): Use tree_operand_hash.
21847         * tree-if-conv.c: Include tree-hash-traits.h.
21848         (phi_args_hash_traits): Use tree_operand_hash.
21849         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
21850         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
21852 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21854         * hash-map-traits.h: Include hash-traits.h.
21855         (simple_hashmap_traits): New class.
21856         * mem-stats.h (hash_map): Change the default traits to
21857         simple_hashmap_traits<default_hash_traits<Key> >.
21859 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21861         * hash-table.h: Update comments.
21863 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21865         * hash-traits.h (default_hash_traits): New structure.
21866         * hash-set.h (default_hashset_traits): Delete.
21867         (hash_set): Use default_hash_traits<Key> instead of
21868         default_hashset_traits.  Delete hash_entry type and use Key directly.
21869         * ipa-devirt.c (pair_traits): Delete.
21870         (default_hash_traits <type_pair>): Override.
21871         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21872         (odr_types_equivalent_p, add_type_duplicate): Likewise.
21874 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21876         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
21878 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21880         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
21881         (has_is_empty, is_empty_helper): Delete.
21882         (has_mark_deleted, mark_deleted_helper): Delete.
21883         (has_mark_empty, mark_empty_helper): Delete.
21884         (hash_table::is_deleted): Call the Descriptor unconditionally.
21885         (hash_table::is_empty): Likewise.
21886         (hash_table::mark_deleted): Likewise.
21887         (hash_table::mark_empty): Likewise.
21889 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21891         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
21892         redundant typedefs and members.
21893         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
21894         redundant typedefs.
21895         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
21896         * ipa-devirt.c (odr_name_hasher): Likewise.
21897         (polymorphic_call_target_hasher): Likewise.
21898         * ira-costs.c (cost_classes_hasher): Likewise.
21899         * statistics.c (stats_counter_hasher): Likewise.
21900         * trans-mem.c (log_entry_hasher): Likewise.
21901         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
21902         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
21903         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
21904         * var-tracking.c (variable_hasher): Likewise.
21905         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
21906         Remove redundant typedefs and members.
21908 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21910         * hash-traits.h (ggc_cache_hasher): Rename to...
21911         (ggc_cache_remove): ...this and remove typedefs.
21912         (ggc_cache_ptr_hash): New class.
21913         * hash-table.h: Update commentary.
21914         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
21915         rather than ggc_cache_hasher.
21916         (const_wide_int_hasher, reg_attr_hasher): Likewise.
21917         (const_double_hasher, const_fixed_hasher): Likewise.
21918         * function.c (insn_cache_hasher): Likewise.
21919         * trans-mem.c (tm_wrapper_hasher): Likewise.
21920         * tree.h (tree_decl_map_cache_hasher): Likewise.
21921         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
21922         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
21923         * ubsan.c (tree_type_map_cache_hasher): Likewise.
21924         * varasm.c (tm_clone_hasher): Likewise.
21925         * config/i386/i386.c (dllimport_hasher): Likewise.
21926         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
21927         (tree_hasher): Likewise.
21929 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21931         * hash-traits.h (ggc_hasher): Rename to...
21932         (ggc_remover): ...this and remove typedefs.
21933         (ggc_cache_hasher): Update accordingly.  Add typedefs.
21934         (ggc_ptr_hash): New class.
21935         * hash-table.h: Update comment.
21936         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
21937         ggc_hasher.
21938         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
21939         (tree_descriptor_hasher): Likewise.
21940         * cgraph.c (function_version_hasher): Likewise.
21941         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
21942         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
21943         (dw_loc_list_hasher, addr_hasher): Likewise.
21944         * function.h (used_type_hasher): Likewise.
21945         * function.c (temp_address_hasher): Likewise.
21946         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
21947         * libfuncs.h (libfunc_hasher): Likewise.
21948         * lto-streamer.h (decl_state_hasher): Likewise.
21949         * optabs.c (libfunc_decl_hasher): Likewise.
21950         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
21951         * varasm.c (section_hasher, object_block_hasher): Likewise.
21952         (const_rtx_desc_hasher): Likewise.
21953         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
21954         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
21956 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21958         * hash-traits.h (free_ptr_hash): New class.
21959         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
21960         rather than typed_free_remove.  Remove redudant typedefs.
21961         (external_ref_hasher): Likewise.
21962         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
21963         (ehspec_hasher): Likewise.
21964         * ggc-common.c (saving_hasher): Likewise.
21965         * gimplify.c (gimplify_hasher): Likewise.
21966         * haifa-sched.c (delay_i2_hasher): Likewise.
21967         * loop-invariant.c (invariant_expr_hasher): Likewise.
21968         * loop-iv.c (biv_entry_hasher): Likewise.
21969         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
21970         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
21971         * tree-cfg.c (locus_discrim_hasher): Likewise.
21972         * tree-eh.c (finally_tree_hasher): Likewise.
21973         * tree-into-ssa.c (var_info_hasher): Likewise.
21974         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
21975         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
21976         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
21977         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
21978         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
21979         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
21980         (shared_bitmap_hasher): Likewise.
21981         * tree-ssa-threadupdate.c (redirection_data): Likewise.
21982         * tree-vectorizer.h (peel_info_hasher): Likewise.
21983         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
21984         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
21986 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21988         * hash-table.h: Update comments.
21989         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
21990         (nofree_ptr_hash): New class.
21991         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
21992         than typed_noop_remove.  Remove redudant typedefs.
21993         * attribs.c (attribute_hasher): Likewise.
21994         * cfg.c (bb_copy_hasher): Likewise.
21995         * cselib.c (cselib_hasher): Likewise.
21996         * dse.c (invariant_group_base_hasher): Likewise.
21997         * dwarf2cfi.c (trace_info_hasher): Likewise.
21998         * dwarf2out.c (macinfo_entry_hasher): Likewise.
21999         (comdat_type_hasher, loc_list_hasher): Likewise.
22000         * gcse.c (pre_ldst_expr_hasher): Likewise.
22001         * genmatch.c (id_base): Likewise.
22002         * genrecog.c (test_pattern_hasher): Likewise.
22003         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22004         * haifa-sched.c (delay_i1_hasher): Likewise.
22005         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22006         * ipa-icf.h (congruence_class_group_hash): Likewise.
22007         * ipa-profile.c (histogram_hash): Likewise.
22008         * ira-color.c (allocno_hard_regs_hasher): Likewise.
22009         * lto-streamer.h (string_slot_hasher): Likewise.
22010         * lto-streamer.c (tree_entry_hasher): Likewise.
22011         * plugin.c (event_hasher): Likewise.
22012         * postreload-gcse.c (expr_hasher): Likewise.
22013         * store-motion.c (st_expr_hasher): Likewise.
22014         * tree-sra.c (uid_decl_hasher): Likewise.
22015         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22016         (ssa_name_var_hash): Likewise.
22017         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22018         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22019         * tree-ssa-pre.c (pre_expr_d): Likewise.
22020         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22021         * vtable-verify.h (registration_hasher): Likewise.
22022         * vtable-verify.c (vtbl_map_hasher): Likewise.
22023         * config/arm/arm.c (libcall_hasher): Likewise.
22024         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22025         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22026         * config/sol2.c (comdat_entry_hasher): Likewise.
22027         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22028         (print_fold_checksum, fold_checksum_tree): Likewise.
22029         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22030         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22031         (fold_build_call_array_loc): Likewise.
22032         * tree-ssa-ccp.c (gimple_htab): Likewise.
22033         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22034         rather than pointer_type.
22036 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22038         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22039         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22041 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22043         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22044         (ggc_hasher::ggc_mx): Likewise.
22045         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
22046         that duplicate ggc_hasher ones.
22048 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22050         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22051         (gt_cleare_cache): Check here for deleted and empty entries.
22052         Replace handle_cache_entry with a call to keep_cache_entry.
22053         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22054         (ggc_cache_hasher::keep_cache_entry): New function.
22055         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22056         (tm_wrapper_hasher::keep_cache_entry): New function.
22057         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22058         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22059         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22060         (type_cache_hasher::keep_cache_entry): New function.
22061         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22062         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22063         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22064         (tree_type_map_cache_hasher::keep_cache_entry): New function.
22065         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22066         (tm_clone_hasher::keep_cache_entry): New function.
22067         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22068         (dllimport_hasher::keep_cache_entry): New function.
22070 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22072         * hash-table.h: Include hash-traits.h.
22073         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22074         (ggc_cache_hasher): Move to...
22075         * hash-traits.h: ...this new file.
22077 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22079         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22080         struct cl_optimization.
22081         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22082         * tree.c (make_node_stat): Allocate cl_optimization struct.
22083         (copy_node_stat): Allocate and copy cl_optimization struct.
22085 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22087         * function.h (struct incoming_args): Move struct.
22088         (pass_by_reference, reference_callee_copied): Remove prototypes.
22089         * emit-rtl.h (struct incoming_args): Relocate struct here.
22090         * calls.h (pass_by_reference, reference_callee_copied): Relocate
22091         prototypes here.
22092         * function.c (pass_by_reference, reference_callee_copied): Move.
22093         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22094         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22095         * ipa-chkp.c: Include calls.h.
22097 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
22099         * alias.h (alias_set_type): Move typedef.
22100         * coretypes.h (alias_set_type): Relocate typedef here.
22101         * rtl.h: Don't include alias.h.
22103 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22105         * cgraph.h (cgraph_rtl_info): Move to rtl.h
22106         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22107         and instance.
22108         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22109         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22110         doesn't exist.
22111         * calls.c: Include hard-reg-set.h before rtl.h.
22112         * ira.c: Likewise.
22114 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22115             Vladimir Makarov  <vmakarov@redhat.com>
22117         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22118         Add assert.
22120 2015-06-25  Richard Biener  <rguenther@suse.de>
22122         * fold-const.c (fold_binary_loc): Move simplification of
22123         (X <<>> C1) & C2 ...
22124         * match.pd: ... here.
22126 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22128         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22130 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22132         * match.pd: Add patterns for vec_conds between 1 and 0.
22134 2015-06-25  Richard Biener  <rguenther@suse.de>
22136         * tree-vect-stmts.c (vectorizable_conversion): Do not set
22137         STMT_VINFO_VEC_STMT for SLP.
22138         (vectorizable_store): Likewise.
22139         (vectorizable_load): Likewise.
22140         (vect_transform_stmt): Catch SLP vectorization clobbering
22141         STMT_VINFO_VEC_STMT.
22143 2015-06-25  Richard Biener  <rguenther@suse.de>
22145         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22146         dumping.
22147         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22148         cleanup resulting dead code and parameters.
22149         (vect_transform_slp_perm_load): Adjust.
22151 2015-06-25  Nick Clifton  <nickc@redhat.com>
22153         * config/bfin/bfin.c (bfin_expand_prologue): Set
22154         current_function_static_stack_size if flag_stack_usage_info is set.
22155         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22156         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22157         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22158         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22160 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22162         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22163         comment that the generated IV is unsigned.
22165 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22167         PR target/29693
22168         * config/arm/arm.c (arm_dbx_register_number): Return
22169         DWARF_FRAME_REGISTERS by default.
22171 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22173         * dominance.c (calculate_dominance_info): Fix verify_dominators call
22174         argument.  Call verify_dominator when reusing dominator info.
22176 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
22178         PR target/66563
22179         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22180         an additional element of the unspec vector.  Modify indices
22181         of operands.
22182         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22183         * config/sh/sh.c (prepare_move_operands): Pass incremented
22184         const_int to gen_GOTaddr2picreg.
22185         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22187 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22189         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22190         Condition on TARGET_FLOAT.
22192 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22194         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22195         and (no)crypto.
22197 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22199         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22201         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22202         aarch64_err_no_fpadvsimd.
22204         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22205         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22206         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22207         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22208         Turn error into assert, test TARGET_FLOAT.
22209         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22210         TARGET_FLOAT.
22212 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
22214         PR debug/66482
22215         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22217 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
22219         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22221 2015-06-24  Renlin Li <renlin.li@arm.com>
22223         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22224         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22226 2015-06-24  Richard Biener  <rguenther@suse.de>
22228         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22229         (main): Likewise.
22230         (lower_opt_convert): Support lowering of conditional view_convert.
22231         (parser::parse_operation): Likewise.
22232         (parser::parse_for): Likewise.
22234 2015-06-24  Renlin Li  <renlin.li@arm.com>
22236         * varasm.c (emit_local): Use unsigned int for align variable.
22238 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22240         PR target/63408
22241         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22242         for negative numbers.
22244 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22246         PR rtl-optimization/66306
22247         * reload.c (find_reloads): Swap the match_dup info for
22248         commutative operands.
22250 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22252         * config/s390/vx-builtins.md
22253         ("vec_scatter_element<mode>_<non_vec_int>")
22254         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22255         attribute with bhfgq.
22257 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22259         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22261 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22263         * config/s390/s390-builtin-types.def: Add flag to indicate the
22264         options under which the function type is needed.
22265         * config/s390/s390-builtins.def: Add flag to indicate the options
22266         under which the builtin is enabled.
22267         * config/s390/s390-builtins.h: Add flags parameter to macro
22268         definitions.
22269         (bflags_for_builtin): New function.
22270         (flags_for_builtin): Renamed to ...
22271         (opflags_for_builtin): ... this.
22272         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22273         flags_for_builtin to bflags_for_builtin and
22274         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22275         * config/s390/s390.c: Add initialization of bflags_builtin and
22276         opflags_builtin arrays.
22277         Remove code for flags_builtin.
22278         (s390_init_builtins): Only create builtin function types if one of
22279         their flags is active.
22280         Only create builtins if all of their flags are active.
22281         (s390_expand_builtin): Rename flags_for_builtin to
22282         opflags_for_builtin.
22284 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22286         * config/s390/vecintrin.h: Remove internal builtins.
22288 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22290         * config/s390/s390.c (s390_secondary_reload): Fix check for
22291         GENERAL_REGS register class.
22293 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22295         * config/s390/s390.c (s390_support_vector_misalignment): Call
22296         default implementation for !TARGET_VX.
22298 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22300         * config/s390/s390.c (s390_legitimate_constant_p): Add
22301         TARGET_VX check.
22303 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22305         * config/s390/s390.c (s390_vector_abi): New variable definition.
22306         (s390_check_type_for_vector_abi): New function.
22307         (TARGET_ASM_FILE_END): New macro definition.
22308         (s390_asm_file_end): New function.
22309         (s390_function_arg): Call s390_check_type_for_vector_abi.
22310         (s390_gimplify_va_arg): Likewise.
22311         * configure: Regenerate.
22312         * configure.ac: Check for .gnu_attribute Binutils feature.
22314 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
22316         PR target/65803
22317         * config/bfin/bfin.c (hwloop_optimize): Initialize
22318         JUMP_LABEL for newly created jump.
22320 2015-06-23  Tristan Gingold  <gingold@adacore.com>
22322         * collect-utils.c (collect_wait): Unlink the response file here
22323         instead of...
22324         (do_wait): ...here.
22325         (utils_cleanup): ...and here.
22327 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
22329         * df-scan.c: Don't include target-def.h.
22330         * targhooks.c: Likewise.
22331         * config/arm/arm-c.c: Likewise.
22332         * config/i386/i386-c.c: Likewise.
22333         * config/nds32/nds32-cost.c: Likewise.
22334         * config/nds32/nds32-fp-as-gp.c: Likewise.
22335         * config/nds32/nds32-intrinsic.c: Likewise.
22336         * config/nds32/nds32-isr.c: Likewise.
22337         * config/nds32/nds32-md-auxiliary.c: Likewise.
22338         * config/nds32/nds32-memory-manipulation.c: Likewise.
22339         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22340         * config/nds32/nds32-predicates.c: Likewise.
22342 2015-06-23  Richard Biener  <rguenther@suse.de>
22344         PR tree-optimization/66636
22345         * tree-vect-stmts.c (vectorizable_store): Properly compute the
22346         def type for further defs for strided stores.
22348 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
22350         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22351         conditional selects.
22352         (setcc_int<mode>, setcc_float<mode>): Reformat.
22354 2015-06-23  Marek Polacek  <polacek@redhat.com>
22356         * match.pd ((x + y) - (x | y) -> x & y,
22357         (x + y) - (x & y) -> x | y): New patterns.
22359 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
22361         PR 65711
22362         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22363         '-dynamic-linker' within %{!shared: ...}.
22365 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
22367         PR target/66560
22368         * config/i386/predicates.md (addsub_vm_operator): New predicate.
22369         (addsub_vs_operator): Ditto.
22370         (addsub_vs_parallel): Ditto.
22371         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22372         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22373         Put minus RTX before plus and adjust vec_merge selector.
22374         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22375         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22376         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22377         (addsub vec_merge splitters): New combiner splitters.
22378         (addsub vec_select/vec_concat splitters): Ditto.
22380 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
22382         PR tree-optimization/66449
22383         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22384         POINTER_PLUS_EXPR for pointers.
22386 2015-06-23  Alan Modra  <amodra@gmail.com>
22388         * rtlanal.c (commutative_operand_precedence): Correct comments.
22389         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22390         declaration.  Return an int.  Distinguish REG,REG return from
22391         others.
22392         (struct simplify_plus_minus_op_data): Make local to function.
22393         (simplify_plus_minus): Don't set canonicalized if merely sorting
22394         registers.  Avoid packing ops if nothing changes.  White space fixes.
22396 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
22398         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22399         -fdump-ada-spec is passed but not if -fsyntax-only is.
22401 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
22403         PR bootstrap/63740
22404         * lra-lives.c (process_bb_lives): Check insn copying the same
22405         reload pseudo and don't create a copy for it.
22407 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22409         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22410         for cond_stmt.
22412 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22414         * builtins.def (DEF_GOMP_BUILTIN): Test
22415         'flag_tree_parallelize_loops > 1' instead of
22416         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
22418 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22420         * dominance.c (calculate_dominance_info): Verify dominators if
22421         early-out.
22423 2015-06-22  Marek Polacek  <polacek@redhat.com>
22425         * match.pd ((x ^ y) ^ (x | y) -> x & y,
22426         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22427         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22428         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22430 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
22432         PR target/65871
22433         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22434         cost of embedded comparison.
22436 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22438         PR target/65914
22439         * config/rs6000/predicates.md (altivec_register_operand): Permit
22440         virtual stack registers.
22441         (vsx_register_operand): Likewise.
22442         (vfloat_operand): Likewise.
22443         (vint_operand): Likewise.
22444         (vlogical_operand): Likewise.
22446 2015-06-22  Richard Biener  <rguenther@suse.de>
22448         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
22449         and single_scalar_iteration_cost members.
22450         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
22451         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
22452         (vect_get_single_scalar_iteration_cost): Remove.
22453         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22454         Use LOOP_VINFO_SCALAR_ITERATION_COST.
22455         * tree-vect-loop.c (destroy_loop_vec_info): Free
22456         scalar_cost_vec.
22457         (vect_get_single_scalar_iteration_cost): Compute result into
22458         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
22459         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
22460         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
22461         (vect_estimate_min_profitable_iters): Use them.
22463 2015-06-22  Christian Bruel  <christian.bruel@st.com>
22465         PR target/52144
22466         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
22467         (TARGET_INSERT_ATTRIBUTES): Define.
22468         (thumb_flipper): New var.
22469         * config/arm/arm.opt (-mflip-thumb): New switch.
22471 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
22472             Martin Liska  <mliska@suse.cz>
22474         PR ipa/65908
22475         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
22476         construction of arg_types.
22477         (sem_function::sem_function): Likewise.
22478         (sem_function::~sem_function): Remove destruction of arg_types.
22479         (sem_function::compatible_parm_types_p): New function.
22480         (sem_function::equals_wpa): Reorg matching of return values
22481         and parameter types.
22482         (sem_function::equals_private): Reorg mathcing of argument types.
22483         (sem_function::parse_tree_args): Remove.
22484         * ipa-icf.h (init_wpa): Do not call it.
22485         (parse_tree_args): Remove.
22486         (compatible_parm_types_p): Declare.
22487         (result_type): Remove.
22488         (arg_types): Remove.
22490 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
22492         PR ipa/66351
22493         * ipa-polymorphic-call.c
22494         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
22495         initializing alias oracle; fix formating; set base_alias_set if it
22496         is known.
22498 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
22500         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
22501         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
22502         (find_inc): Likewise.
22503         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
22504         swapping.
22505         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
22506         * df-scan.c (df_swap_refs): Remove.
22507         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
22508         * dominance.c (link_roots): Use std::swap instead of manually swapping.
22509         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
22510         * fold-const.c (fold_relational_const): Likewise.
22511         * genattrtab.c (simplify_test_exp): Likewise.
22512         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
22513         gimple_simplify): Likewise.
22514         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
22515         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
22516         * ipa-devirt.c (add_type_duplicate): Likewise.
22517         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
22518         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
22519         * lra.c (lra_create_copy): Likewise.
22520         * lto-streamer-out.c (DFS::DFS): Likewise.
22521         * modulo-sched.c (get_sched_window): Likewise.
22522         * omega.c (omega_pretty_print_problem): Likewise.
22523         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
22524         * reload1.c (reloads_unique_chain_p): Likewise.
22525         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
22526         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
22527         use std::swap.
22528         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
22529         manually swapping.
22530         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
22531         predicate_mem_writes): Likewise.
22532         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
22533         * tree-predcom.c (combine_chains): Likewise.
22534         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
22535         refs_may_alias_p_1): Likewise.
22536         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
22537         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22538         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
22539         number_of_iterations_cond): Likewise.
22540         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22541         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
22542         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22543         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
22544         * tree-vrp.c (extract_range_from_binary_expr_1,
22545         extract_range_from_unary_expr_1): Likewise.
22547 2015-06-20  Marek Polacek  <polacek@redhat.com>
22549         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
22551 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22553         PR target/66591
22554         * config/sh/sh.c (prepare_move_operands): Replace subreg
22555         index term with R0 for base and index addressing.
22557 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
22559         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
22560         op1 is an fp zero.
22561         (movsf_aarch64): Change condition from register_operand to
22562         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
22563         load1.  Change type for alternative 7 to store1.
22564         (movdf_aarch64): Likewise.
22566 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
22568         * config/vax/vax.md: Adjust sign/zero extend patterns to
22569         handle SUBREGs in operands[1].
22571 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22573         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
22574         of manually swapping.
22575         (expand_vec_perm_interleave2): Likewise.
22577 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
22579         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
22580         reuse bounds created for abnormal ssa names.
22582 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
22584         * config/nvptx/nvptx.md (allocate_stack): Rename to...
22585         (allocate_stack_<mode>): ... this, and add :P on both
22586         match_operand and unspec.
22587         (allocate_stack): New expander.
22589 2015-06-19  Christian Bruel  <christian.bruel@st.com>
22591         PR target/66541
22592         PR target/52144
22593         * config/arm/arm.c (arm_set_current_function): Handle
22594         explicit default options.
22596 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
22598         * config/i386/i386.md (*movsicc_noc_zext): New insn.
22599         (zero-extended cmove with mem peephole2): New pattern.
22600         (cmove with mem peephole2): Merge patterns.
22602 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
22604         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
22606 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
22608         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
22609         * config/mips/mips.md (*madd4<mode>): Ditto.
22610         (*nmadd3<mode>) Ditto.
22611         (*nmadd4<mode>_fastmath): Ditto.
22612         (*nmadd3<mode>_fastmath): Ditto.
22613         (*nmsub4<mode>): Ditto.
22614         (*nmsub3<mode>): Ditto.
22615         (*nmsub4<mode>_fastmath): Ditto.
22616         (*nmsub3<mode>_fastmath): Ditto.
22618 2015-06-18  Michael Matz  <matz@suse.de>
22620         PR middle-end/66253
22621         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
22622         grouped strided stores.
22623         (vectorizable_load): Don't use the DR from first_stmt in
22624         the non-SLP grouped strided case.
22626 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22628         PR target/66569
22629         * function.c (assign_bounds): Add arguments assign_regs,
22630         assign_special, assign_bt.
22631         (assign_parms): For vararg functions handle bounds in BT
22632         and special slots after incoming vararg bounds.
22634 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22636         PR middle-end/66568
22637         * cfgexpand.c (expand_return): Handle missing bounds.
22638         (expand_gimple_stmt_1): Likewise.
22639         * tree-chkp.c (chkp_expand_zero_bounds): New.
22640         * tree-chkp.h (chkp_expand_zero_bounds): New.
22642 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22644         PR middle-end/66567
22645         * ipa-chkp.c (chkp_maybe_create_clone): Require
22646         functions to be instrumentable.
22647         * tree-chkp.c (chkp_replace_function_pointer): Use
22648         chkp_instrumentable_p instead of attribute check.
22650 2015-06-18  Richard Biener  <rguenther@suse.de>
22652         PR tree-optimization/66510
22653         * tree-vect-stmts.c (vectorizable_load): Properly compute the
22654         number of vector loads for SLP permuted loads.
22655         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
22656         check the stride for loop vectorization.
22657         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
22658         vectorization factor.
22659         (vect_analyze_group_access): If the group size is not a power
22660         of two require a epilogue loop.
22661         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
22662         compute and optimizing and alias test pruning after final
22663         vectorization factor computation.
22664         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
22665         vector alignment.
22666         (vect_transform_slp_perm_load): Properly compute the original
22667         number of vector load stmts.
22669 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
22671         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
22672         "unlikely character , in @var" warning.
22674 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
22676         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
22677         (ix86_function_arg_advance): Ditto.
22678         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
22680 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
22682         * function.h (struct rtl_data): Remove struct and accessor macros.
22683         * emit-rtl.h (struct rtl_data): Relocate to here.
22684         * Makefile.in (GTFILES): Add emit-rtl.h.
22685         * df-core.c: Include emit-rtl.h.
22686         * genattrtab.c: Likewise.
22687         * genconditions.c: Likewise.
22688         * genpreds.c: Likewise.
22689         * genrecog.c: Likewise.
22690         * regcprop.c: Likewise.
22691         * resource.c: Likewise.
22692         * sched-rgn.c: Likewise.
22693         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22694         * config/i386/winnt.c: Likewise.
22696 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
22698         PR middle-end/66429
22699         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
22700         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
22701         and has_force_vectorize_loops flags from cfun into
22702         child_cfun.
22703         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
22704         if simduid is non-NULL.
22705         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
22706         * passes.def (pass_simduid_cleanup): Add new pass after loop
22707         passes.
22708         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
22709         indirection from htab argument's type.
22710         (shrink_simd_arrays): New function.
22711         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
22712         Don't call adjust_simduid_builtins if there are no loops.
22713         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
22714         (pass_simduid_cleanup::execute): New method.
22715         (make_pass_simduid_cleanup): New function.
22717 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
22719         * tree-core.h (tree_target_option): Make opts field a pointer to a
22720         cl_target_option instead of an instance of the struct.
22721         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
22722         the structure.
22723         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
22724         TARGET_OPTION_NODE.
22725         (copy_node_stat): Allocate and copy struct cl_target_option.
22727 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
22729         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
22730         Remove conditional exposure of prototypes.
22731         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
22732         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
22733         definitions in tree.h with functions.
22734         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
22735         anon_aggrname_p.
22736         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
22738 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
22740         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
22741         (*cmp<mode>_signed): ... this.
22742         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
22743         (*cmp<mode>_unsigned): ... this.  Remove %b.
22745 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
22747         * coretypes.h: Include input.h and as-a.h.
22748         * rtl.h: Include input.h and as-a.h for generator files.
22749         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
22750         * vec.c: Don't include diagnostic-core.h.
22751         * alias.c: Do not include input.h, line-map.h or is-a.h.
22752         * asan.c: Likewise.
22753         * attribs.c: Likewise.
22754         * auto-inc-dec.c: Likewise.
22755         * auto-profile.c: Likewise.
22756         * bb-reorder.c: Likewise.
22757         * bt-load.c: Likewise.
22758         * builtins.c: Likewise.
22759         * caller-save.c: Likewise.
22760         * calls.c: Likewise.
22761         * ccmp.c: Likewise.
22762         * cfg.c: Likewise.
22763         * cfganal.c: Likewise.
22764         * cfgbuild.c: Likewise.
22765         * cfgcleanup.c: Likewise.
22766         * cfgexpand.c: Likewise.
22767         * cfghooks.c: Likewise.
22768         * cfgloop.c: Likewise.
22769         * cfgloop.h: Likewise.
22770         * cfgloopanal.c: Likewise.
22771         * cfgloopmanip.c: Likewise.
22772         * cfgrtl.c: Likewise.
22773         * cgraph.c: Likewise.
22774         * cgraphbuild.c: Likewise.
22775         * cgraphclones.c: Likewise.
22776         * cgraphunit.c: Likewise.
22777         * cilk-common.c: Likewise.
22778         * combine-stack-adj.c: Likewise.
22779         * combine.c: Likewise.
22780         * compare-elim.c: Likewise.
22781         * convert.c: Likewise.
22782         * coverage.c: Likewise.
22783         * cppbuiltin.c: Likewise.
22784         * cprop.c: Likewise.
22785         * cse.c: Likewise.
22786         * cselib.c: Likewise.
22787         * data-streamer-in.c: Likewise.
22788         * data-streamer-out.c: Likewise.
22789         * data-streamer.c: Likewise.
22790         * dbxout.c: Likewise.
22791         * dce.c: Likewise.
22792         * ddg.c: Likewise.
22793         * debug.c: Likewise.
22794         * df-core.c: Likewise.
22795         * df-problems.c: Likewise.
22796         * df-scan.c: Likewise.
22797         * df.h: Likewise.
22798         * dfp.c: Likewise.
22799         * diagnostic-core.h: Likewise.
22800         * diagnostic.c: Likewise.
22801         * dojump.c: Likewise.
22802         * dominance.c: Likewise.
22803         * domwalk.c: Likewise.
22804         * double-int.c: Likewise.
22805         * dse.c: Likewise.
22806         * dumpfile.c: Likewise.
22807         * dumpfile.h: Likewise.
22808         * dwarf2asm.c: Likewise.
22809         * dwarf2cfi.c: Likewise.
22810         * dwarf2out.c: Likewise.
22811         * emit-rtl.c: Likewise.
22812         * et-forest.c: Likewise.
22813         * except.c: Likewise.
22814         * explow.c: Likewise.
22815         * expmed.c: Likewise.
22816         * expr.c: Likewise.
22817         * final.c: Likewise.
22818         * fixed-value.c: Likewise.
22819         * fold-const.c: Likewise.
22820         * function.c: Likewise.
22821         * fwprop.c: Likewise.
22822         * gcc-plugin.h: Likewise.
22823         * gcse.c: Likewise.
22824         * generic-match-head.c: Likewise.
22825         * ggc-page.c: Likewise.
22826         * gimple-builder.c: Likewise.
22827         * gimple-expr.c: Likewise.
22828         * gimple-fold.c: Likewise.
22829         * gimple-iterator.c: Likewise.
22830         * gimple-low.c: Likewise.
22831         * gimple-match-head.c: Likewise.
22832         * gimple-pretty-print.c: Likewise.
22833         * gimple-ssa-isolate-paths.c: Likewise.
22834         * gimple-ssa-strength-reduction.c: Likewise.
22835         * gimple-streamer-in.c: Likewise.
22836         * gimple-streamer-out.c: Likewise.
22837         * gimple-streamer.h: Likewise.
22838         * gimple-walk.c: Likewise.
22839         * gimple.c: Likewise.
22840         * gimplify-me.c: Likewise.
22841         * gimplify.c: Likewise.
22842         * godump.c: Likewise.
22843         * graph.c: Likewise.
22844         * graphite-blocking.c: Likewise.
22845         * graphite-dependences.c: Likewise.
22846         * graphite-interchange.c: Likewise.
22847         * graphite-isl-ast-to-gimple.c: Likewise.
22848         * graphite-optimize-isl.c: Likewise.
22849         * graphite-poly.c: Likewise.
22850         * graphite-scop-detection.c: Likewise.
22851         * graphite-sese-to-poly.c: Likewise.
22852         * graphite.c: Likewise.
22853         * haifa-sched.c: Likewise.
22854         * hw-doloop.c: Likewise.
22855         * ifcvt.c: Likewise.
22856         * init-regs.c: Likewise.
22857         * input.c: Likewise.
22858         * internal-fn.c: Likewise.
22859         * ipa-chkp.c: Likewise.
22860         * ipa-comdats.c: Likewise.
22861         * ipa-cp.c: Likewise.
22862         * ipa-devirt.c: Likewise.
22863         * ipa-icf-gimple.c: Likewise.
22864         * ipa-icf.c: Likewise.
22865         * ipa-inline-analysis.c: Likewise.
22866         * ipa-inline-transform.c: Likewise.
22867         * ipa-inline.c: Likewise.
22868         * ipa-polymorphic-call.c: Likewise.
22869         * ipa-profile.c: Likewise.
22870         * ipa-prop.c: Likewise.
22871         * ipa-pure-const.c: Likewise.
22872         * ipa-ref.c: Likewise.
22873         * ipa-reference.c: Likewise.
22874         * ipa-split.c: Likewise.
22875         * ipa-utils.c: Likewise.
22876         * ipa-visibility.c: Likewise.
22877         * ipa.c: Likewise.
22878         * ira-build.c: Likewise.
22879         * ira-color.c: Likewise.
22880         * ira-conflicts.c: Likewise.
22881         * ira-costs.c: Likewise.
22882         * ira-emit.c: Likewise.
22883         * ira-lives.c: Likewise.
22884         * ira.c: Likewise.
22885         * jump.c: Likewise.
22886         * langhooks.c: Likewise.
22887         * lcm.c: Likewise.
22888         * loop-doloop.c: Likewise.
22889         * loop-init.c: Likewise.
22890         * loop-invariant.c: Likewise.
22891         * loop-iv.c: Likewise.
22892         * loop-unroll.c: Likewise.
22893         * lower-subreg.c: Likewise.
22894         * lra-assigns.c: Likewise.
22895         * lra-coalesce.c: Likewise.
22896         * lra-constraints.c: Likewise.
22897         * lra-eliminations.c: Likewise.
22898         * lra-lives.c: Likewise.
22899         * lra-remat.c: Likewise.
22900         * lra-spills.c: Likewise.
22901         * lra.c: Likewise.
22902         * lto-cgraph.c: Likewise.
22903         * lto-compress.c: Likewise.
22904         * lto-opts.c: Likewise.
22905         * lto-section-in.c: Likewise.
22906         * lto-section-out.c: Likewise.
22907         * lto-streamer-in.c: Likewise.
22908         * lto-streamer-out.c: Likewise.
22909         * lto-streamer.c: Likewise.
22910         * mcf.c: Likewise.
22911         * mode-switching.c: Likewise.
22912         * modulo-sched.c: Likewise.
22913         * omega.c: Likewise.
22914         * omp-low.c: Likewise.
22915         * optabs.c: Likewise.
22916         * opts-global.c: Likewise.
22917         * opts.h: Likewise.
22918         * passes.c: Likewise.
22919         * plugin.c: Likewise.
22920         * postreload-gcse.c: Likewise.
22921         * postreload.c: Likewise.
22922         * predict.c: Likewise.
22923         * pretty-print.h: Likewise.
22924         * print-rtl.c: Likewise.
22925         * print-tree.c: Likewise.
22926         * profile.c: Likewise.
22927         * real.c: Likewise.
22928         * realmpfr.c: Likewise.
22929         * recog.c: Likewise.
22930         * ree.c: Likewise.
22931         * reg-stack.c: Likewise.
22932         * regcprop.c: Likewise.
22933         * reginfo.c: Likewise.
22934         * regrename.c: Likewise.
22935         * regstat.c: Likewise.
22936         * reload.c: Likewise.
22937         * reload1.c: Likewise.
22938         * reorg.c: Likewise.
22939         * resource.c: Likewise.
22940         * rtl-chkp.c: Likewise.
22941         * rtl-error.c: Likewise.
22942         * rtlanal.c: Likewise.
22943         * rtlhooks.c: Likewise.
22944         * sanopt.c: Likewise.
22945         * sched-deps.c: Likewise.
22946         * sched-ebb.c: Likewise.
22947         * sched-rgn.c: Likewise.
22948         * sched-vis.c: Likewise.
22949         * sdbout.c: Likewise.
22950         * sel-sched-dump.c: Likewise.
22951         * sel-sched-ir.c: Likewise.
22952         * sel-sched.c: Likewise.
22953         * sese.c: Likewise.
22954         * shrink-wrap.c: Likewise.
22955         * simplify-rtx.c: Likewise.
22956         * stack-ptr-mod.c: Likewise.
22957         * statistics.c: Likewise.
22958         * stmt.c: Likewise.
22959         * stor-layout.c: Likewise.
22960         * store-motion.c: Likewise.
22961         * streamer-hooks.c: Likewise.
22962         * stringpool.c: Likewise.
22963         * symtab.c: Likewise.
22964         * target-globals.c: Likewise.
22965         * targhooks.c: Likewise.
22966         * toplev.c: Likewise.
22967         * tracer.c: Likewise.
22968         * trans-mem.c: Likewise.
22969         * tree-affine.c: Likewise.
22970         * tree-browser.c: Likewise.
22971         * tree-call-cdce.c: Likewise.
22972         * tree-cfg.c: Likewise.
22973         * tree-cfgcleanup.c: Likewise.
22974         * tree-chkp-opt.c: Likewise.
22975         * tree-chkp.c: Likewise.
22976         * tree-chrec.c: Likewise.
22977         * tree-complex.c: Likewise.
22978         * tree-data-ref.c: Likewise.
22979         * tree-dfa.c: Likewise.
22980         * tree-diagnostic.c: Likewise.
22981         * tree-dump.c: Likewise.
22982         * tree-eh.c: Likewise.
22983         * tree-emutls.c: Likewise.
22984         * tree-if-conv.c: Likewise.
22985         * tree-inline.c: Likewise.
22986         * tree-into-ssa.c: Likewise.
22987         * tree-iterator.c: Likewise.
22988         * tree-loop-distribution.c: Likewise.
22989         * tree-nested.c: Likewise.
22990         * tree-nrv.c: Likewise.
22991         * tree-object-size.c: Likewise.
22992         * tree-outof-ssa.c: Likewise.
22993         * tree-parloops.c: Likewise.
22994         * tree-phinodes.c: Likewise.
22995         * tree-predcom.c: Likewise.
22996         * tree-pretty-print.c: Likewise.
22997         * tree-profile.c: Likewise.
22998         * tree-scalar-evolution.c: Likewise.
22999         * tree-sra.c: Likewise.
23000         * tree-ssa-address.c: Likewise.
23001         * tree-ssa-alias.c: Likewise.
23002         * tree-ssa-ccp.c: Likewise.
23003         * tree-ssa-coalesce.c: Likewise.
23004         * tree-ssa-copy.c: Likewise.
23005         * tree-ssa-copyrename.c: Likewise.
23006         * tree-ssa-dce.c: Likewise.
23007         * tree-ssa-dom.c: Likewise.
23008         * tree-ssa-dse.c: Likewise.
23009         * tree-ssa-forwprop.c: Likewise.
23010         * tree-ssa-ifcombine.c: Likewise.
23011         * tree-ssa-live.c: Likewise.
23012         * tree-ssa-loop-ch.c: Likewise.
23013         * tree-ssa-loop-im.c: Likewise.
23014         * tree-ssa-loop-ivcanon.c: Likewise.
23015         * tree-ssa-loop-ivopts.c: Likewise.
23016         * tree-ssa-loop-manip.c: Likewise.
23017         * tree-ssa-loop-niter.c: Likewise.
23018         * tree-ssa-loop-prefetch.c: Likewise.
23019         * tree-ssa-loop-unswitch.c: Likewise.
23020         * tree-ssa-loop.c: Likewise.
23021         * tree-ssa-math-opts.c: Likewise.
23022         * tree-ssa-operands.c: Likewise.
23023         * tree-ssa-phiopt.c: Likewise.
23024         * tree-ssa-phiprop.c: Likewise.
23025         * tree-ssa-pre.c: Likewise.
23026         * tree-ssa-propagate.c: Likewise.
23027         * tree-ssa-reassoc.c: Likewise.
23028         * tree-ssa-sccvn.c: Likewise.
23029         * tree-ssa-scopedtables.c: Likewise.
23030         * tree-ssa-sink.c: Likewise.
23031         * tree-ssa-strlen.c: Likewise.
23032         * tree-ssa-structalias.c: Likewise.
23033         * tree-ssa-tail-merge.c: Likewise.
23034         * tree-ssa-ter.c: Likewise.
23035         * tree-ssa-threadedge.c: Likewise.
23036         * tree-ssa-threadupdate.c: Likewise.
23037         * tree-ssa-uncprop.c: Likewise.
23038         * tree-ssa-uninit.c: Likewise.
23039         * tree-ssa.c: Likewise.
23040         * tree-ssanames.c: Likewise.
23041         * tree-stdarg.c: Likewise.
23042         * tree-streamer-in.c: Likewise.
23043         * tree-streamer-out.c: Likewise.
23044         * tree-streamer.c: Likewise.
23045         * tree-switch-conversion.c: Likewise.
23046         * tree-tailcall.c: Likewise.
23047         * tree-vect-data-refs.c: Likewise.
23048         * tree-vect-generic.c: Likewise.
23049         * tree-vect-loop-manip.c: Likewise.
23050         * tree-vect-loop.c: Likewise.
23051         * tree-vect-patterns.c: Likewise.
23052         * tree-vect-slp.c: Likewise.
23053         * tree-vect-stmts.c: Likewise.
23054         * tree-vectorizer.c: Likewise.
23055         * tree-vrp.c: Likewise.
23056         * tree.c: Likewise.
23057         * tsan.c: Likewise.
23058         * ubsan.c: Likewise.
23059         * valtrack.c: Likewise.
23060         * value-prof.c: Likewise.
23061         * var-tracking.c: Likewise.
23062         * varasm.c: Likewise.
23063         * varpool.c: Likewise.
23064         * vmsdbgout.c: Likewise.
23065         * vtable-verify.c: Likewise.
23066         * web.c: Likewise.
23067         * wide-int.cc: Likewise.
23068         * xcoffout.c: Likewise.
23069         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23070         * common/common-targhooks.c: Likewise.
23071         * config/aarch64/aarch64-builtins.c: Likewise.
23072         * config/aarch64/aarch64.c: Likewise.
23073         * config/alpha/alpha.c: Likewise.
23074         * config/arc/arc.c: Likewise.
23075         * config/arm/aarch-common.c: Likewise.
23076         * config/arm/arm-builtins.c: Likewise.
23077         * config/arm/arm-c.c: Likewise.
23078         * config/arm/arm.c: Likewise.
23079         * config/avr/avr-c.c: Likewise.
23080         * config/avr/avr-log.c: Likewise.
23081         * config/avr/avr.c: Likewise.
23082         * config/bfin/bfin.c: Likewise.
23083         * config/c6x/c6x.c: Likewise.
23084         * config/cr16/cr16.c: Likewise.
23085         * config/cris/cris.c: Likewise.
23086         * config/darwin-c.c: Likewise.
23087         * config/darwin.c: Likewise.
23088         * config/default-c.c: Likewise.
23089         * config/epiphany/epiphany.c: Likewise.
23090         * config/epiphany/mode-switch-use.c: Likewise.
23091         * config/epiphany/resolve-sw-modes.c: Likewise.
23092         * config/fr30/fr30.c: Likewise.
23093         * config/frv/frv.c: Likewise.
23094         * config/ft32/ft32.c: Likewise.
23095         * config/glibc-c.c: Likewise.
23096         * config/h8300/h8300.c: Likewise.
23097         * config/i386/i386-c.c: Likewise.
23098         * config/i386/i386.c: Likewise.
23099         * config/i386/msformat-c.c: Likewise.
23100         * config/i386/winnt-cxx.c: Likewise.
23101         * config/i386/winnt-stubs.c: Likewise.
23102         * config/i386/winnt.c: Likewise.
23103         * config/ia64/ia64-c.c: Likewise.
23104         * config/ia64/ia64.c: Likewise.
23105         * config/iq2000/iq2000.c: Likewise.
23106         * config/lm32/lm32.c: Likewise.
23107         * config/m32c/m32c-pragma.c: Likewise.
23108         * config/m32c/m32c.c: Likewise.
23109         * config/m32r/m32r.c: Likewise.
23110         * config/m68k/m68k.c: Likewise.
23111         * config/mcore/mcore.c: Likewise.
23112         * config/mep/mep-pragma.c: Likewise.
23113         * config/mep/mep.c: Likewise.
23114         * config/microblaze/microblaze-c.c: Likewise.
23115         * config/microblaze/microblaze.c: Likewise.
23116         * config/mips/mips.c: Likewise.
23117         * config/mmix/mmix.c: Likewise.
23118         * config/mn10300/mn10300.c: Likewise.
23119         * config/moxie/moxie.c: Likewise.
23120         * config/msp430/msp430-c.c: Likewise.
23121         * config/msp430/msp430.c: Likewise.
23122         * config/nds32/nds32-cost.c: Likewise.
23123         * config/nds32/nds32-fp-as-gp.c: Likewise.
23124         * config/nds32/nds32-intrinsic.c: Likewise.
23125         * config/nds32/nds32-isr.c: Likewise.
23126         * config/nds32/nds32-md-auxiliary.c: Likewise.
23127         * config/nds32/nds32-memory-manipulation.c: Likewise.
23128         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23129         * config/nds32/nds32-predicates.c: Likewise.
23130         * config/nds32/nds32.c: Likewise.
23131         * config/nios2/nios2.c: Likewise.
23132         * config/nvptx/nvptx.c: Likewise.
23133         * config/pa/pa.c: Likewise.
23134         * config/pdp11/pdp11.c: Likewise.
23135         * config/rl78/rl78-c.c: Likewise.
23136         * config/rl78/rl78.c: Likewise.
23137         * config/rs6000/rs6000-c.c: Likewise.
23138         * config/rs6000/rs6000.c: Likewise.
23139         * config/rx/rx.c: Likewise.
23140         * config/s390/s390-c.c: Likewise.
23141         * config/s390/s390.c: Likewise.
23142         * config/sh/sh-c.c: Likewise.
23143         * config/sh/sh-mem.cc: Likewise.
23144         * config/sh/sh.c: Likewise.
23145         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23146         * config/sh/sh_treg_combine.cc: Likewise.
23147         * config/sol2-c.c: Likewise.
23148         * config/sol2-cxx.c: Likewise.
23149         * config/sol2-stubs.c: Likewise.
23150         * config/sol2.c: Likewise.
23151         * config/sparc/sparc-c.c: Likewise.
23152         * config/sparc/sparc.c: Likewise.
23153         * config/spu/spu-c.c: Likewise.
23154         * config/spu/spu.c: Likewise.
23155         * config/stormy16/stormy16.c: Likewise.
23156         * config/tilegx/mul-tables.c: Likewise.
23157         * config/tilegx/tilegx-c.c: Likewise.
23158         * config/tilegx/tilegx.c: Likewise.
23159         * config/tilepro/mul-tables.c: Likewise.
23160         * config/tilepro/tilepro-c.c: Likewise.
23161         * config/tilepro/tilepro.c: Likewise.
23162         * config/v850/v850-c.c: Likewise.
23163         * config/v850/v850.c: Likewise.
23164         * config/vax/vax.c: Likewise.
23165         * config/visium/visium.c: Likewise.
23166         * config/vms/vms-c.c: Likewise.
23167         * config/vms/vms.c: Likewise.
23168         * config/vxworks.c: Likewise.
23169         * config/winnt-c.c: Likewise.
23170         * config/xtensa/xtensa.c: Likewise.
23172 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
23174         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23175         function.
23176         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23178 2015-06-17  Richard Biener  <rguenther@suse.de>
23180         PR tree-optimization/66251
23181         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23182         stmts for SLP strided stores.
23184         Revert
23185         2015-05-22  Richard Biener  <rguenther@suse.de>
23187         PR tree-optimization/66251
23188         * tree-vect-stmts.c (vectorizable_conversion): Properly
23189         set STMT_VINFO_VEC_STMT even for the SLP case.
23191         2015-05-26  Michael Matz  <matz@suse.de>
23193         PR middle-end/66251
23194         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23195         STMT_VINFO_VEC_STMT, also with SLP.
23197 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
23199         PR target/56766
23200         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23201         (*avx_addsubv4df3_1s): Ditto.
23202         (*sse3_addsubv2df3_1): Ditto.
23203         (*sse3_addsubv2df3_1s): Ditto.
23204         (*avx_addsubv8sf3_1): Ditto.
23205         (*avx_addsubv8sf3_1s): Ditto.
23206         (*sse3_addsubv4sf3_1): Ditto.
23207         (*sse3_addsubv4sf3_1s): Ditto.
23209 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
23211         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23212         (SYSROOT_SUFFIX_SPEC): Update.
23213         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23214         (STARTFILE_PREFIX_SPEC): Update.
23215         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23216         (MULTILIB_REQUIRED): New.
23217         (MULTILIB_OSDIRNAMES): New.
23218         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23219         (MULTILIB_REQUIRED): New.
23220         (MULTILIB_OSDIRNAMES): New.
23222 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
23224         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23225         * config/aarch64/aarch64-options-extensions.def: Update "fP",
23226         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
23227         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23228         (AARCH64_FL_PAN): New.
23229         (AARCH64_FL_LOR): New.
23230         (AARCH64_FL_RDMA): New.
23231         (AARCH64_FL_FOR_ARCH8_1): New.
23232         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23233         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23235 2015-06-16  Martin Liska  <mliska@suse.cz>
23237         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23238         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23239         guard.
23241 2015-06-16  Richard Biener  <rguenther@suse.de>
23243         * tree-vect-stmts.c (vectorizable_store): Adjust.
23244         (vectorizable_load): Likewise.
23245         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23246         Simplify.
23247         (vect_create_data_ref_ptr): Likewise.
23248         (bump_vector_ptr): Adjust.
23250 2015-06-16  Richard Biener  <rguenther@suse.de>
23252         * tree-vect-stmts.c (vectorizable_load): Properly start loads
23253         with the first element if this is grouped loads.
23255 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
23257         * config/arm/arm-protos.h (struct tune_params): Rename
23258         log_op_non_sc to log_op_non_short_circuit, and rename enum
23259         values to expand SC to SHORT_CIRCUIT.
23260         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23261         to LOG_OP_NON_SHORT_CIRCUIT.
23262         (arm_fastmul_tune):Likewise
23263         (arm_strongarm_tune): Likewise.
23264         (arm_xscale_tune): Likewise.
23265         (arm_9e_tune): Likewise.
23266         (arm_marvell_pj4_tune): Likewise.
23267         (arm_v6t2_tune): Likewise.
23268         (arm_cortex_tune): Likewise.
23269         (arm_cortex_a8_tune): Likewise.
23270         (arm_cortex_a7_tune): Likewise.
23271         (arm_cortex_a15_tune): Likewise.
23272         (arm_cortex_a53_tune): Likewise.
23273         (arm_cortex_a57_tune): Likewise.
23274         (arm_xgene1_tune): Likewise.
23275         (arm_cortex_a5_tune): Likewise.
23276         (arm_cortex_a9_tune): Likewise.
23277         (arm_cortex_a12_tune): Likewise.
23278         (arm_v7m_tune): Likewise.
23279         (arm_cortex_m7_tune): Likewise.
23280         (arm_v6m_tune): Likewise.
23281         (arm_fa726te_tune): Likewise.
23283 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
23285         * altivec.md: Delete UNSPEC_VMLADDUHM.
23286         (mulv4si3_p8): New pattern.
23287         (mulv4si3): Use it for POWER8.
23288         (mulv8hi3): Use vmladduhm with zero addend.
23289         (altivec_vmladduhm): Descriptive RTL.
23291 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
23293         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23294         to use neon_move instead of mov_imm.
23295         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23296         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23298         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23299         aarch64_float_const_zero_rtx_p check before TFmode check.
23300         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23301         an fp zero.
23302         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
23303         code and attributes to match.  Change condition from register_operand
23304         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
23305         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
23306         to store2.
23308 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
23310         PR debug/66535
23311         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23312         there is no parent.
23314 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
23316         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23317         HOST_WIDE_INT parameter.
23319 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
23321         PR ipa/66181
23322         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23323         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23324         TYPE_NO_FORCE_BLK.
23325         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23327 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
23329         * rtl.h (classify_insn): Declare.
23330         * emit-rtl.c (classify_insn): Move to...
23331         * rtl.c: ...here and add generator support.
23332         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23333         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23334         * genemit.c (gen_emit_seq): New function.
23335         (gen_expand, gen_split): Use it.
23337 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
23339         * tree.c (make_vector_stat): Fix comment to state that the
23340         function returns a VECTOR_CST.
23342 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
23344         * gensupport.h (add_implicit_parallel): Declare.
23345         * genrecog.c (add_implicit_parallel): Move to...
23346         * gensupport.c (add_implicit_parallel): ...here.
23347         (process_one_cond_exec): Use it.
23348         * genemit.c (gen_insn): Likewise.
23350 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
23352         PR bootstrap/66448
23353         * passes.c (rest_of_decl_compilation): Do not register globals for
23354         early debug if they are declared in built-ins.
23356 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
23358         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23360 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23362         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23363         manually swapping.
23364         (noce_try_cmove_arith): Likewise.
23365         (noce_get_alt_condition): Likewise.
23367 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23369         * common/config/i386/i386-common.c
23370         (OPTION_MASK_ISA_MWAITX_SET): New.
23371         (ix86_handle_option): Handle mwaitx.
23372         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23373         (x86_64-*-*): Likewise.
23374         * config/i386/mwaitxintrin.h: New header.
23375         * config/i386/cpuid.h (bit_MWAITX):  Define.
23376         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23377         MWAITX support.
23378         * config/i386/i386.opt (mwaitx): New.
23379         * config/i386/i386-builtin-types.def
23380         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23381         * config/i386/i386-c.c: Define __MWAITX__ if needed.
23382         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23383         (PTA_MWAITX): New.
23384         (ix86_option_override_internal): Handle new option.
23385         (processor_alias_table): Added PTA_MWAITX.
23386         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23387         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23388         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23389         IX86_BUILTIN_MONITORX  built-ins.
23390         * config/i386/i386.h (TARGET_MWAITX): New.
23391         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23392         UNSPEC_MONITORX.
23393         (mwaitx):  New pattern.
23394         (monitorx_<mode>): New pattern.
23395         * config/i386/x86intrin.h: Include mwaitxintrin.h.
23396         * doc/extend.texi: Document monitorx and mwaitx builtins.
23397         * doc/invoke.texi: Document -mmwaitx option.
23399 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
23401         * emit-rtl.c (need_atomic_barrier_p): Mask model with
23402         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
23404 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
23406         * dbxout.c (xcoff_debug_hooks): Provide a function for
23407         register_main_translation_unit hook.
23409 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
23411         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23412         variants cases from switch.
23413         (rs6000_post_atomic_barrier): Same.
23414         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23415         (rs6000_expand_atomic_exchange): Same.
23416         (rs6000_expand_atomic_op): Same.
23417         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23418         SYNC variants cases from switch.
23419         (atomic_load): Same.
23420         (atomic_store): Same.
23422 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
23424         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23425         CONST_INT for goto.
23427 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
23429         PR bootstrap/66448
23430         * dwarf2out.c (check_die): Check for common duplicate attributes.
23431         (add_location_or_const_value_attribute): Do not add duplicate
23432         attributes.
23433         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23434         time around.
23435         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23436         (gen_type_die_with_usage): Call check_die.
23437         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23439 2015-06-11  Jason Merrill  <jason@redhat.com>
23441         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
23442         dies.
23444 2015-06-11  Marek Polacek  <polacek@redhat.com>
23446         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
23448 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
23450         PR bootstrap/66252
23451         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
23452         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
23453         (*addx_extend_sp32): Fix pasto.
23454         (*subx_extend): Rename into...
23455         (*subx_extend_sp32): ...this.
23456         (*adddi3_extend_sp32): Add earlyclobber.
23457         (*subdi3_insn_sp32): Likewise.
23458         (*subdi3_extend_sp32): Likewise.
23459         (*and_not_di_sp32): Likewise.
23460         (*or_not_di_sp32): Likewise.
23461         (*xor_not_di_sp32): Likewise.
23462         (*negdi2_sp32): Likewise.
23463         (*one_cmpldi2_sp32): Likewise.
23465 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
23467         * debug.h (struct gcc_debug_hooks): Add a
23468         register_main_translation_unit hook.
23469         * debug.c (do_nothing_debug_hooks): Provide a function for this
23470         new hook.
23471         * dbxout.c (dbx_debug_hooks): Likewise.
23472         * sdbout.c (sdb_debug_hooks): Likewise.
23473         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23474         * dwarf2out.c (main_translation_unit): New global variable.
23475         (dwarf2out_register_main_translation_unit): New function
23476         implementing the new hook.
23477         (dwarf2_debug_hooks): Assign
23478         dwarf2out_register_main_translation_unit to this new hook.
23479         (dwarf2out_init): Associate any main translation unit to
23480         comp_unit_die ().
23482 2015-06-11  Marek Polacek  <polacek@redhat.com>
23484         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
23486 2015-06-11  Marek Polacek  <polacek@redhat.com>
23488         * match.pd: Use single_use throughout.
23490 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23492         * config/arm/arm.c (arm_option_params_internal): When optimising
23493         for speed set max_insns_skipped when arm_restrict_it.
23495 2015-06-11  Christian Bruel  <christian.bruel@st.com>
23497         PR target/52144
23498         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
23499          macros in ...
23500         (arm_cpu_builtins): New function.
23501         (arm_pragma_target_parse): Call arm_cpu_builtins.
23502         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
23503         (arm_register_target_pragmas): Likewise.
23504         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
23505          Call arm_register_target_pragmas.
23506         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
23507         (arm_pragma_target_parse): Likewise.
23509 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
23511         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
23512         of the second operand.
23514 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
23516         PR target/66473
23517         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
23518         to prepare mask operand for AVX512 modes.
23520 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23522         PR target/66474
23523         * doc/md.texi (Machine Constraints): Document that on the PowerPC
23524         if you use a constraint that targets a VSX register, you must use
23525         %x<n> in the template.
23527 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
23529         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
23530         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
23531         (define_insn "trap"): New definition.
23533 2015-06-10  Richard Biener  <rguenther@suse.de>
23535         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
23536         out from ...
23537         (vect_supported_load_permutation_p): ... here.  Handle
23538         supportable permutations in reductions.
23539         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
23540         for vectorizing strided group loads.
23542 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
23544         PR target/66470
23545         * config/i386/i386.c (ix86_split_long_move): For collisions
23546         involving direct tls segment refs, move the UNSPEC_TP possibly
23547         wrapped in ZERO_EXTEND out of the address for lea, to each of
23548         the memory loads.
23550 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23552         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
23553         dmb sy. Adjust tabs.
23555 2015-06-10  Tom de Vries  <tom@codesourcery.com>
23557         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
23559 2015-06-10  Martin Liska  <mliska@suse.cz>
23561         PR bootstrap/66471
23562         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
23563         all enum values in mem_alloc_origin.
23564         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
23565         name.
23566         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
23567         * bitmap.c (bitmap_register): Likewise.
23568         (dump_bitmap_statistics): Likewise.
23569         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
23570         (ggc_record_overhead): Likewise.
23571         * hash-map.h: Likewise.
23572         * hash-set.h: Likewise.
23573         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
23574         * hash-table.h: Likewise.
23575         * vec.c (vec_prefix::register_overhead): Likewise.
23576         (vec_prefix::release_overhead): Likewise.
23577         (dump_vec_loc_statistics): Likewise.
23579 2015-06-09  Christian Bruel  <christian.bruel@st.com>
23581         PR target/52144
23582         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
23583         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
23584         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
23585         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
23586         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
23587         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
23588         (arm_valid_target_attribute_p): Likewise.
23589         (arm_set_current_function, arm_can_inline_p): Likewise.
23590         (arm_valid_target_attribute_rec): Likewise.
23591         (arm_previous_fndecl): New variable.
23592         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
23593         (TARGET_CAN_INLINE_P): Define.
23594         (arm_asm_trampoline_template): Emit mode.
23595         (arm_file_start): Don't set unified syntax.
23596         (arm_declare_function_name): Set unified syntax and mode.
23597         (arm_option_override): Init target_option_default_node.
23598         and target_option_current_node.
23599         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
23600         (*call_symbol): Likewise.
23601         * doc/extend.texi: Document ARM/Thumb target attribute.
23602         * doc/invoke.texi: Likewise.
23604 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23606         Revert:
23607         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23608         PR rtl-optimization/64164
23609         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23610         * tree-ssa-copyrename.c: Removed.
23611         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
23612         -ftree-coalesce-vars.
23613         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23614         * common.opt (ftree-copyrename): Ignore.
23615         (ftree-coalesce-inlined-vars): Likewise.
23616         * doc/invoke.texi: Remove the ignored options above.
23617         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23618         * tree-ssa-coalesce.h: ... here.
23619         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23620         headers required by it.
23621         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23622         across variables when flag_tree_coalesce_vars.  Check register
23623         use and promoted modes to allow coalescing.  Moved to
23624         tree-ssa-coalesce.c.
23625         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23626         with its member functions to tree-ssa-coalesce.c.
23627         (var_map_base_init): Likewise.  Renamed to
23628         compute_samebase_partition_bases.
23629         (partition_view_normal): Drop want_bases parameter.
23630         (partition_view_bitmap): Likewise.
23631         * tree-ssa-live.h: Adjust declarations.
23632         * tree-ssa-coalesce.c: Include explow.h.
23633         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23634         default defs at the entry point.
23635         (dump_part_var_map): New.
23636         (compute_optimized_partition_bases): New, called by...
23637         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23638         of compute_samebase_partition_bases.  Adjust.
23639         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23640         * cfgexpand.c (leader_merge): New.
23641         (get_rtl_for_parm_ssa_default_def): New.
23642         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23643         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23644         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
23645         redundant MEM attr setting.
23646         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
23647         from...
23648         (expand_one_stack_var): ... this.  New wrapper to check and
23649         skip already expanded SSA partitions.
23650         (record_alignment_for_reg_var): New, factored out of...
23651         (expand_one_var): ... this.
23652         (expand_one_ssa_partition): New.
23653         (adjust_one_expanded_partition_var): New.
23654         (expand_one_register_var): Check and skip already expanded SSA
23655         partitions.
23656         (expand_used_vars): Don't create DECLs for anonymous SSA
23657         names.  Expand all SSA partitions, then adjust all SSA names.
23658         (pass::execute): Replace the loops that set
23659         SA.partition_to_pseudo from partition leaders and cleared
23660         DECL_RTL for multi-location variables, and that which used to
23661         rename vars and set attrs, with one that clears DECL_RTL and
23662         checks that PARMs and RESULTs default_defs match DECL_RTL.
23663         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23664         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23665         * explow.c (promote_ssa_mode): New.
23666         * explow.h (promote_ssa_mode): Declare.
23667         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23668         * function.c: Include cfgexpand.h.
23669         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23670         (use_register_for_parm_decl): Wrapper for the above to
23671         special-case the result_ptr.
23672         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23673         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23674         multiple locations.
23675         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23676         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
23677         (assign_parm_setup_block): Prefer SSA-assigned location.
23678         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
23679         if stack_parm is NULL.
23680         (assign_parm_setup_stack): Prefer SSA-assigned location.
23681         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
23682         rtl before testing for pointer bounds.  Special-case result_ptr.
23683         (expand_function_start): Maybe reset DECL_RTL of result.
23684         Prefer SSA-assigned location for result and static chain.
23685         Factor out DECL_RESULT and SET_DECL_RTL.
23686         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23687         anonymous SSA names.  Use promote_ssa_mode.
23688         (get_temp_reg): Likewise.
23689         (remove_ssa_form): Adjust.
23690         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23691         and get its reg_usage for reg invalidation.
23692         (compute_bb_dataflow): Pass it insn.
23693         (emit_notes_in_bb): Likewise.
23694         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23695         fail assert on conversion between unsigned types.
23697 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23699         PR tree-optimization/65460
23700         * omp-low.c (expand_omp_target): Set parallelized_function on
23701         cgraph_node for child_fn.
23703 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23705         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
23706         parallelized_function before add_new_function.
23708 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
23710         * gcc-plugin.h: Move decls to plugin.h and include it.
23711         * plugin.h: Relocate decls from gcc-plugin.h
23712         * ggc-page.c: Include required header files.
23713         * passes.c: Likewise.
23714         * cgraphunit.c: Likewise.
23716 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23718         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
23720 2015-06-09  Jason Merrill  <jason@redhat.com>
23722         PR bootstrap/66448
23723         * toplev.c (check_global_declaration): Don't warn about a clone.
23725 2015-06-09  Marek Polacek  <polacek@redhat.com>
23727         PR tree-optimization/66299
23728         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
23729         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
23730         patterns.
23732 2015-06-09  Richard Biener  <rguenther@suse.de>
23734         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
23735         (vect_analyze_slp_instance): Instead do not falsely drop
23736         load permutations.
23738 2015-06-09  Richard Biener  <rguenther@suse.de>
23740         PR middle-end/66423
23741         * match.pd: Handle A % (unsigned)(1 << B).
23743 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
23745         * varasm.c (output_object_block_htab): Remove.
23746         (output_object_block_compare): New.
23747         (output_object_blocks): Sort named object_blocks before outputting
23748         them.
23750 2015-06-09  Richard Biener  <rguenther@suse.de>
23752         PR tree-optimization/66419
23753         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
23754         consider GROUP_GAP when detecting a perfect subchain.
23756 2015-06-09  Nick Clifton  <nickc@redhat.com>
23758         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
23759         place read only data in the .frodata section.
23761 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
23763         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
23764         (atomic_store<mode>): Likewise.
23766 2015-06-09  Richard Biener  <rguenther@suse.de>
23768         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
23770 2015-06-09  Richard Biener  <rguenther@suse.de>
23772         PR middle-end/66413
23773         * tree-inline.c (insert_init_debug_bind): Unshare value.
23775 2015-06-09  Richard Biener  <rguenther@suse.de>
23777         PR tree-optimization/66396
23778         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
23779         Rename virtual operands.
23781 2015-06-09  Tom de Vries  <tom@codesourcery.com>
23783         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
23784         always return false.
23786 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23788         PR rtl-optimization/64164
23789         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
23790         * tree-ssa-copyrename.c: Removed.
23791         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
23792         -ftree-coalesce-vars.
23793         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
23794         * common.opt (ftree-copyrename): Ignore.
23795         (ftree-coalesce-inlined-vars): Likewise.
23796         * doc/invoke.texi: Remove the ignored options above.
23797         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
23798         * tree-ssa-coalesce.h: ... here.
23799         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
23800         headers required by it.
23801         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
23802         across variables when flag_tree_coalesce_vars.  Check register
23803         use and promoted modes to allow coalescing.  Moved to
23804         tree-ssa-coalesce.c.
23805         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
23806         with its member functions to tree-ssa-coalesce.c.
23807         (var_map_base_init): Likewise.  Renamed to
23808         compute_samebase_partition_bases.
23809         (partition_view_normal): Drop want_bases parameter.
23810         (partition_view_bitmap): Likewise.
23811         * tree-ssa-live.h: Adjust declarations.
23812         * tree-ssa-coalesce.c: Include explow.h.
23813         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
23814         default defs at the entry point.
23815         (dump_part_var_map): New.
23816         (compute_optimized_partition_bases): New, called by...
23817         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
23818         of compute_samebase_partition_bases.  Adjust.
23819         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
23820         * cfgexpand.c (leader_merge): New.
23821         (get_rtl_for_parm_ssa_default_def): New.
23822         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
23823         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
23824         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
23825         redundant MEM attr setting.
23826         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
23827         from...
23828         (expand_one_stack_var): ... this.  New wrapper to check and
23829         skip already expanded SSA partitions.
23830         (record_alignment_for_reg_var): New, factored out of...
23831         (expand_one_var): ... this.
23832         (expand_one_ssa_partition): New.
23833         (adjust_one_expanded_partition_var): New.
23834         (expand_one_register_var): Check and skip already expanded SSA
23835         partitions.
23836         (expand_used_vars): Don't create DECLs for anonymous SSA
23837         names.  Expand all SSA partitions, then adjust all SSA names.
23838         (pass::execute): Replace the loops that set
23839         SA.partition_to_pseudo from partition leaders and cleared
23840         DECL_RTL for multi-location variables, and that which used to
23841         rename vars and set attrs, with one that clears DECL_RTL and
23842         checks that PARMs and RESULTs default_defs match DECL_RTL.
23843         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
23844         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
23845         * explow.c (promote_ssa_mode): New.
23846         * explow.h (promote_ssa_mode): Declare.
23847         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
23848         * function.c: Include cfgexpand.h.
23849         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
23850         (use_register_for_parm_decl): Wrapper for the above to
23851         special-case the result_ptr.
23852         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
23853         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
23854         multiple locations.
23855         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
23856         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
23857         (assign_parm_setup_block): Prefer SSA-assigned location.
23858         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
23859         if stack_parm is NULL.
23860         (assign_parm_setup_stack): Prefer SSA-assigned location.
23861         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
23862         rtl before testing for pointer bounds.  Special-case result_ptr.
23863         (expand_function_start): Maybe reset DECL_RTL of result.
23864         Prefer SSA-assigned location for result and static chain.
23865         Factor out DECL_RESULT and SET_DECL_RTL.
23866         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
23867         anonymous SSA names.  Use promote_ssa_mode.
23868         (get_temp_reg): Likewise.
23869         (remove_ssa_form): Adjust.
23870         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
23871         and get its reg_usage for reg invalidation.
23872         (compute_bb_dataflow): Pass it insn.
23873         (emit_notes_in_bb): Likewise.
23874         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
23875         fail assert on conversion between unsigned types.
23877 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
23879         PR debug/58315
23880         * tree-inline.c (reset_debug_binding): New.
23881         (reset_debug_bindings): Likewise.
23882         (expand_call_inline): Call it.
23884 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23886         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
23887         TYPE_STRING_FLAG.
23889 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23891         * lto-streamer-out.c (lto_output_location): Stream
23892         reserved locations correctly.
23893         * lto-streamer-in.c (lto_output_location): Likewise.
23895 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
23897         * coretypes.h: Include hash-table.h and hash-set.h for host files.
23898         * ggc.h: Don't include statistics.h>
23899         * hash-map.h: Remove all includes.
23900         * hash-set.h: Likewise.
23901         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
23902         the include list. Remove <new>.
23903         * inchash.h: Remove all includes.
23904         * mem-stats.h: Likewise.
23905         * vec.h: No special processing for generators or ggc.
23906         * alias.c : Adjust include files.
23907         * alloc-pool.c : Likewise.
23908         * alloc-pool.h : Likewise.
23909         * asan.c : Likewise.
23910         * attribs.c : Likewise.
23911         * auto-inc-dec.c : Likewise.
23912         * auto-profile.c : Likewise.
23913         * bb-reorder.c : Likewise.
23914         * bitmap.c : Likewise.
23915         * bitmap.h : Likewise.
23916         * bt-load.c : Likewise.
23917         * builtins.c : Likewise.
23918         * caller-save.c : Likewise.
23919         * calls.c : Likewise.
23920         * ccmp.c : Likewise.
23921         * cfg.c : Likewise.
23922         * cfganal.c : Likewise.
23923         * cfgbuild.c : Likewise.
23924         * cfgcleanup.c : Likewise.
23925         * cfgexpand.c : Likewise.
23926         * cfghooks.c : Likewise.
23927         * cfgloop.c : Likewise.
23928         * cfgloop.h : Likewise.
23929         * cfgloopanal.c : Likewise.
23930         * cfgloopmanip.c : Likewise.
23931         * cfgrtl.c : Likewise.
23932         * cgraph.c : Likewise.
23933         * cgraphbuild.c : Likewise.
23934         * cgraphclones.c : Likewise.
23935         * cgraphunit.c : Likewise.
23936         * cilk-common.c : Likewise.
23937         * combine-stack-adj.c : Likewise.
23938         * combine.c : Likewise.
23939         * compare-elim.c : Likewise.
23940         * context.c : Likewise.
23941         * convert.c : Likewise.
23942         * coverage.c : Likewise.
23943         * cppbuiltin.c : Likewise.
23944         * cprop.c : Likewise.
23945         * cse.c : Likewise.
23946         * cselib.c : Likewise.
23947         * data-streamer-in.c : Likewise.
23948         * data-streamer-out.c : Likewise.
23949         * data-streamer.c : Likewise.
23950         * data-streamer.h : Likewise.
23951         * dbxout.c : Likewise.
23952         * dce.c : Likewise.
23953         * ddg.c : Likewise.
23954         * debug.c : Likewise.
23955         * df-core.c : Likewise.
23956         * df-problems.c : Likewise.
23957         * df-scan.c : Likewise.
23958         * df.h : Likewise.
23959         * dfp.c : Likewise.
23960         * dojump.c : Likewise.
23961         * dominance.c : Likewise.
23962         * domwalk.c : Likewise.
23963         * double-int.c : Likewise.
23964         * dse.c : Likewise.
23965         * dumpfile.c : Likewise.
23966         * dwarf2asm.c : Likewise.
23967         * dwarf2cfi.c : Likewise.
23968         * dwarf2out.c : Likewise.
23969         * emit-rtl.c : Likewise.
23970         * et-forest.c : Likewise.
23971         * except.c : Likewise.
23972         * except.h : Likewise.
23973         * explow.c : Likewise.
23974         * expmed.c : Likewise.
23975         * expr.c : Likewise.
23976         * final.c : Likewise.
23977         * fixed-value.c : Likewise.
23978         * fold-const.c : Likewise.
23979         * function.c : Likewise.
23980         * fwprop.c : Likewise.
23981         * gcc-plugin.h : Likewise.
23982         * gcc.c : Likewise.
23983         * gcse-common.c : Likewise.
23984         * gcse.c : Likewise.
23985         * genattrtab.c : Likewise.
23986         * genautomata.c : Likewise.
23987         * genconditions.c : Likewise.
23988         * genemit.c : Likewise.
23989         * generic-match-head.c : Likewise.
23990         * genextract.c : Likewise.
23991         * gengtype-state.c : Likewise.
23992         * gengtype.c : Likewise.
23993         * genhooks.c : Likewise.
23994         * genmatch.c : Likewise.
23995         * genmodes.c : Likewise.
23996         * genrecog.c : Likewise.
23997         * gensupport.c : Likewise.
23998         * ggc-common.c : Likewise.
23999         * ggc-internal.h : Likewise.
24000         * ggc-none.c : Likewise.
24001         * ggc-page.c : Likewise.
24002         * gimple-builder.c : Likewise.
24003         * gimple-expr.c : Likewise.
24004         * gimple-fold.c : Likewise.
24005         * gimple-iterator.c : Likewise.
24006         * gimple-low.c : Likewise.
24007         * gimple-match-head.c : Likewise.
24008         * gimple-pretty-print.c : Likewise.
24009         * gimple-ssa-isolate-paths.c : Likewise.
24010         * gimple-ssa-strength-reduction.c : Likewise.
24011         * gimple-ssa.h : Likewise.
24012         * gimple-streamer-in.c : Likewise.
24013         * gimple-streamer-out.c : Likewise.
24014         * gimple-streamer.h : Likewise.
24015         * gimple-walk.c : Likewise.
24016         * gimple.c : Likewise.
24017         * gimplify-me.c : Likewise.
24018         * gimplify.c : Likewise.
24019         * godump.c : Likewise.
24020         * graph.c : Likewise.
24021         * graphds.c : Likewise.
24022         * graphite-blocking.c : Likewise.
24023         * graphite-dependences.c : Likewise.
24024         * graphite-interchange.c : Likewise.
24025         * graphite-isl-ast-to-gimple.c : Likewise.
24026         * graphite-optimize-isl.c : Likewise.
24027         * graphite-poly.c : Likewise.
24028         * graphite-scop-detection.c : Likewise.
24029         * graphite-sese-to-poly.c : Likewise.
24030         * graphite.c : Likewise.
24031         * haifa-sched.c : Likewise.
24032         * hard-reg-set.h : Likewise.
24033         * hw-doloop.c : Likewise.
24034         * ifcvt.c : Likewise.
24035         * inchash.c : Likewise.
24036         * incpath.c : Likewise.
24037         * init-regs.c : Likewise.
24038         * input.c : Likewise.
24039         * internal-fn.c : Likewise.
24040         * ipa-chkp.c : Likewise.
24041         * ipa-comdats.c : Likewise.
24042         * ipa-cp.c : Likewise.
24043         * ipa-devirt.c : Likewise.
24044         * ipa-icf-gimple.c : Likewise.
24045         * ipa-icf.c : Likewise.
24046         * ipa-inline-analysis.c : Likewise.
24047         * ipa-inline-transform.c : Likewise.
24048         * ipa-inline.c : Likewise.
24049         * ipa-polymorphic-call.c : Likewise.
24050         * ipa-profile.c : Likewise.
24051         * ipa-prop.c : Likewise.
24052         * ipa-pure-const.c : Likewise.
24053         * ipa-ref.c : Likewise.
24054         * ipa-reference.c : Likewise.
24055         * ipa-split.c : Likewise.
24056         * ipa-utils.c : Likewise.
24057         * ipa-visibility.c : Likewise.
24058         * ipa.c : Likewise.
24059         * ira-build.c : Likewise.
24060         * ira-color.c : Likewise.
24061         * ira-conflicts.c : Likewise.
24062         * ira-costs.c : Likewise.
24063         * ira-emit.c : Likewise.
24064         * ira-lives.c : Likewise.
24065         * ira.c : Likewise.
24066         * jump.c : Likewise.
24067         * langhooks.c : Likewise.
24068         * lcm.c : Likewise.
24069         * libfuncs.h : Likewise.
24070         * lists.c : Likewise.
24071         * loop-doloop.c : Likewise.
24072         * loop-init.c : Likewise.
24073         * loop-invariant.c : Likewise.
24074         * loop-iv.c : Likewise.
24075         * loop-unroll.c : Likewise.
24076         * lower-subreg.c : Likewise.
24077         * lra-assigns.c : Likewise.
24078         * lra-coalesce.c : Likewise.
24079         * lra-constraints.c : Likewise.
24080         * lra-eliminations.c : Likewise.
24081         * lra-lives.c : Likewise.
24082         * lra-remat.c : Likewise.
24083         * lra-spills.c : Likewise.
24084         * lra.c : Likewise.
24085         * lto-cgraph.c : Likewise.
24086         * lto-compress.c : Likewise.
24087         * lto-opts.c : Likewise.
24088         * lto-section-in.c : Likewise.
24089         * lto-section-out.c : Likewise.
24090         * lto-streamer-in.c : Likewise.
24091         * lto-streamer-out.c : Likewise.
24092         * lto-streamer.c : Likewise.
24093         * lto-streamer.h : Likewise.
24094         * mcf.c : Likewise.
24095         * mode-switching.c : Likewise.
24096         * modulo-sched.c : Likewise.
24097         * omega.c : Likewise.
24098         * omp-low.c : Likewise.
24099         * optabs.c : Likewise.
24100         * opts-global.c : Likewise.
24101         * opts.h : Likewise.
24102         * passes.c : Likewise.
24103         * plugin.c : Likewise.
24104         * postreload-gcse.c : Likewise.
24105         * postreload.c : Likewise.
24106         * predict.c : Likewise.
24107         * print-rtl.c : Likewise.
24108         * print-tree.c : Likewise.
24109         * profile.c : Likewise.
24110         * read-md.c : Likewise.
24111         * read-md.h : Likewise.
24112         * read-rtl.c : Likewise.
24113         * real.c : Likewise.
24114         * realmpfr.c : Likewise.
24115         * recog.c : Likewise.
24116         * ree.c : Likewise.
24117         * reg-stack.c : Likewise.
24118         * regcprop.c : Likewise.
24119         * reginfo.c : Likewise.
24120         * regrename.c : Likewise.
24121         * regstat.c : Likewise.
24122         * reload.c : Likewise.
24123         * reload1.c : Likewise.
24124         * reorg.c : Likewise.
24125         * resource.c : Likewise.
24126         * rtl-chkp.c : Likewise.
24127         * rtl.c : Likewise.
24128         * rtl.h : Likewise.
24129         * rtlanal.c : Likewise.
24130         * rtlhash.c : Likewise.
24131         * rtlhash.h : Likewise.
24132         * rtlhooks.c : Likewise.
24133         * sanopt.c : Likewise.
24134         * sched-deps.c : Likewise.
24135         * sched-ebb.c : Likewise.
24136         * sched-rgn.c : Likewise.
24137         * sched-vis.c : Likewise.
24138         * sdbout.c : Likewise.
24139         * sel-sched-dump.c : Likewise.
24140         * sel-sched-ir.c : Likewise.
24141         * sel-sched-ir.h : Likewise.
24142         * sel-sched.c : Likewise.
24143         * sese.c : Likewise.
24144         * shrink-wrap.c : Likewise.
24145         * shrink-wrap.h : Likewise.
24146         * simplify-rtx.c : Likewise.
24147         * stack-ptr-mod.c : Likewise.
24148         * statistics.c : Likewise.
24149         * stmt.c : Likewise.
24150         * stor-layout.c : Likewise.
24151         * store-motion.c : Likewise.
24152         * stringpool.c : Likewise.
24153         * symtab.c : Likewise.
24154         * target-globals.c : Likewise.
24155         * targhooks.c : Likewise.
24156         * tlink.c : Likewise.
24157         * toplev.c : Likewise.
24158         * tracer.c : Likewise.
24159         * trans-mem.c : Likewise.
24160         * tree-affine.c : Likewise.
24161         * tree-affine.h : Likewise.
24162         * tree-browser.c : Likewise.
24163         * tree-call-cdce.c : Likewise.
24164         * tree-cfg.c : Likewise.
24165         * tree-cfgcleanup.c : Likewise.
24166         * tree-chkp-opt.c : Likewise.
24167         * tree-chkp.c : Likewise.
24168         * tree-chrec.c : Likewise.
24169         * tree-complex.c : Likewise.
24170         * tree-data-ref.c : Likewise.
24171         * tree-dfa.c : Likewise.
24172         * tree-diagnostic.c : Likewise.
24173         * tree-dump.c : Likewise.
24174         * tree-eh.c : Likewise.
24175         * tree-eh.h : Likewise.
24176         * tree-emutls.c : Likewise.
24177         * tree-hasher.h : Likewise.
24178         * tree-if-conv.c : Likewise.
24179         * tree-inline.c : Likewise.
24180         * tree-inline.h : Likewise.
24181         * tree-into-ssa.c : Likewise.
24182         * tree-iterator.c : Likewise.
24183         * tree-loop-distribution.c : Likewise.
24184         * tree-nested.c : Likewise.
24185         * tree-nrv.c : Likewise.
24186         * tree-object-size.c : Likewise.
24187         * tree-outof-ssa.c : Likewise.
24188         * tree-parloops.c : Likewise.
24189         * tree-phinodes.c : Likewise.
24190         * tree-predcom.c : Likewise.
24191         * tree-pretty-print.c : Likewise.
24192         * tree-profile.c : Likewise.
24193         * tree-scalar-evolution.c : Likewise.
24194         * tree-sra.c : Likewise.
24195         * tree-ssa-address.c : Likewise.
24196         * tree-ssa-alias.c : Likewise.
24197         * tree-ssa-ccp.c : Likewise.
24198         * tree-ssa-coalesce.c : Likewise.
24199         * tree-ssa-copy.c : Likewise.
24200         * tree-ssa-copyrename.c : Likewise.
24201         * tree-ssa-dce.c : Likewise.
24202         * tree-ssa-dom.c : Likewise.
24203         * tree-ssa-dse.c : Likewise.
24204         * tree-ssa-forwprop.c : Likewise.
24205         * tree-ssa-ifcombine.c : Likewise.
24206         * tree-ssa-live.c : Likewise.
24207         * tree-ssa-loop-ch.c : Likewise.
24208         * tree-ssa-loop-im.c : Likewise.
24209         * tree-ssa-loop-ivcanon.c : Likewise.
24210         * tree-ssa-loop-ivopts.c : Likewise.
24211         * tree-ssa-loop-manip.c : Likewise.
24212         * tree-ssa-loop-niter.c : Likewise.
24213         * tree-ssa-loop-prefetch.c : Likewise.
24214         * tree-ssa-loop-unswitch.c : Likewise.
24215         * tree-ssa-loop.c : Likewise.
24216         * tree-ssa-math-opts.c : Likewise.
24217         * tree-ssa-operands.c : Likewise.
24218         * tree-ssa-phiopt.c : Likewise.
24219         * tree-ssa-phiprop.c : Likewise.
24220         * tree-ssa-pre.c : Likewise.
24221         * tree-ssa-propagate.c : Likewise.
24222         * tree-ssa-reassoc.c : Likewise.
24223         * tree-ssa-sccvn.c : Likewise.
24224         * tree-ssa-scopedtables.c : Likewise.
24225         * tree-ssa-sink.c : Likewise.
24226         * tree-ssa-strlen.c : Likewise.
24227         * tree-ssa-structalias.c : Likewise.
24228         * tree-ssa-tail-merge.c : Likewise.
24229         * tree-ssa-ter.c : Likewise.
24230         * tree-ssa-threadedge.c : Likewise.
24231         * tree-ssa-threadupdate.c : Likewise.
24232         * tree-ssa-uncprop.c : Likewise.
24233         * tree-ssa-uninit.c : Likewise.
24234         * tree-ssa.c : Likewise.
24235         * tree-ssanames.c : Likewise.
24236         * tree-stdarg.c : Likewise.
24237         * tree-streamer-in.c : Likewise.
24238         * tree-streamer-out.c : Likewise.
24239         * tree-streamer.c : Likewise.
24240         * tree-streamer.h : Likewise.
24241         * tree-switch-conversion.c : Likewise.
24242         * tree-tailcall.c : Likewise.
24243         * tree-vect-data-refs.c : Likewise.
24244         * tree-vect-generic.c : Likewise.
24245         * tree-vect-loop-manip.c : Likewise.
24246         * tree-vect-loop.c : Likewise.
24247         * tree-vect-patterns.c : Likewise.
24248         * tree-vect-slp.c : Likewise.
24249         * tree-vect-stmts.c : Likewise.
24250         * tree-vectorizer.c : Likewise.
24251         * tree-vectorizer.h : Likewise.
24252         * tree-vrp.c : Likewise.
24253         * tree.c : Likewise.
24254         * tsan.c : Likewise.
24255         * ubsan.c : Likewise.
24256         * valtrack.c : Likewise.
24257         * valtrack.h : Likewise.
24258         * value-prof.c : Likewise.
24259         * var-tracking.c : Likewise.
24260         * varasm.c : Likewise.
24261         * varpool.c : Likewise.
24262         * vec.c: Likewise.
24263         * vmsdbgout.c : Likewise.
24264         * vtable-verify.c : Likewise.
24265         * vtable-verify.h : Likewise.
24266         * web.c : Likewise.
24267         * wide-int.cc : Likewise.
24268         * xcoffout.c : Likewise.
24269         * config/aarch64/aarch64-builtins.c : Likewise.
24270         * config/aarch64/aarch64.c : Likewise.
24271         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24272         * config/alpha/alpha.c : Likewise.
24273         * config/arc/arc.c : Likewise.
24274         * config/arm/aarch-common.c : Likewise.
24275         * config/arm/arm-builtins.c : Likewise.
24276         * config/arm/arm-c.c : Likewise.
24277         * config/arm/arm.c : Likewise.
24278         * config/avr/avr-c.c : Likewise.
24279         * config/avr/avr-log.c : Likewise.
24280         * config/avr/avr.c : Likewise.
24281         * config/bfin/bfin.c : Likewise.
24282         * config/c6x/c6x.c : Likewise.
24283         * config/cr16/cr16.c : Likewise.
24284         * config/cris/cris.c : Likewise.
24285         * config/darwin-c.c : Likewise.
24286         * config/darwin.c : Likewise.
24287         * config/default-c.c : Likewise.
24288         * config/epiphany/epiphany.c : Likewise.
24289         * config/epiphany/mode-switch-use.c : Likewise.
24290         * config/epiphany/resolve-sw-modes.c : Likewise.
24291         * config/fr30/fr30.c : Likewise.
24292         * config/frv/frv.c : Likewise.
24293         * config/ft32/ft32.c : Likewise.
24294         * config/glibc-c.c : Likewise.
24295         * config/h8300/h8300.c : Likewise.
24296         * config/i386/i386-c.c : Likewise.
24297         * config/i386/i386.c : Likewise.
24298         * config/i386/msformat-c.c : Likewise.
24299         * config/i386/winnt-cxx.c : Likewise.
24300         * config/i386/winnt-stubs.c : Likewise.
24301         * config/i386/winnt.c : Likewise.
24302         * config/ia64/ia64-c.c : Likewise.
24303         * config/ia64/ia64.c : Likewise.
24304         * config/iq2000/iq2000.c : Likewise.
24305         * config/lm32/lm32.c : Likewise.
24306         * config/m32c/m32c-pragma.c : Likewise.
24307         * config/m32c/m32c.c : Likewise.
24308         * config/m32r/m32r.c : Likewise.
24309         * config/m68k/m68k.c : Likewise.
24310         * config/mcore/mcore.c : Likewise.
24311         * config/mep/mep-pragma.c : Likewise.
24312         * config/mep/mep.c : Likewise.
24313         * config/microblaze/microblaze-c.c : Likewise.
24314         * config/microblaze/microblaze.c : Likewise.
24315         * config/mips/mips.c : Likewise.
24316         * config/mmix/mmix.c : Likewise.
24317         * config/mn10300/mn10300.c : Likewise.
24318         * config/moxie/moxie.c : Likewise.
24319         * config/msp430/msp430-c.c : Likewise.
24320         * config/msp430/msp430.c : Likewise.
24321         * config/nds32/nds32-cost.c : Likewise.
24322         * config/nds32/nds32-fp-as-gp.c : Likewise.
24323         * config/nds32/nds32-intrinsic.c : Likewise.
24324         * config/nds32/nds32-isr.c : Likewise.
24325         * config/nds32/nds32-md-auxiliary.c : Likewise.
24326         * config/nds32/nds32-memory-manipulation.c : Likewise.
24327         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24328         * config/nds32/nds32-predicates.c : Likewise.
24329         * config/nds32/nds32.c : Likewise.
24330         * config/nios2/nios2.c : Likewise.
24331         * config/nvptx/nvptx.c : Likewise.
24332         * config/pa/pa.c : Likewise.
24333         * config/pdp11/pdp11.c : Likewise.
24334         * config/rl78/rl78-c.c : Likewise.
24335         * config/rl78/rl78.c : Likewise.
24336         * config/rs6000/rs6000-c.c : Likewise.
24337         * config/rs6000/rs6000.c : Likewise.
24338         * config/rx/rx.c : Likewise.
24339         * config/s390/s390-c.c : Likewise.
24340         * config/s390/s390.c : Likewise.
24341         * config/sh/sh-c.c : Likewise.
24342         * config/sh/sh-mem.cc : Likewise.
24343         * config/sh/sh.c : Likewise.
24344         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24345         * config/sh/sh_treg_combine.cc : Likewise.
24346         * config/sol2-c.c : Likewise.
24347         * config/sol2-cxx.c : Likewise.
24348         * config/sol2-stubs.c : Likewise.
24349         * config/sol2.c : Likewise.
24350         * config/sparc/sparc-c.c : Likewise.
24351         * config/sparc/sparc.c : Likewise.
24352         * config/spu/spu-c.c : Likewise.
24353         * config/spu/spu.c : Likewise.
24354         * config/stormy16/stormy16.c : Likewise.
24355         * config/tilegx/mul-tables.c : Likewise.
24356         * config/tilegx/tilegx-c.c : Likewise.
24357         * config/tilegx/tilegx.c : Likewise.
24358         * config/tilepro/mul-tables.c : Likewise.
24359         * config/tilepro/tilepro-c.c : Likewise.
24360         * config/tilepro/tilepro.c : Likewise.
24361         * config/v850/v850-c.c : Likewise.
24362         * config/v850/v850.c : Likewise.
24363         * config/vax/vax.c : Likewise.
24364         * config/visium/visium.c : Likewise.
24365         * config/vms/vms-c.c : Likewise.
24366         * config/vms/vms.c : Likewise.
24367         * config/vxworks.c : Likewise.
24368         * config/winnt-c.c : Likewise.
24369         * config/xtensa/xtensa.c : Likewise.
24371 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24373         PR lto/65378
24374         * ipa-utils.h (warn_types_mismatch): Update prototype.
24375         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24376         parameters.
24377         (type_mismatch_p): New function.
24378         (warn_types_mismatch): Reorg to work better on non-C++ types.
24379         (odr_types_equivalent_p): Add loc1/loc2 parameters.
24380         (add_type_duplicate): Update.
24382 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24384         PR rtl-optimization/66444
24385         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24386         call_used_regs.
24388 2015-06-08  Richard Biener  <rguenther@suse.de>
24390         PR tree-optimization/66422
24391         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24392         block after inserted gcc_unreachable.
24394 2015-06-08  Nick Clifton  <nickc@redhat.com>
24396         * config/rx/rx.c (rx_function_value): Do not promote vector types.
24397         (rx_promote_function_mode): Likewise.
24398         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24400 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
24402         * genattrtab.c (insn_alternatives): Change type from int *
24403         to uint64_t *.
24404         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24405         (get_attr_value): Change type of num_alt to uint64_t.
24406         (compute_alternative_mask): Change return type from
24407         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24408         (make_alternative_compare, mk_attr_alt): Change argument type
24409         from int to uint64_t.
24410         (simplify_test_exp): Change type of i from int to uint64_t.
24411         Shift ((uint64_t) 1) instead of 1 up.
24412         (main): Adjust oballocvec first argument from int to uint64_t.
24413         Shift ((uint64_t) 1) instead of 1 up.
24415 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
24417         PR other/65366
24418         * gdbhooks.py: Import sys.
24419         (intptr): New function.  Replace int(...) by intptr(...).
24421 2015-06-08  Richard Biener  <rguenther@suse.de>
24423         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24424         adjustment for gaps at the end of a SLP load group properly.
24425         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24426         all permutations we can generate.
24427         (vect_transform_slp_perm_load): Use the correct group-size.
24429 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
24431         * genmatch.c (expr::gen_transform): For conditions, guess the type
24432         from the second operand.
24434 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24436         PR tree-optimization/66442
24437         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24438         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24439         if the loop latch is not a singleton.  Use
24440         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
24442 2015-06-08  Marek Polacek  <polacek@redhat.com>
24444         PR sanitizer/66452
24445         * toplev.c (check_global_declaration): Don't warn about artificial
24446         decls.
24448 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24450         PR tree-optimization/66436
24451         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
24452         dump file.
24453         * gimplify.c: Add tree-dump.h include.
24454         (gimplify_function_tree): Dump function to gimple dump file.
24455         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
24456         dump file.
24458 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24460         PR tree-optimization/66435
24461         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
24462         function.
24464 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
24466         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
24467         of ptr_type_node to not be ptr_to_node.
24468         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
24469         TREE_TYPE of pointers.
24470         * gimple-expr.c (useless_type_conversion): Reorder the check for
24471         function pointers and TYPE_CANONICAL.
24473 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
24475         PR bootstrap/66319
24476         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
24477         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
24478         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
24479         later.
24480         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
24481         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
24482         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
24483         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
24484         and non iso if unix2003.
24486 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
24488         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
24490 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
24492         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
24493         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
24494         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
24495         except.c, final.c, function.c, gcse-common.c, genemit.c,
24496         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
24497         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
24498         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
24499         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
24500         more derived ones.
24502 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
24504         * combine.c (combine_split_insns): Remove cast.
24505         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
24506         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
24507         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
24508         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
24509         * genemit.c (gen_split): Change return type of generated functions to
24510         rtx_insn.
24511         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
24512         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
24513         gen_peephole2_* functions.
24514         (print_subroutine, main): Likewise.
24515         * recog.c (peephole2_optimize): Remove cast.
24516         (peep2_next_insn): Promote return type to rtx_insn.
24517         * recog.h (peep2_next_insn): Fix prototype.
24518         * rtl.h (try_split, split_insns): Likewise.
24520 2015-06-06  DJ Delorie  <dj@redhat.com>
24522         * config/msp430/msp430.c (msp430_asm_integer): Support addition
24523         and subtraction too.
24525 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
24527         PR target/66410
24528         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
24529         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
24530         instead of Snd.  Disparage Sid/z alternative with '^'.
24532 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
24534         * dwarf2out.c: Remove deferred_locations*.
24535         (dwarf2_debug_hooks): Add early_finish hook.
24536         Remove global_decl hook.
24537         Add early_global_decl and late_global_decl hook.
24538         New global early_dwarf.
24539         New structure set_early_dwarf.
24540         (output_die): Indicate whether a DIE was generated early
24541         when generating assembly with -dA.
24542         (struct limbo_die_struct): Document created_for field.
24543         Remove file_table_last_lookup.
24544         (remove_AT): Return TRUE if successful.
24545         (remove_child_TAG): Clear die_parent.
24546         (reparent_child): New function abstracted from...
24547         (splice_child_die): ...here.
24548         (new_die): ICE if a DIE ends up in limbo too late.
24549         (check_die): New.
24550         (defer_location): Remove.
24551         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
24552         (fill_variable_array_bounds): New.
24553         (decl_start_label): Call fill_variable_array_bounds.
24554         (gen_formal_parameter_die): Rewrite to reuse previously generated
24555         DIEs.
24556         (gen_subprogram_die): Same.
24557         (gen_variable_die): Same.
24558         (gen_const_die): Same.
24559         (gen_label_die): Same.
24560         (gen_lexical_block_die): Same.
24561         (decl_will_get_specification_p): New.
24562         (local_function_static): New.
24563         (gen_struct_or_union_type_die): Fill in variable-length fields.
24564         (gen_typedef_die): Fill in variable-length typedefs.
24565         (gen_tagged_type_die): Gracefully return on error_mark_node.
24566         Handle re-entrancy.
24567         (gen_type_die_with_usage): Handle variable-length types.
24568         Remove duplicate code for ARRAY_TYPE case.
24569         (process_scope_var): Only process imported modules during early
24570         dwarf.
24571         (dwarf2out_early_global_decl): New.
24572         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
24573         (dwarf2out_type_decl): Set early_dwarf while calling
24574         dwarf2out_decl.
24575         (dwarf2out_decl): Verify that we did not recreate a previously
24576         generated DIE.
24577         Do not return on DECL_EXTERNALs in VAR_DECLs.
24578         Abstract some code to local_function_static.
24579         (lookup_filename): Remove use of file_table_last_lookup.
24580         Gracefully exit on missing file_name.
24581         (dwarf2out_finish): Verify limbo list.
24582         Remove deferred_locations_list use.
24583         Move deferred_asm_name and limbo flushing to...
24584         (dwarf2out_early_finish): ...here.  New.
24585         (dwarf2out_c_finalize): Remove set of deferred_location_list,
24586         deferred_asm_name, and file_table_last_lookup.
24587         * cgraph.h (referred_to_p): Add default argument.
24588         * cgraphunit.c (referred_to_p): Add and handle include_self
24589         argument.
24590         (analyze_functions): Add first_time argument.
24591         Call check_global_declaration for all symbols.
24592         Call late_global_decl for nodes for moribund nodes.
24593         (finalize_compilation_unit): Add new argument to
24594         analyze_functions.
24595         Call early_global_decl for functions.
24596         Call early_finish debug hook.
24597         * dbxout.c (dbxout_early_global_decl): New.
24598         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
24599         (dbx_debug_hooks): Add new hooks.
24600         (xcoff_debug_hooks): Same.
24601         * debug.c (do_nothing_debug_hooks): Add early_finish field.
24602         Add early and late debug hooks.
24603         Remove global_decl hook.
24604         * debug.h (struct gcc_debug_hooks): Add early_finish,
24605         early_global_decl, and late_global_decl fields.
24606         Remove global_decl field.
24607         Document gcc_debug_hooks.
24608         * gengtype.c (output_typename): Remove.
24609         * godump.c (go_early_global_decl): New.
24610         (go_late_global_decl): New.
24611         (go_global_decl): Remove.
24612         (dump_go_spec_init): Remove global_decl.  Add
24613         {early,late}_global_decl.
24614         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
24615         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
24616         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
24617         (write_global_declarations): Remove.
24618         (global_decl_processing): New.
24619         * langhooks.h (struct lang_hooks_for_decls): Remove
24620         final_write_globals field.
24621         Add post_compilation_parsing_cleanups field.
24622         * passes.c (rest_of_decl_compilation): Call early_global_decl.
24623         * sdbout.c: Add early and late_global_decl hooks.  Remove
24624         sdbout_global_decl hook.
24625         Add early_finish field for sdb_debug_hooks.
24626         (sdbout_global_decl): Remove.
24627         (sdbout_early_global_decl): New.
24628         (sdbout_late_global_decl): New.
24629         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
24630         * toplev.c (check_global_declaration): Rename from
24631         check_global_declaration_1.
24632         Adapt to use symtab infrastructure.
24633         (check_global_declarations): Remove.
24634         (emit_debug_global_declarations): Remove.
24635         (compile_file): Remove call to final_write_globals langhook.
24636         Run the actual compilation process.
24637         Perform any post compilation parser cleanups.
24638         Generate late debug info.
24639         * toplev.h (check_global_declaration): New.
24640         (check_global_declaration_1): Remove.
24641         (check_global_declarations): Remove.
24642         (write_global_declarations): Remove.
24643         (emit_debug_global_declarations): Remove.
24644         (global_decl_processing): New.
24645         * tree-core.h (struct tree_block): Add DIE field.
24646         * tree.h (BLOCK_DIE): New.
24647         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
24648         throughout.
24649         (vmsdbgout_early_global_decl): New.
24650         (vmsdbgout_late_global_decl): New.
24651         Add early_finish debug hook field to vmsdbg_debug_hooks.
24652         Remove vmsdbgout_decl to vmsdbgout_function_decl.
24653         Add early and late_global_decl debug hooks.
24655 2015-06-05  Julian Brown  <julian@codesourcery.com>
24656             Sandra Loosemore  <sandra@codesourcery.com>
24658         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
24659         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
24660         to print-sysroot-suffix.sh script.
24662 2015-06-05  Tom de Vries  <tom@codesourcery.com>
24664         merge from gomp4 branch:
24665         2015-05-28  Tom de Vries  <tom@codesourcery.com>
24667         PR tree-optimization/65443
24668         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
24669         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
24670         (try_transform_to_exit_first_loop_alt): New function.
24671         (transform_to_exit_first_loop): Use
24672         try_transform_to_exit_first_loop_alt.
24674 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
24676         * builtins.c (expand_builtin_atomic_compare_exchange): Call
24677         emit_cmp_and_jump_insns with the mode of target.
24679 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24681         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
24683 2015-06-04  DJ Delorie  <dj@redhat.com>
24685         * config/msp430/msp430.md (movsi_s): New.  Special case for
24686         storing a 20-bit symbol into a 32-bit register.
24687         * config/msp430/msp430.c (msp430_subreg): Add support for it.
24688         * config/msp430/predicates.md (msp430_symbol_operand): New.
24690 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
24692         * c-family/c-common.c (noplt): New attribute.
24693         (handle_noplt_attribute): New handler.
24694         * calls.c (prepare_call_address): Check for noplt
24695         attribute.
24696         * config/i386/i386.c (ix86_expand_call): Check
24697         for noplt attribute.
24698         (ix86_nopic_noplt_attribute_p): New function.
24699         (ix86_output_call_insn): Output indirect call for non-pic
24700         no plt calls.
24701         * doc/extend.texi (noplt): Document new attribute.
24702         * doc/invoke.texi: Document new attribute.
24704 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
24706         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
24707         real.h, and fixed-value.h when included in host source files.
24708         * double-int.h: Remove redundant #includes listed above.
24709         * fixed-value.h: Likewise.
24710         * real.h: Likewise.
24711         * wide-int.h: Likewise.
24712         * inchash.h: Likewise.
24713         * rtl.h: Add some include files When included from a generator file.
24714         * target.h: Remove wide-int.h and insn-modes.h from the include list.
24715         * internal-fn.h: Don't include coretypes.h.
24716         * alias.c: Adjust includes for restructured coretypes.h.
24717         * asan.c: Likewise.
24718         * attribs.c: Likewise.
24719         * auto-inc-dec.c: Likewise.
24720         * auto-profile.c: Likewise.
24721         * bb-reorder.c: Likewise.
24722         * bt-load.c: Likewise.
24723         * builtins.c: Likewise.
24724         * caller-save.c: Likewise.
24725         * calls.c: Likewise.
24726         * ccmp.c: Likewise.
24727         * cfg.c: Likewise.
24728         * cfganal.c: Likewise.
24729         * cfgbuild.c: Likewise.
24730         * cfgcleanup.c: Likewise.
24731         * cfgexpand.c: Likewise.
24732         * cfghooks.c: Likewise.
24733         * cfgloop.c: Likewise.
24734         * cfgloop.h: Likewise.
24735         * cfgloopanal.c: Likewise.
24736         * cfgloopmanip.c: Likewise.
24737         * cfgrtl.c: Likewise.
24738         * cgraph.c: Likewise.
24739         * cgraphbuild.c: Likewise.
24740         * cgraphclones.c: Likewise.
24741         * cgraphunit.c: Likewise.
24742         * cilk-common.c: Likewise.
24743         * combine-stack-adj.c: Likewise.
24744         * combine.c: Likewise.
24745         * compare-elim.c: Likewise.
24746         * convert.c: Likewise.
24747         * coverage.c: Likewise.
24748         * cppbuiltin.c: Likewise.
24749         * cprop.c: Likewise.
24750         * cse.c: Likewise.
24751         * cselib.c: Likewise.
24752         * data-streamer-in.c: Likewise.
24753         * data-streamer-out.c: Likewise.
24754         * data-streamer.c: Likewise.
24755         * dbxout.c: Likewise.
24756         * dce.c: Likewise.
24757         * ddg.c: Likewise.
24758         * debug.c: Likewise.
24759         * df-core.c: Likewise.
24760         * df-problems.c: Likewise.
24761         * df-scan.c: Likewise.
24762         * df.h: Likewise.
24763         * dfp.c: Likewise.
24764         * dojump.c: Likewise.
24765         * dominance.c: Likewise.
24766         * domwalk.c: Likewise.
24767         * double-int.c: Likewise.
24768         * dse.c: Likewise.
24769         * dumpfile.c: Likewise.
24770         * dwarf2asm.c: Likewise.
24771         * dwarf2cfi.c: Likewise.
24772         * dwarf2out.c: Likewise.
24773         * dwarf2out.h: Likewise.
24774         * emit-rtl.c: Likewise.
24775         * et-forest.c: Likewise.
24776         * except.c: Likewise.
24777         * explow.c: Likewise.
24778         * expmed.c: Likewise.
24779         * expr.c: Likewise.
24780         * final.c: Likewise.
24781         * fixed-value.c: Likewise.
24782         * fold-const.c: Likewise.
24783         * function.c: Likewise.
24784         * fwprop.c: Likewise.
24785         * gcc-plugin.h: Likewise.
24786         * gcse.c: Likewise.
24787         * generic-match-head.c: Likewise.
24788         * ggc-page.c: Likewise.
24789         * gimple-builder.c: Likewise.
24790         * gimple-expr.c: Likewise.
24791         * gimple-fold.c: Likewise.
24792         * gimple-iterator.c: Likewise.
24793         * gimple-low.c: Likewise.
24794         * gimple-match-head.c: Likewise.
24795         * gimple-pretty-print.c: Likewise.
24796         * gimple-ssa-isolate-paths.c: Likewise.
24797         * gimple-ssa-strength-reduction.c: Likewise.
24798         * gimple-streamer-in.c: Likewise.
24799         * gimple-streamer-out.c: Likewise.
24800         * gimple-streamer.h: Likewise.
24801         * gimple-walk.c: Likewise.
24802         * gimple.c: Likewise.
24803         * gimplify-me.c: Likewise.
24804         * gimplify.c: Likewise.
24805         * godump.c: Likewise.
24806         * graph.c: Likewise.
24807         * graphite-blocking.c: Likewise.
24808         * graphite-dependences.c: Likewise.
24809         * graphite-interchange.c: Likewise.
24810         * graphite-isl-ast-to-gimple.c: Likewise.
24811         * graphite-optimize-isl.c: Likewise.
24812         * graphite-poly.c: Likewise.
24813         * graphite-scop-detection.c: Likewise.
24814         * graphite-sese-to-poly.c: Likewise.
24815         * graphite.c: Likewise.
24816         * haifa-sched.c: Likewise.
24817         * hooks.h: Likewise.
24818         * hw-doloop.c: Likewise.
24819         * ifcvt.c: Likewise.
24820         * incpath.c: Likewise.
24821         * init-regs.c: Likewise.
24822         * internal-fn.c: Likewise.
24823         * ipa-chkp.c: Likewise.
24824         * ipa-comdats.c: Likewise.
24825         * ipa-cp.c: Likewise.
24826         * ipa-devirt.c: Likewise.
24827         * ipa-icf-gimple.c: Likewise.
24828         * ipa-icf.c: Likewise.
24829         * ipa-inline-analysis.c: Likewise.
24830         * ipa-inline-transform.c: Likewise.
24831         * ipa-inline.c: Likewise.
24832         * ipa-polymorphic-call.c: Likewise.
24833         * ipa-profile.c: Likewise.
24834         * ipa-prop.c: Likewise.
24835         * ipa-pure-const.c: Likewise.
24836         * ipa-ref.c: Likewise.
24837         * ipa-reference.c: Likewise.
24838         * ipa-split.c: Likewise.
24839         * ipa-utils.c: Likewise.
24840         * ipa-visibility.c: Likewise.
24841         * ipa.c: Likewise.
24842         * ira-build.c: Likewise.
24843         * ira-color.c: Likewise.
24844         * ira-conflicts.c: Likewise.
24845         * ira-costs.c: Likewise.
24846         * ira-emit.c: Likewise.
24847         * ira-lives.c: Likewise.
24848         * ira.c: Likewise.
24849         * jump.c: Likewise.
24850         * langhooks.c: Likewise.
24851         * lcm.c: Likewise.
24852         * loop-doloop.c: Likewise.
24853         * loop-init.c: Likewise.
24854         * loop-invariant.c: Likewise.
24855         * loop-iv.c: Likewise.
24856         * loop-unroll.c: Likewise.
24857         * lower-subreg.c: Likewise.
24858         * lra-assigns.c: Likewise.
24859         * lra-coalesce.c: Likewise.
24860         * lra-constraints.c: Likewise.
24861         * lra-eliminations.c: Likewise.
24862         * lra-lives.c: Likewise.
24863         * lra-remat.c: Likewise.
24864         * lra-spills.c: Likewise.
24865         * lra.c: Likewise.
24866         * lto-cgraph.c: Likewise.
24867         * lto-compress.c: Likewise.
24868         * lto-opts.c: Likewise.
24869         * lto-section-in.c: Likewise.
24870         * lto-section-out.c: Likewise.
24871         * lto-streamer-in.c: Likewise.
24872         * lto-streamer-out.c: Likewise.
24873         * lto-streamer.c: Likewise.
24874         * mcf.c: Likewise.
24875         * mode-switching.c: Likewise.
24876         * modulo-sched.c: Likewise.
24877         * omega.c: Likewise.
24878         * omp-low.c: Likewise.
24879         * optabs.c: Likewise.
24880         * opts-global.c: Likewise.
24881         * passes.c: Likewise.
24882         * plugin.c: Likewise.
24883         * postreload-gcse.c: Likewise.
24884         * postreload.c: Likewise.
24885         * predict.c: Likewise.
24886         * print-rtl.c: Likewise.
24887         * print-tree.c: Likewise.
24888         * profile.c: Likewise.
24889         * real.c: Likewise.
24890         * realmpfr.c: Likewise.
24891         * realmpfr.h: Likewise.
24892         * recog.c: Likewise.
24893         * ree.c: Likewise.
24894         * reg-stack.c: Likewise.
24895         * regcprop.c: Likewise.
24896         * reginfo.c: Likewise.
24897         * regrename.c: Likewise.
24898         * regs.h: Likewise.
24899         * regstat.c: Likewise.
24900         * reload.c: Likewise.
24901         * reload1.c: Likewise.
24902         * reorg.c: Likewise.
24903         * resource.c: Likewise.
24904         * rtl-chkp.c: Likewise.
24905         * rtlanal.c: Likewise.
24906         * rtlhooks.c: Likewise.
24907         * sanopt.c: Likewise.
24908         * sched-deps.c: Likewise.
24909         * sched-ebb.c: Likewise.
24910         * sched-rgn.c: Likewise.
24911         * sched-vis.c: Likewise.
24912         * sdbout.c: Likewise.
24913         * sel-sched-dump.c: Likewise.
24914         * sel-sched-ir.c: Likewise.
24915         * sel-sched.c: Likewise.
24916         * sese.c: Likewise.
24917         * shrink-wrap.c: Likewise.
24918         * shrink-wrap.h: Likewise.
24919         * simplify-rtx.c: Likewise.
24920         * stack-ptr-mod.c: Likewise.
24921         * statistics.c: Likewise.
24922         * stmt.c: Likewise.
24923         * stor-layout.c: Likewise.
24924         * store-motion.c: Likewise.
24925         * stringpool.c: Likewise.
24926         * symtab.c: Likewise.
24927         * target-globals.c: Likewise.
24928         * targhooks.c: Likewise.
24929         * toplev.c: Likewise.
24930         * tracer.c: Likewise.
24931         * trans-mem.c: Likewise.
24932         * tree-affine.c: Likewise.
24933         * tree-affine.h: Likewise.
24934         * tree-browser.c: Likewise.
24935         * tree-call-cdce.c: Likewise.
24936         * tree-cfg.c: Likewise.
24937         * tree-cfgcleanup.c: Likewise.
24938         * tree-chkp-opt.c: Likewise.
24939         * tree-chkp.c: Likewise.
24940         * tree-chrec.c: Likewise.
24941         * tree-complex.c: Likewise.
24942         * tree-data-ref.c: Likewise.
24943         * tree-dfa.c: Likewise.
24944         * tree-diagnostic.c: Likewise.
24945         * tree-dump.c: Likewise.
24946         * tree-eh.c: Likewise.
24947         * tree-emutls.c: Likewise.
24948         * tree-if-conv.c: Likewise.
24949         * tree-inline.c: Likewise.
24950         * tree-into-ssa.c: Likewise.
24951         * tree-iterator.c: Likewise.
24952         * tree-loop-distribution.c: Likewise.
24953         * tree-nested.c: Likewise.
24954         * tree-nrv.c: Likewise.
24955         * tree-object-size.c: Likewise.
24956         * tree-outof-ssa.c: Likewise.
24957         * tree-parloops.c: Likewise.
24958         * tree-phinodes.c: Likewise.
24959         * tree-predcom.c: Likewise.
24960         * tree-pretty-print.c: Likewise.
24961         * tree-pretty-print.h: Likewise.
24962         * tree-profile.c: Likewise.
24963         * tree-scalar-evolution.c: Likewise.
24964         * tree-sra.c: Likewise.
24965         * tree-ssa-address.c: Likewise.
24966         * tree-ssa-alias.c: Likewise.
24967         * tree-ssa-ccp.c: Likewise.
24968         * tree-ssa-coalesce.c: Likewise.
24969         * tree-ssa-copy.c: Likewise.
24970         * tree-ssa-copyrename.c: Likewise.
24971         * tree-ssa-dce.c: Likewise.
24972         * tree-ssa-dom.c: Likewise.
24973         * tree-ssa-dse.c: Likewise.
24974         * tree-ssa-forwprop.c: Likewise.
24975         * tree-ssa-ifcombine.c: Likewise.
24976         * tree-ssa-live.c: Likewise.
24977         * tree-ssa-loop-ch.c: Likewise.
24978         * tree-ssa-loop-im.c: Likewise.
24979         * tree-ssa-loop-ivcanon.c: Likewise.
24980         * tree-ssa-loop-ivopts.c: Likewise.
24981         * tree-ssa-loop-manip.c: Likewise.
24982         * tree-ssa-loop-niter.c: Likewise.
24983         * tree-ssa-loop-prefetch.c: Likewise.
24984         * tree-ssa-loop-unswitch.c: Likewise.
24985         * tree-ssa-loop.c: Likewise.
24986         * tree-ssa-loop.h: Likewise.
24987         * tree-ssa-math-opts.c: Likewise.
24988         * tree-ssa-operands.c: Likewise.
24989         * tree-ssa-phiopt.c: Likewise.
24990         * tree-ssa-phiprop.c: Likewise.
24991         * tree-ssa-pre.c: Likewise.
24992         * tree-ssa-propagate.c: Likewise.
24993         * tree-ssa-reassoc.c: Likewise.
24994         * tree-ssa-sccvn.c: Likewise.
24995         * tree-ssa-scopedtables.c: Likewise.
24996         * tree-ssa-sink.c: Likewise.
24997         * tree-ssa-strlen.c: Likewise.
24998         * tree-ssa-structalias.c: Likewise.
24999         * tree-ssa-tail-merge.c: Likewise.
25000         * tree-ssa-ter.c: Likewise.
25001         * tree-ssa-threadedge.c: Likewise.
25002         * tree-ssa-threadupdate.c: Likewise.
25003         * tree-ssa-uncprop.c: Likewise.
25004         * tree-ssa-uninit.c: Likewise.
25005         * tree-ssa.c: Likewise.
25006         * tree-ssanames.c: Likewise.
25007         * tree-stdarg.c: Likewise.
25008         * tree-streamer-in.c: Likewise.
25009         * tree-streamer-out.c: Likewise.
25010         * tree-streamer.c: Likewise.
25011         * tree-switch-conversion.c: Likewise.
25012         * tree-tailcall.c: Likewise.
25013         * tree-vect-data-refs.c: Likewise.
25014         * tree-vect-generic.c: Likewise.
25015         * tree-vect-loop-manip.c: Likewise.
25016         * tree-vect-loop.c: Likewise.
25017         * tree-vect-patterns.c: Likewise.
25018         * tree-vect-slp.c: Likewise.
25019         * tree-vect-stmts.c: Likewise.
25020         * tree-vectorizer.c: Likewise.
25021         * tree-vrp.c: Likewise.
25022         * tree.c: Likewise.
25023         * tsan.c: Likewise.
25024         * ubsan.c: Likewise.
25025         * valtrack.c: Likewise.
25026         * value-prof.c: Likewise.
25027         * var-tracking.c: Likewise.
25028         * varasm.c: Likewise.
25029         * varpool.c: Likewise.
25030         * vmsdbgout.c: Likewise.
25031         * vtable-verify.c: Likewise.
25032         * web.c: Likewise.
25033         * wide-int-print.cc: Likewise.
25034         * wide-int-print.h: Likewise.
25035         * wide-int.cc: Likewise.
25036         * xcoffout.c: Likewise.
25037         * config/aarch64/aarch64-builtins.c: Likewise.
25038         * config/aarch64/aarch64.c: Likewise.
25039         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25040         * config/alpha/alpha.c: Likewise.
25041         * config/arc/arc.c: Likewise.
25042         * config/arm/aarch-common.c: Likewise.
25043         * config/arm/arm-builtins.c: Likewise.
25044         * config/arm/arm-c.c: Likewise.
25045         * config/arm/arm.c: Likewise.
25046         * config/avr/avr-c.c: Likewise.
25047         * config/avr/avr-log.c: Likewise.
25048         * config/avr/avr.c: Likewise.
25049         * config/bfin/bfin.c: Likewise.
25050         * config/c6x/c6x.c: Likewise.
25051         * config/cr16/cr16.c: Likewise.
25052         * config/cris/cris.c: Likewise.
25053         * config/darwin-c.c: Likewise.
25054         * config/darwin.c: Likewise.
25055         * config/default-c.c: Likewise.
25056         * config/epiphany/epiphany.c: Likewise.
25057         * config/epiphany/mode-switch-use.c: Likewise.
25058         * config/epiphany/resolve-sw-modes.c: Likewise.
25059         * config/fr30/fr30.c: Likewise.
25060         * config/frv/frv.c: Likewise.
25061         * config/ft32/ft32.c: Likewise.
25062         * config/glibc-c.c: Likewise.
25063         * config/h8300/h8300.c: Likewise.
25064         * config/i386/i386-c.c: Likewise.
25065         * config/i386/i386.c: Likewise.
25066         * config/i386/msformat-c.c: Likewise.
25067         * config/i386/winnt-cxx.c: Likewise.
25068         * config/i386/winnt-stubs.c: Likewise.
25069         * config/i386/winnt.c: Likewise.
25070         * config/ia64/ia64-c.c: Likewise.
25071         * config/ia64/ia64.c: Likewise.
25072         * config/iq2000/iq2000.c: Likewise.
25073         * config/lm32/lm32.c: Likewise.
25074         * config/m32c/m32c-pragma.c: Likewise.
25075         * config/m32c/m32c.c: Likewise.
25076         * config/m32r/m32r.c: Likewise.
25077         * config/m68k/m68k.c: Likewise.
25078         * config/mcore/mcore.c: Likewise.
25079         * config/mep/mep-pragma.c: Likewise.
25080         * config/mep/mep.c: Likewise.
25081         * config/microblaze/microblaze-c.c: Likewise.
25082         * config/microblaze/microblaze.c: Likewise.
25083         * config/mips/mips.c: Likewise.
25084         * config/mmix/mmix.c: Likewise.
25085         * config/mn10300/mn10300.c: Likewise.
25086         * config/moxie/moxie.c: Likewise.
25087         * config/msp430/msp430-c.c: Likewise.
25088         * config/msp430/msp430.c: Likewise.
25089         * config/nds32/nds32-cost.c: Likewise.
25090         * config/nds32/nds32-fp-as-gp.c: Likewise.
25091         * config/nds32/nds32-intrinsic.c: Likewise.
25092         * config/nds32/nds32-isr.c: Likewise.
25093         * config/nds32/nds32-md-auxiliary.c: Likewise.
25094         * config/nds32/nds32-memory-manipulation.c: Likewise.
25095         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25096         * config/nds32/nds32-predicates.c: Likewise.
25097         * config/nds32/nds32.c: Likewise.
25098         * config/nios2/nios2.c: Likewise.
25099         * config/nvptx/nvptx.c: Likewise.
25100         * config/pa/pa.c: Likewise.
25101         * config/pdp11/pdp11.c: Likewise.
25102         * config/rl78/rl78-c.c: Likewise.
25103         * config/rl78/rl78.c: Likewise.
25104         * config/rs6000/rs6000-c.c: Likewise.
25105         * config/rs6000/rs6000.c: Likewise.
25106         * config/rx/rx.c: Likewise.
25107         * config/s390/s390-c.c: Likewise.
25108         * config/s390/s390.c: Likewise.
25109         * config/sh/sh-c.c: Likewise.
25110         * config/sh/sh-mem.cc: Likewise.
25111         * config/sh/sh.c: Likewise.
25112         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25113         * config/sh/sh_treg_combine.cc: Likewise.
25114         * config/sol2-c.c: Likewise.
25115         * config/sol2-cxx.c: Likewise.
25116         * config/sol2-stubs.c: Likewise.
25117         * config/sol2.c: Likewise.
25118         * config/sparc/sparc-c.c: Likewise.
25119         * config/sparc/sparc.c: Likewise.
25120         * config/spu/spu-c.c: Likewise.
25121         * config/spu/spu.c: Likewise.
25122         * config/stormy16/stormy16.c: Likewise.
25123         * config/tilegx/mul-tables.c: Likewise.
25124         * config/tilegx/tilegx-c.c: Likewise.
25125         * config/tilegx/tilegx.c: Likewise.
25126         * config/tilepro/mul-tables.c: Likewise.
25127         * config/tilepro/tilepro-c.c: Likewise.
25128         * config/tilepro/tilepro.c: Likewise.
25129         * config/v850/v850-c.c: Likewise.
25130         * config/v850/v850.c: Likewise.
25131         * config/vax/vax.c: Likewise.
25132         * config/visium/visium.c: Likewise.
25133         * config/vms/vms-c.c: Likewise.
25134         * config/vms/vms.c: Likewise.
25135         * config/vxworks.c: Likewise.
25136         * config/winnt-c.c: Likewise.
25137         * config/xtensa/xtensa.c: Likewise.
25138         * common/config/bfin/bfin-common.c: Likewise.
25140 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
25142         * tree.h (tree_code_for_canonical_type_merging): New function.
25143         * tree.c (gimple_canonical_types_compatible_p): Use
25144         tree_code_for_canonical_type_merging..
25146 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25148         PR c++/66192
25149         PR target/66200
25150         * doc/tm.texi: Regenerate.
25151         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25152         * target.def (TARGET_RELAXED_ORDERING): Likewise.
25153         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25154         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25155         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25156         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25157         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25158         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25159         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25161 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25163         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25164         register fma steering pass.
25165         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25166         AARCH64_TUNE_FMA_STEERING.
25168 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
25170         * tree.c (verify_type_variant): Verify that type and variant is
25171         compatible.
25172         (gimple_canonical_types_compatible_p): Look for main variants.
25174 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25176         * config.gcc (powerpc*-*-*): Add support for a new configure
25177         option --with-advance-toolchain=<xxx> which overrides using the
25178         default header files, libraries and dynamic linker.
25180         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25181         specs to support the configure --with-advance-toolchain=<xxx>
25182         option.
25183         (INCLUDE_EXTRA_SPEC): Likewise.
25184         (LINK_OS_EXTRA_SPEC32): Likewise.
25185         (LINK_OK_EXTRA_SPEC64): Likewise.
25186         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25187         (DYNAMIC_LINKER_PREFIX): Likewise.
25188         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25189         toolchain support.
25190         (GLIBC_DYNAMIC_LINKER32): Likewise.
25191         (GLIBC_DYNAMIC_LINKER64): Likewise.
25192         (LINK_OS_LINUX_SPEC32): Likewise.
25193         (LINK_OS_LINUX_SPEC64): Likewise.
25195         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25196         configuration option.
25198 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
25200         PR target/66275
25201         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25202         to determine current function ABI.
25203         (ix86_function_value_regno_p): Ditto.
25205 2015-06-03  Martin Liska  <mliska@suse.cz>
25207         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25208         * bitmap.h (struct bitmap_usage): Likewise.
25209         * ggc-common.c (struct ggc_usage): Likewise.
25210         * mem-stats.h (struct mem_location): Likewise.
25211         (struct mem_usage): Likewise.
25212         * vec.c (struct vec_usage): Likewise.
25214 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
25216         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25217         -Bsymbolic.
25219 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
25221         * doc/plugins.texi (enum plugin_event): New event.
25222         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25223         and PLUGIN_FINISH_FUNCTION.
25224         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25225         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25227 2015-06-03  Richard Biener  <rguenther@suse.de>
25229         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25230         compute GROUP_GAP for the first element.
25231         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25232         on in-group gaps.
25234 2015-06-03  Nick Clifton  <nickc@redhat.com>
25236         * config/rl78/rl78-real.md: Add peepholes to avoid a register
25237         copy when calling a function.
25238         * config/rl78/rl78.c (need_to_save): Do not push the frame
25239         pointer in an interrupt handler prologue if it is never used.
25241 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25243         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25245 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25247         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25248         reference when cloning alias node.
25250 2015-06-03  Martin Liska  <mliska@suse.cz>
25252         * alloc-pool.h (struct pool_usage): Correct space padding.
25253         * ggc-page.c (ggc_print_statistics): Align columns in a report.
25254         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25255         * tree.c (dump_tree_statistics): Align columns in a report.
25257 2015-06-03  Martin Liska  <mliska@suse.cz>
25259         * alloc-pool.c (allocate_pool_descriptor): Remove.
25260         (struct pool_output_info): Likewise.
25261         (print_alloc_pool_statistics): Likewise.
25262         (dump_alloc_pool_statistics): Likewise.
25263         * alloc-pool.h (struct pool_usage): New struct.
25264         (pool_allocator::initialize): Change usage of memory statistics
25265         to a new interface.
25266         (pool_allocator::release): Likewise.
25267         (pool_allocator::allocate): Likewise.
25268         (pool_allocator::remove): Likewise.
25269         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25270         for a pool allocator.
25271         * mem-stats.h (struct mem_location): Add new ctor.
25272         (struct mem_usage): Add counter for number of
25273         instances.
25274         (mem_alloc_description::register_descriptor): New overload of
25275         * mem-stats.h (mem_location::to_string): New function.
25276         * bitmap.h (struct bitmap_usage): Use this new function.
25277         * ggc-common.c (struct ggc_usage): Likewise.
25278         the function.
25280 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25282         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25283         of GCC_INSN_FLAGS_H block.
25285 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25287         * explow.c (plus_constant): Update check after force_const_mem call
25288         to see if the value returned is not a NULL_RTX.
25290 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25292         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25293         remove instumentation thunks calling reachable functions.
25294         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25295         * lto/lto-partition.c (privatize_symbol_name_1): New.
25296         (privatize_symbol_name): Privatize both decl and orig_decl
25297         names for instrumented functions.
25298         * cgraph.c (cgraph_node::verify_node): Add transparent
25299         alias chain check for instrumented node.
25301 2015-06-03  Marek Polacek  <polacek@redhat.com>
25303         PR c/64223
25304         PR c/29358
25305         * tree.c (attribute_value_equal): Handle attribute format.
25306         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25308 2015-06-03  Richard Biener  <rguenther@suse.de>
25310         PR tree-optimization/63916
25311         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25312         Forward-propagate non-invariant addresses by splicing their
25313         reference ops if the result isn't going to be used by PRE.
25314         (vn_reference_lookup_3): Remove pointless assert.
25316 2015-06-03  Richard Biener  <rguenther@suse.de>
25318         PR tree-optimization/66375
25319         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25320         add to the evolution before following SSA edges.
25322 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
25324         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25325         (dump_use, dump_cand, find_induction_variables): Pass new argument
25326         to dump_iv.
25327         (record_use): Preserve the ssa name information in IV.
25329 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25331         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25332         NO_MODE_TEST.
25333         (add_mode_tests): Don't add mode tests if the predicate only
25334         accepts scalar constant integers.  Otherwise, allow the mode
25335         of "op" to be VOIDmode if the predicate does accept such integers.
25337 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
25339         PR target/66258
25340         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25341         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25342         (aarch64_secondary_reload): Likewise
25343         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25344         to !TARGET_FLOAT.
25345         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25346         Likewise.
25348 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
25349             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25351         PR target/65768
25352         * cprop.c (try_replace_reg): Check cost of constants before propagating.
25354 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25356         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25357         provide access to the IBM extended double floating point mode if
25358         long double is IEEE 128-bit floating point.
25359         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25360         point if long double is the IBM extended double type.
25362         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25363         enable adding IEEE 128-bit floating point support.
25364         (-mfloat128-software): Likewise.
25365         (-mfloat128-sw): Likewise.
25367         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25368         128-bit floating point types to occupy any register if
25369         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
25370         -mfloat128-software is enabled.
25371         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25372         support.
25373         (rs6000_option_override_internal): Add -mfloat128-* support.
25374         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25376         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25377         and float128 type nodes.
25378         (ieee128_float_type_node): Likewise.
25379         (ibm128_float_type_node): Likewise.
25381 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25383         PR target/66136
25384         * config/aarch64/geniterators.sh: Rewrite in awk.
25386 2015-06-02  Martin Liska  <mliska@suse.cz>
25388         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25389         values to avoid -Wmaybe-uninitialized errors.
25391 2015-06-02  Richard Biener  <rguenther@suse.de>
25393         PR debug/65549
25394         * dwarf2out.c (lookup_context_die): New function.
25395         (resolve_addr): Avoid forcing a full DIE for the
25396         target of a DW_TAG_GNU_call_site during late compilation.
25397         Instead create a stub DIE without a type if we have a
25398         context DIE present.
25400 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
25402         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25404 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
25406         PR tree-optimization/48052
25407         * cfgloop.h (struct control_iv): New.
25408         (struct loop): New field control_ivs.
25409         * tree-ssa-loop-niter.c : Include "stor-layout.h".
25410         (number_of_iterations_lt): Set no_overflow information.
25411         (number_of_iterations_exit): Init control iv in niter struct.
25412         (record_control_iv): New.
25413         (estimate_numbers_of_iterations_loop): Call record_control_iv.
25414         (loop_exits_before_overflow): New.  Interface factored out of
25415         scev_probably_wraps_p.
25416         (scev_probably_wraps_p): Factor loop niter related code into
25417         loop_exits_before_overflow.
25418         (free_numbers_of_iterations_estimates_loop): Free control ivs.
25419         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25421 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
25423         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25424         the target doesn't belong to the current function.
25426 2015-06-02  Marek Polacek  <polacek@redhat.com>
25428         PR middle-end/66345
25429         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25430         get_maxval_strlen does not produce an INTEGER_CST.
25432 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
25434         * config/arc/constraints.md: Use lower-case names in match_code.
25435         * config/mmix/constraints.md: Likewise.
25437 2015-06-02  Richard Biener  <rguenther@suse.de>
25439         PR tree-optimization/65961
25440         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25441         check and clarify dump message.
25442         (vect_build_slp_tree): If all children are built up from scalars
25443         build up the parent from scalars instead.
25444         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
25446 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
25448         PR other/65366
25449         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
25450         instead of print ... .
25452 2015-06-02  Alan Modra  <amodra@gmail.com>
25454         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
25455         2014-08-11 change.
25457 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
25459         PR tree-optimization/52563
25460         PR tree-optimization/62173
25461         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
25462         (alloc_iv, set_iv): New parameter.
25463         (determine_biv_step): Delete.
25464         (find_bivs): Inline original determine_biv_step.  Pass new
25465         argument to set_iv.
25466         (idx_find_step): Use no_overflow information for conversion.
25467         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
25468         resolve_mixers handle folded_casts.
25469         (instantiate_scev_name): Change bool parameter to bool pointer.
25470         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
25471         (instantiate_array_ref, instantiate_scev_not): Ditto.
25472         (instantiate_scev_3, instantiate_scev_2): Ditto.
25473         (instantiate_scev_1, instantiate_scev_r): Ditto.
25474         (instantiate_scev_convert, ): Change parameter.  Pass argument
25475         to chrec_convert_aggressive.
25476         (instantiate_scev): Change argument.
25477         (resolve_mixers): New parameter and set it.
25478         (scev_const_prop): New argument.
25479         * tree-scalar-evolution.h (resolve_mixers): New parameter.
25480         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
25481         of chrec_conert_1.
25482         (chrec_convert): New parameter.  Move definition below.
25483         (chrec_convert_aggressive): New parameter and set it.  Call
25484         convert_affine_scev.
25485         * tree-chrec.h (chrec_convert): New parameter.
25486         (chrec_convert_aggressive): Ditto.
25488 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
25490         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
25491         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
25492         the LHS of a no-return call if its type has variable size.
25493         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
25494         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
25496 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
25498         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
25499         * config.in: Regenerate.
25501 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
25503         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
25504         consecutive accesses within outer-loop with force_vectorize
25505         for references with zero step in inner-loop.
25507 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
25509         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
25510         rather than from gcc/build directory.
25512 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
25514         PR target/65697
25515         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
25516         for __sync memory models, emit initial loads and final barriers as
25517         appropriate.
25519 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
25521         PR target/65697
25522         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
25523         (aarch64_split_atomic_op): Check for __sync memory models, emit
25524         appropriate initial loads and final barriers.
25526 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
25528         * Makefile.in: Fix gcov dependencies that should
25529         not point to a build folder.
25531 2015-06-01  Richard Biener  <rguenther@suse.de>
25533         Revert
25534         2015-05-29  Richard Biener  <rguenther@suse.de>
25536         PR tree-optimization/66314
25537         * tree-ssa-threadupdate.c (create_block_for_threading): Add
25538         parameter that says which loop the new block belongs to.
25539         (ssa_create_duplicates): Blocks duplicated for the threaded
25540         path belong to the loop of the thread destination.
25542 2015-06-01  Martin Liska  <mliska@suse.cz>
25544         * sched-deps.c: Include pool-alloc.h before
25545         cselib.h header file is included.
25547 2015-06-01  Richard Biener  <rguenther@suse.de>
25549         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
25550         functions.
25552 2015-06-01  Martin Liska  <mliska@suse.cz>
25554         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
25555         a function local variable.
25557 2015-06-01  Martin Liska  <mliska@suse.cz>
25559         * alloc-pool.c (create_alloc_pool): Remove.
25560         (empty_alloc_pool): Likewise.
25561         (free_alloc_pool): Likewise.
25562         (free_alloc_pool_if_empty): Likewise.
25563         (pool_alloc): Likewise.
25564         (pool_free): Likewise.
25565         * alloc-pool.h: Remove old declarations.
25567 2015-06-01  Martin Liska  <mliska@suse.cz>
25569         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
25570         (ira_create_object): Likewise.
25571         (ira_create_allocno): Likewise.
25572         (ira_create_live_range): Likewise.
25573         (copy_live_range): Likewise.
25574         (ira_finish_live_range): Likewise.
25575         (ira_free_allocno_costs): Likewise.
25576         (finish_allocno): Likewise.
25577         (finish_allocnos): Likewise.
25578         (initiate_prefs): Likewise.
25579         (ira_create_pref): Likewise.
25580         (finish_pref): Likewise.
25581         (finish_prefs): Likewise.
25582         (initiate_copies): Likewise.
25583         (ira_create_copy): Likewise.
25584         (finish_copy): Likewise.
25585         (finish_copies): Likewise.
25586         (finish_prefs): Likewise.
25588 2015-06-01  Martin Liska  <mliska@suse.cz>
25590         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
25591         (allocate_and_init_ipcp_value): Likewise.
25592         (ipcp_lattice::add_value): Likewise.
25593         (merge_agg_lats_step): Likewise.
25594         (ipcp_driver): Likewise.
25595         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
25596         (ipa_free_all_structures_after_iinln): Likewise.
25597         * ipa-prop.h: Likewise.
25599 2015-06-01  Martin Liska  <mliska@suse.cz>
25601         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
25602         pool allocator.
25603         (set_hint_predicate): Likewise.
25604         (inline_summary_alloc): Likewise.
25605         (reset_inline_edge_summary): Likewise.
25606         (reset_inline_summary): Likewise.
25607         (set_cond_stmt_execution_predicate): Likewise.
25608         (set_switch_stmt_execution_predicate): Likewise.
25609         (compute_bb_predicates): Likewise.
25610         (estimate_function_body_sizes): Likewise.
25611         (inline_free_summary): Likewise.
25613 2015-06-01  Martin Liska  <mliska@suse.cz>
25615         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
25616         (ipa_edge_duplication_hook): Likewise.
25617         (ipa_free_all_structures_after_ipa_cp): Likewise.
25618         (ipa_free_all_structures_after_iinln): Likewise.
25620 2015-06-01  Martin Liska  <mliska@suse.cz>
25622         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
25623         (ipa_profile_generate_summary): Likewise.
25624         (ipa_profile_read_summary): Likewise.
25625         (ipa_profile): Likewise.
25627 2015-06-01  Martin Liska  <mliska@suse.cz>
25629         * tree-ssa-structalias.c (new_var_info): Use new type-based
25630         pool allocator.
25631         (new_constraint): Likewise.
25632         (init_alias_vars): Likewise.
25633         (delete_points_to_sets): Likewise.
25635 2015-06-01  Martin Liska  <mliska@suse.cz>
25637         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
25638         (free_strinfo): Likewise.
25639         (pass_strlen::execute): Likewise.
25641 2015-06-01  Martin Liska  <mliska@suse.cz>
25643         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
25644         pool allocator.
25645         (vn_reference_insert_pieces): Likewise.
25646         (vn_phi_insert): Likewise.
25647         (visit_reference_op_call): Likewise.
25648         (copy_phi): Likewise.
25649         (copy_reference): Likewise.
25650         (process_scc): Likewise.
25651         (allocate_vn_table): Likewise.
25652         (free_vn_table): Likewise.
25654 2015-06-01  Martin Liska  <mliska@suse.cz>
25656         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
25657         pool allocator.
25658         (add_repeat_to_ops_vec): Likewise.
25659         (get_ops): Likewise.
25660         (maybe_optimize_range_tests): Likewise.
25661         (init_reassoc): Likewise.
25662         (fini_reassoc): Likewise.
25664 2015-06-01  Martin Liska  <mliska@suse.cz>
25666         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
25667         pool allocator.
25668         (bitmap_set_new): Likewise.
25669         (get_or_alloc_expr_for_constant): Likewise.
25670         (get_or_alloc_expr_for): Likewise.
25671         (phi_translate_1): Likewise.
25672         (compute_avail): Likewise.
25673         (init_pre): Likewise.
25674         (fini_pre): Likewise.
25676 2015-06-01  Martin Liska  <mliska@suse.cz>
25678         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
25679         (delete_dep_node): Likewise.
25680         (create_deps_list): Likewise.
25681         (free_deps_list): Likewise.
25682         (sched_deps_init): Likewise.
25683         (sched_deps_finish): Likewise.
25685 2015-06-01  Martin Liska  <mliska@suse.cz>
25687         * regcprop.c (free_debug_insn_changes): Use new type-based
25688         pool allocator.
25689         (replace_oldest_value_reg): Likewise.
25690         (pass_cprop_hardreg::execute): Likewise.
25692 2015-06-01  Martin Liska  <mliska@suse.cz>
25694         * ira-build.c (initiate_cost_vectors): Use new type-based
25695         pool allocator.
25696         (ira_allocate_cost_vector): Likewise.
25697         (ira_free_cost_vector): Likewise.
25698         (finish_cost_vectors): Likewise.
25700 2015-06-01  Martin Liska  <mliska@suse.cz>
25702         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
25703         pool allocator.
25704         (free_sched_pools): Likewise.
25705         * sel-sched-ir.h (_list_alloc): Likewise.
25706         (_list_remove): Likewise.
25708 2015-06-01  Martin Liska  <mliska@suse.cz>
25710         * stmt.c (add_case_node): Use new type-based pool allocator.
25711         (expand_case): Likewise.
25712         (expand_sjlj_dispatch_table): Likewise.
25714 2015-06-01  Martin Liska  <mliska@suse.cz>
25716         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
25717         (free_bb): Likewise.
25718         (pass_cse_reciprocals::execute): Likewise.
25720 2015-06-01  Martin Liska  <mliska@suse.cz>
25722         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
25723         (sra_deinitialize) Likewise.
25724         (create_access_1) Likewise.
25725         (build_accesses_from_assign) Likewise.
25726         (create_artificial_child_access) Likewise.
25728 2015-06-01  Martin Liska  <mliska@suse.cz>
25730         * dse.c (get_group_info):Use new type-based pool allocator.
25731         (dse_step0) Likewise.
25732         (free_store_info) Likewise.
25733         (delete_dead_store_insn) Likewise.
25734         (free_read_records) Likewise.
25735         (record_store) Likewise.
25736         (replace_read) Likewise.
25737         (check_mem_read_rtx) Likewise.
25738         (scan_insn) Likewise.
25739         (dse_step1) Likewise.
25740         (dse_step7) Likewise.
25742 2015-06-01  Martin Liska  <mliska@suse.cz>
25744         * df-scan.c (struct df_scan_problem_data):Use new type-based
25745         pool allocator.
25746         (df_scan_free_internal) Likewise.
25747         (df_scan_alloc) Likewise.
25748         (df_grow_reg_info) Likewise.
25749         (df_free_ref) Likewise.
25750         (df_insn_create_insn_record) Likewise.
25751         (df_mw_hardreg_chain_delete) Likewise.
25752         (df_insn_info_delete) Likewise.
25753         (df_free_collection_rec) Likewise.
25754         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
25755         (df_sort_and_compress_mws) Likewise.
25756         (df_ref_create_structure) Likewise.
25757         (df_ref_record) Likewise.
25759 2015-06-01  Martin Liska  <mliska@suse.cz>
25761         * df-problems.c (df_chain_create):Use new type-based pool allocator.
25762         (df_chain_unlink_1) Likewise.
25763         (df_chain_unlink) Likewise.
25764         (df_chain_remove_problem) Likewise.
25765         (df_chain_alloc) Likewise.
25766         (df_chain_free) Likewise.
25767         * df.h (struct dataflow) Likewise.
25769 2015-06-01  Martin Liska  <mliska@suse.cz>
25771         * cselib.c (new_elt_list):Use new type-based pool allocator.
25772         (new_elt_loc_list) Likewise.
25773         (unchain_one_elt_list) Likewise.
25774         (unchain_one_elt_loc_list) Likewise.
25775         (unchain_one_value) Likewise.
25776         (new_cselib_val) Likewise.
25777         (cselib_init) Likewise.
25778         (cselib_finish) Likewise.
25780 2015-06-01  Martin Liska  <mliska@suse.cz>
25782         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
25783         (sh_reorg) Likewise.
25785 2015-06-01  Martin Liska  <mliska@suse.cz>
25787         * cfg.c (initialize_original_copy_tables):Use new type-based
25788         pool allocator.
25789         (free_original_copy_tables) Likewise.
25790         (copy_original_table_clear) Likewise.
25791         (copy_original_table_set) Likewise.
25793 2015-06-01  Martin Liska  <mliska@suse.cz>
25795         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
25796         pool allocator.
25797         (asan_mem_ref_new) Likewise.
25798         (free_mem_ref_resources) Likewise.
25800 2015-06-01  Martin Liska  <mliska@suse.cz>
25802         * var-tracking.c (variable_htab_free):Use new type-based
25803         pool allocator.
25804         (attrs_list_clear) Likewise.
25805         (attrs_list_insert) Likewise.
25806         (attrs_list_copy) Likewise.
25807         (shared_hash_unshare) Likewise.
25808         (shared_hash_destroy) Likewise.
25809         (unshare_variable) Likewise.
25810         (var_reg_delete_and_set) Likewise.
25811         (var_reg_delete) Likewise.
25812         (var_regno_delete) Likewise.
25813         (drop_overlapping_mem_locs) Likewise.
25814         (variable_union) Likewise.
25815         (insert_into_intersection) Likewise.
25816         (canonicalize_values_star) Likewise.
25817         (variable_merge_over_cur) Likewise.
25818         (dataflow_set_merge) Likewise.
25819         (remove_duplicate_values) Likewise.
25820         (variable_post_merge_new_vals) Likewise.
25821         (dataflow_set_preserve_mem_locs) Likewise.
25822         (dataflow_set_remove_mem_locs) Likewise.
25823         (variable_from_dropped) Likewise.
25824         (variable_was_changed) Likewise.
25825         (set_slot_part) Likewise.
25826         (clobber_slot_part) Likewise.
25827         (delete_slot_part) Likewise.
25828         (loc_exp_insert_dep) Likewise.
25829         (notify_dependents_of_changed_value) Likewise.
25830         (emit_notes_for_differences_1) Likewise.
25831         (vt_emit_notes) Likewise.
25832         (vt_initialize) Likewise.
25833         (vt_finalize) Likewise.
25835 2015-06-01  Martin Liska  <mliska@suse.cz>
25837         * ira-color.c (init_update_cost_records):Use new type-based
25838         pool allocator.
25839         (get_update_cost_record) Likewise.
25840         (free_update_cost_record_list) Likewise.
25841         (finish_update_cost_records) Likewise.
25842         (initiate_cost_update) Likewise.
25844 2015-06-01  Martin Liska  <mliska@suse.cz>
25846         * lra.c (init_insn_regs): Use new type-based pool allocator.
25847         (new_insn_reg) Likewise.
25848         (free_insn_reg) Likewise.
25849         (free_insn_regs) Likewise.
25850         (finish_insn_regs) Likewise.
25851         (init_insn_recog_data) Likewise.
25852         (init_reg_info) Likewise.
25853         (finish_reg_info) Likewise.
25854         (lra_free_copies) Likewise.
25855         (lra_create_copy) Likewise.
25856         (invalidate_insn_data_regno_info) Likewise.
25858 2015-06-01  Martin Liska  <mliska@suse.cz>
25860         * lra-lives.c (free_live_range): Use new type-based pool allocator.
25861         (free_live_range_list) Likewise.
25862         (create_live_range) Likewise.
25863         (copy_live_range) Likewise.
25864         (lra_merge_live_ranges) Likewise.
25865         (remove_some_program_points_and_update_live_ranges) Likewise.
25866         (lra_live_ranges_init) Likewise.
25867         (lra_live_ranges_finish) Likewise.
25869 2015-06-01  Martin Liska  <mliska@suse.cz>
25871         * et-forest.c (et_new_occ): Use new type-based pool allocator.
25872         (et_new_tree): Likewise.
25873         (et_free_tree): Likewise.
25874         (et_free_tree_force): Likewise.
25875         (et_free_pools): Likewise.
25876         (et_split): Likewise.
25878 2015-06-01  Martin Liska  <mliska@suse.cz>
25880         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
25881         to header file.
25882         * alloc-pool.h (pool_allocator::pool_allocator): New function.
25883         (pool_allocator::release): Likewise.
25884         (inline pool_allocator::release_if_empty): Likewise.
25885         (inline pool_allocator::~pool_allocator): Likewise.
25886         (pool_allocator::allocate): Likewise.
25887         (pool_allocator::remove): Likewise.
25889 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
25891         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
25892         in comment.
25894 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
25896         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
25897         to fusible_ops.
25898         * config/arm/arm.c (arm_print_tune_info): Likewise.
25899         (arm_macro_fusion_p): Likewise.
25900         (arm_macro_fusion_pair_p): Likewise.
25902 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
25904         * config/aarch64/aarch64-protos.h (tune_params): Rename
25905         fuseable_ops to fusible_ops.
25906         * config/aarch64/aarch64.c (generic_tunings): Rename
25907         fuseable_ops to fusible_ops.
25908         (cortexa53_tunings): Likewise.
25909         (cortexa57_tunings): Likewise.
25910         (thunderx_tunings): Likewise.
25911         (xgene1_tunings): Likewise.
25912         (aarch64_macro_fusion_p): Likewise.
25913         (aarch64_macro_fusion_pair_p): Likewise.
25915 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25917         * config/s390/driver-native.c: New file.
25918         * config/s390/x-native: New file.
25919         * config.host: Add new files for s390.
25920         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
25921         and -march=native
25922         * config.gcc: Likewise.
25923         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
25924         * config/s390/s390-opts.h (enum processor_type): Ditto.
25925         * config/s390/s390.c (s390_option_override): Catch unhandled
25926         PROCESSOR_NATIVE
25928 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
25930         PR target/65527
25931         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
25932         redirection for instrumented calls.
25933         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
25934         (append_compiler_options): Append -fcheck-pointer-bounds.
25935         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
25936         (chkp_redirect_edge): New.
25937         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
25938         (chkp_redirect_edge): New.
25940 2015-06-01  Richard Biener  <rguenther@suse.de>
25942         PR tree-optimization/66280
25943         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
25944         def-use walking.
25946 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25948         * config/aarch64/aarch64.md
25949         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
25950         logic_shift_imm.
25952 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
25954         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
25955         Remove obsolete kludge.
25957 2015-06-01  Richard Biener  <rguenther@suse.de>
25959         * tree-ssa-reassoc.c (get_rank): Simplify.
25961 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
25963         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
25964         * configure: Regenerated.
25966 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
25968         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
25969         issue (add space between string literal and macro).
25970         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
25972 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
25974         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
25975         implict or explicit -fPIE or -fpie.
25977 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
25979         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
25981 2015-05-28  DJ Delorie  <dj@redhat.com>
25983         * expmed.c (extract_bit_field_1): Avoid clobbering a
25984         yet-to-be-used base/index register.
25986 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
25988         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
25989         (alias_stats): Add num_universal.
25990         (alias_set_subset_of): Special case pointers; be ready for NULL
25991         children.
25992         (alias_sets_conflict_p): Special case pointers; be ready for NULL
25993         children.
25994         (init_alias_set_entry): Break out from ...
25995         (record_alias_subset): ... here; propagate new fields;
25996         allocate children only when really needed.
25997         (get_alias_set): Do less generous pointer globbing.
25998         (dump_alias_stats_in_alias_c): Update statistics.
26000 2015-05-30  Alan Modra  <amodra@gmail.com>
26002         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26003         correct block for use of r12.
26004         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26006 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26008         PR target/66215
26009         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26010         with -mhotpatch=.
26012 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
26014         PR tree-optimization/66142
26015         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26016         virtual phis that feed themselves.
26018 2015-05-29  Richard Biener  <rguenther@suse.de>
26020         PR tree-optimization/66314
26021         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26022         parameter that says which loop the new block belongs to.
26023         (ssa_create_duplicates): Blocks duplicated for the threaded
26024         path belong to the loop of the thread destination.
26026 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26028         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26029         to cleanup-saved-temps.
26030         * doc/sourcebuild.texi (Clean up generated test files): Expand
26031         introduction.
26032         (dg-keep-saved-temps): Document new proc.
26033         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26034         cleanup-saved-temps): Remove.
26036 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
26038         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26039         gcc_AC_CHECK_DECLS.
26040         * configure: Regenerate.
26042 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26044         * config/nios2/linux.h (CPP_SPEC): Define.
26046 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26048         * config/microblaze/linux.h (CPP_SPEC): Define.
26050 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26052         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26053         -pthread is specified.
26055 2015-05-28  Richard Biener  <rguenther@suse.de>
26057         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26058         (vect_fixup_scalar_cycles_with_patterns): Likewise.
26059         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26060         after pattern recog.
26061         (vect_create_epilog_for_reduction): Properly handle reductions
26062         with patterns.
26063         (vectorizable_reduction): Likewise.
26064         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26065         reduction chains.
26066         (vect_get_constant_vectors): Create the correct number of
26067         initial values for reductions.
26068         (vect_schedule_slp_instance): Handle reduction chains that are
26069         type changing properly.
26070         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26072 2015-05-28  Richard Biener  <rguenther@suse.de>
26074         PR tree-optimization/66142
26075         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26076         values better in memcpy destination handling.  Handle non-aliasing
26077         we discover here.
26079 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
26081         PR target/63810
26082         * config/darwin-c.c (version_components): New global enum.
26083         (parse_version, version_as_legacy_macro)
26084         (version_as_modern_macro, macosx_version_as_macro): New functions.
26085         (version_as_macro): Remove.
26086         (darwin_cpp_builtins): Use new function.
26088 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
26090         * builtins.c (expand_builtin_acc_on_device): Mark parameters
26091         with ATTRIBUTE_UNUSED.
26093 2015-05-28  Julian Brown  <julian@codesourcery.com>
26095         PR libgomp/65742
26097         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26098         sequence for !ACCEL_COMPILER.
26100 2015-05-28  Nick Clifton  <nickc@redhat.com>
26102         * config/rx/rx.c (push_regs): New function.  Extracts code from...
26103         (rx_expand_prologue): ... here.  Use push_regs to push even small
26104         spans of registers.
26105         (pop_regs): New function.
26106         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
26107         registers.
26109 2015-05-28  Richard Biener  <rguenther@suse.de>
26111         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26112         member.
26113         (SLP_INSTANCE_BODY_COST_VEC): Remove.
26114         (vect_update_slp_costs_according_to_vf): Likewise.
26115         (vect_slp_analyze_operations): Update prototype.
26116         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26117         vect_update_slp_costs_according_to_vf, adjust.
26118         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26119         (vect_analyze_slp_cost_1): Likewise.
26120         (vect_analyze_slp_cost): Likewise.  Properly deal with
26121         widening reduction ops.  Commit body costs.
26122         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
26123         cost for loops from here.
26124         (vect_slp_analyze_operations): But do it from here when
26125         the vectorization factor is known and stmts are analyzed.
26126         (vect_bb_vectorization_profitable_p): Simplify.
26127         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26128         (vect_update_slp_costs_according_to_vf): Remove.
26130 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
26131             H.J. Lu  <hongjiu.lu@intel.com>
26133         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26134         (BUILD_CFLAGS): Likewise.
26135         (BUILD_CXXFLAGS): Likewise.
26136         (LINKER): Add @NO_PIE_FLAG@.
26137         (BUILD_LDFLAGS): Likewise.
26138         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26139         --enable-default-pie.
26140         * common.opt (fPIE): Initialize to -1.
26141         (fpie): Likewise.
26142         (no-pie): New option.
26143         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26144         * configure.ac: Add --enable-default-pie.
26145         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
26146         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
26147         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
26148         * gcc.c (NO_PIE_SPEC): New.
26149         (PIE_SPEC): Likewise.
26150         (NO_FPIE1_SPEC): Likewise.
26151         (FPIE1_SPEC): Likewise.
26152         (NO_FPIE2_SPEC): Likewise.
26153         (FPIE2_SPEC): Likewise.
26154         (NO_FPIE2_SPEC): Likewise.
26155         (FPIE_SPEC): Likewise.
26156         (NO_FPIE_SPEC): Likewise.
26157         (NO_FPIC1_SPEC): Likewise.
26158         (FPIC1_SPEC): Likewise.
26159         (NO_FPIC2_SPEC): Likewise.
26160         (FPIC2_SPEC): Likewise.
26161         (NO_FPIC2_SPEC): Likewise.
26162         (FPIC_SPEC): Likewise.
26163         (NO_FPIC_SPEC): Likewise.
26164         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26165         (FPIE1_OR_FPIC1_SPEC): Likewise.
26166         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26167         (FPIE2_OR_FPIC2_SPEC): Likewise.
26168         (NO_FPIE_AND_FPIC_SPEC): Likewise.
26169         (FPIE_OR_FPIC_SPEC): Likewise.
26170         (LD_PIE_SPEC): Likewise.
26171         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
26172         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26173         * config/darwin.h (PIE_SPEC): Renamed to ...
26174         (DARWIN_PIE_SPEC): This.
26175         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26176         * config/darwin9.h (PIE_SPEC): Renamed to ...
26177         (DARWIN_PIE_SPEC): This.
26178         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26179         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26180         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26181         FPIE2_OR_FPIC2_SPEC.
26182         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26183         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26184         * config/sol2.h (ASM_PIC_SPEC): Likewise.
26185         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26186         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26187         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26188         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26189         * config/m32r/m32r.h (ASM_SPEC): Likewise.
26190         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26191         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26192         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26193         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26194         * config/sparc/linux.h (ASM_SPEC): Likewise.
26195         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26196         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26197         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26198         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26199         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26200         * config/sparc/sparc.h (ASM_SPEC): Likewise.
26201         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26202         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26203         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26204         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26205         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26206         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26207         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26208         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26209         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26210         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26211         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26212         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26213         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26214         * config/vax/linux.h (ASM_SPEC): Likewise.
26215         * doc/install.texi: Document --enable-default-pie.
26216         * doc/invoke.texi: Document -no-pie.
26217         * config.in: Regenerated.
26218         * configure: Likewise.
26220 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26222         PR rtl-optimization/66168
26223         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26224         can_move_invariant_reg.
26226 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
26228         PR target/66148
26229         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26230         REG_EQUAL note when doing insert.
26232         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26233         instead of "%d" for 'o' operand.
26235 2015-05-27  Nathan Sidwell  <nathan@acm.org>
26237         PR c++/66270
26238         * tree.c (build_pointer_type_for_mode): Canonical type does not
26239         inherit can_alias_all.
26240         (build_reference_type_for_mode): Likewise.
26242 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26244         * expr.h (array_at_struct_end_p): Move to...
26245         (array_ref_element_size): Likewise.
26246         (component_ref_field_offset): Likewise.
26247         * tree.h (array_ref_element_size): ...here.
26248         (array_at_struct_end_p): Likewise.
26249         (component_ref_field_offset): Likewise.
26250         * expr.c (array_ref_element_size): Move to...
26251         (array_ref_low_bound): Likewise.
26252         (array_at_struct_end_p): Likewise.
26253         (array_ref_up_bound): Likewise.
26254         (component_ref_field_offset): Likewise.
26255         * tree.c (array_ref_element_size): ...here.
26256         (array_ref_low_bound): Likewise.
26257         (array_ref_up_bound): Likewise.
26258         (array_at_struct_end_p): Likewise.
26259         (component_ref_field_offset): Likewise.
26261 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26262             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26264         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26266 2015-05-27  Jason Merrill  <jason@redhat.com>
26268         PR bootstrap/66304
26269         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26270         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26271         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26273 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
26275         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26276         is true.
26278         * statistics.c (statistics_fini_pass): Print pass name.
26280 2015-05-27  Richard Biener  <rguenther@suse.de>
26282         PR tree-optimization/66272
26283         Revert parts of
26284         2014-08-15  Richard Biener  <rguenther@suse.de>
26286         PR tree-optimization/62031
26287         * tree-data-ref.c (dr_analyze_indices): Do not set
26288         DR_UNCONSTRAINED_BASE.
26289         (dr_may_alias_p): All indirect accesses have to go the
26290         formerly DR_UNCONSTRAINED_BASE path.
26291         * tree-data-ref.h (struct indices): Remove
26292         unconstrained_base member.
26293         (DR_UNCONSTRAINED_BASE): Remove.
26295 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
26297         * dwarf2out.c: Remove block_map.
26298         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26299         (gen_lexical_block_die): Same.
26300         (dwarf2out_function_decl): Remove block_map use.
26301         (dwarf2out_c_finalize): Same.
26302         * tree-core.h (struct tree_block): Add die field.
26303         * tree.h (BLOCK_DIE): New.
26305 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26307         PR target/65358
26308         * expr.c (memory_load_overlap): New function.
26309         (emit_push_insn): When pushing partial args to the stack would
26310         clobber the register part load the overlapping part into a pseudo
26311         and put it into the hard reg after pushing.  Change return type
26312         to bool.  Add bool argument.
26313         * expr.h (emit_push_insn): Change return type to bool.
26314         Add bool argument.
26315         * calls.c (expand_call): Cancel sibcall optimization when encountering
26316         partial argument on targets with ARGS_GROW_DOWNWARD and
26317         !STACK_GROWS_DOWNWARD.
26318         (emit_library_call_value_1): Update callsite of emit_push_insn.
26319         (store_one_arg): Likewise.
26321 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26323         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26325 2015-05-27  Martin Liska  <mliska@suse.cz>
26327         * Makefile.in: Add additional dependencies related to memory report
26328         enhancement.
26329         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26330         * bitmap.c (struct bitmap_descriptor_d): Remove.
26331         (struct loc): Likewise.
26332         (struct bitmap_desc_hasher): Likewise.
26333         (bitmap_desc_hasher::hash): Likewise.
26334         (bitmap_desc_hasher::equal): Likewise.
26335         (get_bitmap_descriptor): Likewise.
26336         (bitmap_register): User new memory descriptor API.
26337         (register_overhead): Likewise.
26338         (bitmap_find_bit): Register nsearches and search_iter statistics.
26339         (struct bitmap_output_info): Remove.
26340         (print_statistics): Likewise.
26341         (dump_bitmap_statistics): Use new memory descriptor.
26342         * bitmap.h (struct bitmap_usage): New class.
26343         * genmatch.c: Extend header file inclusion.
26344         * genpreds.c: Likewise.
26345         * ggc-common.c (struct ggc_usage): New class.
26346         (struct ggc_loc_desc_hasher): Remove.
26347         (ggc_loc_desc_hasher::hash): Likewise.
26348         (ggc_loc_desc_hasher::equal): Likewise.
26349         (struct ggc_ptr_hash_entry): Likewise.
26350         (struct ptr_hash_hasher): Likewise.
26351         (ptr_hash_hasher::hash): Likewise.
26352         (ptr_hash_hasher::equal): Likewise.
26353         (make_loc_descriptor): Likewise.
26354         (ggc_prune_ptr): Likewise.
26355         (dump_ggc_loc_statistics): Use new memory descriptor.
26356         (ggc_record_overhead): Likewise.
26357         (ggc_free_overhead): Likewise.
26358         (final_cmp_statistic): Remove.
26359         (cmp_statistic): Likewise.
26360         (ggc_add_statistics): Liekwise.
26361         (ggc_prune_overhead_list): Likewise.
26362         * hash-map-traits.h: New file.
26363         * hash-map.h (struct default_hashmap_traits): Move the traits to a
26364         separate header file.
26365         * hash-set.h: Pass memory statistics info to ctor.
26366         * hash-table.c (void dump_hash_table_loc_statistics): New function.
26367         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26368         (hash_table::~hash_table): Register memory release operation.
26369         (hash_table::alloc_entries): Handle memory allocation operation.
26370         (hash_table::expand): Likewise.
26371         * inchash.c (iterative_hash_hashval_t): Move implementation to header
26372         file.
26373         (iterative_hash_host_wide_int): Likewise.
26374         * inchash.h (class hash): Likewise.
26375         * mem-stats-traits.h: New file.
26376         * mem-stats.h: New file.
26377         (mem_location): Add new class.
26378         (mem_usage): Likewise.
26379         (mem_alloc_description): Likewise.
26380         * sese.c: Add new header file inclusision.
26381         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26382         and hash_set.
26383         * tree-sra.c: Add new header file inclusision.
26384         * vec.c (struct vec_descriptor): Remove.
26385         (hash_descriptor): Likewise.
26386         (struct vec_usage): Likewise.
26387         (struct ptr_hash_entry): Likewise.
26388         (hash_ptr): Likewise.
26389         (eq_ptr): Likewise.
26390         (vec_prefix::register_overhead): Use new memory descriptor API.
26391         (vec_prefix::release_overhead): Likewise.
26392         (add_statistics): Remove.
26393         (dump_vec_loc_statistics): Use new memory descriptor API.
26394         * vec.h (struct vec_prefix): Likewise.
26395         (va_heap::reserve): Likewise.
26396         (va_heap::release): Likewise.
26397         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26399 2015-05-27  Richard Biener  <rguenther@suse.de>
26401         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26402         earlier and remove ??? comment.
26403         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26404         and got called from loop analysis bail out.  Always pass the SLP
26405         node to the vectorizable_* functions.
26406         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26407         the premature SLP check here.
26408         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26409         detected SLP stmts.
26410         (vect_detect_hybrid_slp_1): Likewise.
26412 2015-05-26  Jeff Law  <law@redhat.com>
26414         * combine.c (find_split_point): Verify that the shift count is a
26415         constant when choosing (plus (ashift ...)) as a split point.
26417         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26418         No functional changes.
26420 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
26422         * ipa-polymorphic-call.c
26423         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26424         case when call target is already known.
26426 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
26428         PR target/65979
26429         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26430         take into account the case that operands[1] and operands[2]
26431         are the same register.
26433 2015-05-26  Michael Matz  <matz@suse.de>
26435         PR middle-end/66251
26437         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26438         stores.
26439         (vect_create_vectorized_demotion_stmts): Always set
26440         STMT_VINFO_VEC_STMT, also with SLP.
26441         (vectorizable_store): Handle strided group stores.
26443 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26445         PR target/66049
26446         * config/aarch64/aarch64.md
26447         (*adds_shift_imm_<mode>):  New pattern.
26448         (*subs_shift_imm_<mode>):  Likewise.
26449         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
26450         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
26451         (*add_uxt<mode>_shift2): Likewise.
26452         (*add_uxtsi_shift2_uxtw): Likewise.
26453         (*sub_uxt<mode>_shift2): Likewise.
26454         (*sub_uxtsi_shift2_uxtw): Likewise.
26456 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
26458         * config/rs6000/constraints.md (Y, U): Use match_test.
26460 2015-05-26  Christian Bruel  <christian.bruel@st.com>
26462         PR target/52144
26463         * config/arm/arm.c (arm_option_check_internal)
26464         (arm_option_params_internal): Check opts->target_flags to set macros.
26465         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26466         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
26467         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26468         (builtin_define): Replaced with def_or_undef_macro.
26469         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
26470         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
26471         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
26472         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
26473         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
26474         (TARGET_ARM_FEATURE_LDREX_P)
26475         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
26476         * config/arm/arm-c.c (def_or_undef_macro): New function.
26477         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
26479 2015-05-26  Christian Bruel  <christian.bruel@st.com>
26481         * c-common.h (builtin_define_with_int_value)
26482         (builtin_define_type_sizeof): Declare.
26483         * c-cppbuiltin.c (builtin_define_with_int_value)
26484         (builtin_define_type_sizeof): Externalize.
26485         (builtin_define_std): Cleanup declaration.
26486         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
26487         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
26488         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
26489         (builtin_define, builtin_assert): New macros.
26491 2015-05-26  Richard Biener  <rguenther@suse.de>
26493         PR tree-optimization/66142
26494         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
26495         MEM_REFs for the same base address.
26497 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26499         PR ipa/66181
26500         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
26502 2015-05-26  Jason Merrill  <jason@redhat.com>
26504         * configure.ac: Set CXXFLAGS for ISL test.
26505         * configure: Regenerate.
26507         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
26508         strstr and basename.
26509         * configure: Regenerate.
26511 2015-05-26  Richard Biener  <rguenther@suse.de>
26513         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
26514         X % C -> X & (C - 1) for C being a power-of two to ...
26515         * match.pd: ... patterns.
26517 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
26519         * match.pd (swapped_tcc_comparison): New operator list.
26520         (-A CMP -B): New simplification.
26521         * fold-const.c (fold_comparison): Remove corresponding code.
26523 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
26525         * caller-save.c (init_caller_save): Base temporary register numbers
26526         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
26527         * cfgloopanal.c (init_set_costs): Likewise.
26528         * dojump.c (prefer_and_bit_test): Likewise.
26529         * expr.c (init_expr_target): Likewise.
26530         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26531         * lower-subreg.c (init_lower_subreg): Likewise.
26532         * postreload.c (reload_cse_regs_1): Likewise.
26534 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
26536         * gensupport.h (compute_test_codes): Declare.
26537         * gensupport.c (compute_predicate_codes): Rename to...
26538         (compute_test_codes): ...this.  Generalize error message.
26539         (process_define_predicate): Update accordingly.
26540         * genpreds.c (compute_maybe_allows): Delete.
26541         (add_constraint): Use compute_test_codes to determine whether
26542         something can accept a SUBREG, REG or MEM.
26544 2015-05-26  Torvald Riegel  <triegel@redhat.com>
26546         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
26547         'memory model' to align with C++11; fix description of memory orders;
26548         fix a few typos.
26550 2015-05-26  Richard Biener  <rguenther@suse.de>
26552         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
26553         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
26554         detect whether we apply SLP.  Remove call to
26555         vect_update_slp_costs_according_to_vf.
26556         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
26557         vect_update_slp_costs_according_to_vf from here.  Dispatch
26558         to vect_slp_analyze_operations to analyze SLP stmts.
26559         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
26560         unused bb_vec_info parameter, adjust assert.
26561         (vect_slp_analyze_operations): Pass in the slp instance tree
26562         instead of bb_vec_info.
26563         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
26564         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
26566 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
26568         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
26569         Q_REGS.  Expand comment.
26570         (REG_CLASS_NAMES): Ditto.
26571         (REG_CLASS_CONTENTS): Ditto.
26573 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
26575         PR target/66274
26576         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
26577         when LEGACY_INT_REGNO_P is processed.
26579 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
26581         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
26583 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
26585         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
26586         register if not marked dead/unused, before return.
26588 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
26590         PR lto/66180
26591         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
26592         is set; check for assembler name at LTO time.
26593         (type_in_anonymous_namespace): Remove hacks, check that all
26594         anonymous types are called "<anon>"
26595         (odr_type_p): Simplify; add check for "<anon>"
26596         (odr_subtypes_equivalent): Add odr_type_p check.
26597         * tree.c (need_assembler_name_p): Even anonymous namespace needs
26598         assembler name.
26600 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
26602         * ipa-utils.h (method_class_type): Remove.
26603         * cgraphunit.c (walk_polymorphic_call_targets): Use
26604         TYPE_METHOD_BASETYPE.
26605         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
26606         on main variants only.
26607         (method_class_type): Remove.
26608         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
26609         (build_type_inheritance_graph): Likewise.
26610         * ipa-icf.c (sem_function::equals_wpa): Likewise.
26611         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
26612         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
26614 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
26616         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
26617         is_typedef_decl, typedef_variant_p): Constify.
26618         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
26619         is_typedef_decl, typedef_variant_p): Constify.
26621 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26623         * defaults.h (gen_tablejump): New function.
26624         (HAVE_tablejump): Add default value.
26625         * expr.c: Adjust.
26626         * stmt.c: Likewise.
26628 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26630         * defaults.h (gen_store_multiple): New function.
26631         (HAVE_store_multiple): Add default value.
26632         * expr.c (move_block_from_reg): Adjust.
26634 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26636         * defaults.h (gen_load_multiple): New function.
26637         (HAVE_load_multiple): Add default value.
26638         * expr.c (move_block_to_reg): Adjust.
26640 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26642         * defaults.h (gen_mem_signal_fence): New function.
26643         (HAVE_mem_signal_fence): Add default value.
26644         * optabs.c: Adjust.
26646 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26648         * defaults.h (gen_memory_barrier): New function.
26649         (HAVE_memory_barrier): Add default value.
26650         * optabs.c: Adjust.
26652 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26654         * defaults.h (gen_mem_thread_fence): New function.
26655         (HAVE_mem_thread_fence): Add default definition.
26656         * optabs.c: Adjust.
26658 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26660         * combine.c (find_split_point): Check the value of HAVE_lo_sum
26661         instead of if it is defined.
26662         (combine_simplify_rtx): Likewise.
26663         * lra-constraints.c (process_address_1): Likewise.
26664         * config/darwin.c: Adjust.
26665         * genconfig.c (main): Always define HAVE_lo_sum.
26667 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26669         * genmatch.c (parser::parse_operation): Reject expanding
26670         operator-list inside 'for'.
26672 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26674         * genmatch.c (parser::parse_for): Reject iterator if used as
26675         operator-list.
26677 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26679         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
26680         after end of id-list.
26682 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
26684         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
26685         we do not try to compute canonical type for type that does not need
26686         alias set.
26687         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
26688         FUNCITON_TYPE.
26689         * tree.h (type_with_alias_set_p): New.
26691 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
26693         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
26694         function attributes.
26695         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
26697 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
26699         * Makefile.in (check_gcc_parallelize): Delete.
26700         (lang_checks_parallelized): Update comment.
26702 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
26704         PR rtl-optimization/66237
26705         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
26706         location of an "as_a" cast.
26708 2015-05-22  Jeff Law  <law@redhat.com>
26710         * config/pa/pa.md (non-canonical shift-add insns): Remove.
26711         (peepholes with non-canonical RTL sources): Remove.
26712         (peepholes for indexed stores of FP regs in integer modes): Match and
26713         generate canonical RTL.
26715 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
26717         PR tree-optimization/63387
26718         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
26719         ((x ord x) & (y ord y) -> (x ord y),
26720         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
26721         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
26722         vectors like scalars.
26724 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
26726         * convert.c (convert_to_integer, convert_to_vector): Include the
26727         types in the error message.
26729 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
26731         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
26732         simplifications.
26734 2015-05-22  Jeff Law  <law@redhat.com>
26736         * config/pa/pa.md (integer_indexed_store splitters): Use
26737         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
26738         insns -- adjusting the constant 2nd operand accordingly.
26740         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
26741         (plus (ashift X log2) Y) if it is a split point.
26743         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
26744         out of hppa_legitimize_address to handle both forms of a multiply
26745         by 2, 4 or 8.
26746         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
26747         Always generate the ASHIFT variant as the result is not directly
26748         used in a MEM.  Update comments and refactor slightly to improve
26749         readability.
26751 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26753         PR target/65491
26754         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
26755         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
26756         (aarch64_composite_type_p): Return false if given type and mode are
26757         for a short vector.
26759 2015-05-22  Richard Biener  <rguenther@suse.de>
26761         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
26762         member.
26763         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
26764         patterns when determining whether SLP is pure.
26765         (vect_is_slp_reduction): Remove check for pattern stmts.
26766         (vect_is_simple_reduction_1): Remove dead code.
26767         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
26768         (vect_get_and_check_slp_defs): Pass in the stmt number.
26769         Allow the first def in a reduction to be not a pattern stmt when
26770         the rest of the stmts def are patterns.
26771         (vect_build_slp_tree_1): Allow tcc_expression codes like
26772         SAD_EXPR and DOT_PROD_EXPR.
26773         (vect_build_slp_tree): Adjust.
26774         (vect_analyze_slp): Refactor and move BB vect error message ...
26775         (vect_slp_analyze_bb_1): ... here.
26777 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
26779         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
26780         for CSWTCH temporary.
26782 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26784         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
26785         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
26786         unknown unspecs.
26788 2015-05-22  Richard Biener  <rguenther@suse.de>
26790         PR tree-optimization/66251
26791         * tree-vect-stmts.c (vectorizable_conversion): Properly
26792         set STMT_VINFO_VEC_STMT even for the SLP case.
26794 2015-05-22  Marek Polacek  <polacek@redhat.com>
26796         * doc/extend.texi: Use @pxref instead of @xref.
26798 2015-05-22  hiraditya  <hiraditya@msn.com>
26800         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
26801         redundant if.
26803 2015-05-22  Richard Biener  <rguenther@suse.de>
26805         PR tree-optimization/65701
26806         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26807         Move peeling cost models into one place.  Peel for alignment
26808         for single loads only if an aligned load is cheaper than
26809         an unaligned load.
26811 2015-05-22  Marek Polacek  <polacek@redhat.com>
26813         PR c/47043
26814         * doc/extend.texi (Enumerator Attributes): New section.
26815         Document syntax of enumerator attributes.
26817 2015-05-22  Richard Biener  <rguenther@suse.de>
26819         * tree-vect-loop.c (get_reduction_op): New function.
26820         (vect_model_reduction_cost): Use it, add reduc_index parameter.
26821         Make ready for BB reductions.
26822         (vect_create_epilog_for_reduction): Use get_reduction_op.
26823         (vectorizable_reduction): Init reduc_index to a valid value.
26824         Adjust vect_model_reduction_cost call.
26825         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
26826         operand for reduction defaults.  Add SAD_EXPR support.
26827         Assert we have a neutral op for SLP reductions.
26828         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
26829         walking pattern stmt ops only recurse to SSA names.
26831 2015-05-22  Richard Biener  <rguenther@suse.de>
26833         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
26834         assert with guard, remove check on detected reduction.
26835         (vect_recog_sad_pattern): Likewise.
26836         (vect_recog_widen_sum_pattern): Likewise.
26838 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26840         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
26841         __always_inline__ attribute.
26842         (vaesdq_u8): Likewise.
26843         (vaesmcq_u8): Likewise.
26844         (vaesimcq_u8): Likewise.
26845         (vsha1cq_u32): Likewise.
26846         (vsha1mq_u32): Likewise.
26847         (vsha1pq_u32): Likewise.
26848         (vsha1h_u32): Likewise.
26849         (vsha1su0q_u32): Likewise.
26850         (vsha1su1q_u32): Likewise.
26851         (vsha256hq_u32): Likewise.
26852         (vsha256h2q_u32): Likewise.
26853         (vsha256su0q_u32): Likewise.
26854         (vsha256su1q_u32): Likewise.
26855         (vmull_p64): Likewise.
26856         (vmull_high_p64): Likewise.
26858 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26860         * final.c (final_scan_insn): Don't check HAVE_peephole with the
26861         preprocessor.
26862         * output.h: Likewise.
26863         * genconfig.c (main): Alwways define HAVE_peephole.
26864         * genpeep.c: Don't emit checks of HAVE_peephole.
26866 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26868         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
26869         check HAVE_conditional_move with the preprocessor.
26871 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26873         * genconfig.c (main): Always define HAVE_conditional_move.
26874         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
26875         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
26876         is defined.
26878 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26880         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
26881         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
26882         and FRAME_POINTER_REGNUM with the preprocessor.
26884 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26886         * defaults.h: Add default for STACK_PUSH_CODE.
26887         * expr.c: Don't redefine STACK_PUSH_CODE.
26888         * recog.c: Likewise.
26890 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26892         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
26893         sched-deps.c: Use if instead of preprocessor checks with
26894         STACK_GROWS_DOWNWARD.
26896 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26898         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
26899         is defined.
26900         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
26901         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
26902         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
26903         * doc/tm.texi: Regenerate.
26905 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
26907         PR target/66232
26908         * config/i386/constraints.md (Bg): New constraint for GOT memory
26909         operand.
26910         * config/i386/i386.md (*call_got_x32): New pattern.
26911         (*call_value_got_x32): Likewise.
26912         * config/i386/predicates.md (GOT_memory_operand): New predicate.
26914 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
26916         PR tree-optimization/66233
26917         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
26918         Simplify.
26920 2015-05-21  Jeff Law  <law@redhat.com>
26922         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
26923         than MULT for shadd sequences.
26925 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
26927         * alias.c (alias_stats): New static var.
26928         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
26929         (dump_alias_stats_in_alias_c): New function.
26930         * alias.h (dump_alias_stats_in_alias_c): Declare.
26931         * tree-ssa-alias.c (dump_alias_stats): Call it.
26933 2015-05-08  Michael Matz  <matz@suse.de>
26935         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
26936         to strided_p.
26937         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
26938         (STMT_VINFO_STRIDED_P): ... this.
26939         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
26940         (vect_verify_datarefs_alignment): Likewise.
26941         (vect_enhance_data_refs_alignment): Likewise.
26942         (vect_analyze_data_ref_access): Likewise.
26943         (vect_analyze_data_refs): Accept strided stores.
26944         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
26945         (vect_model_load_cost): Adjust for macro rename.
26946         (vectorizable_mask_load_store): Likewise.
26947         (vectorizable_load): Likewise.
26948         (vectorizable_store): Open code strided stores.
26950 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26952         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
26953         Document sqrt_insn.
26955 2015-05-21  Richard Biener  <rguenther@suse.de>
26957         PR c++/66211
26958         * match.pd: Guard pattern optimzing (int)(float)int
26959         conversions to apply only on GIMPLE.
26961 2015-05-21  Jeff Law  <law@redhat.com>
26963         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
26964         multiply-accumulate/shift-add insn generation.
26966 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
26968         PR target/54236
26969         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
26970         operands[1] are the same.
26972 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
26974         PR middle-end/66221
26975         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
26976         build_distinct_type_copy to copy bounds.
26978 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
26980         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
26981         Change to unsigned int.
26983 2015-05-20  Jeff Law  <law@redhat.com>
26985         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
26986         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
26987         (pa_shadd_constant_p): Allow constants for shadd insns rather
26988         than valid scaling constants for memory addresses.
26989         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
26990         * config/pa/predicates.md (mem_shadd_operand): New predicate.
26991         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
26992         (shift-add insns using ASHIFT): New patterns.
26994 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
26996         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
26997         feasible.
26998         (fix_up_fall_thru_edges): Likewise.
26999         (fix_crossing_conditional_branches): Likewise. Promote jump targets
27000         from to rtx_insn to rtx_code_label where feasible.
27001         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27002         gen_move_insn (returned type changed to rtx_insn).
27003         * builtins.c (expand_errno_check): Fix arguments of
27004         do_compare_rtx_and_jump (now expects rtx_code_label).
27005         (expand_builtin_acc_on_device): Likewise.
27006         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27007         invert_jump (now exprects rtx_jump_insn).
27008         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27009         (construct_init_block): Use rtx_code_label.
27010         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27011         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27012         calling redirect_jump.
27013         (patch_jump_insn): Likewise.
27014         (redirect_branch_edge): Likewise.
27015         (force_nonfallthru_and_redirect): Likewise.
27016         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27017         when suitable.
27018         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27019         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27020         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27021         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27022         to store the value retured by gen_label_rtx.
27023         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27024         rtx_jump_insn.
27025         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27026         (split_branches): Fix calls of redirect_jump.
27027         * dojump.c (jumpifnot): Promote argument type from rtx to
27028         rtx_code_label.
27029         (jumpifnot_1): Likewise.
27030         (jumpif): Likewise.
27031         (jumpif_1): Likewise.
27032         (do_jump_1): Likewise.
27033         (do_jump): Likewise. Use rtx_code_label when feasible.
27034         (do_jump_by_parts_greater_rtx): Likewise.
27035         (do_jump_by_parts_zero_rtx): Likewise.
27036         (do_jump_by_parts_equality_rtx): Likewise.
27037         (do_compare_rtx_and_jump): Likewise.
27038         * dojump.h: Update function prototypes.
27039         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27040         returns rtx_insn).
27041         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27042         rtx_jump_insn.
27043         (emit_label_before): Likewise.
27044         (emit_jump_insn_after_noloc): Likewise.
27045         (emit_jump_insn_after_setloc): Likewise.
27046         (emit_jump_insn_after): Likewise
27047         (emit_jump_insn_before_setloc): Likewise.
27048         (emit_jump_insn_before): Likewise.
27049         (emit_label_before): Promote return type to rtx_code_label.
27050         (emit_label): Likewise.
27051         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27052         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27053         gen_move_insn.
27054         (emit_stack_restore): Likewise.
27055         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27056         (do_cmp_and_jump): Likewise.
27057         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27058         from rtx to rtx_code_label.
27059         (gen_move_insn_uncast): New function.
27060         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27061         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27062         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27063         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27064         invert_jump_1 and redirect_jump_1.
27065         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27066         do_compare_rtx_and_jump.
27067         (expand_addsub_overflow): Likewise.
27068         (expand_neg_overflow): Likewise.
27069         (expand_mul_overflow): Likewise.
27070         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27071         return value of gen_move_insn.
27072         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27073         * loop-doloop.c (add_test): Use rtx_code_label.
27074         (doloop_modify): Likewise.
27075         (doloop_optimize): Likewise.
27076         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27077         * lra-constraints.c (emit_spill_move): Remove cast of value returned
27078         by gen_move_insn.
27079         (inherit_reload_reg): Add cast when calling dump_insn_slim.
27080         (split_reg): Likewise.
27081         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27082         gen_move_insn.
27083         * optabs.c (expand_binop_directly): Remove casts of values returned by
27084         maybe_gen_insn.
27085         (expand_unop_direct): Likewise.
27086         (expand_abs): Likewise.
27087         (maybe_emit_unop_insn): Likewise.
27088         (maybe_gen_insn): Promote return type to rtx_insn.
27089         * optabs.h: Update prototype of maybe_gen_insn.
27090         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27091         redundant cast.
27092         * recog.c (struct peep2_insn_data): Promote type of insn field to
27093         rtx_insn.
27094         (peep2_reinit_state): Use NULL instead of NULL_RTX.
27095         (peep2_attempt): Remove casts of insn in peep2_insn_data.
27096         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27097         * recog.h (struct insn_gen_fn): Promote return types of function
27098         pointers and operator ().from rtx to rtx_insn.
27099         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27100         (fill_eager_delay_slots): Likewise.
27101         (relax_delay_slots): Likewise.
27102         (make_return_insns): Likewise.
27103         (dbr_schedule): Likewise.
27104         (optimize_skips): Likewise.
27105         (reorg_redirect_jump): Likewise.
27106         (fill_slots_from_thread): Likewise.
27107         * reorg.h: Update prototypes.
27108         * resource.c (find_dead_or_set_registers): Use dyn_cast to
27109         rtx_jump_insn instead of check.  Use it's jump_target method.
27110         * rtl.h (rtx_jump_insn::jump_label): Define new method.
27111         (rtx_jump_insn::jump_target): Define new method.
27112         (rtx_jump_insn::set_jump_target): Define new method.
27113         * rtlanal.c (tablejump_p): Promote type of one local variable.
27114         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27115         (sched_analyze_insn): Likewise.
27116         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27117         (print_insn): Likewise.
27118         * stmt.c (label_rtx): Promote return type to rtx_insn.
27119         (force_label_rtx): Likewise.
27120         (jump_target_rtx): Define new function.
27121         (expand_label): Use it, get rid of one cast.
27122         (expand_naked_return): Promote rtx to rtx_code_label.
27123         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27124         (expand_case): Use rtx_code_label instread of rtx where feasible.
27125         (expand_sjlj_dispatch_table): Likewise.
27126         (emit_case_nodes): Likewise.
27127         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
27128         * store-motion.c (insert_store): Make use of new return type of
27129         gen_move_insn and remove a cast.
27130         (replace_store_insn): Likewise.
27132 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
27134         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27135         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27137 2015-05-20  Jeff Law  <law@redhat.com>
27139         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27140         dispose of the jump thread path when the jump threading
27141         opportunity is cancelled.
27143 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27145         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27146         when printing the caret character.
27148 2015-05-20  Marek Polacek  <polacek@redhat.com>
27150         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27152 2015-05-20  Marek Polacek  <polacek@redhat.com>
27154         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27155         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27156         * gimple-fold.c (canonicalize_bool): Likewise.
27157         (same_bool_result_p): Likewise.
27158         * tree-if-conv.c (parse_predicate): Likewise.
27160 2015-05-20  Marek Polacek  <polacek@redhat.com>
27162         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27163         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27165 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27167         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27168         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27169         values.
27171 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
27173         * config/mips/mips.h (micromips_globals): Declare.
27175 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
27177         * timevar.def (TV_INITIALIZE_RTL): New.
27178         * toplev.c (initialize_rtl): Use an auto_timevar to account this
27179         function's time to TV_INITIALIZE_RTL.
27181 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
27183         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27184         gimple_build_nop calls.
27185         (chkp_find_bounds_for_elem): Likewise.
27186         (chkp_get_zero_bounds): Likewise.
27187         (chkp_get_none_bounds): Likewise.
27188         (chkp_get_bounds_by_definition): Likewise.
27189         (chkp_generate_extern_var_bounds): Likewise.
27190         (chkp_get_bounds_for_decl_addr): Likewise.
27191         (chkp_get_bounds_for_string_cst): Likewise.
27193 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
27195         PR tree-optimization/65447
27196         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27197         (dump_use, dump_uses): Support to dump sub use.
27198         (record_use): New parameters to support sub use.  Remove call to
27199         dump_use.
27200         (record_sub_use, record_group_use): New functions.
27201         (compute_max_addr_offset, split_all_small_groups): New functions.
27202         (group_address_uses, rewrite_use_address): New functions.
27203         (strip_offset): New declaration.
27204         (find_interesting_uses_address): Call record_group_use.
27205         (add_candidate): New assertion.
27206         (infinite_cost_p): Move definition forward.
27207         (add_costs): Check INFTY cost and return immediately.
27208         (get_computation_cost_at): Clear setup cost and dependent bitmap
27209         for sub uses.
27210         (determine_use_iv_cost_address): Compute cost for sub uses.
27211         (rewrite_use_address_1): Rename from old rewrite_use_address.
27212         (free_loop_data): Free sub uses.
27213         (tree_ssa_iv_optimize_loop): Call group_address_uses.
27215 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27216             Jim Wilson  <jim.wilson@linaro.org>
27218         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27219         new  fields loadv and storev.
27220         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27221         Initialize loadv and storev.
27222         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27223         (cortexa53_extra_costs): Likewise.
27224         (cortexa57_extra_costs): Likewise.
27225         (xgene1_extra_costs): Likewise.
27226         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27227         rtx_costs.
27229 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27231         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27232          storev.
27233         (cortexa8_extra_costs): Likewise.
27234         (cortexa5_extra_costs): Likewise.
27235         (cortexa7_extra_costs): Likewise.
27236         (cortexa12_extra_costs): Likewise.
27237         (cortexa15_extra_costs): Likewise.
27238         (v7m_extra_costs): Likewise.
27240 2015-05-20  Jeff Law  <law@redhat.com>
27242         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27243         instead of open-coded version.  Also delete the jump thread created
27244         within this function.
27246 2015-05-20  Alan Modra  <amodra@gmail.com>
27248         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27249         stack adjusting insn.  Formatting.
27250         (rs6000_emit_prologue): Track stack adjusting insn, and use of
27251         r12.  If possible, emit first -fsplit-stack arg pointer insn
27252         before stack adjust.  Don't use r12 to save cr if split-stack.
27254 2015-05-20  Alan Modra  <amodra@gmail.com>
27256         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27257         Define.
27258         (rs6000_supports_split_stack): New function.
27259         * config/rs6000/rs6000.c (machine_function): Add
27260         split_stack_arg_pointer.
27261         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27262         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27263         rather than virtual_incoming_args_rtx.
27264         (rs6000_va_start): Likewise.
27265         (split_stack_arg_pointer_used_p): New function.
27266         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27267         (morestack_ref): New var.
27268         (gen_add3_const, rs6000_expand_split_stack_prologue,
27269         rs6000_internal_arg_pointer, rs6000_live_on_entry,
27270         rs6000_split_stack_space_check): New functions.
27271         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27272         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27273         (UNSPECV_SPLIT_STACK_RETURN): Define.
27274         (split_stack_prologue, load_split_stack_limit,
27275         load_split_stack_limit_di, load_split_stack_limit_si,
27276         split_stack_return, split_stack_space_check): New expands and insns.
27277         * config/rs6000/rs6000-protos.h
27278         (rs6000_expand_split_stack_prologue): Declare.
27279         (rs6000_split_stack_space_check): Declare.
27281 2015-05-20  Alan Modra  <amodra@gmail.com>
27283         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27284         (direct_return): Test vrsave_size rather than vrsave_mask.
27285         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
27286         (rs6000_emit_epilogue): Likewise.
27288 2015-05-20  Alan Modra  <amodra@gmail.com>
27290         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27291         when not saving registers.
27292         (debug_stack_info): Adjust to omit printing unused offsets,
27293         as before.
27294         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27295         expression.
27297 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27299         PR c++/65835
27300         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27301         value_type to const char *.
27303 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
27305         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27306         to build a biarch toolchain again.
27308 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
27310         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27311         or implicit declarations.
27312         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27313         into it.
27314         (get_odr_type): Check type has linkage before adding bases.
27315         (register_odr_type): Check that type has linkage before adding it.
27316         (type_known_to_have_no_deriavations_p): Rename to ..
27317         (type_known_to_have_no_derivations_p): This one.
27318         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27319         (type_known_to_have_no_derivations_p): This one.
27320         * ipa-polymorphic-call.c
27321         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27322         type has linkage.
27324 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27326         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27327         (layout_type): Use RECORD_OR_UNION_TYPE_P.
27329 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27331         * config/s390/s390.c (s390_vector_bool_type_p): New function.
27332         (s390_invalid_binary_op): New function.
27333         (TARGET_INVALID_BINARY_OP): Define macro.
27335 2015-05-19  David Sherwood  <david.sherwood@arm.com>
27337         * loop-invariant.c (create_new_invariant): Don't calculate address cost
27338         if mode is not a scalar integer.
27339         (get_inv_cost): Increase computational cost for unused invariants.
27341 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27343         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
27344         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
27345         * config/s390/s390-builtin-types.def: New file.
27346         * config/s390/s390-builtins.def: New file.
27347         * config/s390/s390-builtins.h: New file.
27348         * config/s390/s390-c.c: New file.
27349         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27350         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27351         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27352         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27353         prototypes.
27354         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27355         Include.
27356         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27357         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27358         variable definitions.
27359         (s390_const_operand_ok): New function.
27360         (s390_expand_builtin): Rewrite.
27361         (s390_init_builtins): New function.
27362         (s390_handle_vectorbool_attribute): New function.
27363         (s390_attribute_table): Add s390_vector_bool attribute.
27364         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27365         (s390_branch_condition_mask): Generate masks for new modes.
27366         (s390_expand_vec_compare_cc): New function.
27367         (s390_mangle_type): Add mangling for vector bool types.
27368         (enum s390_builtin): Remove.
27369         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27370         efpc builtins.
27371         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27372         s390_cpu_cpp_builtins.
27373         (REGISTER_TARGET_PRAGMAS): New macro.
27374         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27375         (insn_cmp mode attribute): Add new CC modes.
27376         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27377         (lcbb): New pattern definition.
27378         * config/s390/s390intrin.h: Include vecintrin.h.
27379         * config/s390/t-s390: New file.
27380         * config/s390/vecintrin.h: New file.
27381         * config/s390/vector.md: Include vx-builtins.md.
27382         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27383         support.
27385 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27387         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27388         CCVFHE.
27389         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27390         (s390_select_ccmode): Likewise.
27391         (s390_canonicalize_comparison): Swap operands if necessary.
27392         (s390_expand_vec_compare_scalar): Expand DFmode compare using
27393         single element vector instructions.
27394         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27395         (s390_branch_condition_mask): Generate CC masks for the new modes.
27396         * config/s390/s390.md (v0, vf, vd): New mode attributes.
27397         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27398         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27399         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27400         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27401         (*extend<DSF:mode><BFP:mode>2): New insn definition.
27402         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27403         (extend<DSF:mode><BFP:mode>2): Turn into expander.
27404         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27405         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27406         (sqrt<mode>2): Add vector instruction.
27408 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27410         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27411         constraints.
27412         * config/s390/predicates.md (const0_operand, constm1_operand)
27413         (constable_operand): Accept vector operands.
27414         * config/s390/s390-modes.def: Add supported vector modes.
27415         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27416         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27417         (s390_bytemask_vector_p, s390_expand_vec_strlen)
27418         (s390_expand_vec_compare, s390_expand_vcond)
27419         (s390_expand_vec_init): Add prototypes.
27420         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27421         (s390_vector_mode_supported_p): New function.
27422         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27423         (s390_contiguous_bitmask_vector_p): New function.
27424         (s390_bytemask_vector_p): New function.
27425         (s390_split_ok_p): Vector regs don't work either.
27426         (regclass_map): Add VEC_REGS.
27427         (s390_legitimate_constant_p): Handle vector constants.
27428         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27429         (legitimate_reload_vector_constant_p): New function.
27430         (s390_preferred_reload_class): Handle CONST_VECTOR.
27431         (s390_reload_symref_address):  Likewise.
27432         (s390_secondary_reload): Vector memory instructions only support
27433         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
27434         (s390_emit_ccraw_jump): New function.
27435         (s390_expand_vec_strlen): New function.
27436         (s390_expand_vec_compare): New function.
27437         (s390_expand_vcond): New function.
27438         (s390_expand_vec_init): New function.
27439         (s390_dwarf_frame_reg_mode): New function.
27440         (print_operand): Handle addresses with 'O' and 'R' constraints.
27441         (NR_C_MODES, constant_modes): Add vector modes.
27442         (s390_output_pool_entry): Handle vector constants.
27443         (s390_hard_regno_mode_ok): Handle vector registers.
27444         (s390_class_max_nregs): Likewise.
27445         (s390_cannot_change_mode_class): New function.
27446         (s390_invalid_arg_for_unprototyped_fn): New function.
27447         (s390_function_arg_vector): New function.
27448         (s390_function_arg_float): Remove size variable.
27449         (s390_pass_by_reference): Handle vector arguments.
27450         (s390_function_arg_advance): Likewise.
27451         (s390_function_arg): Likewise.
27452         (s390_return_in_memory): Vector values are returned in a VR if
27453         possible.
27454         (s390_function_and_libcall_value): Handle vector arguments.
27455         (s390_gimplify_va_arg): Likewise.
27456         (s390_call_saved_register_used): Consider the arguments named.
27457         (s390_conditional_register_usage): Disable v16-v31 for non-vec
27458         targets.
27459         (s390_preferred_simd_mode): New function.
27460         (s390_support_vector_misalignment): New function.
27461         (s390_vector_alignment): New function.
27462         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
27463         (TARGET_VECTOR_MODE_SUPPORTED_P)
27464         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
27465         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27466         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
27467         (TARGET_VECTOR_ALIGNMENT): Define target macro.
27468         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
27469         (FIRST_PSEUDO_REGISTER): Increase value.
27470         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
27471         (VECTOR_REG_P): Define macros.
27472         (FIXED_REGISTERS, CALL_USED_REGISTERS)
27473         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
27474         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
27475         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
27476         Add vector registers.
27477         (CANNOT_CHANGE_MODE_CLASS): Call C function.
27478         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
27479         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
27480         memory.
27481         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
27482         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
27483         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
27484         (VR*_REGNUM): New constants.
27485         (ALL): New mode iterator.
27486         (INTALL): Remove mode iterator.
27487         Include vector.md.
27488         (movti): Implement TImode moves for VRs.
27489         Disable TImode splitter for VR targets.
27490         Implement splitting TImode GPR<->VR moves.
27491         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
27492         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
27493         reload<mode>_la_in, reload<mode>_la_out.
27494         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
27495         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
27496         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
27497         (mov<mode> SF SD): Prefer lder, lde for loading.
27498         Add lrl and strl instructions.
27499         Add vector instructions.
27500         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
27501         Call s390_expand_vec_strlen on z13.
27502         (*cc_to_int): Change predicate to nonimmediate_operand.
27503         (addti3): Rename to *addti3.  New expander.
27504         (subti3): Rename to *subti3.  New expander.
27505         * config/s390/vector.md: New file.
27507 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27509         * common/config/s390/s390-common.c (processor_flags_table): Add
27510         z13.
27511         * config.gcc: Add z13.
27512         * config/s390/s390-opts.h (enum processor_type): Add
27513         PROCESSOR_2964_Z13.
27514         * config/s390/s390.c (s390_adjust_priority): Check for
27515         PROCESSOR_2964_Z13.
27516         (s390_reorg): Likewise.
27517         (s390_sched_reorder): Likewise.
27518         (s390_sched_variable_issue): Likewise.
27519         (s390_loop_unroll_adjust): Likewise.
27520         (s390_option_override): Likewise. Default to -mvx when available.
27521         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
27522         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
27523         (TARGET_VX_ABI): Define macros.
27524         macros.
27525         (TARGET_DEFAULT): Add MASK_OPT_VX.
27526         * config/s390/s390.md ("cpu" attribute): Add z13.
27527         ("cpu_facility" attribute): Add vec.
27528         * config/s390/s390.opt (processor_type): Add z13.
27529         (mvx): New options.
27530         * doc/invoke.texi: Add z13 option for -march.
27532 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27534         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
27535         mode check to make sure that only scalar integer values are
27536         accepted.
27538 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
27540         * tree.c (verify_type_variant): Fix #undef.
27541         (gimple_canonical_types_compatible_p): Move here from lto.c
27542         (verify_type): Verify TYPE_CANONICAL compatibility.
27543         * tree.h (gimple_canonical_types_compatible_p): Declare.
27545 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
27547         PR middle-end/66199
27548         * tree.h (OMP_TEAMS_COMBINED): Define.
27549         * gimplify.c (enum gimplify_omp_var_data): Add
27550         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
27551         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
27552         (omp_notice_variable): Accept both ORT_TEAMS
27553         and ORT_COMBINED_TEAMS.  Don't recurse if
27554         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
27555         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
27556         GOVD_FIRSTPRIVATE.
27557         (omp_no_lastprivate): New function.
27558         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
27559         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
27560         notice_outer and set appropriate bits, otherwise make
27561         sure default(none) combined constructs won't complain.
27562         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
27563         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
27564         omp_no_lastprivate either remove the clause or turn it
27565         into OMP_CLAUSE_PRIVATE.
27566         (gimplify_omp_for): Fix up handling of implicit
27567         lastprivate or linear iterators.
27568         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
27569         ORT_COMBINED_TEAMS.
27570         * omp-low.c (lower_omp_for_lastprivate): For combined
27571         for simd use fd.loop.n2 from the for rather than simd.
27573 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27575         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
27576         instead of gen_rtx_raw_REG.
27577         (cris_expand_epilogue): Likewise.
27578         * config/microblaze/microblaze.c (microblaze_classify_address):
27579         Likewise.
27580         * config/sparc/sparc.md: Likewise.
27582 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
27584         * config/alpha/alpha.c (alpha_legitimize_reload_address)
27585         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
27586         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
27587         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
27588         Use CASE_CONST_SCALAR_INT.
27589         (print_operand) <case 'M'>: Use mode_width_operand to check the
27590         value of the constant.
27591         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
27592         * config/alpha/predicates.md (input_operand): Use general_operand
27593         instead of match_code as operand check.
27594         (symbolic_operand): Use match_code with subexpression digits.
27595         * config/alpha/constraints.md (Q): Ditto.
27597 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27599         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
27601 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27603         * config/s390/s390.c (s390_secondary_reload): Fix check for
27604         load/store relative.
27606 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27608         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
27609         alternative_mask to uint64_t.
27611 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
27613         PR tree-optimization/66187
27614         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
27615         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
27616         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
27618 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
27620         * diagnostic.c (diagnostic_report_current_module): Strengthen
27621         local "new_map" from const line_map * to
27622         const line_map_ordinary *.
27623         * genmatch.c (error_cb): Likewise for local "map".
27624         (output_line_directive): Likewise for local "map".
27625         * input.c (expand_location_1): Likewise for local "map".
27626         Pass NULL rather than &map to
27627         linemap_unwind_to_first_non_reserved_loc, since the value is never
27628         read from there, and the value written back not read from here.
27629         (is_location_from_builtin_token): Strengthen local "map" from
27630         const line_map * to const line_map_ordinary *.
27631         (dump_location_info): Strengthen locals "map" from
27632         line_map *, one to const line_map_ordinary *, the other
27633         to const line_map_macro *.
27634         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
27635         const line_map * to const line_map_macro *.
27636         (maybe_unwind_expanded_macro_loc): Add a call to
27637         linemap_check_macro when writing to the "map" field of the
27638         loc_map_pair.
27639         Introduce local const line_map_ordinary * "ord_map", using it in
27640         place of "map" in the part of the function where we know we have
27641         an ordinary map.  Strengthen local "m" from const line_map * to
27642         const line_map_ordinary *.
27644 2015-05-19  Nick Clifton  <nickc@redhat.com>
27646         PR target/66156
27647         * config/msp430/msp430.md (zero_extendhisi2): Add support for
27648         separate source and destination registers.
27650 2015-05-19  Richard Biener  <rguenther@suse.de>
27652         PR tree-optimization/66165
27653         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
27654         for no load permutation.
27656         PR tree-optimization/66185
27657         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
27658         when building the SLP node from scalars.
27660 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27661             Tristan Gingold  <gingold@adacore.com>
27663         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
27664         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
27665         (expand_stack_restore): Call record_new_stack_level.
27666         (expand_stack_save): Do not call do_pending_stack_adjust.
27667         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
27668         * calls.c (expand_call): Call record_new_stack_level for alloca.
27669         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
27670         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
27671         (update_sjlj_context): New global function.
27672         * except.h (update_sjlj_context): Declare.
27673         * explow.c (record_new_stack_level): New global function.
27674         (allocate_dynamic_stack_space): Call record_new_stack_level.
27675         * explow.h (record_new_stack_level): Declare.
27676         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
27677         * cfgrtl.c (duplicate_insn_chain): Likewise.
27679 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27681         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
27682         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
27683         STACK_GROWS_DOWNWARD as normal if.
27684         (expand_call): Likewise.
27686 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
27688         PR target/54236
27689         * config/sh/sh.md (*round_int_even): New insn_and_split and
27690         accompanying new unnamed split.
27692 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27694         * bitmap.c (bitmap_set_range): Handle count==1 specially.
27695         (bitmap_clear_range): Likewise.
27696         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
27697         bitmap_set_range unconditionally.
27698         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27699         * df-scan.c (df_mark_reg): Likewise.
27700         * haifa-sched.c (setup_ref_regs): Likewise.
27701         * sched-rgn.c (update_live_1): Likewise.
27703 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27705         * regs.h (END_HARD_REGNO): Delete.
27706         (END_REGNO): Move to...
27707         * rtl.h: ...here.
27708         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
27709         * caller-save.c (mark_set_regs): Likewise.
27710         * combine.c (move_deaths, distribute_notes): Likewise.
27711         * cse.c (invalidate, invalidate_for_call): Likewise.
27712         * df-scan.c (df_ref_record): Likewise.
27713         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
27714         (record_last_reg_set_info): Likewise.
27715         * reg-stack.c (convert_regs_exit): Likewise.
27716         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
27717         * resource.c (update_live_status): Likewise.
27718         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
27720 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27722         * rtl.h (reg_info): Add an nregs field.
27723         (REG_NREGS): Use it.
27724         (SET_REGNO_RAW): Delete.
27725         (set_regno_raw): New function.
27726         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
27727         (END_REGNO): Redefine in terms of REG_NREGS.
27728         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
27729         SET_REGNO_RAW.
27730         * emit-rtl.c (set_mode_and_regno): Likewise.
27731         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
27732         instead of SET_REGNO_RAW.
27734 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27736         * rtl.h (PUT_MODE_RAW): New macro.
27737         (PUT_REG_NOTE_KIND): Use it.
27738         (set_mode_and_regno): Declare.
27739         (gen_raw_REG): Change regno to "unsigned int".
27740         (gen_rtx_REG): Change "unsigned" to "unsigned int".
27741         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
27742         use set_mode_and_regno to change the mode of registers.
27743         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
27744         * emit-rtl.c (set_mode_and_regno): New function.
27745         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
27746         * caller-save.c (reg_save_code): Use set_mode_and_regno.
27747         * expr.c (init_expr_target): Likewise.
27748         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27749         * postreload.c (reload_cse_simplify_operands): Likewise.
27751 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27753         * caller-save.c (init_caller_save): Use word_mode and
27754         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
27755         * expr.c (init_expr_target): Likewise.
27756         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27757         * postreload.c (reload_cse_regs_1): Likewise.
27759 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27761         * rtl.def (REG): Change format to "r".
27762         * rtl.h (rtunion): Remove rt_reg.
27763         (reg_info): New structure.
27764         (rtx_def): Add reg field to main union.
27765         (X0REGATTR): Delete.
27766         (REG_CHECK): New macro.
27767         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
27768         * rtl.c (rtx_format): Document "r".
27769         (rtx_code_size): Handle REG specially.
27770         * gengenrtl.c (special_format): Return true for formats
27771         that include 'r'.
27772         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
27773         Deal with REG_ATTRS after the field loop.
27774         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
27775         * expmed.c (init_expmed): Call gen_raw_REG instead of
27776         gen_rtx_raw_REG.
27777         * expr.c (init_expr_target): Likewise.
27778         * regcprop.c (maybe_mode_change): Likewise.
27779         * varasm.c (make_decl_rtl): Likewise.
27780         * final.c (leaf_renumber_regs_insn): Return early after
27781         handling REGs.
27782         * genemit.c (gen_exp): Handle 'r' fields.
27783         * genpeep.c (match_rtx): Likewise.
27784         * gensupport.c (subst_pattern_match): Likewise.
27785         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
27786         (alter_constraints, subst_dup): Likewise.
27787         * read-rtl.c (read_rtx_code): Likewise.
27788         * print-rtl.c (print_rtx): Likewise.
27789         * genrecog.c (find_operand, find_matching_operand): Likewise.
27790         (validate_pattern, match_pattern_2): Likewise.
27791         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
27792         (rtx_test::regno_field): New function.
27793         (operator ==, safe_to_hoist_p, transition_parameter_type)
27794         (parameter_type_string, print_parameter_value)
27795         (print_nonbool_test, print_test): Handle new enum values.
27796         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
27797         * lra-constraints.c (operands_match_p): Likewise.
27799 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27801         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
27802         Change type of new_regno to unsigned int.
27803         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
27804         new_regno to unsigned int.
27805         (df_ref_change_reg_with_loc): Remove old_regno parameter.
27806         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
27807         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
27808         (SET_REGNO_RAW): Add space after ",".
27810 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27812         * rtl.h (REG_NREGS): New macro
27813         * alias.c (record_set): Use it.
27814         * cfgcleanup.c (mark_effect): Likewise.
27815         * combine.c (likely_spilled_retval_1): Likewise.
27816         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
27817         (move_deaths, distribute_notes): Likewise.
27818         * cselib.c (cselib_record_set): Likewise.
27819         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
27820         * df-scan.c (df_mark_reg): Likewise.
27821         * dse.c (look_for_hardregs): Likewise.
27822         * dwarf2out.c (reg_loc_descriptor): Likewise.
27823         (multiple_reg_loc_descriptor): Likewise.
27824         * expr.c (write_complex_part, read_complex_part): Likewise.
27825         (emit_move_complex): Likewise.
27826         * haifa-sched.c (setup_ref_regs): Likewise.
27827         * ira-lives.c (mark_hard_reg_live): Likewise.
27828         * lra.c (lra_set_insn_recog_data): Likewise.
27829         * mode-switching.c (create_pre_exit): Likewise.
27830         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
27831         (reload_combine_recognize_pattern): Likewise.
27832         (reload_combine_note_use, move2add_record_mode): Likewise.
27833         (reload_cse_move2add): Likewise.
27834         * reg-stack.c (subst_stack_regs_pat): Likewise.
27835         * regcprop.c (kill_value, copy_value): Likewise.
27836         (copyprop_hardreg_forward_1): Likewise.
27837         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
27838         (build_def_use): Likewise.
27839         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
27840         (deps_analyze_insn): Likewise.
27841         * sched-rgn.c (check_live_1, update_live_1): Likewise.
27842         * sel-sched.c (count_occurrences_equiv): Likewise.
27843         * valtrack.c (dead_debug_insert_temp): Likewise.
27845 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
27847         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
27848         * dse.c (note_add_store): Likewise.
27849         * ira-lives.c (mark_hard_reg_dead): Likewise.
27850         * loop-invariant.c (mark_reg_store): Likewise.
27851         (mark_reg_death): Likewise.
27852         * postreload.c (reload_combine): Likewise.
27853         (reload_combine_note_store): Likewise.
27854         (reload_combine_note_use): Likewise.
27855         * recog.c (peep2_reg_dead_p): Likewise.
27857 2015-05-19  Alan Modra  <amodra@gmail.com>
27859         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
27860         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
27861         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
27862         unused predicates.
27863         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
27864         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
27865         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
27866         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
27868 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
27870         * config/mips/mips.md (JOIN_MODE): New mode iterator.
27871         (join2_load_Store<JOIN_MODE:mode>): New pattern.
27872         (join2_loadhi): Likewise.
27873         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
27874         load-load and store-stores.
27875         * config/mips/mips.opt (mload-store-pairs): New option.
27876         (TARGET_LOAD_STORE_PAIRS): New macro.
27877         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
27878         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
27879         * config/mips/mips.c (mips_load_store_bonding_p): New function.
27881 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
27883         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
27884         explicit swaps.
27885         * dojump.c (do_compare_rtx_and_jump): Likewise.
27886         * expmed.c (emit_store_flag_1): Likewise.
27887         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
27888         * final.c (sprint_ul): Use std::reverse for reversing a string.
27889         * fold-const.c (extract_muldiv_1): Use std::swap.
27890         * genmodes.c (emit_mode_int_n): Likewise.
27891         * ifcvt.c (dead_or_predicable): Likewise.
27892         * ira-build.c (ira_merge_live_ranges): Likewise.
27893         (swap_allocno_copy_ends_if_necessary): Likewise.
27894         * ira.c (ira_setup_alts): Likewise.
27895         * loop-iv.c (iv_analyze_expr): Likewise.
27896         (implies_p): Likewise.
27897         (canon_condition): Likewise.
27898         * lra-constraints.c (swap_operands): Likewise.
27899         * lra-lives.c (lra_merge_live_ranges): Likewise.
27900         * omega.c (swap): Remove.
27901         (bswap): Remove.
27902         (omega_unprotect_1): Use std::swap.
27903         (omega_solve_geq): Likewise.
27904         * optabs.c (expand_binop_directly): Likewise.
27905         (expand_binop): Likewise.
27906         (emit_conditional_move): Likewise.
27907         (emit_conditional_add): Likewise.
27908         * postreload.c (reload_cse_simplify_operands): Likewise.
27909         * reg-stack.c (emit_swap_insn): Likewise.
27910         (swap_to_top): Likewise.
27911         (compare_for_stack_reg): Likewise.
27912         (subst_asm_stack_regs): Likewise.
27913         * reload.c (find_reloads): Likewise.
27914         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
27915         * sel-sched.c (invoke_reorder_hooks): Likewise.
27916         (create_block_for_bookkeeping): Likewise.
27917         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
27918         (lambda_matrix_right_hermite): Use std::swap.
27919         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
27920         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
27921         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
27922         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
27923         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
27924         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
27925         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
27926         * tree-vrp.c (compare_ranges): Likewise.
27927         * var-tracking.c (add_with_sets): Likewise.
27928         (vt_find_locations): Likewise.
27930 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
27932         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
27933         pie executables.
27934         (FBSD_ENDFILE_SPEC): Likewise.
27935         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
27936         config/freebsd-spec.h.
27937         (ENDFILE_SPEC): Likewise.
27939 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
27940             Richard Henderson  <rth@redhat.com>
27942         PR target/57032
27943         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
27944         Check for a memory location that is not a reference (using an AND)
27945         to an unaligned location here.
27946         * config/alpha/predicates.md (normal_memory_operand): Remove.
27948 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
27950         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
27951         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
27953 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
27955         * config/mips/mips.c (micromips_globals): New variable.
27956         (mips_set_compression_mode): Save and reinitialize target-dependent
27957         state for microMIPS.
27959 2015-05-18  Martin Liska  <mliska@suse.cz>
27961         * dbgcnt.def: Add new counter.
27962         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
27964 2015-05-18  Martin Liska  <mliska@suse.cz>
27966         * dbgcnt.def: Sort counters.
27967         * opts.c (common_handle_option): Do not compile if
27968         -fdbg-cnt-list is enabled.
27970 2015-05-18  Tom de Vries  <tom@codesourcery.com>
27972         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
27973         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
27974         address operator to va_list operand.
27975         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
27976         unconditionally.
27977         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
27978         operand.
27979         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
27980         * config/s390/s390.c (s390_gimplify_va_arg): Same.
27981         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
27983 2015-05-18  Tom de Vries  <tom@codesourcery.com>
27985         * tree-ssa-tail-merge.c: Fix whitespace.
27987 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
27989         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
27990         cortex-a17, and cortex-a17.cortex-a7.
27992 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
27994         PR target/54236
27995         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
27997 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
27999         PR target/66174
28000         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28001         QImode inner modes for TARGET_AVX512BW.  Force mask operand
28002         to a register for AVX512F modes.
28004 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28006         * toplev.c (emit_debug_global_declarations): Do not output debug info
28007         when doing slim LTO objects.
28009 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28011         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28012         odr_types_equivalent_p): Declare.
28013         (odr_type_p): Use gcc_checking_assert.
28014         (type_in_anonymous_namespace_p) Declare.
28015         (type_with_linkage_p): Declare.
28016         * common.opt (Wlto-type-mismatch): New warning.
28017         * ipa-devirt.c (compound_type_base): New function.
28018         (odr_or_derived_type_p): New function.
28019         (odr_types_equivalent_p): New function.
28020         (add_type_duplicate): Simplify.
28021         (type_with_linkage_p): Add hack to prevent false positives on C types
28022         (type_in_anonymous_namespace_p): Likewise.
28023         * tree.c (need_assembler_name_p): Use type_with_linkage.
28024         * tree.h (type_in_anonymous_namespace_p): Remove.
28025         * doc/invoke.texi (-Wlto-type-mismatch): Document
28027 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28029         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28030         (verify_type): Verify STRING_FLAG.
28032 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28034         PR fortran/44054
28035         * tree-pretty-print.c (percent_K_format): Replace locus pointer
28036         with accessor function.
28037         * tree-diagnostic.c (diagnostic_report_current_function): Use
28038         diagnostic_location function.
28039         (maybe_unwind_expanded_macro_loc): Likewise.
28040         (virt_loc_aware_diagnostic_finalizer): Likewise.
28041         (default_tree_printer): Replace locus pointer with accessor function.
28042         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28043         (diagnostic_set_info_translated): Initialize second location.
28044         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28045         (diagnostic_show_locus): Handle two locations. Call
28046         diagnostic_print_caret_line.
28047         (diagnostic_print_caret_line): New.
28048         (default_diagnostic_starter): Use diagnostic_location function.
28049         (diagnostic_report_diagnostic): Use diagnostic_location function.
28050         (verbatim): Do not set text.locus.
28051         * diagnostic.h (struct diagnostic_info): Remove location field.
28052         (struct diagnostic_context): Make caret_chars an array of two.
28053         (diagnostic_location): New inline.
28054         (diagnostic_expand_location): Handle two locations.
28055         (diagnostic_same_line): New inline.
28056         (diagnostic_print_caret_line): Declare.
28057         (CARET_LINE_MARGIN): New constant.
28058         * pretty-print.c (pp_printf): Do not set text.locus.
28059         (pp_verbatim): Do not set text.locus.
28060         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28061         (struct text_info): Replace locus pointer with locations
28062         array. Add accessor functions.
28064 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
28065             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28067         PR target/65768
28068         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28069         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28070          large constants in register instead of splitting them.
28072 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
28074         PR target/66140
28075         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28076         replacements in memory addresses.
28077         (get_unaligned_address): Ditto.
28079 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
28081         * config/ft32/*: New files for FT32 port.
28082         * doc/install.texi: Add FT32 information.
28083         * doc/invoke.texi: Add FT32 information.
28084         * doc/md.texi: Add FT32 information.
28085         * doc/contrib.texi: Self added.
28087 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
28089         PR tree-optimization/64454
28090         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28091         (-1 - A -> ~A): Remove unnecessary condition.
28093 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
28095         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28096         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28097         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28099 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
28101         * ipa-chkp.h (chkp_wrap_function): New.
28102         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28103         (chkp_wrap_function_name): New.
28104         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28105         to get wrapper name.
28106         * lto-cgraph.c: Include ipa-chkp.h.
28107         (input_cgraph_1): Avoid alias chain for wrappers.
28109 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
28111         PR middle-end/66134
28112         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28113         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28115 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28117         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28118         (AARCH64_FL_SLOWMUL): Delete.
28119         (AARCH64_FL_CRC): Redefine to 1<<3.
28120         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28122 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28124         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28125         casting.
28127 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28129         * config/alpha/alpha.md (extendqidi2): Use general_operand
28130         instead of some_operand for operand[1] predicate.
28131         (extendhidi2): Ditto.
28132         (cbranchdi4): Use general_operand instead of some_operand
28133         for operand[1] and operands[2] predicates.
28134         (cstoredi4): Ditto.
28135         * config/alpha/predicates.md (some_operand): Remove unused predicate.
28136         (some_ni_operand): Ditto.
28138 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28140         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28141         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
28142         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28143         low part of the constant using alpha_emit_set_const_1.
28144         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28146 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
28148         * varasm.c (output_constant_pool_1): Pass down alignment from
28149         constant pool entry's descriptor to output_constant_pool_2.
28150         (output_object_block): Add comment prior to call to
28151         output_constant_pool_1.
28153 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
28155         PR rtl-optimization/65862
28156         * target.def (ira_change_pseudo_allocno_class): New hook.
28157         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28158         value of the hook.
28159         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28160         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28161         hook.
28162         * ira-costs.c (find_costs_and_classes): Call the hook and change
28163         classes when it is necessary.
28164         * doc/tm.texi: Update.
28166 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
28168         * config/i386/i386.md (sibcall_memory): Check that register with
28169         callee address is not also used as one of the arguments, instead
28170         of checking that it is not live after the sibcall.
28171         (sibcall_pop_memory): Ditto.
28172         (sibcall_value_memory): Ditto.
28173         (sibcall_value_pop_memory): Ditto.
28175 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
28177         * generic-match-head.c (types_match): Handle non-types.
28178         * gimple-match-head.c (types_match): Likewise.
28179         * match.pd: Remove unnecessary TREE_TYPE for types_match.
28181 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
28183         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28184         (csneg3<mode>_insn): Enable expansion of pattern.
28186 2015-05-14  Nick Clifton  <nickc@redhat.com>
28188         * config/rl78/rl78.c (rl78_select_section): Select the correct
28189         default section based upon the category of the decl.
28191 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28193         PR rtl-optimization/30967
28194         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28195         destination mode for the cost of scc patterns.
28197 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28199         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28200         using SWIM248 mode iterator.
28201         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28202         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
28203         for operand[2] constraint.
28204         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28206 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28208         PR middle-end/66133
28209         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28210         make sure it is never noreturn, even when the task body does not
28211         return.
28212         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28213         right before GIMPLE_OMP_RETURN.
28214         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28215         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
28216         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28218 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28220         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28221         * tree-ssa-math-opts.c: Include params.h
28222         (pow_synth_sqrt_info): New struct.
28223         (representable_as_half_series_p): New function.
28224         (get_fn_chain): Likewise.
28225         (print_nested_fn): Likewise.
28226         (dump_fractional_sqrt_sequence): Likewise.
28227         (dump_integer_part): Likewise.
28228         (expand_pow_as_sqrts): Likewise.
28229         (gimple_expand_builtin_pow): Use above to attempt to expand
28230         pow as series of square roots.  Removed now unused variables.
28232 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28234         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28235         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28236         Remove *p0 and *p1 arguments.  Rewrite function.
28237         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28238         (alpha_split_const_mov): Update calls to alpha_extract_integer and
28239         alpha_emit_set_long_const.
28240         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28241         (alpha_output_mi_thunk_osf): Ditto.
28242         * config/alpha/alpha.md (movti): Do not check operands[1]
28243         for CONST_DOUBLE.
28245 2015-05-13  Richard Biener  <rguenther@suse.de>
28247         PR tree-optimization/66129
28248         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28249         commutative.
28250         (vect_schedule_slp_instance): Fix typo.
28252 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
28254         * common.opt (fdump-internal-locations): New option.
28255         * input.c: Include diagnostic-core.h.
28256         (get_end_location): New function.
28257         (write_digit): New function.
28258         (write_digit_row): New function.
28259         (dump_location_range): New function.
28260         (dump_labelled_location_range): New function.
28261         (dump_location_info): New function.
28262         * input.h (dump_location_info): New prototype.
28263         * toplev.c (compile_file): Handle flag_dump_locations.
28265 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
28267         * gimple-expr.h (is_gimple_constant): Reorder.
28268         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28270 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28272         * combine.c (simplify_set): When generating a CC set, if the
28273         source already is in the correct mode, do not wrap it in a
28274         compare.  Simplify the rest of that code.
28276 2015-05-13  Richard Biener  <rguenther@suse.de>
28278         PR tree-optimization/66123
28279         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28280         a taken edge.
28282 2015-05-13  Richard Biener  <rguenther@suse.de>
28284         PR middle-end/66110
28285         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28286         specially.
28287         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28289 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28291         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28292         * aclocal.m4: Regenerated with automake-1.11.6.
28294 2015-05-13  Tom de Vries  <tom@codesourcery.com>
28296         PR tree-optimization/66010
28297         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28298         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28299         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
28300         and rval based on do_deref.
28302 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28304         PR target/65103
28305         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28306         link time constants into adress expressions and therefore set
28307         their cost to 0.
28309 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28311         PR target/66112
28312         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28313         Use SWI248 iterator instead of SWI.
28314         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
28315         Use eq_attr "alternative" "0" instead of match_test in
28316         length_immediate attribute computation.
28317         (*mulvhi4, *mulvhi4_1): New define_insns.
28319         PR target/66112
28320         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28321         SIGNED to get precision of non-negative value.
28323 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28325         PR target/66048
28326         * function.c (diddle_return_value_1): Process bounds first.
28327         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28328         register.
28330 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28332         PR rtl-optimization/64616
28333         * loop-invariant.c (can_move_invariant_reg): New.
28334         (move_invariant_reg): Call above new function to decide whether
28335         instruction can just be moved, skipping creation of temporary
28336         register.
28338 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28340         PR target/pr66047.c
28341         * i386.c (ix86_function_sseregparm): Only return -1 if local function
28342         with implied regparm is called from -mno-sse function.
28343         (init_cumulative_args): Output error if ix86_function_sseregparm
28344         return -1 and SSE register would be needed.
28345         (function_arg_advance_32): Likewise.
28346         (function_arg_32): Likewise.
28347         * i386.h (ix86_args): Add decl field.
28349 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28351         PR ipa/65873
28352         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28353         inlines across optimization boundary.
28355 2015-05-12  Jason Merrill  <jason@redhat.com>
28357         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28358         string literal and macro name.
28360 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
28362         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28363         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28364         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28366 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
28368         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28369         (-Wmisleading-indentation): New option.
28370         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28372 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
28374         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28375         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28376         (alpha_extract_integer): Ditto.
28377         (alpha_legitimate_constant_p): Ditto.
28378         (alpha_split_tmode_pair): Ditto.
28379         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28380         (alpha_expand_mov): Ditto.
28381         (print_operand): Remove handling of 'H' modifier.
28382         <case 'm'>: Remove CONST_DOUBLE handling.
28383         (summarize_insn): Handle CONST_WIDE_INT.
28384         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28385         (anddi3): Ditto.
28386         (movti): Handle CONST_WIDE_INT.
28387         * config/alpha/constraints.md ('H'): Remove constraint definition.
28388         ('G'): Do not match MODE_FLOAT class.
28389         * config/alpha/predicates.md (const0_operand): Also match
28390         const_wide_int.
28391         (non_add_const_operand): Ditto.
28392         (non_zero_const_operand): Ditto.
28393         (some_operand): Ditto.
28394         (input_operand): Ditto.  Handle CONST_WIDE_INT.
28395         (and_operand): Do not match const_double.
28396         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28398 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
28400         PR target/65697
28401         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28402         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28403         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28404         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28405         is_mm_seq_cst, is_mm_sync): New accessor functions.
28406         * builtins.c (expand_builtin_sync_operation,
28407         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28408         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28409         (get_memmodel,  expand_builtin_atomic_compare_exchange,
28410         expand_builtin_atomic_load, expand_builtin_atomic_store,
28411         expand_builtin_atomic_clear): Use new accessor routines.
28412         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28413         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28414         (maybe_emit_sync_lock_test_and_set): Use new accessors and
28415         MEMMODEL_SYNC_ACQUIRE.
28416         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28417         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28418         expand_atomic_store): Use new accessors.
28419         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28420         * tsan.c (instrument_builtin_call): Update check for memory model beyond
28421         final enum to use MEMMODEL_LAST.
28422         * c-family/c-common.c: Use new accessor for memmodel_base.
28423         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28424         accessors.
28425         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28426         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28427         mem_thread_fence, *dmb): Likewise.
28428         * config/alpha/alpha.c (alpha_split_compare_and_swap,
28429         alpha_split_compare_and_swap_12): Likewise.
28430         * config/arm/arm.c (arm_expand_compare_and_swap,
28431         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28432         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28433         atomic_loaddi): Likewise.
28434         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28435         Likewise.
28436         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28437         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28438         use new accessors.
28439         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28440         atomic_store<mode>, atomic_compare_and_swap<mode>,
28441         atomic_exchange<mode>): Use new accessors.
28442         * config/mips/mips.c (mips_process_sync_loop): Likewise.
28443         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
28444         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
28445         rs6000_post_atomic_barrier): Add new cases.
28446         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
28447         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
28448         (atomic_load<mode>): Add new cases and use new accessors.
28449         (store_quadpti): Add new cases.
28450         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
28451         accessors.
28452         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
28453         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
28454         model, not 8.
28456 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28458         * ipa-devirt.c (type_with_linkage_p): New function.
28459         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
28460         type has linkage.
28461         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
28462         (can_be_name_hashed_p): Simplify.
28463         (hash_odr_name): Check that type has linkage before checking if it is
28464         anonymous.
28465         (types_same_for_odr): Likewise.
28466         (odr_name_hasher::equal): Likewise.
28467         (odr_subtypes_equivalent_p): Likewise.
28468         (warn_types_mismatch): Likewise.
28469         (get_odr_type): Likewise.
28470         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
28471         * ipa-utils.h (odr_type_p): Move offline.
28472         * tree.c (need_assembler_name_p): Fix handling of types
28473         without linkages.
28474         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
28476 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
28478         * timevar.c (timevar_enable): Delete in favor of...
28479         (g_timer): New global.
28480         (struct timevar_def): Move to timevar.h inside class timer.
28481         (struct timevar_stack_def): Likewise.
28482         (timevars): Delete global in favor of field "m_timevars" within
28483         class timer in timevar.h
28484         (stack): Likewise, in favor of field "m_stack".
28485         (unused_stack_instances): Likewise, in favor of field
28486         "m_unused_stack_instances".
28487         (start_time): Likewise, in favor of field "m_start_time".
28488         (get_time): Eliminate check for timevar_enable.
28489         (timer::timer): New function, built from part of timevar_init.
28490         (timevar_init): Rewrite idempotency test from using
28491         "timevar_enable" bool to using dynamic allocation of "g_timer".
28492         Move rest of implementation into timer's constructor.
28493         (timevar_push_1): Rename to...
28494         (timer::push): ...this, adding "m_" prefixes to variables that
28495         are now fields of timer.
28496         (timevar_pop_1): Likewise, rename to...
28497         (timer::pop): ...this, and add "m_" prefixes.
28498         (timevar_start): Replace test for "timevar_enable" with one for
28499         "g_timer", and move bulk of implementation to...
28500         (timer::start): ...here, adding "m_" prefixes.
28501         (timevar_stop): Likewise, from here...
28502         (timer::stop): ...to here.
28503         (timevar_cond_start): Likewise, from here...
28504         (timer::cond_start): ...to here.
28505         (timevar_cond_stop): Likewise, from here...
28506         (timer::cond_stop): ...to here.
28507         (validate_phases): Rename to...
28508         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
28509         locals "total" and "tv" const.
28510         (timevar_print): Rename to...
28511         (timer::print): ...this, and add "m_" prefixes.  Make locals
28512         "total" and "tv" const.  Eliminate test for timevar_enable.
28513         * timevar.h (timevar_enable): Eliminate.
28514         (g_timer): New declaration.
28515         (timevar_push_1): Eliminate.
28516         (timevar_pop_1): Eliminate.
28517         (timevar_print): Eliminate.
28518         (class timer): New class.
28519         (timevar_push): Rewrite to use g_timer.
28520         (timevar_pop): Likewise.
28521         * toplev.c (toplev::~toplev): Likewise.
28523 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
28525         * arm-protos.h (arm_sched_autopref): Delete.
28526         (tune_params): Re-organize, use enums for flag values.
28527         (FUSE_OPS): New macro.
28528         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
28529         (ARM_PREFETCH_BENEFICIAL): Likewise.
28530         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
28531         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28532         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
28533         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
28534         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
28535         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
28536         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
28537         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
28538         format.
28539         (arm_option_override, thumb2_reorg, arm_print_tune_info)
28540         (aarch_macro_fusion_pair_p): Update uses of current_tune.
28541         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
28543 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
28545         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
28546         "break".
28548 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
28549             Sandra Loosemore <sandra@codesourcery.com>
28551         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
28552         value.
28553         (REG_CLASS_NAMES): Add "IJMP_REGS".
28554         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
28555         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
28556         use new "c" register constraint.
28557         * config/nios2/constraint.md (c): New register constraint
28558         corresponding to IJMP_REGS.
28560 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28562         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
28563         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
28564         define_splits): Delete, revamp, transmogrify into ...
28565         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
28566         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
28567         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
28568         New.
28570 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28572         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
28573         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
28575 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28577         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
28578         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
28579         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
28580         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
28581         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
28582         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
28583         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
28584         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
28585         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
28586         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
28587         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
28588         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
28589         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
28590         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
28591         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
28592         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
28593         and 30 corresponding splitters): Delete.
28595 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28597         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
28598         zero_extract.
28600 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28602         * combine.c (recog_for_combine_1): New function, factored out
28603         from recog_for_combine.
28604         (change_zero_ext): New function.
28605         (recog_for_combine): If recog fails, try again with the pattern
28606         modified by change_zero_ext; if that still fails, restore the
28607         pattern.
28609 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
28611         * combine.c (get_undo_marker): New function.
28612         (undo_to_marker): New function, largely factored out from ...
28613         (undo_all): ... this.  Adjust.
28615 2015-05-12  Richard Biener  <rguenther@suse.de>
28617         PR tree-optimization/66101
28618         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
28619         fixup if we turn a loop exit edge to a fallthru edge.
28621 2015-05-12  Richard Biener  <rguenther@suse.de>
28623         PR tree-optimization/37021
28624         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
28625         (SLP_TREE_TWO_OPERATORS): New define.
28626         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
28627         SLP_TREE_TWO_OPERATORS.
28628         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
28629         SLP node.
28630         (vect_build_slp_tree): Adjust.
28631         (vect_analyze_slp_cost_1): Likewise.
28632         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
28633         emitting two vector stmts and mixing the results.
28635 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28637         * call.c (print_z_candidates): Remove dead code.
28639 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28641         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
28642         and zEC12_simple_fp.
28643         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
28644         to 1.
28646 2015-05-12  Tom de Vries  <tom@codesourcery.com>
28648         PR tree-optimization/66010
28649         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
28650         ifn_va_arg.
28651         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
28652         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
28653         va_lists are passed, and remove corresponding handling.
28654         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
28655         do_deref argument to ifn_va_arg.
28656         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
28657         ifn_va_arg.
28659 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28661         PR target/65955
28662         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
28663         REG before taking its REGNO.
28665 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28667         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
28668         rsp->sign_bit_copies and rsp->nonzero_bits into ...
28669         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
28670         present to get more accurate information about the number of sign bit
28671         copies and non zero bits.
28673 2015-05-12  Richard Biener  <rguenther@suse.de>
28675         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
28676         do not allow unrolling.
28678 2015-05-11  Richard Henderson  <rth@redhat.com>
28680         * config/i386/i386-modes.def (CCP): New.
28681         * config/i386/i386.c (put_condition_code): Handle it.
28682         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
28684 2015-05-11  Richard Henderson  <rth@redhat.com>
28686         * target.def (md_asm_clobbers): Replace with...
28687         (md_asm_adjust): this.
28688         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
28689         (TARGET_MD_ASM_ADJUST): New.
28690         * tm.texi: Rebuild.
28691         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
28692         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
28693         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
28695         * cfgexpand.c (check_operand_nalternatives): Accept vector of
28696         constraints instead of lists of outputs and inputs.
28697         (expand_asm_stmt): Save and restore input_location around the
28698         body of the function.  Move asm data into vectors instead of
28699         building tree lists.  Generate cleanup sequences as needed,
28700         rather than waiting til the end.  Use new md_asm_adjust hook.
28702         * config/vxworks.c: Include vec.h before target.h.
28703         * gimple.c: Likewise.
28704         * incpath.c: Likewise.
28705         * mode-switching.c: Likewise.
28707         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
28708         (cris_md_asm_adjust): this.
28709         (TARGET_MD_ASM_CLOBBERS): Remove.
28710         (TARGET_MD_ASM_ADJUST): New.
28711         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
28712         (ix86_md_asm_adjust): this.
28713         (TARGET_MD_ASM_CLOBBERS): Remove.
28714         (TARGET_MD_ASM_ADJUST): New.
28715         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
28716         (mn10300_md_asm_adjust): this.
28717         (TARGET_MD_ASM_CLOBBERS): Remove.
28718         (TARGET_MD_ASM_ADJUST): New.
28719         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
28720         (rs6000_md_asm_adjust): this.
28721         (TARGET_MD_ASM_CLOBBERS): Remove.
28722         (TARGET_MD_ASM_ADJUST): New.
28723         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
28724         (visium_md_asm_adjust): this.
28725         (TARGET_MD_ASM_CLOBBERS): Remove.
28726         (TARGET_MD_ASM_ADJUST): New.
28728 2015-05-11  Richard Henderson  <rth@redhat.com>
28730         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
28731         if noutputs is zero.
28732         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
28734         * cfgexpand.c (expand_asm_operands): Merge into...
28735         (expand_asm_stmt): ... here.
28737         * cfgexpand.c (expand_asm_operands): Don't call
28738         resolve_asm_operand_names.
28739         * stmt.c (resolve_asm_operand_names): Clarify block comment.
28741 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
28743         * dwarf2out.c (gen_member_die): Sanity check that we access
28744         TYPE_MAIN_VARIANT for TYPE_METHODS.
28745         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
28746         checking TYPE_METHODS.
28747         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
28748         if non-null.
28749         (build_distinct_type_copy): Clear TYPE_METHODS.
28750         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
28751         (verify_type): Allow TYPE_METHODS to be error_mark_node.
28752         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
28754 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
28756         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
28757         (emit_pattern_before_setloc): Likewise.
28759 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
28761         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
28762         for define_peephole2s.
28763         (get_peephole2_pattern): New function.
28764         (main): Use it.  Call validate_pattern.
28766 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28768         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
28769         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
28770         (Last callee saved reg is different for AVR_TINY architecture)
28772 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
28774         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
28775         when looking for memory references.
28777 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
28779         PR target/65753
28780         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
28781         via function pointers.
28783 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
28785         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
28786         indirect call by forcing address into a pseudo with -fno-plt.
28787         * common.opt (flag_plt): New option.
28788         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
28789         ([-fno-plt]): Document.
28791 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
28793         PR bootstrap/66105
28794         * config/rs6000/option-defaults.h: Add space between string literal
28795         and macro name.
28797 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28799         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
28800         accross ARM targets.
28802 2015-05-11  Christian Bruel  <christian.bruel@st.com>
28804         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
28805         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
28807 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
28809         PR rtl-optimization/66076
28810         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
28811         Don't grow the heap array if it is already big enough from a
28812         previous iteration.
28814 2015-05-11  Christian Bruel  <christian.bruel@st.com>
28816         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
28817         (is_called_in_ARM_mode): Remove.
28818         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
28819         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
28820         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
28821          arm_declare_function_name.
28823 2015-05-11  Christian Bruel  <christian.bruel@st.com>
28825         * config/arm/arm.c (arm_option_override): Reoganized and split into :
28826         (arm_option_params_internal); New function.
28827         (arm_option_check_internal): New function.
28828         (arm_option_override_internal): New function.
28829         (thumb_code, thumb1_code): Remove.
28830         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
28831         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
28832         (thumb_code, thumb1_code): Remove.
28833         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
28835 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
28837         * config/alpha/alpha.c (alpha_emit_set_const_1)
28838         (alpha_emit_set_long_const, alpha_extract_integer)
28839         (alpha_legitimate_constant_p, alpha_split_const_mov)
28840         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
28841         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28842         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
28843         HOST_WIDE_INT_1U.
28844         * config/alpha/predicates.md (mode_mask_operand): Do not match
28845         const_double RTX.
28846         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28847         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
28848         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
28849         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
28850         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
28852 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
28854         PR target/65780
28855         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
28856         default_binds_local_p_2.
28857         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
28858         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
28860 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28862         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
28864 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28866         Patch by Richard Biener
28867         * coverage.c (coverage_obj_init): Delay building of type variant
28868         until the type is finished.
28870 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28872         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
28873         mismatch between C and C++ type; compoare correctly ARG_TYPES
28874         for non-prototypes and output correctly parameter index for METHOD_TYPE.
28875         (odr_types_equivalent_p): Fix wording of warning about attributes;
28876         it is OK to match prototype and non-prototype.
28878 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28880         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
28881         TYPE_ARG_TYPES list.
28882         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
28883         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
28885 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
28887         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
28888         * tree.h (is_lang_specific): Constify.
28890 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
28892         PR tree-optimization/64454
28893         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
28894         Rewrite.
28896 2015-05-08  Jason Merrill  <jason@redhat.com>
28898         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
28899         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
28900         config/darwin.h, config/darwin9.h, config/elfos.h,
28901         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
28902         config/microblaze/microblaze.h, config/mips/mips.h,
28903         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
28904         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
28905         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
28906         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
28907         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
28908         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
28909         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
28910         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
28911         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
28912         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
28913         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
28914         between string literal and macro name.
28916 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28918         * jump.c: Change argument types to rtx_insn *.
28919         * rtl.h: Adjust.
28921 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28923         * lra-constraints.c: Change argument type to rtx_insn *.
28925 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28927         * df-problems.c: Change argument type to rtx_insn *.
28929 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28931         * combine.c: Change argument type to rtx_insn *.
28933 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28935         * rtl.h: Adjust.
28936         * rtlanal.c: Change argument type to rtx_insn *.
28938 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28940         * sched-deps.c: Change argument types to rtx_insn *.
28941         * sched-int.h: Adjust.
28943 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28945         * dwarf2cfi.c: Change argument type to rtx_insn *.
28947 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28949         * ira.c (decrease_live_ranges_number): Changetype of local
28950         variable to rtx_insn *.
28951         * recog.c: Change argument types to rtx_insn *.
28952         * recog.h: Adjust.
28954 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28956         * reorg.c: Change argument types to rtx_insn *.
28958 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28960         * ira-color.c: Change argument types to rtx_insn *.
28961         * lra-eliminations.c: Likewise.
28962         * ira.h: Adjust.
28964 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28966         * gcse.c: Change argument types to rtx_insn *.
28968 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28970         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
28972 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28974         * emit-rtl.c (emit_debug_insn_before): Change argument type to
28975         rtx_insn *.
28976         * rtl.h: Adjust.
28978 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28980         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
28981         * rtl.h: Adjust.
28983 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28985         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
28986         * rtl.h: Adjust.
28988 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28990         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
28991         * rtl.h: Adjust.
28993 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28995         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
28996         * rtl.h: Adjust.
28998 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29000         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29001         to rtx_insn *.
29002         * rtl.h: Adjust.
29004 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29006         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29007         to rtx_insn *.
29008         * rtl.h: Likewise.
29010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29012         * except.c (can_nonlocal_goto): Change type of argument to
29013         rtx_insn *.
29014         * rtl.h: Adjust.
29016 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29018         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29019         * rtl.h: Adjust.
29021 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29023         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29024         * cfgrtl.c (can_delete_label_p): Adjust.
29025         * rtl.h: likewise.
29027 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29029         * reorg.c (stop_search_p): Change argument to rtx_insn *.
29031 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29033         * except.c (make_reg_eh_region_note): Change argument to
29034         rtx_insn *.
29035         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29036         * except.h: Adjust.
29038 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29040         * mode-switching.c (commit_mode_sets): Change type of local
29041         variable from rtx to rtx_insn *.
29043 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
29045         * doc/install.texi (--enable-languages): Add missing jit and lto info.
29046         Add ^ to grep command.
29047         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29048         arg to last gimple_simplify declaration.  Add missing gimple_build
29049         declaration for built-in function case with four tree args.
29051 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29052             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29054         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29055         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29056         (GNU_USER_DYNAMIC_LINKERN32): Update.
29058 2015-05-08  Richard Biener  <rguenther@suse.de>
29060         PR tree-optimization/66036
29061         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29062         Handle strided group loads.
29063         (vect_verify_datarefs_alignment): Likewise.
29064         (vect_enhance_data_refs_alignment): Likewise.
29065         (vect_analyze_group_access): Likewise.
29066         (vect_analyze_data_ref_access): Likewise.
29067         (vect_analyze_data_ref_accesses): Likewise.
29068         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29069         (vectorizable_load): Likewise.
29071 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
29073         * config/rs6000/rs6000.md: Require operand inequality in one
29074         of the peepholes.
29076 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
29077             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
29079         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29080         from (set ...).
29081         * config/rx/rx.md (movdi, movdf): Likewise.
29082         Likewise for define_peephole2s.
29084 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29086         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29087         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29088         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29089         vtst_u64): Rewrite using gcc vector extensions.
29091 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29093         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29094         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29096 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29098         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29100 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29102         * config/glibc-stdint.h (OPTION_MUSL): Define.
29103         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29104         Change the definition based on OPTION_MUSL for 64 bit targets.
29105         * config/linux.h (OPTION_MUSL): Redefine.
29106         * config/alpha/linux.h (OPTION_MUSL): Redefine.
29107         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29108         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29110 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29111             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29113         * config.gcc (LIBC_MUSL): New tm_defines macro.
29114         * config/linux.h (OPTION_MUSL): Define.
29115         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29116         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29117         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29118         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29119         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29120         * config/linux.opt (mmusl): New option.
29121         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29122         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29123         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29124         * configure: Regenerate.
29126 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
29127             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29129         PR target/48904
29130         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29131         * config/i386/knetbsd-gnu64.h: New file.
29133 2015-05-08  Marek Polacek  <polacek@redhat.com>
29135         PR c/64918
29136         * doc/invoke.texi: Document -Woverride-init-side-effects.
29138 2015-05-07  Marek Polacek  <polacek@redhat.com>
29140         PR c/65179
29141         * doc/invoke.texi: Document -Wshift-negative-value.
29143 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
29145         * gcov-tool.c (do_merge): Refactore to remove int ret.
29146         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29147         !type == FUNC to type != FUNC.
29148         * reload.h (struct target_reload): Changee to type of
29149         x_spill_indirect_levels from bool to unsigned char.
29151 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
29153         * rtl.h (always_void_p): New function.
29154         * gengenrtl.c (always_void_p): Likewise.
29155         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29156         with code foo are always VOIDmode.
29157         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29158         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29159         compare-elim.c, config/aarch64/aarch64.c,
29160         config/aarch64/aarch64.md, config/alpha/alpha.c,
29161         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29162         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29163         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29164         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29165         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29166         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29167         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29168         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29169         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29170         config/ia64/vect.md, config/iq2000/iq2000.c,
29171         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29172         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29173         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29174         config/mep/mep.c, config/microblaze/microblaze.c,
29175         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29176         config/mn10300/mn10300.c, config/msp430/msp430.c,
29177         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29178         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29179         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29180         config/rs6000/altivec.md, config/rs6000/rs6000.c,
29181         config/rs6000/rs6000.md, config/rs6000/vector.md,
29182         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29183         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29184         config/sh/sh.md, config/sh/sh_treg_combine.cc,
29185         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29186         config/spu/spu.md, config/stormy16/stormy16.c,
29187         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29188         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29189         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29190         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29191         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29192         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29193         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29194         var-tracking.c: Update calls accordingly.
29196 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
29198         PR middle-end/192
29199         PR middle-end/54303
29200         * varasm.c (function_mergeable_rodata_prefix): New function.
29201         (mergeable_string_section): Use it.
29202         (mergeable_constant_section): Use it.
29204 2015-05-07  Jeff Law  <law@redhat.com>
29206         PR target/39726
29207         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29208         simplifier to narrow arithmetic.
29209         * generic-match-head.c: (types_match, single_use): New functions.
29210         * gimple-match-head.c: (types_match, single_use): New functions.
29212 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29214         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29215         rtx type.
29217 2015-05-07  Richard Biener  <rguenther@suse.de>
29219         PR tree-optimization/66002
29220         * passes.def: Schedule another pass_merge_phi after ifcombine, right
29221         before phiopt.
29223 2015-05-07  Marek Polacek  <polacek@redhat.com>
29224             Martin Uecker  <uecker@eecs.berkeley.edu>
29226         * doc/invoke.texi: Document -fsanitize=bounds-strict.
29227         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29228         into SANITIZE_NONDEFAULT.
29229         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29231 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
29233         PR target/66015
29234         * config/alpha/alpha.c (alpha_override_options_after_change): New.
29235         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29236         (alpha_override_options): Move align_loops, align_jumps and
29237         align_functions handling into alpha_override_options_after_change.
29239 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
29240             Chris Jones  <chrisj@nvidia.com>
29241             Joshua Conner  <jconner@nvidia.com>
29243         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29244         linking of crtfastmath.o.
29245         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29247 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29249         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29250         (cstore<mode>4_unsigned_imm): New expander.
29251         (cstore<mode>4): Remove empty constraint strings.  Use the new
29252         expanders.
29254 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
29256         PR target/64208
29257         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29258         alternatives.
29260 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29262         * config/aarch64/geniterators.sh: Use standard BRE in sed.
29264 2015-05-06  Alan Modra  <amodra@gmail.com>
29266         PR target/66033
29267         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29268         (UNSPEC_NOP): Define.
29269         (reload_vsx_from_gpr<mode>): Add missing DONE.
29270         (reload_gpr_from_vsx<mode>): Likewise.
29271         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29272         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29274 2015-05-06  Christian Bruel  <christian.bruel@st.com>
29276         PR target/66015
29277         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29278         align_jumps, align_functions into aarch64_override_options_after_change.
29280 2015-05-06  Richard Biener  <rguenther@suse.de>
29282         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29283         vect_transform_slp_perm_load to check if we support a permutation
29284         for basic-block vectorization.
29286 2015-05-06  Nick Clifton  <nickc@redhat.com>
29288         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29289         used, even if it is not being used as a frame pointer.
29291 2015-05-05  Jason Merrill  <jason@redhat.com>
29293         * dwarf2out.c (gen_member_die): Don't emit anything for an
29294         anonymous class constructor.
29296 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
29298         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29299         that it reflects the block structure.
29300         (afdo_propagate_edge): Likewise.
29301         (afdo_calculate_branch_prob): Likewise.
29302         (afdo_annotate_cfg): Likewise.
29303         * cfgcleanup.c (equal_different_set_p): Likewise.
29304         (try_crossjump_to_edge): Likewise.
29305         * cgraph.c (cgraph_node::verify_node): Likewise.
29306         * cgraphunit.c (expand_all_functions): Likewise.
29307         * config/i386/i386.c (ix86_expand_copysign): Likewise.
29308         (exact_dependency_1): Likewise.
29309         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29310         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29311         * gensupport.c (process_define_subst): Likewise.
29312         * lto-wrapper.c (merge_and_complain): Likewise.
29313         * tree-if-conv.c (if_convertible_bb_p): Likewise.
29314         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29315         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29316         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29317         * tree-vect-loop.c (vectorizable_reduction): Likewise.
29318         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29319         * tree-vect-stmts.c (vectorizable_shift): Likewise.
29320         * tree-vrp.c (vrp_finalize): Likewise.
29321         * tree.c (variably_modified_type_p): Likewise.
29323 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
29325         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29326         on darwin12 and later.
29327         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29328         file to pass -rdynamic on darwin12 and later.
29329         * config/darwin.opt (rdynamic): Add.
29331 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29333         * doc/extend.texi (C Extensions): Update menu for moved Variable
29334         Attributes and Type Attributes sections.
29336 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29338         PR target/65990
29339         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29340         if rep_8byte stringop strategy was specified for 32-bit target.
29342 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
29344         PR target/65915
29345         * config/i386/i386.md (vector convert to float spltiter): Check for
29346         xmm16+, when splitting scalar float conversion.
29347         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29349 2015-05-05  Nick Clifton  <nickc@redhat.com>
29351         * config/msp430/msp430-opts.h (enum msp430_regions): New.
29352         * config/msp430/msp430.c (msp430_override_options): Complain if
29353         -mcode-region or -mdata-region is used on a non MSP430X.
29354         (msp430_section_attr): New function.  Checks lower, upper and
29355         either attributes.
29356         (msp430_attribute_table): Add lower, upper and either.
29357         (gen_prefix): New function.  Generates a prefix for a section
29358         name.
29359         (msp430_select_section): New function - handles the choice of
29360         section for an object.  Takes into account memory region
29361         attributes and options.
29362         (msp430_function_section): Use gen_prefix.
29363         (TARGET_SECTION_TYPE_FLAGS): Define.
29364         (msp430_section_type_flags): New function.
29365         (TARGET_ASM_UNIQUE_SECTION): Define.
29366         (msp430_unique_section): New function.
29367         (msp430_output_aligned_decl_common): New function.
29368         (msp430_do_not_relax_short_jumps): New function.
29369         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29370         Define.
29371         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29372         * config/msp430/msp430-protos.h
29373         (msp430_do_not_relax_short_jumps): New prototype.
29374         (msp430_output_aligned_decl_common): New prototype.
29375         * config/msp430/msp430.md (length): New attribute.
29376         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29377         then use a long code sequence for short jumps.
29378         * config/msp430/msp430.opt (mcode-region): New.
29379         (mdata-region): New.
29380         * doc/invoke.texi: Document new options.
29381         * doc/extend.texi: Document new attributes.
29383 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
29385         * config/aarch64-protos.h (struct cpu_branch_cost): New.
29386         (tune_params): Add field branch_costs.
29387         (aarch64_branch_cost): Declare.
29388         * config/aarch64.c (generic_branch_cost): New.
29389         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29390         (cortexa53_tunings): Likewise.
29391         (cortexa57_tunings): Likewise.
29392         (thunderx_tunings): Likewise.
29393         (xgene1_tunings): Likewise.
29394         (aarch64_branch_cost): Define.
29395         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29397 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29399         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29400         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29401         * config/i386/i386.md: Ditto.
29402         * config/i386/winnt.c: Ditto.
29404 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
29406         * doc/extend.texi (__atomic Builtins): Move implementation details
29407         to the end of the description, rewrite opening paragraphs, state
29408         difference with __sync builtins, state C11/C++11 assumptions,
29409         weaken itemized descriptions, add explanation of memory model
29410         behaviour, expand description of compare-exchange, simplify text.
29412 2015-05-05  Renlin Li  <renlin.li@arm.com>
29414         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29416 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
29418         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29419         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29420         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29421         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29422         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29423         * configure: Regenerate.
29424         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29425         * doc/install.texi (aarch64*-*-*): Document new
29426         --enable-fix-cortex-a53-843419 option.
29427         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29428         and -mno-fix-cortex-a53-843419 options.
29430 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29432         PR target/65871
29433         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29435 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
29437         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29438         fix overactive TYPE_MIN_VALUE check and add FIXME for type
29439         compatibility problems.
29441 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
29443         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
29444         constraints.
29445         (cbranchsi4_reg): New.
29446         * config/microblaze/microblaze.c
29447         (microblaze_expand_conditional_branch_reg): New.
29448         * config/microblaze/microblaze-protos.h
29449         (microblaze_expand_conditional_branch_reg): New prototype.
29451 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
29453         * config/microblaze/microblaze.md (peephole2): New.
29455 2015-05-04  Jeff Law  <law@redhat.com>
29457         Revert:
29458         2015-05-04  Jeff Law  <law@redhat.com>
29460         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29461         simplifier to narrow arithmetic.
29462         * generic-match-head.c: (types_match, single_use): New functions.
29463         * gimple-match-head.c: (types_match, single_use): New functions.
29465 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
29467         PR target/65987
29468         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
29469         (split_branches): Likewise.
29471 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
29473         * common.opt (fdelete-null-pointer-checks): Init to -1.
29474         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
29475         override flag_delete_null_pointer_checks default.
29476         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
29477         behavior re address zero.  Better document target-specific behavior.
29478         (-fisolate-errneous-paths-dereference): Mention relationship to
29479         -fdelete-null-pointer-checks.
29481 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
29483         PR tree-optimization/65984
29484         * ubsan.c: Include tree-cfg.h.
29485         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
29486         stmt_could_throw_p test, rename can_throw variable to ends_bb.
29488 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
29490         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
29491         to CONST_DOUBLE_P predicate.
29492         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
29493         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
29494         allow only operands that satisfy standard_sse_constant_p predicate.
29495         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
29496         to CONST_DOUBLE_P predicate.
29498 2015-05-04  Jeff Law  <law@redhat.com>
29500         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29501         simplifier to narrow arithmetic.
29502         * generic-match-head.c: (types_match, single_use): New functions.
29503         * gimple-match-head.c: (types_match, single_use): New functions.
29505 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
29507         * config/arm/arm.c: Restore bootstrap.
29509 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
29511         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
29512         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
29513         as CONST_WIDE_INT, not CONST_DOUBLE.
29514         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
29515         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
29516         (ix86_find_base_term): Do not check for CONST_DOUBLE.
29517         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
29518         (ix86_build_signbit_mask): Rewrite using wide ints.
29519         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
29520         (ix86_rtx_costs): Handle CONST_WIDE_INT.
29521         (find_constant): Ditto.
29522         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
29523         using gen_int_mode.
29524         * config/i386/predicates.md (x86_64_immediate_operand)
29525         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29526         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
29527         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
29528         (const0_operand): Also match const_wide_int.
29529         (constm1_operand): Ditto.
29530         (const1_operand): Ditto.
29532 2015-05-04  Richard Biener  <rguenther@suse.de>
29534         PR tree-optimization/65965
29535         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
29536         store groups at gaps.
29538 2015-05-04  Richard Biener  <rguenther@suse.de>
29540         PR tree-optimization/65935
29541         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
29542         then make sure to apply that swapping to the IL.
29544 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
29546         * Makefile.in (PATCHLEVEL_c): New variable.
29547         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
29548         expand the same way as if DEVPHASE_c was non-empty.
29550 2015-05-04  Kai Tietz  <ktietz@redhat.com>
29552         PR target/65559
29553         * lto-wrapper.c (run_gcc): Open filename
29554         in binary-mode.
29556 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
29558         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
29559         sections up in file, to immediately after the Function Attributes
29560         section.
29562 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
29564         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
29566 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29568         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
29569         (insert_partition_copy_on_edge): Adjust.
29570         (insert_rtx_to_part_on_edge): Likewise.
29571         (insert_part_to_rtx_on_edge): Likewise.
29573 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29575         * function.c (set_return_jump_label): Change type of argument to
29576         rtx_insn *.
29577         * function.h (set_return_jump_label): Adjust.
29579 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29581         * reload.h (struct reg_equivs_t): Change type of init to
29582         rtx_insn *.
29583         * ira.c (fix_reg_equiv_init): Adjust.
29584         * reload1.c (eliminate_regs_1): Likewise.
29585         (init_eliminable_invariants): Likewise.
29587 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29589         * cselib.c (fp_setter_insn): Take a rtx_insn *.
29590         * cselib.h (fp_setter_insn): Adjust.
29592 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29594         * recog.c (struct validate_replace_src_data): Change type of
29595         insn field to rtx_insn *.
29596         (validate_replace_src_group): Change type of argument to rtx_insn *.
29597         * recog.h (validate_replace_src_group): Adjust.
29599 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29601         * haifa-sched.c: Change the type of some variables to rtx_insn *.
29602         * sched-deps.c: Likewise.
29603         * sched-int.h: Likewise.
29604         * sched-rgn.c: Likewise.
29605         * sel-sched.c: Likewise.
29607 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29609         to rtx_insn *.
29610         * config/i386/i386.c: Change the type of some arguments to
29611         rtx_insn *.
29612         * config/arm/arm.c: Likewise.
29614 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29616         * lra-constraints.c: Change type of some arguments to rtx_insn *.
29618 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29620         * regcprop.c (kill_autoinc_value): Change type of argument to
29621         rtx_insn *.
29623 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29625         * genrecog.c (print_subroutine): Adjust.
29626         * recog.c (get_bool_attr_mask_uncached): Likewise.
29627         * recog.h (struct recog_data_d): Change the type of insn to
29628         rtx_insn *.
29630 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29632         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
29634 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29636         * df-problems.c (df_set_note): Change type of argument to
29637         rtx_insn *.
29639 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29641         * builtins.c (expand_builtin_trap): Change type of local
29642         variable to rtx_insn *.
29643         (add_sched_insns_for_speculation): Likewise.
29644         (ix86_emit_save_regs): Likewise.
29645         (get_scratch_register_on_entry): Likewise.
29646         (ix86_emit_restore_reg_using_pop): Likewise.
29647         (ix86_emit_leave): Likewise.
29648         (ix86_emit_restore_regs_using_mov): Likewise.
29649         (ix86_expand_epilogue): Likewise.
29650         Likewise.
29651         (rl78_alloc_physical_registers_umul): Likewise.
29652         * cselib.c (discard_useless_locs): Likewise.
29653         (cselib_invalidate_regno): Likewise.
29654         (cselib_invalidate_mem): Likewise.
29655         * function.c (expand_function_start): Likewise.
29656         (emit_use_return_register_into_block): Likewise.
29657         * gcse.c: Likewise.
29658         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
29659         * ifcvt.c (noce_get_alt_condition): Likewise.
29660         * loop-doloop.c (doloop_condition_get): Likewise.
29661         * lra-constraints.c (inherit_in_ebb): Likewise.
29662         * modulo-sched.c (sms_schedule_by_order): Likewise.
29663         * recog.c (next_insn_tests_no_inequality): Likewise.
29664         * reorg.c (emit_delay_sequence): Likewise.
29665         (update_reg_dead_notes): Likewise.
29666         (fix_reg_dead_note): Likewise.
29667         (fill_slots_from_thread): Likewise.
29668         (delete_computation): Likewise.
29670 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
29672         * doc/extend.texi (Variable Attributes): Add menu and proper
29673         @nodes to subsections.  Move Microsoft Windows attributes to
29674         their own subsection.
29675         (Type Attributes): Reorganize introduction to remove duplicate
29676         list of attributes.  Add menu and proper @nodes to subsections.
29677         Alphabetize the main table of common attributes.
29679 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
29681         * match.pd: New simplification patterns.
29682         (x + (x & 1))  -> ((x + 1) & ~1)
29683         (x & ~(x & y)) -> ((x & ~y))
29684         (x | ~(x | y)) -> ((x | ~y))
29686 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29688         * target.def (attribute_table): Mention that struct attribute_spec
29689         is defined in tree-core.h rather than tree.h
29690         * doc/tm.texi: Regenerate.
29692 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
29694         * genrecog.c (test): Rename to rtx_test.  Update rest of file
29695         accordingly.
29697 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
29699         PR translation/65959
29700         * params.h (DEFPARAM): Rename msgid to nocmsgid.
29702 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
29704         * config/aarch64/aarch64-protos.h (tune_params):
29705         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
29706         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
29707         Return value depending on target.
29708         (generic_tunings): Initialize new target settings.
29709         (cortexa53_tunings): Likewise.
29710         (cortexa57_tunings): Likewise.
29711         (thunderx_tunings): Likewise.
29712         (xgene1_tunings): Likewise.
29714 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
29716         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
29717         Make Cortex-A53 shift costs more accurate.
29719 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29721         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
29722         UNSIGNED_FLOAT.
29724 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
29726         * config/aarch64/aarch64.c (aarch64_rtx_costs):
29727         Calculate cost of op0 and op1 in PLUS and MINUS cases.
29729 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29731         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29732         Add cost of op0 in the compare-with-fpzero case.
29734 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
29736         * builtins.c (fold_builtin_1): Remove spurious second
29737         semicolon.
29738         * cgraph.h (symtab_node::get_availability): Likewise.
29739         * opts.c (common_handle_option): Remove spurious second semicolon.
29740         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
29741         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
29743 2015-04-30  Caroline Tice  <cmtice@google.com>
29745         PR gcov-profile/65929
29746         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
29747         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
29748         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
29749         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
29750         * doc/tm.texi: Regenerate.
29751         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
29752         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
29753         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
29754         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
29756 2015-04-30  Marek Polacek  <polacek@redhat.com>
29758         * varasm.c (handle_cache_entry): Fix logic.
29760 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29762         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
29763         (*extrsi5_insn_uxtw_alt): Likewise.
29764         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
29765         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
29766         operations.
29768 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29770         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
29771         fabd in ABS case.
29773 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29775         * config/aarch64/aarch64.md
29776         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
29777         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
29778         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
29779         appropriately.  Handle alternative EON form.
29781 2015-04-30  Renlin Li  <renlin.li@arm.com>
29783         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
29784         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
29786 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
29788         PR ipa/65873
29789         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
29790         -fstrict-aliasing boundaries.
29792 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29794         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
29795         and [SU]MNEGL patterns.
29797 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29799         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
29800         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
29801         combined arithmetic-shift ops.  Properly handle all shift and extend
29802         operations that can occur in combination with PLUS/MINUS.
29803         Rename maybe_fma to compound_p.
29804         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
29805         arithmetic and shift operations.
29807 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29809         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
29810         rather than arith_shift cost when costing ADD/MINUS of an
29811         extended value.
29813 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
29815         PR lto/65948
29816         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
29817         to itself.
29819 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
29821         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
29822         are for the same position.
29824 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
29826         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
29827         vectorize_loops.
29828         (vectorize_loops): Use it.
29830 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
29832         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
29833         for aggregate types.
29834         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
29835         type to be non_ODR.
29836         * tree.c (need_assembler_name_p): Compute mangled name for
29837         non-fundamental types and integer types.
29839 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
29841         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
29842         manual swaps.
29843         * expr.c (expand_expr_real_2): Likewise.
29845 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
29847         * tree.c (build_common_builtin_nodes): Do not build
29848         __builtin_alloca_with_align as equivalent of library alloca.
29850 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
29852         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
29853         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
29854         bugus variants.
29855         * tree.c: Include print-tree.h and ipa-utils.h
29856         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
29857         (free_lang_data_in_cgraph): Call verify_type.
29858         (verify_type_variant): New function.
29859         (verify_type): New function.
29860         * tree.h (verify_type): Declare.
29862 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
29864         * config/mips/mips-cpus.def: (mips4): Change default processor
29865         from PROCESSOR_R8000 to PROCESSOR_R10000.
29867 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29869         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
29870         la/jalr instead of jal.
29872 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
29874         PR target/65871
29875         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
29876         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
29877         (setcc+movzbl peephole2): Check also clobbered reg.
29878         (setcc+andl peephole2): Ditto.
29880 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
29882         PR libgomp/65099
29883         * config/nvptx/mkoffload.c (target_ilp32): New variable.
29884         (main): Set it depending on "-foffload-abi=[...]".
29885         (compile_native, main): Use it to pass "-m32" or "-m64" to the
29886         compiler.
29888 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
29890         PR target/65770
29891         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
29892         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
29893         Flip lane index back at assembly time for bigendian.
29895 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
29897         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
29898         * gimplify.c (gimplify_omp_workshare): Use it.
29900 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29902         * Makefile.in (build/genrecog.o): Depend on inchash.h.
29903         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
29904         build/inchash.o
29905         * genrecog.c: Rewrite most of the code except for the third page.
29907 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29909         * inchash.h, inchash.c: Include bconfig.h for build objects.
29910         * Makefile.in (build/inchash.o): New rule.
29912 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
29914         PR target/65924
29915         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
29916         number in type attribute expression.
29918 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
29920         * loop-iv.c (canon_condition): Generalize to all types of integer
29921         constant.
29923 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
29925         * gimple-walk.c: Prune duplicate or unneeded includes.
29926         (walk_gimple_asm): Only call parse_input_constraint or
29927         parse_output_constraint if their findings are used.
29928         Honour parse_input_constraint and parse_output_constraint
29929         result.
29931 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
29933         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
29935 2015-04-29  Tom de Vries  <tom@codesourcery.com>
29937         PR tree-optimization/65893
29938         * passes.def (pass_all_optimizations): Move pass_stdarg to after
29939         pass_dce.
29941 2015-04-29  Richard Biener  <rguenther@suse.de>
29943         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29944         compute GROUP_SIZE for basic-block SLP.
29945         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
29946         take into account gaps.
29947         (vect_get_mask_element): Properly reject references to previous
29948         vectors.
29949         (vect_transform_slp_perm_load): Likewise.
29951 2015-04-29  Christian Bruel  <christian.bruel@st.com>
29953         PR target/64835
29954         * config/i386/i386.c (ix86_default_align): New function.
29955         (ix86_override_options_after_change): Call ix86_default_align.
29956         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
29957         (ix86_override_options_after_change): New function.
29959 2015-04-28  Jeff Law  <law@redhat.com>
29961         * tree-ssa-dom.c (record_equality); Fix comment typos.
29963 2015-04-28  Tom de Vries  <tom@codesourcery.com>
29965         PR tree-optimization/65887
29966         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
29968 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
29970         * doc/extend.texi (Declaring Attributes of Functions): Split into
29971         subsections by target.  Alphabetize the table of common attributes.
29972         Rewrite some of the introductory text to reflect the new structure.
29973         Update some cross-references to point to the new subsections.
29974         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
29975         duplicate copies in the discussion of function, label, and type
29976         attributes.
29978 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
29980         PR bootstrap/65910
29981         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
29983 2015-04-28  Jason Merrill  <jason@redhat.com>
29985         PR c++/65734
29986         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
29987         (finalize_type_size): Respect TYPE_USER_ALIGN.
29988         (layout_type) [ARRAY_TYPE]: Likewise.
29990 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
29992         * config/arm/arm.md (*arm_movt): Fix type attribute.
29993         (*cmpsi_shiftsi): Likewise.
29994         (*cmpsi_shiftsi_swp): Likewise.
29995         (*movsicc_insn): Likewise.
29996         (*cond_move): Likewise.
29997         (*if_plus_move): Likewise.
29998         (*if_move_plus): Likewise.
29999         (*if_arith_move): Likewise.
30000         (*if_move_arith): Likewise.
30001         (*if_shift_move): Likewise.
30002         (*if_move_shift): Likewise.
30003         (*arm_movtas_ze): Likewise.
30004         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30005         redundancy and type attribute.
30006         (*thumb2_movsi_insn): Fix type attribute.
30007         (*thumb2_addsi_short): Likewise.
30008         (thumb2_addsi3_compare0): Likewise.
30009         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30010         attributes accordingly.
30012 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
30014         PR other/65911
30015         * function.c (pad_to_arg_alignment): Add parentheses.
30017 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
30019         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30020         libgcc/config/frv/elf-lib.h.
30022 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30024         * tree-call-cdce.c: Fix example in header comment.
30026 2015-04-28  Richard Biener  <rguenther@suse.de>
30028         PR tree-optimization/62283
30029         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30030         fails fatally and we are vectorizing a basic-block simply
30031         cause the child to be constructed piecewise.
30032         (vect_analyze_slp_cost_1): Adjust.
30033         (vect_detect_hybrid_slp_stmts): Likewise.
30034         (vect_bb_slp_scalar_cost): Likewise.
30035         (vect_get_constant_vectors): For piecewise constructed
30036         constants place them after the last def.
30037         (vect_get_slp_defs): Adjust.
30038         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30039         externals for basic-block vectorization.
30041 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30043         PR target/63503
30044         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30045         aarch64-*-*.
30046         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30047         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30048         (AARCH64_TUNE_FMA_STEERING): Likewise.
30049         * config/aarch64/aarch64-cores.def: Set
30050         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30051         FMUL/FMADD instructions.
30052         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30053         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
30054         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30055         * config/aarch64/cortex-a57-fma-steering.h: New file.
30056         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30058 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
30060         * gensupport.c (std_preds): Add missing codes to address_operand entry.
30062 2015-04-28  Richard Biener  <rguenther@suse.de>
30064         PR tree-optimization/65851
30065         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30066         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
30067         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
30068         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30069         (ccp_visit_phi_node): Adjust.
30070         (evaluate_stmt): For simplifications to SSA names return its
30071         lattice value if that isn't VARYING.  Return immediately when
30072         simplified to a constant.
30073         (visit_assignment): Adjust.
30074         (ccp_visit_stmt): Likewise.
30076 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30078         PR tree-optimization/65818
30079         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30080         evaluated.
30082 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30084         * calls.c (save_fixed_argument_area): Don't check
30085         ARGS_GROW_DOWNWARD with the preprocessor.
30086         (restore_fixed_argument_area): Likewise.
30087         (mem_overlaps_already_clobbered_arg_p): Likewise.
30088         (check_sibcall_argument_overlap): Likewise.
30089         (expand_call): Likewise.
30090         (emit_library_call_value_1): Likewise.
30091         (store_one_arg): Likewise.
30092         * function.c (assign_parms): Likewise.
30093         (locate_and_pad_parm): Likewise.
30094         (pad_to_arg_alignment): Likewise.
30095         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30097 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30099         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30100         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30101         * calls.c (save_fixed_argument_area): Don't chekc if
30102         ARGS_GROW_DOWNWARD is defined.
30103         (restore_fixed_argument_area): Likewise.
30104         (mem_overlaps_already_clobbered_arg_p): Likewise.
30105         (check_sibcall_argument_overlap): Likewise.
30106         (expand_call): Likewise.
30107         (emit_library_call_value_1): Likewise.
30108         (store_one_arg): Likewise.
30109         * function.c (assign_parms): Likewise.
30110         (locate_and_pad_parm): Likewise.
30111         (pad_to_arg_alignment): Likewise.
30112         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30114 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30116         * defaults.h (gen_epilogue): New function.
30117         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30118         defined.
30119         * cfgrtl.c (cfg_layout_finalize): Likewise.
30120         * df-scan.c: Likewise.
30121         * function.c (thread_prologue_and_epilogue_insns): Likewise.
30122         (reposition_prologue_and_epilogue_notes): Likewise.
30123         * reorg.c (find_end_label): Likewise.
30124         * toplev.c: Likewise.
30126 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30128         * bb-reorder.c (HAVE_return): Don't check if its undefined.
30129         * defaults.h (gen_simple_return): New function.
30130         (gen_simple_return): Likewise.
30131         (HAVE_return): Add default definition to false.
30132         (HAVE_simple_return): Likewise.
30133         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30134         HAVE_return and HAVE_simple_return are defined.
30135         * function.c (gen_return_pattern): Likewise.
30136         (convert_jumps_to_returns): Likewise.
30137         (thread_prologue_and_epilogue_insns): Likewise.
30138         * reorg.c (find_end_label): Likewise.
30139         (dbr_schedule): Likewise.
30140         * shrink-wrap.c: Likewise.
30141         * shrink-wrap.h: Likewise.
30143 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30145         * defaults.h (EPILOGUE_USES): Add default definition of false.
30146         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30147         * resource.c (init_resource_info): Likewise.
30149 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30151         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30152         to false.
30153         * dwarf2out.c (field_byte_offset): REmove check if
30154         PCC_BITFIELD_TYPE_MATTERS is defined.
30155         * stor-layout.c (layout_decl): Likewise.
30156         (update_alignment_for_field): Likewise.
30157         (place_field): Likewise.
30159 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30161         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30162         true.
30163         * regrename.c (check_new_reg_p): Remove check if
30164         HARD_REGNO_RENAME_OK is defined.
30165         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30167 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30169         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30170         * cse.c (fold_rtx): Likewise.
30171         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30172         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30173         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30174         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30175         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30176         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30177         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30178         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30179         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30180         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30181         * Likewise.
30182         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30183         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30184         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30185         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30186         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30187         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30188         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30189         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30190         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30191         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30192         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30193         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30194         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30195         * doc/tm.texi: Regenerate.
30196         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30197         either true or false.
30199 2015-04-27  Jeff Law  <law@redhat.com>
30201         PR tree-optimization/65217
30202         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30203         of them has a single use, make sure it is the LHS of the implied
30204         copy.
30206 2015-04-28  Alan Modra  <amodra@gmail.com>
30208         PR target/65810
30209         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30210         (offsettable_ok_by_alignment): Use minimum of decl and toc
30211         pointer alignment.  Replace dead code with assertion.
30212         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
30213         case if size exceeds toc pointer alignment.
30214         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30215         (rs6000_emit_move): Likewise.
30216         * configure.ac: Add linker toc pointer alignment check.
30217         * configure: Regenerate.
30218         * config.in: Regenerate.
30220 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
30222         * config.gcc: Add h8300-*-linux.
30223         * config/h8300/linux.h: New.
30224         * config/h8300/t-linux: New.
30225         * config/h8300/h8300.c (h8300_option_override): Normal mode
30226         is not supported for h8300-*-linux.
30227         (h8300_file_start): Target priority change.
30228         (get_shift_alg): Likewise.
30229         (h8300_shift_need_scratch_p): Likewise.
30230         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30231         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30233 2015-04-27  Caroline Tice  <cmtice@google.com>
30235         * final.c (final_scan_insn):  Output cold_function_name as function
30236         type.
30237         * varasm.c (cold_function_name):  Make global.
30238         (assemble_start_function):  Re-set cold_function_name.
30239         (assemble_end_function): Output cold partition size.
30240         * varasm.h (cold_function_name):  Declare global.
30242 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
30244         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30245         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30246         constraint.
30247         (*movxi_internal_avx512f): Ditto.
30248         (define_split): Check for xmm16+, when splitting scalar float_extend.
30249         (*extendsfdf2_mixed): Use "v" constraint.
30250         (define_split): Check for xmm16+, when splitting scalar float_truncate.
30251         (*truncdfsf_fast_sse): Use "v" constraint.
30252         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30253         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30254         (define_peephole2): Check for xmm16+, when converting scalar
30255         float_truncate.
30256         (define_peephole2): Check for xmm16+, when converting scalar
30257         float_extend.
30258         (*fop_<mode>_comm_mixed): Use "v" constraint.
30259         (*fop_<mode>_comm_sse): Ditto.
30260         (*fop_<mode>_1_mixed): Ditto.
30261         (*sqrt<mode>2_sse): Ditto.
30262         (*ieee_s<ieee_maxmin><mode>3): Ditto.
30264 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30266         * combine.c (simplify_if_then_else): Use std::swap instead
30267         of manually swapping.
30268         (known_cond): Likewise.
30269         (simplify_comparison): Likewise.
30271 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
30273         PR target/64579
30274         * config/rs6000/htm.md: Remove all define_expands.
30275         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30276         UNSPECV_HTM_TABORTWCI): Remove.
30277         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30278         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30279         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30280         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30281         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30282         tabortwci_internal): Remove define_insns.
30283         (tabort<wd>c, tabort<wd>ci): New define_insns.
30284         (tabort): Use gpc_reg_operand.
30285         (tcheck): Remove operand.
30286         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30287         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30288         expected value.
30289         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30290         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
30291         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30292         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30293         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30294         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30295         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30296         (tcheck): Remove builtin argument.
30297         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30298         not TARGET_64BIT.
30299         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
30300         tabortdc and tabortdci builtins when not in 64-bit mode.
30301         Modify code to handle the loss of the HTM define_expands.
30302         Emit code to copy the CR register to TARGET.
30303         (htm_init_builtins): Modify code to handle the loss of the HTM
30304         define_expands.
30305         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30306         (RS6000_BTC_64BIT): Likewise.
30307         (RS6000_BTC_CR): New macro.
30308         * doc/extend.texi: Update documentation for htm builtins.
30310 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30312         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30313         of manually swapping.
30314         (simplify_associative_operation): Likewise.
30315         (simplify_binary_operation): Likewise.
30316         (simplify_plus_minus): Likewise.
30317         (simplify_relational_operation): Likewise.
30318         (simplify_ternary_operation): Likewise.
30320 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30322         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30323         (xs_hi_nonmemory_operand): Remove error.
30324         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30325         general_operand rather than xs_hi_general_operand.
30327 2015-04-27  Richard Biener  <rguenther@suse.de>
30329         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30330         (record_equivalences_from_stmt): Valueize rhs.
30331         (record_equality): Canonicalize x and y order via
30332         tree_swap_operands_p.  Do not swap operands for same loop depth.
30334 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
30336         PR target/65296
30337         PR target/65895
30338         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30339         Add hint how to use own spec file.
30341 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
30343         PR tree-optimization/65875
30344         * tree-vrp.c (update_value_range): If in is_new case setting
30345         old_vr to VR_VARYING, also set new_vr to it.  Remove
30346         old_vr->type == VR_VARYING test.
30347         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30348         SSA_PROP_INTERESTING if update_value_range returned true,
30349         but new range is VR_VARYING.
30351 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30353         * combine.c (sign_extend_short_imm): New.
30354         (set_nonzero_bits_and_sign_copies): Use above new function for sign
30355         extension of src short immediate.
30356         (reg_nonzero_bits_for_combine): Likewise for tem.
30358 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30360         * stor-layout.c (self_referential_component_ref_p): New predicate.
30361         (copy_self_referential_tree_r): Use it.
30362         (self_referential_size): Punt for simple operations directly involving
30363         self-referential component references.
30364         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30366 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30368         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30370 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30372         * vec.h (vec): Make splice arguments const.  Update definitions
30373         accordingly.
30375 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
30377         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30378         alternatives.
30380 2015-04-26  Tom de Vries  <tom@codesourcery.com>
30382         PR tree-optimization/65826
30383         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30385 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
30387         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30388         (*madd3<mode>): Ditto.
30389         (*msub4<mode>): Ditto.
30390         (*msub3<mode>): Ditto.
30391         (*nmadd4<mode>): Ditto.
30392         (*nmadd3<mode>): Ditto.
30393         (*nmadd4<mode>_fastmath): Ditto.
30394         (*nmadd3<mode>_fastmath): Ditto.
30395         (*nmsub4<mode>): Ditto.
30396         (*nmsub3<mode>): Ditto.
30397         (*nmsub4<mode>_fastmath): Ditto.
30398         (*nmsub3<mode>_fastmath): Ditto.
30400 2015-04-24  Jason Merrill  <jason@redhat.com>
30402         PR c++/50800
30403         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30404         down when building TYPE_CANONICAL.
30405         (build_pointer_type_for_mode): Likewise.
30407 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
30409         * genrecog.c (validate_pattern): Check matching constraint refers
30410         to a lower numbered operand.
30412 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30414         PR target/65849
30415         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30416         save to independent variables use the Save attribute.  This will
30417         allow these options to be modified with the #pragma/attribute
30418         target support.
30419         (-mallow-movmisalign): Likewise.
30420         (-mallow-df-permute): Likewise.
30421         (-msched-groups): Likewise.
30422         (-malways-hint): Likewise.
30423         (-malign-branch-targets): Likewise.
30424         (-mvectorize-builtins): Likewise.
30425         (-msave-toc-indirect): Likewise.
30427         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30428         can be set via the #pragma/attribute target support.
30429         (rs6000_opt_vars): Likewise.
30430         (rs6000_inner_target_options): If VSX was set, also set
30431         -mno-avoid-indexed-addresses.
30433 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30435         * config/arm/iterators.md (shiftable_ops): Rename to...
30436         (SHIFTABLE_OPS): ... This.  Update use in comments.
30437         (ior_xor): Rename to...
30438         (IOR_XOR): ... This.
30439         (vqh_ops): Rename to...
30440         (VQH_OPS): ... This.
30441         (vqhs_ops): Rename to...
30442         (VQHS_OPS): ... This.
30443         (rshifts): Rename to...
30444         (RSHIFTS): ... This.
30445         (returns): Rename to...
30446         (RETURNS): ... This.
30447         * config/arm/arm.md: Update uses of the above.
30448         * config/arm/neon.md: Likewise.
30450 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30452         * config.host (case ${host}): Add aarch64*-*-linux case.
30453         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
30454         fields to all the cores.
30455         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
30456         Add MCPU_MTUNE_NATIVE_SPECS.
30457         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
30458         field to all extensions.
30459         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
30460         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
30461         Adjust definition of AARCH64_OPT_EXTENSION.
30462         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
30463         (MCPU_MTUNE_NATIVE_SPECS): Define.
30464         * config/aarch64/driver-aarch64.c: New file.
30465         * config/aarch64/x-arch64: New file.
30466         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
30467         -mtune and -march.
30469 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
30470             Wei Mi  <wmi@google.com>
30472         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
30473         * config/i386/i386.c (extract_base_offset_in_addr): New function.
30474         (ix86_operands_ok_for_move_multiple): Ditto.
30475         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
30476         (movlpd/movhpd to movupd peephole2): Ditto.
30478 2015-04-24  Marek Polacek  <polacek@redhat.com>
30480         PR c/61534
30481         * input.h (from_macro_expansion_at): Define.
30483         PR c/63357
30484         * doc/invoke.texi: Update description of -Wlogical-op.
30486 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30488         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
30489         ternary operator in fprintf and harmonize spacing.
30491 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
30493         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
30494         Mark operand1 commutative.
30496 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
30498         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
30499         input operands in memory.
30500         (*vec_concatv2si_sse4_1): Ditto.
30501         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
30502         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
30503         register_operand.
30504         (vec_extract_hi_v32hi): Ditto.
30505         (vec_extract_hi_v64hi): Ditto.
30506         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
30508 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30509             Steven Bosscher <steven@gcc.gnu.org>
30511         PR rtl-optimization/34503
30512         * cprop.c (cprop_reg_p): New.
30513         (hash_scan_set): Use above function to check if register can be
30514         propagated.
30515         (find_avail_set): Return up to two sets, one whose source is a
30516         register and one whose source is a constant.  Sets are returned in an
30517         array passed as parameter rather than as a return value.
30518         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
30519         sets returned by find_avail_set, starting with the one whose source is
30520         a constant. Use cprop_reg_p to check if register can be propagated.
30521         (do_local_cprop): Use cprop_reg_p to check if register can be
30522         propagated.
30523         (implicit_set_cond_p): Likewise.
30525 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30527         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
30528         (sem_function::equals): IGNORED_NODES parameter is now unused;
30529         update call of equals_private.
30530         (sem_function::equals_private): Do not call equals_wpa; skip
30531         gimple body matching if there is no body.
30532         (sem_function::init): Add logic to hash tthunk info.
30533         (sem_function::parse): Also parse thunks.
30534         * ipa-icf.h (equals_private): Update declaration.
30536 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30538         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
30539         asterisk from name so this can be generated directly.
30540         (*altivec_stvx_<mode>_internal): Likewise.
30541         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
30542         that this is never called during or after reload/lra.
30543         (rs6000_frame_related): Remove split_reg
30544         argument and logic that references it.
30545         (emit_frame_save): Remove last parameter from call to
30546         rs6000_frame_related.
30547         (rs6000_emit_prologue): Remove last parameter from eight calls to
30548         rs6000_frame_related.  Force generation of stvx instruction for
30549         Altivec register saves.  Remove split_reg handling, which is no
30550         longer needed.
30551         (rs6000_emit_epilogue):  Force generation of lvx instruction for
30552         Altivec register restores.
30554 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30556         * config/rs6000/rs6000.opt (mcrypto): Change option description to
30557         match category changes in ISA 2.07B.
30559 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30561         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
30562         iterators.
30563         (cmp_op, cmp_type): New code attributes.
30564         (NEON_VCMP, NEON_VACMP): New int iterators.
30565         (cmp_op_unsp): New int attribute.
30566         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
30567         (neon_vceq<mode>): Delete.
30568         (neon_vc<cmp_op><mode>_insn): New pattern.
30569         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
30570         (neon_vcgeu<mode>): Delete.
30571         (neon_vcle<mode>): Likewise.
30572         (neon_vclt<mode>: Likewise.
30573         (neon_vcage<mode>): Likewise.
30574         (neon_vcagt<mode>): Likewise.
30575         (neon_vca<cmp_op><mode>): New define_expand.
30576         (neon_vca<cmp_op><mode>_insn): New pattern.
30577         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
30579 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30581         * tree.h (attribute_value_equal): Declare.
30582         * tree.c (attribute_value_equal): Export.
30584 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30586         * ipa-icf.c (sem_item::compare_attributes): New function.
30587         (sem_item::compare_referenced_symbol_properties): Compare variable
30588         attributes.
30589         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
30590         (sem_function::param_used_p): New function.
30591         (sem_function::equals_wpa): Fix attribute comparsion; match
30592         parameter type codes; do not compare paremter flags when
30593         they are not used; compare edge flags; compare indirect calls.
30594         (sem_item::update_hash_by_addr_refs): Hash reference type.
30595         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
30596         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
30597         reference use type.
30598         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
30599         * ipa-icf.h (compare_attributes, param_used_p): Declare.
30601 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
30603         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
30604         cleanup.
30605         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
30606         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
30607         (sem_item::compare_referenced_symbol_properties): New.
30608         (sem_item::hash_referenced_symbol_properties): New.
30609         (sem_item::compare_cgraph_references): Rename to ...
30610         (sem_item::compare_symbol_references): ... this one; use
30611         compare_referenced_symbol_properties.
30612         (sem_function::equals_wpa): Do not compare
30613         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
30614         DECL_IS_OPERATOR_NEW; compare pointer sizes.
30615         (sem_item::update_hash_by_addr_refs): Call
30616         hash_referenced_symbol_properties.
30617         (sem_item::update_hash_by_local_refs): Cleanup.
30618         (sem_function::merge): Do not mix up symbol properties.
30619         (sem_variable::equals_wpa): Use compare_symbol_references.
30620         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
30621         (sem_item::hash_referenced_symbol_properties): New.
30622         (sem_item::compare_symbol_references): New.
30623         (sem_item::compare_cgraph_references): Remove.
30625 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
30627         PR target/26702
30628         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
30629         Emit size of local.
30631 2015-04-23  Nick Clifton  <nickc@redhat.com>
30633         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
30634         ATTRIBUTE_UNUSED to x parameter.
30635         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
30637 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30639         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
30640         TARGET_CRYPTO to TARGET_P8_VECTOR>
30641         (crypto_vpermxor_<mode>): Likewise.
30642         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
30643         (BU_CRYPTO_3A): Likewise.
30644         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
30645         (BU_CRYPTO_OVERLOAD_3A): New #define.
30646         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
30647         (VPMSUMH): Likewise.
30648         (VPMSUMW): Likewise.
30649         (VPMSUMD): Likewise.
30650         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
30651         (VPERMXOR_V4SI): Likewise.
30652         (VPERMXOR_V8HI): Likewise.
30653         (VPERMXOR_V16QI): Likewise.
30654         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
30655         BU_CRYPTO_OVERLOAD_2A.
30656         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
30657         BU_CRYPTO_OVERLOAD_3A.
30658         * config/rs6000/rs6000.opt (mcrypto): Change description of
30659         option.
30661 2015-04-23  Richard Biener  <rguenther@suse.de>
30663         * passes.def: Remove copy propagation passes run directly after CCP.
30664         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
30665         SSA names.
30666         (ccp_visit_phi_node): Rework to handle first executable edge
30667         specially.
30669 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
30671         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30672         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30673         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
30674         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
30675         (thumb_legimitimize_reload_address): Remove.
30676         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
30677         Remove.
30678         (thumb_legimitimize_reload_address): Remove.
30680 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30682         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
30684 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30686         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
30687         MAX_LDM_STM_OPS.
30688         (store_multiple): Likewise.
30690 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30692         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
30693         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
30694         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
30695         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
30696         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
30697         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
30698         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
30699         Specify issue_rate value.
30700         (arm_issue_rate): Look up issue rate from tuning structs. Remove
30701         large switch statement.
30702         (arm_marvell_pj4_tune): New struct.
30703         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
30704         struct.
30706 2015-04-23  Richard Biener  <rguenther@suse.de>
30708         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
30709         (vect_find_last_store_in_slp_instance): Rename to ...
30710         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
30711         (vect_analyze_slp_cost_1): Use vector_load for constant defs
30712         and vec_construct for external defs when estimating prologue cost.
30713         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
30714         Compute costs here only when vectorizing loops.
30715         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
30716         have been determined.
30717         (vect_schedule_slp_instance): Simplify vectorized code placement
30718         and prepare for in-BB external defs.
30719         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
30720         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
30721         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
30722         guard.
30723         (vect_model_load_cost): Likewise.
30724         (vectorizable_store): Instead add it here.
30725         (vectorizable_load): Likewise.
30726         (vect_is_simple_use): Dump def type textually.
30728 2015-04-23  Richard Biener  <rguenther@suse.de>
30730         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
30731         * cfgloop.c (verify_loop_structure): Verify the root loop node.
30732         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
30733         instead of get_eh_region_from_lp_number.
30734         * loop-init.c (fix_loop_structure): If we removed a loop, reset
30735         the SCEV cache.
30737 2015-04-23  Anton Blanchard  <anton@samba.org>
30739         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
30740         need for -mprofile-kernel to save LR to stack.
30742 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30744         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
30745         adjustments.
30746         (insn_is_swappable_p): Return 1 for a convert from double to
30747         single precision when all of its uses are splats of BE element
30748         zero.
30750 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
30752         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
30754 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30756         PR target/65456
30757         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
30758         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
30759         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
30760         option.
30761         (rs6000_builtin_mask_for_load): Return 0 for targets with
30762         efficient unaligned VSX accesses so that the vectorizer will use
30763         direct unaligned loads.
30764         (rs6000_builtin_support_vector_misalignment): Always return true
30765         for targets with efficient unaligned VSX accesses.
30766         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
30767         stores on targets with efficient unaligned VSX accesses is almost
30768         always the same as the cost of an aligned load or store, so model
30769         it that way.
30770         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
30771         unaligned vectors if we have efficient unaligned VSX accesses.
30772         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
30773         undocumented option.
30775 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30777         Revert:
30778         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
30780         * config.gcc (LIBC_MUSL): New tm_defines macro.
30781         * config/linux.h (OPTION_MUSL): Define.
30782         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30783         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30784         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30786         * config/linux.opt (mmusl): New option.
30787         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30788         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30790         * configure: Regenerate.
30792 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
30794         * config.gcc (LIBC_MUSL): New tm_defines macro.
30795         * config/linux.h (OPTION_MUSL): Define.
30796         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30797         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30798         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30800         * config/linux.opt (mmusl): New option.
30801         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30802         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30804         * configure: Regenerate.
30806 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
30808         * doc/invoke.texi (-fsanitize-sections): Update description.
30809         * asan.c (set_sanitized_sections): Parse incoming arg.
30810         (section_sanitized_p): Support wildcards.
30812 2015-04-22  Tom de Vries  <tom@codesourcery.com>
30814         PR tree-optimization/65823
30815         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
30816         equality between ap_copy and ap.
30818 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30820         PR target/47098
30821         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
30823 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30825         PR target/47122
30826         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
30828 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30830         PR target/55144
30831         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
30832         remove already contained t-files.
30834 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30836         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
30837         Remove unneeded forward declarations.
30838         (suitable_for_tail_call_opt_p): Commentary typo fix.
30840 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30842         * varasm.c (emit_bss): Remove redundant guard.
30844 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30846         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
30848 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30850         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
30852 2015-04-22  Hale Wang  <hale.wang@arm.com>
30853             Terry Guo  <terry.guo@arm.com>
30855         PR rtl-optimization/64818
30856         * combine.c (can_combine_p): Don't combine user-specified
30857         register if it is in an asm input.
30859 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
30861         PR ipa/65076
30862         * passes.def (early_optimizations): Add pass_dse.
30864 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30866         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
30867         * reorg.c (redundant_insn): Remove ifdef
30868         INSN_REFERENCES_ARE_DELAYED.
30869         * resource.c (mark_referenced_resources): Likewise.
30871 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30873         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
30874         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
30875         * resource.c (mark_set_resources): Likewise.
30877 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30879         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
30880         * cfgcleanup.c (flow_find_cross_jump): Likewise.
30881         (flow_find_head_matching_sequence): Likewise.
30882         (try_head_merge_bb): Likewise.
30883         * combine.c (can_combine_p): Likewise.
30884         (try_combine): Likewise.
30885         (distribute_notes): Likewise.
30886         * df-problems.c (can_move_insns_across): Likewise.
30887         * final.c (final): Likewise.
30888         * gcse.c (insert_insn_end_basic_block): Likewise.
30889         * ira.c (find_moveable_pseudos): Likewise.
30890         * reorg.c (try_merge_delay_insns): Likewise.
30891         (fill_simple_delay_slots): Likewise.
30892         (fill_slots_from_thread): Likewise.
30893         * sched-deps.c (sched_analyze_2): Likewise.
30895 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30897         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
30898         PIC_OFFSET_TABLE_REGNUM.
30900 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30902         * alias.c (init_alias_target): Remove ifdef
30903         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
30904         * df-scan.c (df_insn_refs_collect): Likewise.
30905         (df_get_regular_block_artificial_uses): Likewise.
30906         (df_get_eh_block_artificial_uses): Likewise.
30907         (df_get_entry_block_def_set): Likewise.
30908         (df_get_exit_block_use_set): Likewise.
30909         * emit-rtl.c (gen_rtx_REG): Likewise.
30910         * ira.c (ira_setup_eliminable_regset): Likewise.
30911         * reginfo.c (init_reg_sets_1): Likewise.
30912         * regrename.c (rename_chains): Likewise.
30913         * reload1.c (reload): Likewise.
30914         (eliminate_regs_in_insn): Likewise.
30915         * resource.c (mark_referenced_resources): Likewise.
30916         (init_resource_info): Likewise.
30918 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30920         * defaults.h (MASK_RETURN_ADDR): New definition.
30921         * except.c (expand_builtin_extract_return_addr): Remove ifdef
30922         MASK_RETURN_ADDR.
30924 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30926         * defaults.h (RETURN_ADDR_OFFSET): New definition.
30927         * except.c (expand_builtin_extract_return_addr): Remove ifdef
30928         RETURN_ADDR_OFFSET.
30929         (expand_builtin_frob_return_addr): Likewise.
30931 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30933         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
30934         (try_redirect_by_replacing_jump): Likewise.
30935         (rtl_tidy_fallthru_edge): Likewise.
30936         * combine.c (insn_a_feeds_b): Likewise.
30937         (find_split_point): Likewise.
30938         (simplify_set): Likewise.
30939         * cprop.c (cprop_jump): Likewise.
30940         * cse.c (cse_extended_basic_block): Likewise.
30941         * df-problems.c (can_move_insns_across): Likewise.
30942         * function.c (emit_use_return_register_into_block): Likewise.
30943         * haifa-sched.c (sched_init): Likewise.
30944         * ira.c (find_moveable_pseudos): Likewise.
30945         * loop-invariant.c (find_invariant_insn): Likewise.
30946         * lra-constraints.c (curr_insn_transform): Likewise.
30947         * postreload.c (reload_combine_recognize_const_pattern):
30948         * Likewise.
30949         * reload.c (find_reloads): Likewise.
30950         * reorg.c (delete_scheduled_jump): Likewise.
30951         (steal_delay_list_from_target): Likewise.
30952         (steal_delay_list_from_fallthrough): Likewise.
30953         (redundant_insn): Likewise.
30954         (fill_simple_delay_slots): Likewise.
30955         (fill_slots_from_thread): Likewise.
30956         (delete_computation): Likewise.
30957         * sched-rgn.c (add_branch_dependences): Likewise.
30959 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30961         * genconfig.c (main): Always define HAVE_cc0.
30962         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
30963         HAVE_cc0.
30964         * cfgcleanup.c (flow_find_cross_jump): Likewise.
30965         (flow_find_head_matching_sequence): Likewise.
30966         (try_head_merge_bb): Likewise.
30967         * cfgrtl.c (rtl_merge_blocks): Likewise.
30968         (try_redirect_by_replacing_jump): Likewise.
30969         (rtl_tidy_fallthru_edge): Likewise.
30970         * combine.c (do_SUBST_MODE): Likewise.
30971         (insn_a_feeds_b): Likewise.
30972         (combine_instructions): Likewise.
30973         (can_combine_p): Likewise.
30974         (try_combine): Likewise.
30975         (find_split_point): Likewise.
30976         (subst): Likewise.
30977         (simplify_set): Likewise.
30978         (distribute_notes): Likewise.
30979         * cprop.c (cprop_jump): Likewise.
30980         * cse.c (cse_extended_basic_block): Likewise.
30981         * df-problems.c (can_move_insns_across): Likewise.
30982         * final.c (final): Likewise.
30983         (final_scan_insn): Likewise.
30984         * function.c (emit_use_return_register_into_block): Likewise.
30985         * gcse.c (insert_insn_end_basic_block): Likewise.
30986         * haifa-sched.c (sched_init): Likewise.
30987         * ira.c (find_moveable_pseudos): Likewise.
30988         * loop-invariant.c (find_invariant_insn): Likewise.
30989         * lra-constraints.c (curr_insn_transform): Likewise.
30990         * optabs.c (prepare_cmp_insn): Likewise.
30991         * postreload.c (reload_combine_recognize_const_pattern):
30992         * Likewise.
30993         * reload.c (find_reloads): Likewise.
30994         (find_reloads_address_1): Likewise.
30995         * reorg.c (delete_scheduled_jump): Likewise.
30996         (steal_delay_list_from_target): Likewise.
30997         (steal_delay_list_from_fallthrough): Likewise.
30998         (try_merge_delay_insns): Likewise.
30999         (redundant_insn): Likewise.
31000         (fill_simple_delay_slots): Likewise.
31001         (fill_slots_from_thread): Likewise.
31002         (delete_computation): Likewise.
31003         (relax_delay_slots): Likewise.
31004         * sched-deps.c (sched_analyze_2): Likewise.
31005         * sched-rgn.c (add_branch_dependences): Likewise.
31007 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31009         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31010         that is trivially ded on non cc0 targets.
31011         (simplify_set): Likewise.
31012         (mark_used_regs_combine): Likewise.
31013         * cse.c (new_basic_block): Likewise.
31014         (fold_rtx): Likewise.
31015         (cse_insn): Likewise.
31016         (cse_extended_basic_block): Likewise.
31017         (set_live_p): Likewise.
31018         * rtlanal.c (canonicalize_condition): Likewise.
31019         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31021 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31023         * conditions.h: Define macros even if HAVE_cc0 is undefined.
31024         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31025         * final.c: Likewise.
31026         * jump.c: Likewise.
31027         * recog.c: Likewise.
31028         * recog.h: Declare functions even when HAVE_cc0 is undefined.
31029         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31031 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31033         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31034         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31035         * builtins.c (expand_builtin): Remove check if
31036         EH_RETURN_DATA_REGNO is defined.
31037         * df-scan.c (df_bb_refs_collect): Likewise.
31038         (df_get_exit_block_use_set): Likewise.
31039         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31040         * ira-lives.c (process_bb_node_lives): Likewise.
31041         * lra-lives.c (process_bb_lives): Likewise.
31043 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31045         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31046         FIRST_PSEUDO_REG): New.
31047         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31048         (ARG_POINTER_REGNUM): Define to ARGP_REG.
31049         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31050         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31051         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31052         (FIRST_INT_REG): New.
31053         (LAST_INT_REG): New.
31054         (FIRST_*_REG): Define using *_REG.
31055         (LAST_*_REG): Ditto.
31056         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31057         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31058         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31060 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31062         * expmed.c: (synth_mult): Only assume overlapping
31063         shift with previous steps in alg_sub_t_m2 case.
31065 2015-04-21  Richard Biener  <rguenther@suse.de>
31067         PR tree-optimization/65650
31068         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31069         transitions involving copies.
31070         (set_lattice_value): Adjust for copy lattice state.
31071         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31072         if that doesn't dominate the merge point.
31073         (bit_value_unop): Adjust what we treat as varying mask.
31074         (bit_value_binop): Likewise.
31075         (bit_value_assume_aligned): Likewise.
31076         (evaluate_stmt): When we simplified to a SSA name record a copy
31077         instead of dropping to varying.
31078         (visit_assignment): Simplify.
31080         * gimple-match.h (gimple_simplify): Add another callback.
31081         * gimple-fold.c (fold_stmt_1): Adjust caller.
31082         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31083         for the 2nd callback.
31084         * gimple-match-head.c (gimple_simplify): Add a callback that is
31085         used to valueize the stmt operands and use it that way.
31087 2015-04-21  Richard Biener  <rguenther@suse.de>
31089         PR tree-optimization/65788
31090         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31092 2015-04-21  Richard Biener  <rguenther@suse.de>
31094         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31095         vec_construct cost by vec_stmt_cost.
31097 2015-04-21  Richard Biener  <rguenther@suse.de>
31099         * cfghooks.h (create_basic_block): Replace with two overloads
31100         for RTL and GIMPLE.
31101         (split_block): Likewise.
31102         * cfghooks.c (split_block): Rename to ...
31103         (split_block_1): ... this.
31104         (split_block): Add two type-safe overloads for RTL and GIMPLE.
31105         (split_block_after_labels): Call split_block_1.
31106         (create_basic_block): Rename to ...
31107         (create_basic_block_1): ... this.
31108         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31109         (create_empty_bb): Call create_basic_block_1.
31110         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31111         split_block_after_labels.
31112         * omp-low.c (expand_parallel_call): Likewise.
31113         (expand_omp_target): Likewise.
31114         (simd_clone_adjust): Likewise.
31115         * tree-chkp.c (chkp_get_entry_block): Likewise.
31116         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31117         create_basic_block overload.
31118         (cgraph_node::expand_thunk): Likewise.
31119         * tree-cfg.c (make_blocks): Likewise.
31120         (handle_abnormal_edges): Likewise.
31121         * tree-inline.c (copy_bb): Likewise.
31123 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31125         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31126         New pattern.
31127         (*xor_one_cmplsidi3_ze): Likewise.
31129 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31131         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31132         use df_remove_problem rather than manually removing problems, leaving
31133         holes in df->problems_in_order[].
31135 2015-04-21  Tom de Vries  <tom@codesourcery.com>
31137         PR tree-optimization/65802
31138         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31140 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31142         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31143         Increase to 128.
31144         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31145         at '.'.  Assert that there's enough space for everything.
31147 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31149         PR tree-optimization/64950
31150         Revert:
31151         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
31153         PR target/41089
31154         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31155         as volatile.
31157 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
31159         PR rtl-optimization/64916
31160         * cfgcleanup.c (values_equal_p): New function.
31161         (can_replace_by): Use it.
31163 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
31165         PR c++/65801
31166         * doc/invoke.texi ([-Wnarrowing]): Update.
31168 2015-04-20  Jeff Law  <law@redhat.com>
31170         PR tree-optimization/65658
31171         * tree-ssa-threadupdate.c (redirection_block_p): Remove
31172         redundant test for GIMPLE_ASSIGN in last change.
31174 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
31176         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31177         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31178         (legitimize_tls_address): Ditto.
31179         (ix86_expand_move): Ditto.
31180         (ix86_expand_binary_operator): Remove reload_in_progress checks.
31181         (ix86_expand_unary_operator): Ditto.
31182         * config/i386/predicates.md (index_register_operand): Ditto.
31184 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
31186         * reorg.c (try_merge_delay_insns): Improve correctness checking
31187         for targets with multiple delay slots.
31189 2015-04-20  Jeff Law  <law@redhat.com>
31191         PR tree-optimization/65658
31192         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31193         statements too.
31195 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31197         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31198         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31199         Delete.
31201 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
31203         PR debug/65807
31204         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31206 2015-04-20  Richard Biener  <rguenther@suse.de>
31208         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31209         * gimple-fold.c (gimple_build_valueize): New function.
31210         (gimple_build): Always use gimple_build_valueize as valueize hook.
31212 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31214         PR target/64134
31215         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31216         and overwrite variable parts if <= 1/2 the elements are variable.
31218 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
31220         PR rtl-optimization/65805
31221         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31222         Don't use difference of offset and previous offset if
31223         update_sp_offset is non-zero.
31224         (eliminate_regs_in_insn): Ditto.
31225         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31226         lra_eliminate_regs_1 call.
31227         * lra-constraints.c (get_equiv_with_elimination): Ditto.
31229 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
31231         * hash-table.h: Remove version of hash_table that stored value_type *.
31232         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31233         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31234         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31235         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31236         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31237         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31238         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31239         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31240         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31241         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31242         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31243         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31244         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31245         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31246         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31247         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31249 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31250             Jakub Jelinek  <jakub@redhat.com>
31252         PR target/65787
31253         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31254         subsequent SH_NONE operand does not overwrite an existing *special
31255         value.
31256         (adjust_extract): Handle case where a vec_extract operation is
31257         wrapped in a PARALLEL.
31259 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31261         PR target/65780
31262         * config/i386/i386.c (ix86_binds_local_p): Define only if
31263         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31265 2015-04-17  Jeff Law  <law@redhat.com>
31267         PR tree-optimization/47679
31268         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31269         * tree-ssa-scopedtables.c: New file.
31270         * tree-ssa-scopedtables.h: New file.
31271         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31272         (const_and_copies): Change name/type.
31273         (record_const_or_copy): Move into tree-ssa-scopedtables.c
31274         (record_const_or_copy_1): Similarly.
31275         (restore_vars_to_original_value): Similarly.
31276         (pass_dominator::execute): Create and destroy const_and_copies table.
31277         (thread_across_edge): Update passing of const_and_copies.
31278         (record_temporary_equivalence): Use method calls rather than
31279         manipulating const_and_copies directly.
31280         (record_equality, cprop_into_successor_phis): Similarly.
31281         (dom_opt_dom_walker::before_dom_children): Similarly.
31282         (dom_opt_dom_walker::after_dom_children): Similarly.
31283         (eliminate_redundant_computations): Similarly.
31284         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31285         (record_temporary_equivalence): Likewise.
31286         (invalidate_equivalences): Likewise.
31287         (record_temporary_equivalences_from_phis): Update due to type
31288         change of const_and_copies.  Use method calls rather than
31289         manipulating the stack directly.
31290         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31291         (thread_through_normal_block, thread_across_edge): Likewise.
31292         (thread_across_edge): Likewise.
31293         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31294         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
31295         of equiv_stack.
31296         (identify_jump_threads): Update due to type change of equiv_stack.
31297         (finalize_jump_threads): Delete the equiv_stack when complete.
31299 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
31301         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31302         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31303         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31305 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
31307         PR target/65535
31308         * config.gcc: Exit with a comment when we do not have a major version
31309         number for the FreeBSD target.
31311 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31313         PR target/65689
31314         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31315         maybe_allows_mem bitfields.
31316         (maybe_allows_none_start, maybe_allows_none_end,
31317         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31318         maybe_allows_mem_end): New variables.
31319         (compute_maybe_allows): New function.
31320         (add_constraint): Use it to initialize maybe_allows_reg and
31321         maybe_allows_mem fields.
31322         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31323         is_address constraints such that those that allow neither mem nor
31324         reg come first, then those that only allow reg but not mem, then
31325         those that only allow mem but not reg, then the rest.
31326         (write_allows_reg_mem_function): New function.
31327         (write_tm_preds_h): Call it.
31328         * stmt.c (parse_output_constraint, parse_input_constraint): Use
31329         the generated insn_extra_constraint_allows_reg_mem function
31330         instead of always setting *allows_reg = true; *allows_mem = true;
31331         for unknown extra constraints.
31333 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31335         PR target/65780
31336         * output.h (default_binds_local_p_3): New.
31337         * varasm.c (default_binds_local_p_3): Make it public.  Take an
31338         argument to indicate if common symbol may be local.  If common
31339         symbol may be local, treat non-external variable as defined
31340         locally.
31341         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31342         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31343         * config/i386/i386.c (ix86_binds_local_p): New.
31344         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31345         ix86_binds_local_p.
31347 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31349         PR debug/65771
31350         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31351         trying mem_loc_descriptor on XEXP (rtl, 0).
31353 2015-04-17  Martin Liska  <mliska@suse.cz>
31355         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31356         Release symbol_compare_collection.
31357         * ipa-reference.c: Add TODO that a vector should be released.
31359 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31361         PR target/65296
31362         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31363         to new AVR-LibC file layout (bug #44574).
31364         (*avrlibc_devicelib): Same.
31365         * config/avr/avr-mcus.def: Adjust comments.
31366         * config/avr/avr.opt (nodevicelib): Adjust help.
31368 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
31370         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31372 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
31374         PR c++/64527
31375         * gimplify.c (gimplify_init_constructor): Always emit a
31376         side-effecting constructor.
31378 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31380         PR tree-optimization/64950
31381         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31382         in cfun->curr_properties.
31383         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31384         if we generate an IFN_VA_ARG.
31385         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31386         function if PROP_gimple_lva is not set in src function.
31388 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31389             Michael Matz  <matz@suse.de>
31391         PR tree-optimization/64950
31392         * gimple-iterator.c (update_modified_stmts): Remove static.
31393         * gimple-iterator.h (update_modified_stmts): Declare.
31394         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31395         (gimplify_va_arg_internal): New function.
31396         (gimplify_va_arg_expr): Use IFN_VA_ARG.
31397         * gimplify.h (gimplify_va_arg_internal): Declare.
31398         * internal-fn.c (expand_VA_ARG): New unreachable function.
31399         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31400         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31401         (expand_ifn_va_arg): New function.
31402         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31403         (pass_stdarg::execute): Call expand_ifn_va_arg.
31404         (pass_data_lower_vaarg): New pass_data.
31405         (pass_lower_vaarg): New gimple_opt_pass.
31406         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31407         (make_pass_lower_vaarg): New function.
31408         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31409         properties_required field.
31410         * passes.def (all_passes): Add pass_lower_vaarg.
31411         * tree-pass.h (PROP_gimple_lva): Add define.
31412         (make_pass_lower_vaarg): Declare.
31414 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31416         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31417         * calls.c (call_expr_flags): Same.
31419 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31421         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31422         (pass_stdarg::execute): ... here.
31424 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31425             Michael Matz  <matz@suse.de>
31427         * tree-cfg.c (make_blocks_1): Factor out of ...
31428         (make_blocks): ... here.
31429         (make_edges_bb): Factor out of ...
31430         (make_edges): ... here.
31431         (gimple_find_sub_bbs): New function.
31432         * tree-cfg.h (gimple_find_sub_bbs): Declare.
31434 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31436         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31438 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
31440         * asan.c (set_sanitized_sections): New function.
31441         (section_sanitized_p): Ditto.
31442         (asan_protect_global): Optionally sanitize user-defined
31443         sections.
31444         * asan.h (set_sanitized_sections): Declare new function.
31445         * common.opt (fsanitize-sections): New option.
31446         * doc/invoke.texi (-fsanitize-sections): Document new option.
31447         * opts-global.c (handle_common_deferred_options): Handle new
31448         option.
31450 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31452         PR debug/65771
31453         * dwarf2out.c (loc_list_from_tree): Return NULL
31454         for DEBUG_EXPR_DECL.
31456 2015-04-17  Christian Bruel  <christian.bruel@st.com>
31458         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
31459         same attributes.
31461 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
31463         * ira-color.c (setup_left_conflict_sizes_p): Do not process
31464         node itself when computing left conflict subnode size.
31466 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
31468         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
31469         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
31470         *fop_<mode>_1_sse using enabled attribute.  Use
31471         register_mixssei387nonimm_operand operand 1 predicate. Change
31472         alternative 3 constraints from "x" to "v".
31474 2015-04-16  Richard Biener  <rguenther@suse.de>
31476         PR tree-optimization/65774
31477         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
31478         bit-value tracking on.
31480 2015-04-16  Richard Biener  <rguenther@suse.de>
31482         PR tree-optimization/64277
31483         * tree-vrp.c (check_array_ref): Fix anti-range handling,
31484         simplify upper bound handling.
31485         (search_for_addr_array): Simplify.
31486         (check_array_bounds): Handle ADDR_EXPRs here.
31487         (check_all_array_refs): Simplify.
31489 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
31491         * config/i386/i386.c (print_reg): Rewrite function.
31493 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31495         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
31496         Invert the condition.
31498 2015-04-16  Renlin Li  <renlin.li@arm.com>
31500         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
31501         simplifications for UNSIGNED_FLOAT.
31503 2015-04-16  Nick Clifton  <nickc@redhat.com>
31505         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
31506         MUL_UNINIT.
31507         (enum rl78_cpu_type): New.
31508         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
31509         (umulhi3_shift_virt): Remove m constraint from operand 1.
31510         (umulqihi3_virt): Likewise.
31511         * config/rl78/rl78.c (rl78_option_override): Add code to process
31512         -mcpu and -mmul options.
31513         (rl78_alloc_physical_registers): Add code to handle divhi and
31514         divsi valloc attributes.
31515         (set_origin): Likewise.
31516         * config/rl78/rl78.h (RL78_MUL_G14): Define.
31517         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
31518         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
31519         __RL78_Gxx__.
31520         (ASM_SPEC): Pass -mcpu on to assembler.
31521         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
31522         (mulqi3_rl78): Likewise.
31523         (mulhi3_g13): Likewise.
31524         (mulhi3): Generate the G13 or G14 versions of the insn directly.
31525         (mulsi3): Likewise.
31526         (mulhi3_g14): Add clobbers of AX and BC.
31527         (mulsi3_g14): Likewise.
31528         (mulsi3_g13): Likewise.
31529         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
31530         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
31531         * config/rl78/rl78.opt (mmul): Initialise value to
31532         RL78_MUL_UNINIT.
31533         (mcpu): New option.
31534         (m13, m14, mrl78): New option aliases.
31535         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
31536         (MULTILIB_DIRNAMES): Add g13 and g14.
31537         * doc/invoke.texi: Document -mcpu and -mmul options.
31539 2015-04-16  Richard Biener  <rguenther@suse.de>
31541         * tree-ssa-ccp.c (likely_value): See if we have operands that
31542         are marked as never simulate again and return CONSTANT in this
31543         case.
31544         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
31545         not have any operands that will be simulated again as
31546         not being simulated again.
31548 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
31550         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
31551         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
31552         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
31553         attribute.
31554         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
31555         enabled attribute.
31556         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
31557         *float<SWI48:mode><MODEF:mode>2_sse.
31558         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
31559         enabled attribute.
31560         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
31561         enabled attribute.
31563 2015-04-15  Tom de Vries  <tom@codesourcery.com>
31565         PR other/65487
31566         * function.c (push_dummy_function): New function.
31567         (init_dummy_function_start): Use push_dummy_function.
31568         (pop_dummy_function): New function.  Factored out of ...
31569         (expand_dummy_function_end): ... here.
31570         * function.h (push_dummy_function, pop_dummy_function): Declare.
31571         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
31572         pop_dummy_function.
31573         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
31575 2015-04-15  Jeff Law  <law@redhat.com>
31577         PR tree-optimization/47679
31578         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
31579         need for forward declaration in upcoming changes.
31580         (record_conditions, record_edge_info): Likewise.
31582         PR rtl-optimization/42522
31583         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
31584         SIGN_EXTRACT as a whole object rather than simplifying
31585         its operand.
31587 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
31589         PR ipa/65765
31590         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
31591         and GIMPLE_PREDICT use break instead of return true. For
31592         GIMPLE_EH_DISPATCH, compare dispatch region.
31594 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
31596         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
31597         details about the implementation.  Make clear preference for
31598         __atomic builtins.  Reduce possibility of future change.
31600 2015-04-15  Nick Clifton  <nickc@redhat.com>
31602         * config/rx/rx.opt (mallow-string-insns): New option.
31603         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
31604         builtin if string instructions are denied.
31605         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
31606         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
31607         appropriate.
31608         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
31609         * config/rx/rx.md (movstr): Enable pattern only if string
31610         instructions are allowed.
31611         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
31612         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
31613         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
31614         (MULTILIB_DIRNAMES): Add no-strings.
31615         * doc/invoke.texi: Document -mno-allow-string-insns.
31617 2015-04-15  Alan Modra  <amodra@gmail.com>
31619         PR target/65408
31620         PR target/58744
31621         PR middle-end/36043
31622         * calls.c (load_register_parameters): Don't load past end of
31623         mem unless suitably aligned.
31625 2015-04-15  Nick Clifton  <nickc@redhat.com>
31627         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
31628         decrement instruction as being frame related.
31629         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
31630         based addresses.
31631         If zero extending a function address enclose the operation in
31632         %code(...).
31633         (rl78_preferred_reload_class): New function.
31634         (TARGET_PREFERRED_RELOAD_CLASS): Define.
31635         * config/rl78/rl78.md: Remove useless constraints in expanders.
31636         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
31637         (mulhi3_rl78): Likewise.
31638         (mulhi3_g13): Likewise.
31639         (mulsi3_rl78): Likewise.
31640         (es_addr): Move to before the multiply patterns.
31642 2015-04-15  Alan Modra  <amodra@gmail.com>
31644         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
31645         and sequence_stack.  Add seq.
31646         (seq_stack): Delete.
31647         * function.c (prepare_function_start): Don't access x_last_insn.
31648         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
31649         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
31650         * emit_rtl.c (start_sequence, push_topmost_sequence,
31651         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
31652         sequence accessors.
31653         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
31654         remove_insn): Likewise.  Simplify.
31655         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
31656         and pop_topmost_sequence.
31657         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
31658         debug insns.
31659         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
31661 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
31663         PR target/65729
31664         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
31665         the assertiion.
31667 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
31669         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
31670         (LEGACY_INT_REGNO_P): Ditto.
31671         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
31672         (ANY_MASK_REG_P): Remove.
31673         (BND_REG_P): Rename from ANY_BND_REG_P.
31674         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
31675         legacy integer registers.  Do not handle MMX_REG_P in a special way.
31676         Merge 64byte and 32byte SSE handling.
31678 2015-04-14  Nick Clifton  <nickc@redhat.com>
31680         * expr.c (expand_assignment): Force an address offset computation
31681         into a register before changing its mode.
31682         (expand_expr_real_1): Likewise.
31684 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
31686         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
31687         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
31688         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
31689         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
31690         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
31691         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
31692         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
31693         and __aarch64_vget_lane_any.
31695 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
31697         PR rtl-optimization/65761
31698         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
31699         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
31701 2015-04-14  Richard Biener  <rguenther@suse.de>
31703         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
31704         (graphite_can_represent_scev): Use POINTER_TYPE_P.
31706 2015-04-14  Richard Biener  <rguenther@suse.de>
31708         PR tree-optimization/65758
31709         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
31710         against -1.
31711         (ccp_lattice_meet): Likewise.
31712         (bit_value_unop): Likewise.
31713         (bit_value_binop): Likewise.
31714         (bit_value_assume_aligned): Likewise.
31716 2015-04-14  Christian Bruel  <christian.bruel@st.com>
31718         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
31719         function.
31721 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
31723         PR tree-optimization/63387
31724         * match.pd ((x unord x) | (y unord y) -> (x unord y),
31725         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
31727 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
31729         * config/i386/predicates.md (any_QIreg_operand): Rename from
31730         q_regs_operand.  Do not process subregs.
31731         (QIreg_operand): Use QI_REGNO_P predicate.
31732         (ext_QIreg_operand): Ditto.
31733         (ext_register_operand): Ditto.
31734         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
31735         (AND splitters): Ditto.
31736         (AND with -65536 splitter): Add SWI48 mode for operand 0.
31737         (AND with -256 splitter): Use any_QIreg_operand predicate and
31738         SWI248 mode for operand 0.
31739         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
31740         mode for operand 0.
31741         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
31743 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
31745         * doc/plugins.texi: Rewrite first introductory paragraph.
31747 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31749         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
31750         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
31752 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31754         * ipa-profie.c (ipa_profile): Check number of parameters
31755         and possible polymorphic call targets before
31756         devirtualizing.
31758 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
31760         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
31761         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
31763 2015-04-13  Richard Biener  <rguenther@suse.de>
31765         PR tree-optimization/65204
31766         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
31767         takens for bit-CCP.
31769 2015-04-13  Richard Biener  <rguenther@suse.de>
31771         PR target/65660
31772         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
31773         and cond_not_taken_branch_cost to 4 and 2.
31774         (bdver2_cost): Likewise.
31775         (bdver3_cost): Likewise.
31776         (bdver4_cost): Likewise.
31778 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31780         * hash-table.h (hash_table constructor): Add mem stats.
31781         (alloc_entries): Likewise.
31783 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31785         * ipa-cp.c (ipcp_driver): Relase prev_edge.
31786         * passes.c (execute_one_pass): Only add transform if pass has one.
31788 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
31790         * config/i386/i386.c (ix86_option_override_internal): Don't set
31791         -fprefetch-loop-arrays if optimizing for size.
31793 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
31794             Gerald Pfeifer  <gerald@pfeifer.com>
31796         * doc/contrib.texi (Contributors): Add Martin Jambor and
31797         Michael Matz.
31799 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
31801         * BASE-VER: Set to 6.0.0.
31803         PR tree-optimization/65747
31804         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
31805         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
31807 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
31809         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
31810         sentence.  Improve grammar.
31812 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
31814         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
31816 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
31818         PR ipa/65743
31819         * ipa-inline-transform.c (speculation_removed): Remove static var.
31820         (check_speculations): New function.
31821         (clone_inlined_nodes): Do not check spculations.
31822         (inline_call): Call check_speculations.
31823         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
31824         consider non-invariants.
31826 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
31827             Martin Liska  <mliska@suse.cz>
31829         PR ipa/65722
31830         * ipa-icf.c (sem_item::compare_cgraph_references): function and
31831         variable can not match.
31832         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
31833         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
31835 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
31837         PR tree-optimization/65735
31838         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
31839         Remove visited_phis argument, add visited_bbs, avoid recursing into the
31840         same bb rather than just into the same phi node.
31841         (thread_through_normal_block): Adjust caller.
31843 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
31845         * doc/contrib.texi (Contributors): Add Ira Rosen.
31847 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
31849         * gcov.c (find_source): Fix miswording in error message.
31850         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
31851         (ix86_expand_sse_comi_round): Fix typo in error message.
31853 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
31855         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
31857 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
31859         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
31861 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
31863         PR target/65710
31864         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
31865         Print bad_spills_num and insn_pseudos_num.
31867 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31869         PR target/65694
31870         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
31871         when creating +1 values for SImode.
31873 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
31875         PR target/65729
31876         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
31877         assert.
31879 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
31880             Iain Sandoe  <iain@codesourcery.com>
31882         PR target/65351
31883         * configure: Regenerate.
31885 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
31887         PR target/65671
31888         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
31890 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
31892         * doc/contrib.texi (Contributors): Add John Marino.
31894 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
31896         PR tree-optimization/65709
31897         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
31898         TREE_TYPE (TREE_TYPE (t)).
31900 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
31902         PR target/65710
31903         * lra-int.h (lra_bad_spill_regno_start): New.
31904         * lra.c (lra_bad_spill_regno_start): New.
31905         (lra): Set up lra_bad_spill_regno_start.  Set up
31906         lra_constraint_new_regno_start unconditionally.
31907         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
31908         spill preferences.
31910 2015-04-09  Marek Polacek  <polacek@redhat.com>
31911             Jakub Jelinek  <jakub@redhat.com>
31913         PR middle-end/65554
31914         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
31915         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
31916         of STRIP_NOPS.
31918 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
31920         PR rtl-optimization/65693
31921         * combine.c (is_parallel_of_n_reg_sets): Move outside of
31922         #ifndef HAVE_cc0.
31924 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
31926         PR target/65296
31927         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
31928         device specs file if "device-specs%s" didn't resolve to a path.
31930 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
31932         PR target/65676
31933         * config/i386/i386.c (fixup_modeless_constant): New.
31934         (ix86_expand_args_builtin): Fixup modeless constant operand.
31935         (ix86_expand_round_builtin): Ditto.
31936         (ix86_expand_special_args_builtin): Ditto.
31937         (ix86_expand_builtin): Ditto.
31939 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
31941         PR target/65693
31942         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
31943         any pow2 integer in between 2 and 0x80000000U inclusive.
31945 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
31947         PR rtl-optimization/65693
31948         * combine.c (is_parallel_of_n_reg_sets): Change first argument
31949         from an rtx_insn * to an rtx.
31950         (try_combine): Adjust both callers.  Use it once more.
31952 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
31954         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
31955         (chkp_make_static_const_bounds): Search existing
31956         symbol by assembler name.  Use make_decl_one_only.
31957         (chkp_get_zero_bounds_var): Remove node search which
31958         is now performed in chkp_make_static_const_bounds.
31959         (chkp_get_none_bounds_var): Likewise.
31961 2015-04-08  Michael Witten  <mfwitten@gmail.com>
31963         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
31964         to an example.
31966 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31968         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
31970 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
31972         * doc/extend.texi (__sync Builtins): Fix grammar.
31974 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31976         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
31978 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31980         * varasm.c (emit_local): Move definition of align.
31982 2015-04-08  Julian Brown  <julian@codesourcery.com>
31984         * config/nvptx/mkoffload.c (process): Support variable mapping.
31986 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
31988         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
31989         alpha_links **.
31990         (alpha_write_one_linkage): Correct typo.
31992 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
31994         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
31996 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
31998         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32000 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32002         * tree-chkp.h (chkp_insert_retbnd_call): New.
32003         * tree-chkp.c (chkp_insert_retbnd_call): New.
32004         * ipa-split.c (insert_bndret_call_after): Remove.
32005         (split_function): Use chkp_insert_retbnd_call.
32006         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32007         bounds for instrumented functions.
32009 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
32011         PR ipa/65540
32012         * calls.c (initialize_argument_information): When producing tail
32013         call also turn SSA_NAMES passed by references to original PARM_DECLs
32015 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
32017         PR target/65648
32018         * lra-remat.c (do_remat): Process input and non-input insn
32019         registers separately.
32021 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32023         PR debug/65678
32024         * valtrack.c (debug_lowpart_subreg): New function.
32025         (dead_debug_insert_temp): Use it.
32027         PR middle-end/65680
32028         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32029         into signed HOST_WIDE_INT the same as negative bit_offset.
32031 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
32033         * ipa-comdats.c (ipa_comdats): Visit all thunks
32034         to set proper comdat group.
32036 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32038         PR target/65489
32039         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32040         on constants for NEON VSTRUCT modes.
32042 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32043             Iain Sandoe  <iain@codesourcery.com>
32045         PR target/65351
32046         * configure: Regenerate.
32048 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32050         PR target/65614
32051         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32052         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32053         that LFD is used to load double constants instead of LFS.  Add
32054         defaults for all costs structures.  Add comments for missing
32055         initialization fields.
32056         (size32_cost): Likewise.
32057         (size64_cost): Likewise.
32058         (rs64a_cost): Likewise.
32059         (mpccore_cost): Likewise.
32060         (ppc403_cost): Likewise.
32061         (ppc405_cost): Likewise.
32062         (ppc440_cost): Likewise.
32063         (ppc476_cost): Likewise.
32064         (ppc601_cost): Likewise.
32065         (ppc603_cost): Likewise.
32066         (ppc604_cost): Likewise.
32067         (ppc604e_cost): Likewise.
32068         (ppc620_cost): Likewise.
32069         (ppc630_cost): Likewise.
32070         (ppccell_cost): Likewise.
32071         (ppc750_cost): Likewise.
32072         (ppc7450_cost): Likewise.
32073         (ppc8540_cost): Likewise.
32074         (ppce300c2c3_cost): Likewise.
32075         (ppce500mc_cost): Likewise.
32076         (ppce500mc64_cost): Likewise.
32077         (ppce5500_cost): Likewise.
32078         (ppce6500_cost): Likewise.
32079         (titan_cost): Likewise.
32080         (power4_cost): Likewise.
32081         (power6_cost): Likewise.
32082         (power7_cost): Likewise.
32083         (power8_cost): Likewise.
32084         (ppca2_cost): Likewise.
32085         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32087         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32088         instead of XXLOR to copy SFmode to clear out dirty bits created
32089         when SFmode denormals are generated.
32090         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32091         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32093 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32095         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32096         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32097         * config/aarch64/aarch64-tune.md: Regenerate.
32099 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32101         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32102         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32103         * config/arm/arm-cores.def (exynos-m1): New core.
32104         * config/arm/arm-tune.md: Regenerate.
32105         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32106         * config/arm/bpabi.h: Likewise.
32108 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32110         * ipa-cp (set_single_call_flag): Remove too
32111         restrictive assert.
32113 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
32115         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32116         GOMP_offload_unregister from the destructor.
32118 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32120         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32121         flags for instrumentation thunk.
32122         (chkp_produce_thunks): Likewise.
32124 2015-04-05  Martin Liska  <mliska@suse.cz>
32126         PR ipa/65665
32127         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32128         has computed data structure.
32129         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32131 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
32133         * invoke.texi (inline-unit-growth): Increase growth to 20%
32134         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32136 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
32138         PR target/65647
32139         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
32140         value checking.
32141         (lra_rematerialization_iter): New.
32142         * lra.c (lra): Initialize lra_rematerialization_iter.
32143         Stop updating lra_constraint_new_regno_start after switching of
32144         inheritance and rematerialization.
32145         * lra-remat.c (lra_rematerialization_iter): New.
32146         (lra_remat): Add printing pass iteration.  Do rematerialization
32147         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32149 2015-04-04  Richard Biener  <rguenther@suse.de>
32151         PR tree-optimization/64909
32152         PR tree-optimization/65660
32153         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32154         to take a cost vector for scalar iteration cost.
32155         (vect_get_single_scalar_iteration_cost): Likewise.
32156         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32157         Compute the scalar iteration cost into a cost vector.
32158         (vect_get_known_peeling_cost): Use the scalar cost vector to
32159         account for the cost of the peeled iterations.
32160         (vect_estimate_min_profitable_iters): Likewise.
32161         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32162         Likewise.
32164 2015-04-04  Alan Modra  <amodra@gmail.com>
32166         PR target/65576
32167         PR target/65240
32168         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32169         0.0 constant unless TARGET_VSX.
32170         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32171         alternative.
32173 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32175         PR ipa/65654
32176         * ipa-inline-transform.c (inline_call): Skip sanity check to work
32177         around the ICE
32179 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32181         PR ipa/65655
32182         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32183         speculative indirect edges to avoid ordering issue.
32185 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32187         PR ipa/65076
32188         * ipa-inline.c (edge_badness): Add combined size to the denominator.
32190 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
32192         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32193         TYPE_ARTIFICIAL on the .omp_data* types.
32195 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32197         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32198         instrumentation thunks.
32200 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32202         * config/i386/i386.c (ix86_expand_call): Avoid nested
32203         PARALLEL in returned call value.
32205 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32207         * lto-cgraph.c (input_cgraph_1): Always link instrumented
32208         assembler name with original one.
32210 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32212         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32214 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32216         Revert parts of r216820.
32217         * config/i386/i386.md (movqi_internal): Correct type calculation
32218         for alternatives 3 and 5.
32220 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
32222         PR preprocessor/61977
32223         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32224         predefine __vector/__bool/__pixel macros nor context sensitive
32225         macros for CLK_ASM.
32226         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32228 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
32230         * config/pa/pa.c (pa_output_move_double): Directly handle register
32231         indexed memory operand.  Simplify handling of scaled register indexed
32232         memory operands.
32234 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32236         PR driver/65444
32237         * config/i386/linux-common.h (MPX_SPEC): New.
32238         (CHKP_SPEC): Add MPX_SPEC.
32239         * doc/invoke.texi (-fcheck-pointer-boudns): Document
32240         possible issues with '-z bndplt' support in linker.
32242 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32244         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32245         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32246         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32247         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32248         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32250 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
32252         * config/i386/sync.md (UNSPEC_MOVA): Remove.
32253         (atomic_load<mode>): Change operand 0 predicate to
32254         nonimmediate_operand and fix up the destination when needed.
32255         Use UNSPEC_LDA.
32256         (atomic_loaddi_fpu): Use UNSPEC_LDA.
32257         (atomic_store<mode>): Change operand 1 predicate to
32258         nonimmendate_operand and move the source to register when needed.
32259         Use UNSPEC_STA.
32260         (atomic_store<mode>_1): Use UNSPEC_STA.
32261         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32262         Fix moves from memory operand.  Use UNSPEC_STA.
32264 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32266         * expmed.c (strict_volatile_bitfield_p): Check that the access will
32267         not cross a MODESIZE boundary.
32268         (store_bit_field, extract_bit_field): Added assertions in the
32269         strict volatile bitfields code path.
32271 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32273         PR target/65624
32274         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32275         Increase args array size by one to avoid buffer overflow.
32277 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32279         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32280         split_part.
32281         * ipa-inline.c (edge_badness): Add wrapper penalty.
32282         (sum_callers): Move up.
32283         (inline_small_functions): Set single_caller.
32284         * ipa-inline.h (inline_summary): Add single_caller.
32285         * ipa-split.c (split_function): Set split_part.
32286         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32287         * cgraph.h (cgraph_node): Add split_part.
32289 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
32291         PR target/58945
32292         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32293         Do not split operands 0 and operands 2 to halfmode.
32294         (atomic_compare_and_swap<mode>): Update for
32295         atomic_compare_and_swap<dwi>_doubleword changes.
32297 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32299         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32300         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32301         no caching is done.
32303 2015-03-31  Martin Liska  <mliska@suse.cz>
32305         PR ipa/65557
32306         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32307         has already filled up function summary.
32308         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32310 2015-03-31  Richard Biener  <rguenther@suse.de>
32312         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32313         of types.
32315 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32317         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32318         nested functions.
32319         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32320         (s390_asm_output_function_label): Adapt to new signature of
32321         s390_function_num_hotpatch_hw
32322         Optimise the code generating assembler output.
32323         Add comments to assembler file.
32325 2015-03-31  Richard Biener  <rguenther@suse.de>
32327         PR middle-end/65626
32328         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32329         of the noreturn call so it is last and cleanup_control_flow_bb
32330         can do the CFG part.
32332 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
32334         PR target/65531
32335         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32336         same_comdat_group for external symbols.
32337         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32338         infinite same_comdat_group traversal loop.
32340 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
32342         PR plugins/61176
32343         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32344         automatically to $headers.
32346 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
32348         PR ipa/65610
32349         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32350         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32351         function.
32352         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32353         Use it.
32354         * ipa-prop.c (param_type_may_change_p): Likewise.
32355         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32356         (remove_unused_scope_block_p): Add in_ctor_dtor_block
32357         argument.  Before inlining, preserve
32358         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32359         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
32360         recursive calls.
32361         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32363 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32365         PR ipa/65076
32366         * ipa-inline.c (edge_badness): Base denominator on callee's
32367         grwoth squared.
32369 2015-03-27  Martin Jambor  <mjambor@suse.cz>
32371         PR ipa/65478
32372         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32373         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32374         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32375         node_calling_single_call.
32376         * ipa-cp.c (count_callers): New function.
32377         (set_single_call_flag): Likewise.
32378         (initialize_node_lattices): Count callers and set single_flag_call if
32379         necessary.
32380         (incorporate_penalties): New function.
32381         (good_cloning_opportunity_p): Use it, dump new flags.
32382         (propagate_constants_topo): Set node_within_scc flag if appropriate.
32383         * doc/invoke.texi (ipa-cp-recursion-penalty,
32384         ipa-cp-single-call-pentalty): Document.
32386 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32388         PR ipa/65588
32389         * symtab.c (symtab_node::get_partitioning_class): Register vars
32390         are duplicated.
32391         * varpool.c (symbol_table::output_variables) Do not assemble unefined
32392         decls for non-symbols.
32394 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
32396         PR target/65248
32397         * output.h (default_binds_local_p_2): New.
32398         * varasm.c (default_binds_local_p_2): Renamed to ...
32399         (default_binds_local_p_3): This.  Don't return true on protected
32400         data symbol if protected data may be external.
32401         (default_binds_local_p): Use default_binds_local_p_3.
32402         (default_binds_local_p_1): Likewise.
32403         (default_binds_local_p_2): New.
32404         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32405         default_binds_local_p_2 if TARGET_MACHO is undefined.
32407 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
32409         PR target/65593
32410         * config/i386/i386.c (legitimize_pic_address): If base
32411         is SYMBOL_REF or LABEL_REF using %rip addressing, force
32412         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32414 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32416         PR target/65531
32417         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32418         comdat groups.
32420 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32422         PR ipa/65600
32423         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32424         of optimized out indirect call.
32425         (redirect_to_unreachable): Always build symbol table node for
32426         BUILT_IN_UNREACHABLE
32428 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
32430         PR target/65407
32431         * ira-costs.c (record_reg_classes): Process all constraint string
32432         containing 0-9.
32434 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
32436         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32437         memory_operand.
32439         PR target/65052
32440         * config/c6x/constraints.md (S3): New constraint.
32441         * config/c6x/c6x.md (real_jump): Use it.
32443 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32445         PR middle-end/65595
32446         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
32447         do redirection if the call is not optimized out.
32449 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
32451         PR target/65495
32452         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
32453         (fchkp-check-incomplete-type): Add LTO.
32454         (fchkp-zero-input-bounds-for-main): Likewise.
32455         (fchkp-first-field-has-own-bounds): Likewise.
32456         (fchkp-narrow-bounds): Likewise.
32457         (fchkp-narrow-to-innermost-array): Likewise.
32458         (fchkp-use-static-bounds): Likewise.
32459         (fchkp-use-static-const-bounds): Likewise.
32460         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32462 2015-03-27  Marek Polacek  <polacek@redhat.com>
32464         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
32466 2015-03-27  Marek Polacek  <polacek@redhat.com>
32468         PR sanitizer/65583
32469         * ubsan.c (ubsan_create_edge): New function.
32470         (instrument_bool_enum_load): Call it.
32471         (instrument_nonnull_arg): Likewise.
32472         (instrument_nonnull_return): Likewise.
32473         (instrument_object_size): Likewise.
32475 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32477         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
32478         auto_vec.
32480 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32482         PR lto/65536
32483         * lto-streamer.h (class lto_location_cache): New.
32484         (struct data_in): Add location_cache.
32485         (lto_input_location): Update prototype.
32486         (stream_input_location_now): New.
32487         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
32488         pointer to location.
32489         (stream_input_location): Update.
32490         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
32491         (warn_odr): Apply location cache before warning.
32492         (lto_input_location): Update prototype.
32493         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
32494         Use stream_input_location_now.
32495         * lto-streamer-in.c (lto_location_cache::current_cache): New static
32496         variable.
32497         (lto_location_cache::cmp_loc): New function.
32498         (lto_location_cache::apply_location_cache): New function.
32499         (lto_location_cache::accept_location_cache): New function.
32500         (lto_location_cache::revert_location_cache): New function.
32501         (lto_location_cache::input_location): New function.
32502         (lto_input_location): Do location caching.
32503         (stream_input_location_now): New function.
32504         (input_eh_region, input_struct_function_base): Use
32505         stream_input_location_now.
32506         (lto_data_in_create): use new.
32507         (lto_data_in_delete): Use delete.
32508         * tree-streamer-in.c (unpack_ts_block_value_fields,
32509         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
32510         lto_input_ts_exp_tree_pointers): Update for cached location api.
32512 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32514         PR ipa/65076
32515         * passes.def: Add pass_nothrow.
32516         * ipa-pure-const.c: (pass_data_nothrow): New.
32517         (pass_nothrow): New.
32518         (pass_nothrow::execute): New.
32519         (make_pass_nothrow): New.
32520         * tree-pass.h (make_pass_nothrow): Declare.
32522 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32524         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
32525         edge to change by speculation resolution or redirection.
32526         (edge_set_predicate): Likewise.
32527         (inline_summary_t::duplicate): Likewise.
32528         (remap_edge_summaries): Likewise.
32530 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32532         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
32533         New macros.
32534         (can_inline_edge_p): Relax option matching for always inline functions.
32536 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
32538         PR target/65561
32539         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
32540         Check operand 4 and operand 0 for equality.
32541         (avx512f_vextract<shuffletype>32x4_1_maskm):
32542         Check operand 6 and operand 0 for equality.
32543         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
32544         for equality.
32545         (vec_extract_hi_<mode>_maskm): Ditto.
32547 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32549         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
32550         dead calls back to live.
32551         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
32552         cross check to ...
32553         (cgraph_node::verify_node): ... here; verify only callee edges,
32554         not caller.
32555         * cif-code.def (CILK_SPAWN): New code.
32557 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
32559         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
32560         (edge_set_predicate): Use it to mark unreachable edges.
32561         (inline_summary_t::duplicate): Remove unnecesary code.
32562         (remap_edge_summaries): Likewise.
32563         (dump_inline_summary): Report contains_cilk_spawn.
32564         (compute_inline_parameters): Compute contains_cilk_spawn.
32565         (inline_read_section, inline_write_summary): Stream
32566         contains_cilk_spawn.
32567         * ipa-inline.c (can_inline_edge_p): Do not touch
32568         DECL_STRUCT_FUNCTION that may not be available;
32569         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
32570         remove check for callee_fun->can_throw_non_call_exceptions and
32571         replace it by optimization attribute check; check for flag_exceptions.
32572         * ipa-inline-transform.c (inline_call): Maintain
32573         DECL_FUNCTION_PERSONALITY
32574         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
32576 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
32578         PR tree-optimization/65551
32579         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
32580         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
32582 2015-03-26  Richard Biener  <rguenther@suse.de>
32584         PR middle-end/65555
32585         * tree-cfg.c (verify_gimple_call): Do not require a call to
32586         have no LHS if it wasn't recognized as control altering yet.
32588 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
32590         PR tree-optimization/64715
32591         * passes.def: Add another instance of pass_object_sizes before ccp1.
32592         * tree-object-size.c (pass_object_sizes::execute): In
32593         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
32594         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
32595         __bos result and the computed constant.  Remove redundant
32596         checks, obsoleted by gimple_call_builtin_p test.
32598         * var-tracking.c (variable_tracking_main_1): Don't track
32599         variables for targetm.no_register_allocation targets.
32601 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
32603         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
32604         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
32606 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
32608         PR target/65569
32609         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
32610         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
32611         0.0 is correctly setup.
32612         (extenddftf2_internal): Likewise.
32614 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
32616         PR tree-optimization/65177
32617         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
32618         (bb_in_bbs): New.
32619         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
32620         edges not adjacent on the path to the original code.
32622 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
32624         PR bootstrap/65537
32625         * doc/install.texi (Building a native compiler): Document new
32626         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
32627         configuration assumes that the host supports the linker plugin.
32629 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
32631         PR target/65508
32632         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
32633         chain for generated call.
32635 2015-03-25  Richard Biener  <rguenther@suse.de>
32637         * passes.c (pass_manager::execute_early_local_passes): Guard
32638         execution of pass_chkp_instrumentation_passes with
32639         flag_check_pointer_bounds.
32640         (pass_chkp_instrumentation_passes::gate): Likewise.
32642 2015-03-25  Martin Liska  <mliska@suse.cz>
32644         PR tree-optimization/65538
32645         * symbol-summary.h (function_summary::~function_summary):
32646         Relese memory for allocated summaries.
32647         (function_summary::release): New function.
32649 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
32651         PR lto/65515
32652         * lto-streamer-out.c (DFS::worklist): New struct.
32653         (DFS::worklist_vec): New data member.
32654         (DFS::next_dfs_num): Remove.
32655         (DFS::DFS): Rewritten using worklist instead of recursion,
32656         using most of code from DFS::DFS_write_tree.
32657         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
32658         pass it to DFS_write_tree calls.
32659         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
32660         quick initial checks push it into worklist_vec and return.
32662 2015-03-25  Richard Biener  <rguenther@suse.de>
32664         PR middle-end/65519
32665         * genmatch.c (expr::gen_transform): Re-write to avoid
32666         using gimple_build.
32668 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
32670         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
32672 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
32674         * config/arm/arm.opt (print_tune_info): New option.
32675         * config/arm/arm.c (arm_print_tune_info): New function.
32676         (arm_file_start): Call arm_print_tune_info.
32677         * config/arm/arm-protos.h (struct tune_params): Add comment.
32678         * doc/invoke.texi (@item -mprint-tune-info): New item.
32679         (-mtune): mention it in ARM Option Summary.
32681 2015-03-25  DJ Delorie  <dj@redhat.com>
32683         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
32684         correct clause.
32686 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
32687             Martin Liska  <mliska@suse.cz>
32689         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
32690         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
32691         (sem_item::add_type): New function.
32692         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
32693         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
32694         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
32695         (sem_function::equals_wpa): Fix typo.
32696         * ipa-icf.h (sem_item::add_type): New function.
32697         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
32698         order.
32700 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
32702         PR tree-optimization/65533
32703         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
32704         with swapped operands, call vect_free_slp_tree on
32705         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
32706         vector.
32708 2015-03-24  Richard Biener  <rguenther@suse.de>
32710         PR middle-end/65517
32711         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
32712         for fixup if necessary.
32714 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
32716         * doc/extend.texi (Function Attributes): Add @cindex entries
32717         for all attributes and regularize their format.  Delete text
32718         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
32719         information about "eightbit_data", "tiny_data", and "model"
32720         variable attributes to the Variable Attributes section.  Fix
32721         some obvious typos and copy-editing issues.
32722         (Variable Attributes, Type Attributes): Likewise add/fix
32723         @cindex entries for all attributes.
32725 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
32727         PR target/65523
32728         * tree-chkp.c (chkp_build_returned_bound): Ignore
32729         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
32731 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
32733         PR target/65505
32734         * config/sh/predicates.md (simple_mem_operand,
32735         displacement_mem_operand): Add test for reg.
32736         (short_displacement_mem_operand): Test for displacement_mem_operand
32737         before invoking sh_disp_addr_displacement.
32738         * config/sh/constraints.md (Sdd, Sra): Simplify.
32739         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
32740         Remove redundant displacement_mem_operand tests.
32742 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
32744         PR target/65296
32745         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
32746         the same -mmcu=MCU more than once.
32748 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
32750         PR bootstrap/65522
32751         * ipa-devirt.c: Remove duplicate demangle.h include.
32753         PR target/65504
32754         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
32755         on the pseudo.
32756         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
32757         REG_POINTER on *destptr after adjusting it for prologue size.
32759         PR ipa/65521
32760         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
32761         ultimate_alias_target ()->order ints instead of
32762         ultimate_alias_target () pointers.
32764 2015-03-23  Richard Biener  <rguenther@suse.de>
32766         PR tree-optimization/65518
32767         * tree-vect-stmts.c (vectorizable_load): Reject single-element
32768         interleaving cases we generate absymal code for.
32770 2015-03-23  Richard Biener  <rguenther@suse.de>
32772         PR tree-optimization/65494
32773         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
32774         matches here.
32775         (vect_analyze_slp_instance): But do that here, always and once.
32777 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32779         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
32780         adding T or multiplying by T+1 and subracting T.
32782 2015-03-22  Jeff Law  <law@redhat.com>
32784         PR rtl-optimization/64317
32785         * Makefile.in (OBJS): Add gcse-common.c
32786         * gcse.c: Include gcse-common.h
32787         (struct modify_pair_s): Move structure definition to gcse-common.h
32788         (compute_transp): Move function to gcse-common.c.
32789         (canon_list_insert): Similarly.
32790         (record_last_mem_set_info): Break out some code and put it into
32791         gcse-common.c.  Call into the new common code.
32792         (compute_local_properties): Pass additional arguments to compute_transp.
32793         * postreload-gcse.c: Include gcse-common.h and df.h
32794         (modify_mem_list_set, blocks_with_calls): New variables.
32795         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
32796         (get_bb_avail_insn): Pass in the expression index too.
32797         (alloc_mem): Allocate memory for the new bitmaps and lists.
32798         (free_mem): Free memory for the new bitmaps and lists.
32799         (insert_expr_in_table): Record a bitmap index for each entry we
32800         add to the table.
32801         (record_last_mem_set_info): Call into common code in gcse-common.c.
32802         (get_bb_avail_insn): If no available insn was found in the requested
32803         BB.  If BB has a single predecessor, see if the expression is
32804         transparent in BB and available in that single predecessor.
32805         (compute_expr_transp): New wrapper for compute_transp.
32806         (eliminate_partially_redundant_load): Pass expression's bitmap_index
32807         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
32808         (gcse_after_reload_main): If there are elements in the hash table,
32809         then compute transparency for all the elements in the hash table.
32810         * gcse-common.h: New file.
32811         * gcse-common.c: New file.
32813 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
32815         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
32816         as an adjective.
32817         (System Headers): Likewise.
32818         (Ifdef): Likewise.
32819         (Traditional macros): Likewise.
32820         (Invocation): Likewise.
32821         (Option Index): Likewise.
32822         * doc/cppopts.texi (-M): Likewise.
32823         (-finput-charset): Likewise.
32824         (--help): Likewise.
32825         * doc.invoke.texi (AVR Options): Likewise.
32826         (V850 Options): Likewise.
32828 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
32830         PR ipa/65475
32831         * ipa-devirt.c: Include demangle.h
32832         (odr_type_d): Add field rtti_broken.
32833         (odr_subtypes_equivalent_p): Do not require name to match.
32834         (compare_virtual_tables): Fix typo; if type already has ODR violation,
32835         bypass the tests; be ready for function referneces in vtables that are
32836         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
32837         (warn_odr): Give up for nameless types.
32838         (warn_types_mismatch): Report mismatch in mangled names;
32839         report mismatch in anonymous namespaces; look into component types to
32840         give useful error; report when mismatch is dragged in from other ODR
32841         type.
32842         (odr_types_equivalent_p): Match types for being polymorphic; avoid
32843         duplicated diagnostics.
32844         (add_type_duplicate): Reorder checks so more informative ones come
32845         first; fix typo; do not output "the extra base is defined here" when
32846         we did not warn.
32847         (BINFO_N_BASE_BINFOS): Relax sanity check.
32849 2015-03-22  Martin Liska  <mliska@suse.cz>
32850             Jakub Jelinek  <jakub@redhat.com>
32852         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
32853         masks that can potentially include a builtin.
32854         (ix86_add_new_builtins): Introduce fast filter for isa values
32855         that cannot trigger builtin inclusion.
32857 2015-03-22  Martin Liska  <mliska@suse.cz>
32859         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
32860         (sem_item::update_hash_by_local_refs): Likewise.
32861         (sem_variable::get_hash): Empty line is fixed.
32862         (sem_item_optimizer::execute): Include adding of hash references.
32863         (sem_item_optimizer::update_hash_by_addr_refs): New function.
32864         (sem_item_optimizer::build_hash_based_classes): Use local hash.
32865         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
32866         (sem_item::update_hash_by_local_refs): Likewise.
32868 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
32870         PR ipa/65502
32871         * ipa-comdats.c (enqueue_references): Walk through thunks.
32872         (ipa_comdats): Likewise.
32873         (set_comdat_group_1): New function.
32875 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
32877         PR ipa/65475
32878         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
32879         non-polymorphic
32881 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
32882             Gerald Pfeifer  <gerald@pfeifer.com>
32884         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
32886 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
32887             Sandra Loosemore  <sandra@codesourcery.com>
32889         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
32890         function parameter declaration.
32891         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
32892         Update arguments to nios2_adjust_call_address().
32893         (sibcall_internal): Rename from *sibcall.
32894         (sibcall_value_internal): Rename from *sibcall_value.
32895         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
32896         (nios2_large_got_address): Add target temp reg parameter.
32897         (nios2_got_address): Adjust call to nios2_large_got_address, add
32898         force_reg around it.
32899         (nios2_load_pic_address): Add target temp reg parameter, replace call
32900         to nios2_got_address with corresponding code.
32901         (nios2_legitimize_constant_address): Update call to
32902         nios2_load_pic_address.
32903         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
32904         to use temp reg for PIC loading purposes.
32905         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
32906         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32907         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
32909 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
32911         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
32912         usage of "the @option{...}".
32913         (-Wopenmp-simd): Likewise.
32914         (-fsanitize-recover): Likewise.
32915         (-fsanitize-undefined-trap-on-error): Likewise.
32916         (-flto): Likewise.
32917         (tracer-dynamic-coverage-feedback): Likewise.
32918         (reorder-block-duplicate-feedback): Likewise.
32919         (loop-unroll-jam-size): Likewise.
32920         (-B): Likewise.
32921         (-I-): Likewise.
32922         (-mabs=legacy): Likewise.
32923         (-mupper-regs-df): Likewise.
32924         (-mupper-regs-sf): Likewise.
32925         (-mpointers-to-nested-functions): Likewise.
32927 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
32929         * doc/extend.texi (Cilk Plus Builtins): Add markup.
32931 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
32933         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
32934         additional index entries and cross-references.
32935         (-fchkp-check-incomplete-type): Likewise.
32936         (-fchkp-first-field-has-own-bounds): Likewise.
32937         (-fchkp-narrow-to-innermost-array): Likewise.
32938         (-fchkp-use-fast-string-functions): Likewise.
32939         (-fchkp-use-nochk-string-functions): Likewise.
32940         (-fchkp-use-static-const-bounds): Likewise.
32941         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
32942         (-fchkp-instrument-marked-only): Likewise.
32943         (-fchkp-use-wrappers): Likewise.
32944         (-static-libmpx): Likewise.
32945         (-static-libmpxwrappers): Likewise.
32946         * doc/extend.texi (bnd_legacy): Likewise.
32947         (bnd_instrument): Likewise.
32948         (bnd_variable_size): Likewise.
32949         (Pointer Bounds Checker builtins): Likewise.
32951 2015-03-21  Tom de Vries  <tom@codesourcery.com>
32953         PR tree-optimization/65458
32954         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
32955         * cgraph.h (cgraph_node): Add parallelized_function field.
32956         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
32957         (input_overwrite_node): Read parallelized_function field.
32958         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
32959         parallelized_function on cgraph_node for child_fn.
32960         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
32961         Remove include of gt-tree-parloops.h.
32962         (parallelized_functions): Remove static variable.
32963         (parallelized_function_p): Rewrite using parallelized_function field of
32964         cgraph_node.
32965         (create_loop_fn): Remove adding to parallelized_functions.
32966         * Makefile.in (GTFILES): Remove tree-parloops.c
32968 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
32970         PR rtl-optimization/64366
32971         * lra.c (lra_update_insn_regno_info): Consider regs in
32972         CALL_INSN_FUNCTION_USAGE memory.
32974 2015-03-20  Richard Biener  <rguenther@suse.de>
32976         PR middle-end/64715
32977         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
32978         for type comparison and gcc_checking_assert.
32979         (chrec_fold_plus_poly_poly): Likewise.
32980         (chrec_fold_multiply_poly_poly): Likewise.
32981         (chrec_convert_1): Likewise.
32982         * gimplify.c (gimplify_expr): Remove premature folding of
32983         &X + CST to &MEM[&X, CST].
32985 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
32987         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
32988         already is final.
32989         (ipa_inline): Recompute inline_failed codes.
32990         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32991         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
32992         CIF_FINAL_ERROR.
32994 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
32996         PR rtl-optimization/60851
32997         * recog.c (constrain_operands): Accept a pseudo register before reload
32998         for LRA enabled targets.
33000 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33002         PR target/65240
33003         * config/rs6000/predicates.md (easy_fp_constant): Remove special
33004         -ffast-math handling that kept non-0 constants live in the RTL
33005         until reload.  Remove logic testing the number of instructions it
33006         took to create a constant in a GPR that was never used, due to a
33007         test for soft-float earlier.
33008         (memory_fp_constant): Delete, no longer used.
33010         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33011         alternatives for loading non-0 constants into GPRs for hard
33012         floating point that is no longer needed due to changes in
33013         easy_fp_constant.  Add support for loading 0.0 into GPRs.
33014         (mov<mode>_hardfloat32): Likewise.
33015         (mov<mode>_hardfloat64): Likewise.
33016         (mov<mode>_64bit_dm): Likewise.
33017         (movtd_64bit_nodm): Likewise.
33018         (pre-reload move FP constant define_split): Delete define_split,
33019         since it is no longer used.
33020         (extenddftf2_internal): Remove GHF constraints that are not valid
33021         for extenddftf2.
33023 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
33025         PR rtl-optimization/63491
33026         * lra-constraints.c (check_and_process_move): Use src instead of
33027         sreg.  Remove some dead code.
33029 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
33031         PR ipa/65380
33032         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33033         (sem_variable::merge): Likewise.
33035 2015-03-19  Martin Liska  <mliska@suse.cz>
33037         PR ipa/65465
33038         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33039         all fields of cgraph_thunk_info.
33041 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33043         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33044         clone instrumented thunks.
33046 2015-03-19  Richard Biener  <rguenther@suse.de>
33048         Revert
33049         2015-03-10  Richard Biener  <rguenther@suse.de>
33051         PR middle-end/63155
33052         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33053         * tree-ssa-coalesce.c: Include timevar.h.
33054         (attempt_coalesce): Handle graph being NULL.
33055         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33056         Split out abnormal coalescing to ...
33057         (perform_abnormal_coalescing): ... this function.
33058         (coalesce_ssa_name): Perform abnormal coalescing without computing
33059         live/conflict.
33060         (verify_ssa_coalescing_worker): New function.
33061         (verify_ssa_coalescing): Likewise.
33063 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33064             Jakub Jelinek  <jakub@redhat.com>
33066         PR sanitizer/65400
33067         * tsan.c (instrument_gimple): Clear tail call flag on
33068         calls.
33070 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
33072         PR sanitizer/65400
33073         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33074         call in the return bb.
33075         (find_split_points): Add RETURN_BB argument, don't call
33076         find_return_bb.
33077         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
33078         if true append TSAN_FUNC_EXIT internal call after the call to
33079         the split off function.
33080         (execute_split_functions): Call find_return_bb here.
33081         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33082         Adjust find_split_points and split_function calls.
33084 2015-03-18  DJ Delorie  <dj@redhat.com>
33086         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33087         (iorqi3_virt): Likewise.
33089 2015-03-18  Tom de Vries  <tom@codesourcery.com>
33091         * tree-parloops.c (parallelize_loops): Make static.
33092         * tree-parloops.h (parallelize_loops): Remove extern declaration.
33094 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
33096         PR middle-end/64491
33097         Revert:
33098         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
33100         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33101         condition would be removed due to undefined behaviour.
33103 2015-03-18  Martin Liska  <mliska@suse.cz>
33105         PR ipa/65432
33106         * cgraph.c (cgraph_node::get_create): Remove unnecessary
33107         xstrdup_for_dump wrapper.
33108         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33109         sem_item::name.
33110         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33111         with xstrdup_for_dump.
33112         (sem_variable::equals): Likewise.
33113         (sem_item_optimizer::read_section): Use symtab_node::name instead of
33114         sem_item::name.
33115         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33116         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33117         symtab_node::asm_name with xstrdup_for_dump.
33118         (congruence_class::dump): Use symtab_node::name instead of
33119         sem_item::name.
33120         * ipa-icf.h (symtab_node::name): Remove.
33121         (symtab_node::asm_name): Likewise.
33123 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33125         PR tree-optimization/65450
33126         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33127         function.
33128         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33129         it instead of duplicate_ssa_name_ptr_info.
33131         PR target/65222
33132         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33134 2015-03-18  Richard Biener  <rguenther@suse.de>
33136         * tree-data-ref.h (struct access_matrix): Remove.
33137         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33138         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33139         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33140         (am_vector_index_for_loop): Likewise.
33141         (struct data_reference): Remove access_matrix member.
33142         (DR_ACCESS_MATRIX): Remove.
33143         (lambda_vector_new): Add comment.
33144         (lambda_matrix_new): Use XOBNEWVEC.
33146 2015-03-18  Richard Biener  <rguenther@suse.de>
33148         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33149         (pass_ch::execute): Cleanup the CFG only if we did sth.
33150         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33152 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33154         * expmed.c (synth_mult): Use std::swap instead of manually
33155         swapping algorithms.
33157 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33159         PR target/65078
33160         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33162 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
33164         PR target/65296
33165         * config/avr/avr.opt (-nodevicelib): New option.
33166         * doc/invoke.texi (AVR Options): Document it.
33167         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33168         libgcc.a, libc.a, libm.a.
33169         * config/avr/specs.h: Same.
33170         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33171         which don't (directly) depend on the device.  Print more help.
33172         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33173         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33174         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33175         case of an error.
33176         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33177         for specs file name.
33178         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33179         * config/avr/avr-mcus.def: Adjust initializers and comments.
33181 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
33183         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33184         DECL_ONE_ONLY to check if decl is one only.
33185         * ipa-split.c (consider_split): Limit splitt of one only functions.
33187 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33189         PR tree-optimization/65427
33190         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33191         functions.
33192         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33194 2015-03-16  Marek Polacek  <polacek@redhat.com>
33196         * cgraph.h (add_new_static_var): Remove declaration.
33197         * varpool.c (add_new_static_var): Remove function.
33199 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33201         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33202         instead of vec<tree> * with vec_alloc and release for args.
33203         Adjust all users.
33205         PR middle-end/65431
33206         * omp-low.c (delete_omp_context): Only splay_tree_delete
33207         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33208         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
33210 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33212         PR sanitizer/64820
33213         * cfgexpand.c (align_base): New function.
33214         (alloc_stack_frame_space): Call it.
33215         (expand_stack_vars): Align prev_frame to be sure
33216         data->asan_vec elements aligned properly.
33218 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
33220         PR middle-end/65409
33221         * expr.c (store_field): Do not do a direct block copy if the source is
33222         a PARALLEL with BLKmode.
33224 2015-03-16  Tom de Vries  <tom@codesourcery.com>
33226         PR middle-end/65414
33227         Revert:
33228         2015-03-12  Tom de Vries  <tom@codesourcery.com>
33230         PR rtl-optimization/64895
33231         * lra-lives.c (check_pseudos_live_through_calls): Use
33232         actual_call_used_reg_set instead of call_used_reg_set, if available.
33234 2015-03-16  Alan Modra  <amodra@gmail.com>
33236         PR target/63150
33237         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33238         Modify Z->r bswapdi splitter to use dest in place of scratch.
33239         In r->Z and Z->r bswapdi splitter rename word_high, word_low
33240         to word1, word2 and rearrange logic to suit.
33241         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33242         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
33243         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33244         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
33245         early clobber.
33247 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
33249         PR tree-optimization/65369
33250         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33251         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33252         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33254         PR tree-optimization/65418
33255         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33256         are casts in the first PLUS_EXPR operand, ensure tbias and
33257         *totallowp are in the inner type.
33259         PR rtl-optimization/65401
33260         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33261         argument.  If true, adjust_address_nv of x with big-endian
33262         correction for the mode widening to GET_MODE (y).
33263         (make_field_assignment): Don't do MEM mode widening here.
33264         Use MEM_P instead of GET_CODE == MEM.
33266 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
33268         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33269         the external decls.
33271 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33273         PR target/64600
33274         * config/arm/arm.c (arm_gen_constant, AND case): Use
33275         ARM_SIGN_EXTEND when constructing AND mask.
33277 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33279         * graph.c (print_graph_cfg): Make function names visible and append
33280         parenthesis to it.  Also make groups of basic blocks belonging to the
33281         same function visible.
33283 2015-03-12  Richard Biener  <rguenther@suse.de>
33285         PR middle-end/44563
33286         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33287         to avoid quadratic behavior with inline expansion splitting blocks.
33288         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33289         with the successor if the predecessor will be merged with it.
33290         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33291         entry block with its successor.
33293 2015-03-13  Richard Biener  <rguenther@suse.de>
33295         PR middle-end/44563
33296         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33297         (cleanup_tree_cfg_1): Do not call it.
33298         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33299         (fixup_noreturn_call): Mark the stmt as control altering.
33300         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33301         here.
33302         (pass_data_fixup_cfg): Produce a dump file.
33303         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33304         (need_noreturn_fixup): New global.
33305         (pass_dominator::execute): Fixup queued noreturn calls.
33306         (optimize_stmt): Queue calls that became noreturn for fixup.
33307         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33308         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33309         (el_to_fixup): New global.
33310         (eliminate_dom_walker::before_dom_childre): Queue calls that
33311         became noreturn for fixup.
33312         (eliminate): Fixup queued noreturn calls.
33313         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33314         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33315         (substitute_and_fold_dom_walker::before_dom_children): Queue
33316         alls that became noreturn for fixup.
33317         (substitute_and_fold): Fixup queued noreturn calls.
33319 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
33321         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33322         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33323         are building; for methods check ODR type of class they belong to if
33324         they may lead to a polymorphic call.
33325         (sem_function::compare_polymorphic_p): Be bit smarter about testing
33326         when function may lead to a polymorphic call.
33327         (sem_function::compare_type_list): Remove.
33328         (sem_variable::equals): Update use of compatible_types_p.
33329         (sem_variable::parse_tree_refs): Remove.
33330         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33331         cdtor.
33332         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33333         matching here.
33334         (func_checker::compatible_polymorphic_types_p): Break out from ...
33335         (unc_checker::compatible_types_p): ... here.
33336         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33337         Declare.
33338         (unc_checker::compatible_types_p): Update.
33339         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33340         Remove.
33342 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33344         PR rtl-optimization/65235
33345         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33346         When first element of vec_concat is const_int, calculate its size
33347         using second element.
33349 2015-03-12  Richard Biener  <rguenther@suse.de>
33351         PR middle-end/65270
33352         * fold-const.c (operand_equal_p): Fix ordering of resetting
33353         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33355 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33357         * config/s390/s390.c (s390_reorg): Move code to output nops after label
33358         to s390_reorg ().
33359         (s390_asm_output_function_label): Likewise.
33360         * config/s390/s390.c (s390_asm_output_function_label):
33361         Fix function label alignment with -mhtopatch.
33362         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33363         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33364         ("nop_2_byte"): New define_insn.
33365         ("nop_4_byte"): Likewise.
33366         ("nop_6_byte"): Likewise.
33367         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33368         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33370 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
33372         PR target/65103
33373         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33374         register.
33376 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
33378         PR target/65044
33379         * toplev.c (process_options): Restrict Pointer Bounds Checker
33380         usage with Address Sanitizer.
33382 2015-03-12  Richard Biener  <rguenther@suse.de>
33384         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33385         to split on.
33386         * omp-low.c (expand_omp_taskreg): Split block before removing
33387         the stmt.
33388         (expand_omp_target): Likewise.
33389         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33390         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33391         stmt to split_block.
33393 2015-03-12  Tom de Vries  <tom@codesourcery.com>
33395         PR rtl-optimization/64895
33396         * lra-lives.c (check_pseudos_live_through_calls): Use
33397         actual_call_used_reg_set instead of call_used_reg_set, if available.
33399 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33401         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33402         (cgraph_node::remove): Likewise.
33403         (cgraph_node::get_untransformed_body): Likewise.
33404         * varpool.c (varpool_node::remove): Likewise.
33405         (varpool_node::get_constructor): Add sanity check.
33407 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
33409         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33410         old GCC versions.
33411         (-fabi-compat-version): Likewise.
33412         (-ffriend-injection): Likewise.
33413         (-Wdeclaration-after-statement): Likewise.
33414         (-fomit-frame-pointer): Likewise.
33415         (-ftree-coalesce-inlined-vars): Likewise.
33416         (-fvisibility=): Likewise.
33417         * doc/extend.texi (Typeof): Likewise.
33418         (Zero Length): Likewise.
33419         (Escaped Newlines): Likewise.
33420         (Compound Literals): Likewise.
33421         (Function Attributes): Likewise.
33422         (Label Attributes): Likewise.
33423         (Type Attributes): Likewise.
33424         (Function Names): Likewise.
33425         (Other Builtins): Likewise.
33426         (Function Specific Option Pragmas): Likewise.
33427         (C++ Interface): Likewise.
33429 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
33431         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33433 2015-03-11  Marek Polacek  <polacek@redhat.com>
33435         PR tree-optimization/65388
33436         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33438 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
33440         PR target/65296
33441         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
33442         * configure: Regenerate.
33443         * config.in: Regenerate.
33444         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
33445         [-mn-flash]: Document it.
33446         [__AVR_ARCH__]: Document avrtiny.
33448         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
33449         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
33450         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
33452 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
33454         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
33456 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33458         PR target/65242
33459         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
33460         allow reloads of PLUS in floating point/VSX registers.
33462 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
33464         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
33465         crypto_sha256_fast.
33466         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
33468 2015-03-11  Richard Biener  <rguenther@suse.de>
33470         PR tree-optimization/65310
33471         * tree-sra.c (build_ref_for_offset): Also preserve larger
33472         alignment.
33474 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
33476         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
33478 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
33480         PR target/65368
33481         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
33482         new define_expand.
33483         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
33485 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33487         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
33488         (sem_function::equals_wpa): ... here.
33490 2015-03-10  Marek Polacek  <polacek@redhat.com>
33491             Jakub Jelinek  <jakub@redhat.com>
33493         PR sanitizer/65367
33494         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
33495         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
33496         separately.
33498 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
33500         PR target/65286
33501         * config/rs6000/t-linux: For powerpc64* target set
33502         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
33504 2015-03-10  Richard Biener  <rguenther@suse.de>
33506         PR middle-end/44563
33507         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
33508         for redirect_all_calls.
33510 2015-03-10  Marek Polacek  <polacek@redhat.com>
33512         * gdbinit.in (pcfun): Define and document.
33514 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
33516         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
33517         of libgomp-plugin.h.
33518         (find_target_compiler): Support a case when the path to gcc is
33519         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
33520         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
33521         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
33522         libgomp-plugin.h.
33523         (main): Use GCC_INSTALL_NAME as target_driver_name.
33524         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
33525         define.
33526         (mkoffload.o): Remove obsolete include path and defines.
33527         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
33529 2015-03-10  Richard Biener  <rguenther@suse.de>
33531         PR middle-end/63155
33532         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33533         * tree-ssa-coalesce.c: Include timevar.h.
33534         (attempt_coalesce): Handle graph being NULL.
33535         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33536         Split out abnormal coalescing to ...
33537         (perform_abnormal_coalescing): ... this function.
33538         (coalesce_ssa_name): Perform abnormal coalescing without computing
33539         live/conflict.
33540         (verify_ssa_coalescing_worker): New function.
33541         (verify_ssa_coalescing): Likewise.
33543 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
33545         PR target/65296
33546         * config.gcc (extra_options) [avr]: Remove.
33547         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
33548         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
33549         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
33551         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
33552         (-mmcu=): Add Var and MissingArgError properties.
33553         (-march=): Remove.
33554         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
33555         * config/avr/t-multilib: Regenerate.
33556         * config/avr/specs.h: New file.
33557         * config/avr/driver-avr.c: New file.
33558         * config/avr/genopt.sh: Remove file.
33559         * config/avr/avr-tables.opt: Remove file.
33560         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
33561         * config/avr/avr-c.c: Same.
33562         * avr-arch.h: Same.
33563         (avr_current_device): Remove proto.
33564         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
33565         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
33566         (EXTRA_SPEC_FUNCTIONS): Define.
33567         (avr_devicespecs_file): New specs function proto.
33568         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
33569         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
33570         (avr_current_device): Remove definition and usage.
33571         (avr_set_core_architecture): New static function.
33572         (avr_option_override): Use it.
33573         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
33574         (mcu_name): New static array.
33575         (comparator, avr_archs_str, avr_mcus_str): New static functions.
33576         (avr_inform_devices, avr_inform_core_architectures): New functions.
33577         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
33578         (avrlibc.h) [WITH_AVRLIBC]: Include.
33579         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
33580         (print_mcu): Rewrite from scratch.
33581         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
33582         Forward to avr-specific specs defined in device-specs file.
33583         * config/avr/t-avr (driver-avr.o): New rule.
33584         (avr-devices.o): Depend on avr-arch.h.
33585         (avr-mcus): No more depend on avr-tables.opt.
33586         (avr-tables.opt): Remove rule.
33587         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
33589 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
33591         * c-family/c.opt (fchkp-use-wrappers): New.
33592         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
33593         (chkp_wrap_function): New.
33594         (chkp_build_instrumented_fndecl): Support wrapped
33595         functions.
33596         * doc/invoke.texi (-fcheck-pointer-bounds): New.
33597         (-fchkp-check-incomplete-type): New.
33598         (-fchkp-first-field-has-own-bounds): New.
33599         (-fchkp-narrow-bounds): New.
33600         (-fchkp-narrow-to-innermost-array): New.
33601         (-fchkp-optimize): New.
33602         (-fchkp-use-fast-string-functions): New.
33603         (-fchkp-use-nochk-string-functions): New.
33604         (-fchkp-use-static-bounds): New.
33605         (-fchkp-use-static-const-bounds): New.
33606         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
33607         (-fchkp-check-read): New.
33608         (-fchkp-check-write): New.
33609         (-fchkp-store-bounds): New.
33610         (-fchkp-instrument-calls): New.
33611         (-fchkp-instrument-marked-only): New.
33612         (-fchkp-use-wrappers): New.
33613         (-static-libmpx): New.
33614         (-static-libmpxwrappers): New.
33616 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
33618         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
33619         (CHKP_SPEC): Add wrappers library.
33620         * c-family/c.opt (static-libmpxwrappers): New.
33622 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
33624         * config/i386/linux-common.h (LIBMPX_LIBS): New.
33625         (LIBMPX_SPEC): New.
33626         (CHKP_SPEC): New.
33627         * gcc.c (CHKP_SPEC): New.
33628         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
33629         * c-family/c.opt (static-libmpx): New.
33631 2015-03-10  Richard Biener  <rguenther@suse.de>
33633         PR middle-end/44563
33634         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
33635         for compare_type.
33636         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
33637         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
33638         (cgraph_add_edge_to_call_site_hash): Likewise.
33639         (cgraph_node::get_edge): Likewise.
33640         (cgraph_edge::set_call_stmt): Likewise.
33641         (cgraph_edge::remove_caller): Likewise.
33643 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
33645         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
33646         (callee_saved_gpr_regs_size): ... this.
33647         (callee_saved_regs_first_regno): Rename to ...
33648         (callee_saved_first_gpr_regno): ... this.
33649         (callee_saved_regs_last_regno) Rename to ...
33650         (callee_saved_last_gpr_regno): ... this.
33651         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
33652         variables.
33653         (nds32_initial_elimination_offset): Likewise.
33654         (nds32_expand_prologue): Likewise.
33655         (nds32_expand_epilogue): Likewise.
33656         (nds32_expand_prologue_v3push): Likewise.
33657         (nds32_expand_epilogue_v3pop): Likewise.
33658         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
33659         Adjust renamed variables.
33660         (nds32_output_stack_pop): Likewise.
33662 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33664         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
33665         code in comment.
33667 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
33669         PR rtl-optimization/65321
33670         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
33671         than shift mode.
33672         * var-tracking.c (use_narrower_mode): Likewise.
33674 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33676         PR tree-optimization/65355
33677         * varasm.c (notice_global_symbol): Do not produce RTL.
33678         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
33679         anchor.
33680         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
33681         check for section anchors.
33683 2015-03-10  Alan Modra  <amodra@gmail.com>
33685         PR target/65286
33686         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
33687         to be single-arch by default.  Set cpu_is_64bit for powerpc64
33688         given --with-cpu=native.
33689         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
33690         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
33691         and powerpc64le.
33692         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
33693         rs6000_isa_flags rather than TARGET_64BIT.
33695 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
33696             Kaz Kojima  <kkojima@gcc.gnu.org>
33698         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
33700 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
33702         PR lto/65361
33703         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
33704         on a TREE_BINFO, instead use BINFO_TYPE.
33706 2015-03-09  Richard Biener  <rguenther@suse.de>
33708         PR middle-end/65270
33709         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
33710         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
33711         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
33712         of that.  When comparing dereferences compare alignment.
33713         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
33715 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
33717         * ipa-inline-analysis.c (check_callers): Check
33718         node->can_remove_if_no_direct_calls_and_refs_p.
33719         (growth_likely_positive): Reorganize to call
33720         can_remove_if_no_direct_calls_p later.
33721         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
33722         will_be_removed_from_program_if_no_direct_calls_p): Add
33723         will_inline parameter.
33724         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
33725         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33726         Handle inliner case correctly.
33728 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33730         PR tree-optimization/63743
33731         * cfgexpand.c (reorder_operands): Also reorder if only second operand
33732         had its definition forwarded by TER.
33734 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
33736         PR lto/65316
33737         * ipa-utils.h (types_odr_comparable): Add strict argument.
33738         * ipa-devirt.c: Fix whitespace;
33739         (odr_hasher): Remove.
33740         (odr_name_hasher, odr_vtable_hasher): New hashers.
33741         (can_be_name_hashed_p): New predicate.
33742         (hash_type_name): remove.
33743         (hash_odr_name): New.
33744         (odr_name_hasher::hash): new.
33745         (can_be_vtable_hashed_p): New.
33746         (hash_odr_vtable): New.
33747         (odr_vtable_hasher::hash): New.
33748         (types_same_for_odr): Add strict parameter.
33749         (types_odr_comparable): Likewise.
33750         (odr_name_hasher::equal): New.
33751         (odr_vtable_hasher::equal): New.
33752         (odr_name_hasher::remove): New.
33753         (odr_hash_type): Change to hash_table<odr_name_hasher>.
33754         (odr_vtable_hash_type): New.
33755         (odr_vtable_hash): New.
33756         (odr_subtypes_equivalent_p): Do strict comparsion.
33757         (add_type_duplicate): Merge type names; cleanup; avoid type
33758         duplicates.
33759         (register_odr_type): Initialize vtable hash.
33760         (build_type_inheritance_graph): Likewise
33761         (get_odr_type): Reorg to use two hashes.
33762         (dump_possible_polymorphic_call_targets): Move sanity check after debug
33763         output.
33764         (ipa_devirt): Dump type_inheritance_graph.
33765         (types_same_for_odr): Add strict mode.
33767 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33769         PR ipa/65334
33770         * cgraph.h (symtab_node): Add definition_alignment,
33771         can_increase_alignment_p and increase_alignment.
33772         * symtab.c (symtab_node::can_increase_alignment_p,
33773         increase_alignment_1, symtab_node::increase_alignment,
33774         symtab_node::definition_alignment): New.
33775         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
33776         can_increase_alignment_p.
33777         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
33778         * tree-vect-stmts.c (ensure_base_align): Likewise.
33779         * varasm.c (function_section_1): Use definition_alignment.
33780         (assemble_start_function): Likewise.
33781         (emit_local): likewise.
33782         (build_constant_desc): Likewsie.
33783         (output_constant_def_contents): Likewise.
33784         (place_block_symbol): Likewise.
33785         (output_object_block): Likewise.
33787 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33789         PR ipa/65316
33790         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
33791         when outputting debug.
33793 2015-03-07  Marek Polacek  <polacek@redhat.com>
33794             Martin Uecker  <uecker@eecs.berkeley.edu>
33796         PR sanitizer/65280
33797         * doc/invoke.texi: Update description of -fsanitize=bounds.
33799 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
33801         * tree-ssa-phiopt.c (neg_replacement): Remove.
33802         (tree_ssa_phiopt_worker): Remove negate optimization.
33804 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33806         PR ipa/65302
33807         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
33809 2015-03-06  Richard Biener  <rguenther@suse.de>
33811         PR middle-end/64928
33812         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
33813         and liveout_obstack members.
33814         (calculate_live_on_exit): Remove.
33815         (calculate_live_ranges): Change declaration.
33816         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
33817         (new_tree_live_info): Adjust.
33818         (calculate_live_ranges): Delete livein when not wanted.
33819         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
33820         Deal with partly deleted live info.
33821         (loe_visit_block): Remove temporary bitmap by using
33822         bitmap_ior_and_compl_into.
33823         (live_worklist): Adjust accordingly.
33824         (calculate_live_on_exit): Make static.
33825         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
33826         we do not need livein.
33828 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
33830         * real.c (real_from_string): Fix typo in assertion.
33832 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
33834         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
33835         the patch.
33837 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
33839         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
33841 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
33843         PR target/64342
33844         * lra-assigns.c (find_hard_regno_for): Rename to
33845         find_hard_regno_for_1.  Add a new parameter.
33846         (find_hard_regno_for): New function using find_hard_regno_for_1.
33848 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33850         PR rtl-optimization/65067
33851         * expmed.c (store_bit_field, extract_bit_field): Reworked the
33852         strict volatile bitfield handling.
33854 2015-03-05  Martin Liska  <mliska@suse.cz>
33856         PR ipa/65318
33857         * ipa-icf.c (sem_variable::equals): Compare variables types.
33859 2015-03-05  Richard Henderson  <rth@redhat.com>
33861         PR target/65121
33862         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
33863         correctly check weak symbol binding.
33865 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
33867         PR middle-end/65315
33868         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
33869         needed alignment.
33871 2015-03-05  Martin Liska  <mliska@suse.cz>
33873         * ipa-inline.c (inline_small_functions): Set default value to
33874         prevent warning during bootstrap.
33875         * tree.h: Add pragma guard that ignores false positives during
33876         bootstrap.
33878 2015-03-05  Richard Biener  <rguenther@suse.de>
33880         PR tree-optimization/65310
33881         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33882         Properly preserve alignment of the base of the access.
33884 2015-03-05  Richard Biener  <rguenther@suse.de>
33886         PR ipa/65270
33887         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
33888         Compare dependence info.
33890 2015-03-05  Richard Biener  <rguenther@suse.de>
33892         PR middle-end/65233
33893         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
33894         tree-into-ssa.h.
33895         (walk_ssa_copies): Revert last chage.  Instead do not walk
33896         SSA names registered for SSA update.
33898 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
33900         PR ipa/65270
33901         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
33902         vtable references for their containing type.
33903         (sem_function::equals_wpa): Compare TYPE_RESTRICT
33904         and type attributes.
33906 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
33908         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
33909         before negating it.
33910         * stor-layout.c (finalize_record_size): Revert latest change.
33912 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
33914         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
33916 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
33918         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
33919         for correct comdat handling.
33920         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
33921         Likewise.
33922         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
33923         (used_from_object_file_p_worker): Remove.
33924         (cgraph_node::only_called_directly_or_alised): Add
33925         used_from_object_file_p.
33926         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
33927         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
33928         can_remove_if_no_direct_calls_and_refs_p.
33930 2015-03-04  Nick Clifton  <nickc@redhat.com>
33932         * config/rl78/rl78.h (enum reg_class): Remove real registers from
33933         General register class.
33934         * config/rl78/rl78-real.md: Replace general register constraints
33935         with real+virtual register constraints.
33937 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
33939         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
33940         from checking for -mhtm option.
33942 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
33944         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
33945         (struct ipa_sra_check_caller_data): Add has_thunk field.
33946         (ipa_sra_check_caller): Check for thunk.
33947         (ipa_sra_preliminary_function_checks): Give up on function with
33948         thunks.
33949         (ipa_early_sra): Use call_for_symbol_and_aliases.
33951 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
33953         PR target/65249
33954         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
33955         called for __stack_chk_guard symbol.
33957 2015-03-03  DJ Delorie  <dj@redhat.com>
33959         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
33960         inc/dec.
33961         (*addhi3_real): Likewise.
33962         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
33963         pattern to match incrementing memory.
33964         * config/rl78/predicates.md (rl78_1_2_operand): New.
33965         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
33966         it's the same and only mem.
33967         (rl78_alloc_physical_registers_op2): If there's effectively only
33968         one MEM, transcode it into HL.
33969         (rl78_far_p): Reject addresses that aren't legitimate.
33971 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
33973         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
33974         negating it.
33976         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
33978 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
33980         Implement call0 ABI for xtensa
33981         * config/xtensa/constraints.md ("a" constraint): Include stack
33982         pointer in case of call0 ABI.
33983         ("q" constraint): Make empty in case of call0 ABI.
33984         ("D" constraint): Include stack pointer in case of call0 ABI.
33985         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
33986         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
33987         prototypes.
33988         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
33989         variable.
33990         (xtensa_regno_to_class): Make it a local variable in the
33991         function xtensa_regno_to_class.
33992         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
33993         macro, function prototype and implementation.
33994         (reg_nonleaf_alloc_order): Make it a local variable in the
33995         function order_regs_for_local_alloc.
33996         (xtensa_conditional_register_usage): New function.
33997         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
33998         (xtensa_valid_move): Allow direct moves to stack pointer
33999         register in call0 ABI.
34000         (xtensa_setup_frame_addresses): Only spill register windows in
34001         windowed ABI.
34002         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34003         call0 ABI respectively.
34004         (xtensa_function_arg_1): Only mark a7 register for copying in
34005         windowed ABI.
34006         (xtensa_call_save_reg): New function.
34007         (compute_frame_size): Add space for callee saved register
34008         storage to the frame size in call0 ABI.
34009         (xtensa_expand_prologue): Generate code to set up stack frame
34010         and save callee-saved registers in call0 ABI.
34011         (xtensa_expand_epilogue): New function.
34012         (xtensa_set_return_address): New function.
34013         (xtensa_return_addr): Calculate return address in call0 ABI.
34014         (xtensa_builtin_saveregs): Only mark a7 register for copying and
34015         emit copying code in windowed ABI.
34016         (order_regs_for_local_alloc): Add preferred register allocation
34017         order for non-leaf function in call0 ABI.
34018         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34019         (xtensa_asm_trampoline_template): Add trampoline generation for
34020         call0 ABI.
34021         (xtensa_trampoline_init): Add trampoline initialization for
34022         call0 ABI.
34023         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34024         functions.
34025         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34026         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34027         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34028         ABI call-used registers.
34029         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34030         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34031         call0 ABI.
34032         (REG_CLASS_CONTENTS): Include all registers into the preferred
34033         reload registers set, adjust the set in the
34034         xtensa_conditional_register_usage.
34035         (xtensa_regno_to_class): Drop variable declaration.
34036         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34037         function.
34038         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34039         respectively.
34040         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34041         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34042         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34043         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34044         location in call0 ABI.
34045         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34046         stack adjustment size when handling exception.
34047         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34048         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34049         definitions.
34050         ("return" pattern): Generate ret.n/ret in call0 ABI.
34051         ("epilogue" pattern): Expand epilogue.
34052         ("nonlocal_goto" pattern): Use default in call0 ABI.
34053         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34054         emit eh_set_a0_* depending on ABI.
34055         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34056         ("eh_set_a0_call0", "blockage"): New patterns.
34058 2015-03-03  Martin Liska  <mliska@suse.cz>
34060         PR ipa/65287
34061         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34063 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
34065         PR 65138/target
34066         * config/rs6000/rs6000-tables.opt: Regenerate table.
34068 2015-03-03  Renlin Li  <renlin.li@arm.com>
34070         * doc/md.texi (@item ^): Change ? into ^.
34072 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
34074         * doc/tm.texi: Regenerated.
34076 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34078         * builtins.c (expand_builtin_return_addr): Add
34079         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34080         surrounding #ifdef.
34081         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34082         definition to 1.
34083         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34084         Likewise.
34085         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34086         undefined.
34087         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34088         paragraph.
34090 2015-03-03  Martin Jambor  <mjambor@suse.cz>
34091             Eric Botcazou  <ebotcazou@adacore.com>
34093         * tree-sra.c (ipa_sra_check_caller_data): New type.
34094         (has_caller_p): Removed.
34095         (ipa_sra_check_caller): New function.
34096         (ipa_sra_preliminary_function_checks): Use it.
34098 2015-03-03  Martin Liska  <mliska@suse.cz>
34100         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34101         instead of if branch.
34103 2015-03-03  Martin Liska  <mliska@suse.cz>
34105         PR ipa/65282
34106         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34108 2015-03-23  Jeff Law  <law@redhat.com>
34110         PR tree-optimization/65241
34111         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34112         hash table if INSERT is true.
34114 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34116         PR target/65296
34117         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34119 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34121         PR target/64331
34122         * config/avr/avr.c (context.h, tree-pass.h): Include them.
34123         (avr_pass_data_recompute_notes): New static variable.
34124         (avr_pass_recompute_notes): New class.
34125         (avr_register_passes): New static function.
34126         (avr_option_override): Call it.
34128 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34130         Fix various problems with specs file generation.
34132         PR target/65296
34133         * config.gcc (extra_gcc_objs) [avr]: Remove.
34134         * config/avr/driver-avr.c: Remove file.
34135         * config/avr/t-avr (driver-avr.o): Remove rule.
34136         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34137         INCLUDES to build.  Depend on TM_H.
34138         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
34139         build warnings.  Fix non-matching types and non-existing %-codes.
34140         (tm.h): Include.
34141         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34142         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34143         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34144         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34145         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34146         (LIBGCC_SPEC): Remove definitions.
34148 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34150         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34151         to create a register in testing mode.
34153 2015-03-03  Martin Liska  <mliska@suse.cz>
34154             Jan Hubicka  <hubicka@ucw.cz>
34156         PR ipa/65263
34157         * cgraph.c (cgraph_node::has_thunk_p): New function.
34158         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34159         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34160         (sem_function::merge): Assert is changed.
34162 2015-03-03  Martin Liska  <mliska@suse.cz>
34163             Martin Jambor  <mjambor@suse.cz>
34165         PR ipa/65087
34166         * ipa-icf.c (sem_item_optimizer::execute): Change function
34167         return value to boolean.
34168         (sem_item_optimizer::merge_classes): Likewise.
34169         (ipa_icf_driver): Return TODO_remove_functions in case there's
34170         a merge operation processed.
34171         * ipa-icf.h: Change function return value to boolean.
34173 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34175         PR 65138/target
34176         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34177         processor type for 64-bit little endian PowerPC.
34179         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34180         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
34181         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
34182         printing built-in mask so it does not pass NULL pointers.
34184         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34185         -mcpu=powerpc64le.
34187 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
34189         PR target/58158
34190         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34191         !ISA_HAS_FP_CONDMOVE.
34193 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
34195         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34196         reload_completed.
34198 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
34200         * doc/invoke.texi (Options for Code Generation Conventions):
34201         Fix URL of DSO paper.
34203 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34205         PR ipa/65130
34206         * ipa-inline.c (check_callers): Looks for recursion.
34207         (inline_to_all_callers): Give up on uninlinable or recursive edges.
34208         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34209         summary of inline clones.
34210         (do_estimate_growth_1): Fix recursion check.
34212 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34214         PR ipa/64988
34215         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34216         comdat groups.
34218 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34219             Aldy Hernandez  <aldyh@redhat.com>
34221         PR lto/65276
34222         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34223         when checking TYPE_BINFO.
34225 2015-03-02  Richard Biener  <rguenther@suse.de>
34227         PR ipa/65270
34228         * ipa-icf-gimple.c: Include builtins.h.
34229         (func_checker::compare_memory_operand): Compare base alignment.
34231 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34233         PR target/65184
34234         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34235         passed by reference.
34237 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34239         PR target/65183
34240         * tree-chkp.c (chkp_check_lower): Don't check against
34241         zero bounds for already instrumented functions.
34242         (chkp_check_upper): Likewise.
34243         (chkp_fini): Clean pass local data to avoid wrong reusage.
34245 2015-02-28  Martin Liska  <mliska@suse.cz>
34246             Jan Hubicka  <hubicka@ucw.cz>
34248         * ipa-icf.c (sem_variable::equals): Improve debug output;
34249         get variable constructor.
34250         (sem_variable::parse): Do not filter out too early; give up on
34251         volatile and register vars.
34252         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34253         variables.
34254         * ipa-icf.h (sem_variable::init): Do not set ctor.
34255         (sem_variable::ctor): Remove.
34257 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
34259         PR middle-end/65233
34260         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34262 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34264         * ipa-icf.c: Include stor-layout.h
34265         (sem_function::compare_cgraph_references): Rename to ...
34266         (sem_item::compare_cgraph_references): ... this one.
34267         (sem_variable::equals_wpa): New function
34268         (sem_variable::equals): Do not check stuff already verified by
34269         equals_wpa.
34270         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34271         * ipa-icf.h (sem_item): Add compare_cgraph_references.
34272         (sem_function): Remove compare_cgraph_references.
34273         (sem_variable): Turns equals_wpa into non-inline.
34275 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34277         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34278         (sem_item::add_expr): New function.
34279         (sem_function::hash_stmt): Handle operands of most statements.
34280         (sem_variable::get_hash): Hash the actual constructor.
34281         * ipa-icf.h (sem_item): Add add_expr.
34282         (sem_function): Update prototype of hash_stmt
34284 2015-02-28  Martin Liska  <mliska@suse.cz>
34285             Jan Hubicka  <hubicka@ucw.cz>
34287         PR ipa/65245
34288         * ipa-icf-gimple.c (func_checker::compare_function_decl):
34289         Remove.
34290         (func_checker::compare_variable_decl): Skip symtab vars.
34291         (func_checker::compare_cst_or_decl): Update.
34292         * ipa-icf.c (sem_function::parse): Do not consider aliases.
34293         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34294         use correct symtab predicates.
34295         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34296         (sem_variable::parse):  Update comment.
34297         (sem_item_optimizer::build_graph): Consider ultimate aliases
34298         for references.
34300 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34302         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34303         of OBJ_TYPE_REF.
34305 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34307         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34308         (sem_variable::merge) Likewise.
34310 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34312         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34313         target; also match flag_ipa_devirt.
34315 2015-03-01  Martin Liska  <mliska@suse.cz>
34316             Jan Hubicka  <hubicka@ucw.cz>
34318         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34319         Validate variable alignment.
34320         * ipa-icf.c (sem_function::equals_private): Be more precise
34321         about non-common function attributes.
34322         (sem_variable::equals): Likewise.
34324 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34326         PR ipa/65237
34327         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34328         across COMDAT group boundary.
34330 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34332         PR ipa/65232
34333         * ipa-icf.c (clear_decl_rtl): New function.
34334         (sem_function::merge): Clear RTL before forming alias.
34335         (sem_variable::merge): Clear RTL before forming alias.
34337 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34339         PR ipa/65236
34340         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34342 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
34344         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34345         to neon_to_gp<q>.
34347 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34349         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34350         a typo in the description.
34352 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34354         PR target/64317
34355         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34356         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34357         * lra-constraints.c: Include "params.h".
34358         (EBB_PROBABILITY_CUTOFF): Use
34359         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34360         (lra_inheritance): Use '<' instead of '<=' for
34361         EBB_PROBABILITY_CUTOFF.
34362         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34363         Document change.
34365 2015-02-27  Martin Liska  <mliska@suse.cz>
34367         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34368         vector length condition.
34370 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
34372         * doc/extend.texi (x86 transactional memory intrinsics):
34373         Reorganize discussion of _xbegin.  Clarify that the return
34374         value is a bit mask.  Expand example and move to end of section.
34376 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34377             Aldy Hernandez  <aldyh@redhat.com>
34379         PR rtl-optimization/65220
34380         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34382 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34384         PR target/65032
34385         * lra-remat.c (update_scratch_ops): New.
34386         (do_remat): Call it.
34387         * lra.c (lra_register_new_scratch_op): New. Take code from ...
34388         (remove_scratches): ... here.
34389         * lra-int.h (lra_register_new_scratch_op): New prototype.
34391 2015-02-27  Marek Polacek  <polacek@redhat.com>
34393         PR c/65040
34394         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34395         -Wformat-signedness anymore.
34397 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34399         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34400         function.
34401         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34403 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34405         * config/s390/s390.c (enum s390_builtin):
34406         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34407         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34408         (s390_init_builtins): Generate new builtin functions.
34409         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34410         (s390_sfpc, s390_efpc): New pattern definitions.
34412 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34414         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34415         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34416         (s390_builtin_decls): New array.
34417         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34418         (s390_builtin_decl): New function.
34419         (TARGET_BUILTIN_DECL): Define macro.
34421 2015-02-27  Richard Biener  <rguenther@suse.de>
34423         PR middle-end/63175
34424         * builtins.c (get_object_alignment_2): Make sure to re-apply
34425         the ANDed mask after recursing to its operand gets us a new
34426         misalignment bit position.
34428 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
34429             Martin Liska  <mliska@suse.cz>
34431         PR bootstrap/65150
34432         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34433         Use address_matters_p.
34434         (redirect_all_callers, set_addressable): New functions.
34435         (sem_function::merge): Reorganize and fix merging issues.
34436         (sem_variable::merge): Likewise.
34437         (sem_variable::compare_sections): Remove.
34438         * common.opt (fmerge-all-constants, fmerge-constants): Remove
34439         Optimization flag.
34440         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34441         redirect them.
34442         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
34443         decl is used.
34444         (address_matters_1): New function.
34445         (symtab_node::address_matters_p): New function.
34446         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
34447         check for merged flag.
34448         * cgraph.h (address_matters_p): Declare.
34449         (symtab_node::address_taken_from_non_vtable_p): Remove.
34450         (symtab_node::address_can_be_compared_p): New method.
34451         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
34452         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
34453         Remove.
34454         (comdat_can_be_unshared_p_1) Use address_matters_p.
34455         (update_vtable_references): Fix formating.
34456         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
34457         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
34458         * cgraphclones.c: Preserve merged and icf_merged flags.
34460 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
34462         * doc/extend.texi (Function Attributes): Fix spelling and typos.
34463         (Label Attributes): Likewise.
34464         (Cilk Plus Builtins): Likewise.
34465         (ARC SIMD Built-in Functions): Likewise.
34466         (ARM C Language Extensions (ACLE)): Likewise.
34467         (PowerPC Built-in Functions): Likewise.
34468         (PowerPC Hardware Transactional Memory Built-in Functions):
34469         Likewise.
34471 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34473         PR tree-optimization/65216
34474         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
34475         new stmt and new SSA_NAME for lhs whenever the arguments have
34476         changed and weren't just swapped.  Fix comment typo.
34478         PR tree-optimization/65215
34479         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
34480         for PDP endian targets.
34481         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
34482         Fix up formatting issues.
34483         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
34484         size is smaller than the original, adjust MEM_REF offset by the
34485         difference of sizes.  Use is_gimple_mem_ref_addr instead of
34486         is_gimple_min_invariant test to avoid adding address temporaries.
34488 2015-02-26  Martin Liska  <mliska@suse.cz>
34489             Jan Hubicka  <hubicka@ucw.cz>
34491         PR ipa/64693
34492         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
34493         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
34494         (sem_item_optimizer::process_cong_reduction): Include division by
34495         sensitive references.
34496         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
34497         * ipa-ref.c (ipa_ref::address_matters_p): New function.
34498         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
34500 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
34502         PR target/65192
34503         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
34504         Remove.
34505         * config/avr/avr.c: Same.
34506         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
34507         Refuse any constant address not in 0..0xbf.
34508         * config/avr/avr.md (*mov<mode>, *movsf): Remove
34509         tiny_valid_direct_memory_access_range from insn conditions.
34510         (mov<mode>): Don't special-case expansion of avrtiny addresses.
34512 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
34514         PR target/61142
34515         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
34516         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
34517         * config/sh/predicates.md (const_logical_operand): New predicate.
34518         * config/sh/sh.md: Add new peephole2 patterns.
34520 2015-02-26  Marek Polacek  <polacek@redhat.com>
34522         PR ipa/65008
34523         * ipa-inline.c (early_inliner): Recompute inline parameters.
34525 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34527         PR target/65171
34528         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
34529         instructions with TImode operands are included in the analysis.
34531 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
34533         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
34534         of an EDGE_FSM_THREAD.
34536 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34538         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
34540 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
34542         PR debug/46102
34543         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
34545 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
34547         PR tree-optimization/65048
34548         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
34549         (thread_through_all_blocks): Call valid_jump_thread_path.
34550         Remove invalid FSM jump-thread paths.
34552 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34554         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
34555         (ipa_write_optimization_summaries): Likewise.
34556         * tree-streamer.h: Include data-streamer.h.
34557         (streamer_mode_table): Declare extern variable.
34558         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
34559         * lto-streamer-out.c (lto_output_init_mode_table,
34560         lto_write_mode_table): New functions.
34561         (produce_asm_for_decls): Call lto_write_mode_table when streaming
34562         offloading LTO.
34563         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
34564         (lto_create_simple_input_block): Add mode_table argument to the
34565         lto_input_block constructors.
34566         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
34567         Likewise.
34568         * data-streamer-in.c (string_for_index): Likewise.
34569         * ipa-inline-analysis.c (inline_read_section): Likewise.
34570         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
34571         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
34572         * lto-streamer-in.c (lto_read_body_or_constructor,
34573         lto_input_toplevel_asms): Likewise.
34574         (lto_input_mode_table): New function.
34575         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
34576         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
34577         Use bp_pack_machine_mode.
34578         * real.h (struct real_format): Add name field.
34579         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
34580         (class lto_input_block): Add mode_table member.
34581         (lto_input_block::lto_input_block): Add mode_table_ argument,
34582         initialize mode_table.
34583         (struct lto_file_decl_data): Add mode_table field.
34584         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
34585         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
34586         unpack_ts_decl_common_value_fields,
34587         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
34588         * tree-streamer.c (streamer_mode_table): New variable.
34589         * real.c (ieee_single_format, mips_single_format,
34590         motorola_single_format, spu_single_format, ieee_double_format,
34591         mips_double_format, motorola_double_format,
34592         ieee_extended_motorola_format, ieee_extended_intel_96_format,
34593         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
34594         ibm_extended_format, mips_extended_format, ieee_quad_format,
34595         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
34596         decimal_single_format, decimal_double_format, decimal_quad_format,
34597         ieee_half_format, arm_half_format, real_internal_format): Add name
34598         field.
34599         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
34601 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
34603         PR target/65161
34604         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
34605         reordering for selective scheduling.
34607 2015-02-26  Terry Guo  <terry.guo@arm.com>
34609         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
34610         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
34611         (arm_arch_no_volatile_ce): Declare new global variable.
34612         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
34613         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
34614         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
34615         (TARGET_NO_VOLATILE_CE): New macro.
34616         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
34617         volatile memory access in IT block
34619 2015-02-25  Kai Tietz  <ktietz@redhat.com>
34621         PR tree-optimization/61917
34622         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
34623         that reduc_def_stmt is null.
34625 2015-02-25  Martin Liska  <mliska@suse.cz>
34627         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
34628         hard register variables.
34630 2015-02-25  Kai Tietz  <ktietz@redhat.com>
34632         PR target/64212
34633         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
34634         (symtab::noninterposable_alias): Likewise.
34636 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
34638         PR target/65167
34639         * config/i386/i386.c (ix86_function_arg_regno_p): Support
34640         bounds registers.
34641         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
34643 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
34645         PR target/64997
34646         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
34647         as split condition; force split via '#' in output pattern.
34649 2015-02-25  Richard Biener  <rguenther@suse.de>
34650             Kai Tietz  <ktietz@redhat.com>
34652         PR tree-optimization/61917
34653         * tree-vect-loop.c (vectorizable_reduction): Allow
34654         vect_internal_def without reduction to exit graceful.
34656 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
34658         PR target/65196
34659         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
34660         only with NONDEBUG_INSN_P.
34662 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
34664         Use variadic macros with avr-log.c.
34666         * config/avr/avr-protos.h (avr_vdump): New prototype.
34667         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
34668         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
34669         * config/avr/avr-log.c: Adjust comments.
34670         (avr_vdump): New function.
34671         (avr_vadump): Pass caller as 2nd argument instead of format string.
34672         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
34673         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
34675 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
34677         PR lto/64374
34678         * target.def (target_option_stream_in): New target hook.
34679         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
34680         targetm.target_option.post_stream_in if non-NULL.
34681         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
34682         * doc/tm.texi: Updated.
34683         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
34684         function.
34685         (TARGET_OPTION_POST_STREAM_IN): Redefine.
34687 2015-02-24  Jeff Law  <law@redhat.com>
34689         PR target/65117
34690         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
34691         of operand 0 and operand 2.
34692         (zero_cost_loop_end, loop_end): Similarly.
34694 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
34696         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
34697         CXX_MEM_STAT_INFO.
34699 2015-02-24  DJ Delorie  <dj@redhat.com>
34701         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
34702         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
34703         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
34704         instead of hardcoding SImode.
34706 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
34708         * omp-low.c (create_omp_child_function): Tag entrypoint
34709         functions with a special attribute.
34711 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
34713         PR target/65058
34714         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
34716 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
34718         PR rtl-optimization/65123
34719         * lra-remat.c (operand_to_remat): Check hard regs in insn
34720         definition too.
34722 2015-02-24  Nick Clifton  <nickc@redhat.com>
34724         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
34725         to the assembler.
34727 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
34729         PR libgomp/64625
34730         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
34731         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
34732         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
34733         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
34734         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
34735         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
34736         (BUILT_IN_GOACC_PARALLEL): Specify as
34737         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
34738         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
34739         * builtin-types.def
34740         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34741         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34742         Remove function types.
34743         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
34744         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34745         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34746         New function types.
34748 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
34750         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
34752 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
34754         PR tree-optimization/65170
34755         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
34756         if val[1] < 0, clear also val[2] and return 3.
34758 2015-02-24  Alan Modra  <amodra@gmail.com>
34760         PR target/65172
34761         * config/rs6000/rs6000.c (get_memref_parts): Only return true
34762         when *base is a reg.  Handle nested plus addresses.  Simplify
34763         pre_modify test.
34765 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
34767         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
34768         use natural alignment when optimizing for size.
34770 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
34772         PR target/65153
34773         * config/sh/sh.md (movsicc_true+3): Remove peephole.
34774         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
34775         * config/sh/sh.c (replace_n_hard_rtx): Remove.
34777 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
34779         PR fortran/63427
34780         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
34781         too big for a wide_int.  Implement missing wrapping operation.
34783 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
34785         PR target/65163
34786         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
34787         instead of const_int 4294901760.
34789 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
34791         * config/avr/t-avr: Fix typo in comment.
34793 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
34795         * doc/rtl.texi (fma): Clarify documentation.
34797 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
34799         PR debug/58123
34800         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
34801         over input_location.
34803 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
34805         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
34806         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
34807         restrict alignments to absolute_biggest_alignment.
34808         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
34809         Define.
34810         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
34811         * doc/tm.texi: Regenerate.
34812         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
34814 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
34816         PR target/64172
34817         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
34819 2015-02-20  Richard Biener  <rguenther@suse.de>
34821         PR tree-optimization/65136
34822         * tree-ssa-propagate.c: Include cfgloop.h.
34823         (replace_phi_args_in): Avoid replacing loop latch edge PHI
34824         arguments with constants.
34826 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
34827             Martin Liska  <mliska@suse.cz>
34829         PR target/63892
34830         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
34831         don't try to create_thunk if stdarg_p.  If
34832         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
34833         redirect_callers if possible.
34834         (sem_item_optimizer::execute): Call unregister_hooks here...
34835         (ipa_icf_driver): ... instead of here.
34837 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34839         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
34840         Mark operand 0 as earlyclobber in 2nd alternative.
34841         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
34842         Write negated shift amount into QI lowpart operand 0 and use it
34843         in the shift step.
34844         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
34846 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
34848         * cgraph.h (clone_function_name_1): Declare.
34849         * cgraphclones.c (clone_function_name_1): New function.
34850         (clone_function_name): Use it.
34851         * lto-partition.c: Include "stringpool.h".
34852         (must_not_rename, maybe_rewrite_identifier)
34853         (validize_symbol_for_target): New static functions.
34854         (privatize_symbol_name): Use must_not_rename.
34855         (promote_symbol): Call validize_symbol_for_target.
34856         (lto_promote_cross_file_statics): Likewise.
34857         (lto_promote_statics_nonwpa): Likewise.
34859 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
34861         PR target/64452
34862         * config/avr/avr.md (pushhi_insn): New insn.
34863         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
34865 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
34866             Jakub Jelinek  <jakub@redhat.com>
34868         * tree-streamer.c (preload_common_nodes): Don't preload
34869         TI_VA_LIST* for offloading.
34870         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
34871         in_lto_p.
34873 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
34875         * config/pa/pa.c (pa_emit_move_sequence): Always force
34876         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
34877         note on insn.
34879         * config/pa/pa.c (pa_reloc_rw_mask): New function.
34880         (TARGET_ASM_RELOC_RW_MASK): Define.
34881         (pa_cannot_force_const_mem): Revert previous change.
34883 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
34884             Jan Hubicka  <hubicka@ucw.cz>
34886         PR ipa/65028
34887         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
34888         across jump functions.
34890 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
34892         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
34894 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
34896         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
34898 2015-02-19  Richard Henderson  <rth@redhat.com>
34900         PR middle-end/65074
34901         * varasm.c (default_binds_local_p_2): Don't test node->definition;
34902         test DECL_EXTERNAL independent of symtab_node.
34904 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
34906         PR lto/65012
34907         * varpool.c (varpool_node::get_constructor): Return early
34908         if this->lto_file_data is NULL.
34910 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34912         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
34913         (rank_for_schedule_debug): Update.
34914         (ready_sort): Make static.  Move sorting logic to ...
34915         (ready_sort_debug, ready_sort_real): New static functions.
34916         (schedule_block): Sort both debug insns and real insns in preparation
34917         for ready list trimming.  Improve debug output.
34918         * sched-int.h (ready_sort): Remove global declaration.
34920 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
34922         * ipa-icf.c (sem_function::equals_private): Adjust.
34923         (sem_function::bb_dict_test): Take a vec<int> * instead of
34924         auto_vec<int>.
34925         * ipa-icf.h (bb_dict_test): Likewise.
34927 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
34929         PR gcov-profile/64634
34930         * tree-eh.c (frob_into_branch_around): Fix up typos
34931         in function comment.
34932         (lower_catch): Put eh_seq resulting from EH lowering of
34933         the cleanup sequence after the cleanup rather than before it.
34935 2015-02-18  Tom de Vries  <tom@codesourcery.com>
34937         * common.opt (fstdarg-opt): New option.
34938         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
34939         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
34940         (@item -fstdarg-opt): New item.
34942 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
34944         PR target/65064
34945         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
34946         for common symbols.
34948 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
34950         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
34951         insn-modes.h.
34952         (ALL_HOST_OBJS): Add mkoffload.o.
34953         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
34955 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
34957         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
34958         (compare_virtual_tables): Be smarter about skipping typeinfos;
34959         do sane output on virtual table table mismatch.
34960         (warn_odr): Be ready for forward declarations of enums;
34961         output sane info on base mismatch and virtual table mismatch.
34962         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
34963         when only one type is polymorphic.
34964         (get_odr_type): Fix hashtable corruption.
34965         (dump_odr_type): Dump mangled names.
34967 2015-02-18  Richard Biener  <rguenther@suse.de>
34969         PR tree-optimization/65063
34970         * tree-predcom.c (determine_unroll_factor): Return 1 if we
34971         have replaced looparound PHIs.
34973 2015-02-18  Martin Liska  <mliska@suse.cz>
34975         * lto-streamer.c (lto_streamer_init): Encapsulate
34976         streamer_check_handled_ts_structures with checking macro.
34978 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
34980         PR ipa/65087
34981         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
34982         section if !implicit_section.
34983         (cgraph_node::create_version_clone_with_body): Likewise.
34984         * trans-mem.c (ipa_tm_create_version): Likewise.
34986 2015-02-18  Richard Biener  <rguenther@suse.de>
34988         PR tree-optimization/62217
34989         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
34990         into BIVs.
34992 2015-02-18  Marek Polacek  <polacek@redhat.com>
34994         PR sanitizer/65081
34995         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
34996         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
34997         is in range [-16K, -1].  Don't issue run-time error if
34998         (ptr > ptr + offset).
35000 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
35002         * doc/install.texi (nvptx-*-none): New section.
35003         * doc/invoke.texi (Nvidia PTX Options): Likewise.
35004         * config/nvptx/nvptx.opt: Update.
35006         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35007         (access_check): New functions, copied from
35008         config/i386/intelmic-mkoffload.c.
35009         (main): For non-installed testing, look in all COMPILER_PATHs for
35010         GCC_INSTALL_NAME.
35012         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35014 2015-02-18  Andrew Pinski  <apinski@cavium.com>
35015             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35017         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35018         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35020 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35022         * ipa-visibility.c (function_and_variable_visibility): Only
35023         check locality if node is not already local.
35024         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35025         call_for_symbol_and_aliases instead of
35026         call_for_symbol_thunks_and_aliases.
35027         (ipa_inline): Likewise.
35028         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35029         first walk aliases.
35030         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35031         call_for_symbol_and_aliases.
35032         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35033         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35034         (ipa_propagate_frequency): Update.
35035         (ipa_profile): Add opt_for_fn gueards.
35037 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35039         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35040         * doc/invoke.texi (SH options): Document it.
35041         * config/sh/sh.c (sh_insn_length_adjustment): Check
35042         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35044 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
35046         * common.opt (fipa-cp-alignment): New.
35047         * ipa-cp.c (ipcp_store_alignment_results): Check
35048         flag_ipa_cp_alignment.
35049         * opts.c (default_options_table): Enable -fipa-cp-alignment for
35050         -O2.
35051         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35052         * doc/invoke.texi: Document -fipa-cp-alignment.
35054 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35056         PR target/64793
35057         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35058         to nil.  Adjust comments.
35060 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35062         * ipa-visibility.c (function_and_variable_visibility): Only
35063         check locality if node is not already local.
35064         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35065         call_for_symbol_and_aliases instead of
35066         call_for_symbol_thunks_and_aliases.
35067         (ipa_inline): Likewise.
35068         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35069         first walk aliases.
35070         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35071         call_for_symbol_and_aliases.
35072         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35073         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35074         (ipa_propagate_frequency): Update.
35075         (ipa_profile): Add opt_for_fn guards.
35077 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
35079         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35080         skipping of "strange" tokens.
35082 2015-02-17  Jeff Law  <law@redhat.com>
35084         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
35085         obsolete comment.
35087 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
35089         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35090         as forcing a HARD_DEP between instructions, thereby
35091         disallowing rewriting to break dependencies.
35093 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35095         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35096         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35097         variables in boundary that have no inlitalizer encoded and are
35098         not aliases.
35099         * varasm.c (default_binds_local_p_2): External definitions do not
35100         count as definitions here.
35102 2015-02-16  Jeff Law  <law@redhat.com>
35104         PR tree-optimization/64823
35105         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35106         statements.
35107         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35108         threading through blocks with PHIs, but no statements.
35109         (thread_through_normal_block): Distinguish between blocks where
35110         we did not process all the statements and blocks with no statements.
35112 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
35113             James Greenhalgh  <james.greenhalgh@arm.com>
35115         PR ipa/64963
35116         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35117         section if not linkonce.  Fix up formatting.
35118         (cgraph_node::create_version_clone_with_body): Copy section.
35119         * trans-mem.c (ipa_tm_create_version): Likewise.
35121 2015-02-16  Richard Biener  <rguenther@suse.de>
35123         PR tree-optimization/65077
35124         * tree-ssa-structalias.c (get_constraint_for_1): Handle
35125         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35126         (find_func_aliases): Allow float values to carry pointers again.
35128 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
35130         * doc/install.texi (Specific): Reorder targets list to put
35131         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
35132         from the top menu.
35134 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
35135             David Edelsohn  <dje.gcc@gmail.com>
35137         PR target/65058
35138         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35139         mapping class to external variable or function reference.
35140         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35141         mapping class.
35143 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
35145         PR target/53348
35146         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35147         ASM_WEAKEN_DECL if defined.
35149 2015-02-16  Richard Biener  <rguenther@suse.de>
35151         PR lto/65015
35152         * varasm.c (default_file_start): For LTO produced units
35153         emit <artificial> as file directive.
35155 2015-02-16  Richard Biener  <rguenther@suse.de>
35157         PR tree-optimization/63593
35158         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35159         stmts and releasing SSA names until...
35160         (execute_pred_commoning): ... after processing all chains.
35162 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35164         PR ipa/65059
35165         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35166         external functions.
35168 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
35170         * doc/bugreport.texi: Adjust section titles throughout the file
35171         to use "Title Case".
35172         * doc/extend.texi: Likewise.
35173         * doc/gcov.texi: Likewise.
35174         * doc/implement-c.texi: Likewise.
35175         * doc/implement-cxx.texi: Likewise.
35176         * doc/invoke.texi: Likewise.
35177         * doc/objc.texi: Likewise.
35178         * doc/standards.texi: Likewise.
35179         * doc/trouble.texi: Likewise.
35181 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
35183         * cgraph.h (symtab_node::has_aliases_p): Simplify.
35184         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35185         * tree.c (lookup_binfo_at_offset): Make static.
35186         (get_binfo_at_offset): Do not shadow offset; add explanatory
35187         comment.
35189 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
35191         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35192         for all floading point loads and stores except those using a register
35193         index address.
35194         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35195         to a register.
35197 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35199         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35200         (do_estimate_growth_1): Record if any uninlinable edge was seen.
35201         (estimate_growth): Handle uninlinable edges correctly.
35202         (check_callers): New.
35203         (growth_likely_positive): Handle aliases correctly.
35205 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35207         * ipa-chkp.c: Use iterate_direct_aliases.
35208         * symtab.c (resolution_used_from_other_file_p): Move inline.
35209         (symtab_node::create_reference): Fix formating.
35210         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35211         (symtab_node::iterate_reference): Move inline.
35212         (symtab_node::iterate_referring): Move inline.
35213         (symtab_node::iterate_direct_aliases): Move inline.
35214         (symtab_node::used_from_object_file_p_worker): Inline into ...
35215         (symtab_node::used_from_object_file_p): ... this one; move inline.
35216         (symtab_node::call_for_symbol_and_aliases): Move inline;
35217         use iterate_direct_aliases.
35218         (symtab_node::call_for_symbol_and_aliases_1): New method.
35219         (cgraph_node::call_for_symbol_and_aliases): Move inline;
35220         use iterate_direct_aliases.
35221         (cgraph_node::call_for_symbol_and_aliases_1): New method.
35222         (varpool_node::call_for_node_and_aliases): Rename to ...
35223         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35224         use iterate_direct_aliases.
35225         (varpool_node::call_for_symbol_and_aliases_1): New method.
35226         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35227         (ipa_discover_readonly_nonaddressable_var): Update.
35228         * ipa-devirt.c: Fix formating.
35229         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35230         Move inline.
35231         (cgraph_node::call_for_symbol_and_aliases): Move inline.
35232         (cgraph_node::call_for_symbol_and_aliases_1): New function..
35233         * cgraph.h (used_from_object_file_p_worker): Remove.
35234         (resolution_used_from_other_file_p): Move inline.
35235         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35236         (symtab_node::iterate_reference): Move inline.
35237         (symtab_node::iterate_referring): Move inline.
35238         (symtab_node::iterate_direct_aliases): Move inline.
35239         (symtab_node::used_from_object_file_p_worker): Inline into ...
35240         (symtab_node::used_from_object_file_p): Move inline.
35241         * tree-emutls.c (ipa_lower_emutls): Update.
35242         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35243         (varpool_node::call_for_node_and_aliases): Remove.
35245 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
35247         PR tree-optimization/62209
35248         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35249         op == range->exp, insert seq and gimplified code after labels
35250         instead of after the phi.
35252 2015-02-13  Jeff Law  <law@redhat.com>
35254         PR bootstrap/65060
35255         Revert my change for tree-optimization/64823.
35257 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35259         PR tree-optimization/65053
35260         * tree-ssa-phiopt.c (value_replacement): When moving assign before
35261         cond, either reset VR on lhs or set it to phi result VR.
35263 2015-02-13  Jeff Law  <law@redhat.com>
35265         PR tree-optimization/64823
35266         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35267         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35268         threading through blocks with PHIs, but no statements.
35269         (thread_through_normal_block): Distinguish between blocks where
35270         we did not process all the statements and blocks with no statements.
35272         PR rtl-optimization/47477
35273         * match.pd (convert (plus/minus (convert @0) (convert @1): New
35274         simplifier to narrow arithmetic.
35276 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
35278         PR ipa/65028
35279         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35280         polymorphic call info when type is not known to be preserved.
35282 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
35284         PR ipa/65028
35285         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35286         (inline_call): Use it.
35288 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
35290         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35291         GOMP_DEVICE_NVIDIA_PTX.
35293 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35295         PR ipa/65034
35296         * stmt.c (emit_case_nodes): Use void_type_node instead of
35297         NULL_TREE as LABEL_DECL type.
35299 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
35301         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35302         constraints.
35303         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35304         symbolic references to data to be forced to constant memory on the
35305         SOM target.
35307 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
35309         PR tree-optimization/65002
35310         * tree-cfg.c (pass_data_fixup_cfg): Don't update
35311         SSA on start.
35312         * tree-sra.c (some_callers_have_no_vuse_p): New.
35313         (ipa_early_sra): Reject functions whose callers
35314         assume function is read only.
35316 2015-02-13  Richard Biener  <rguenther@suse.de>
35318         PR lto/65015
35319         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35320         for LTO produced CUs.
35322 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
35324         PR tree-optimization/64705
35325         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35326         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35327         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35328         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35329         expand_simple_operations.
35331 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
35332             Richard Henderson  <rth@redhat.com>
35334         PR rtl/32219
35335         * cgraphunit.c (cgraph_node::finalize_function): Set definition
35336         before notice_global_symbol.
35337         (varpool_node::finalize_decl): Likewise.
35338         * varasm.c (default_binds_local_p_2): Rename from
35339         default_binds_local_p_1, add weak_dominate argument.  Use direct
35340         returns instead of assigning to local variable.  Unify varpool and
35341         cgraph paths via symtab_node.  Reject undef weak variables before
35342         testing visibility.  Reorder tests for simplicity.
35343         (default_binds_local_p): Use default_binds_local_p_2.
35344         (default_binds_local_p_1): Likewise.
35345         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35346         via symtab_node.
35347         (default_elf_asm_output_external): Emit visibility when specified.
35349 2015-02-13  Alan Modra  <amodra@gmail.com>
35351         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35352         code setting up r11 for out-of-line fp restore.
35354 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
35356         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35357         (muser-mode): Likewise.
35359 2015-02-13  Alan Modra  <amodra@gmail.com>
35361         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35362         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35364 2015-02-12  David Howells  <dhowells@redhat.com>
35366         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35367         warning.
35368         * tree-ssa-uninit.c (dump_predicates): Likewise.
35369         * opts.c (print_filtered_help): Likewise.
35371 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
35373         * dwarf2out.c (output_die): Use "%s", name instead of name to
35374         avoid -Wformat-security warning.
35376         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35377         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35378         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35379         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35381 2015-02-12  Jason Merrill  <jason@redhat.com>
35383         * common.opt (-flifetime-dse): New.
35385 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
35387         PR sanitizer/65019
35388         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35390         PR tree-optimization/65014
35391         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35392         use original second operand of arg0 or arg1 instead of
35393         that adjusted by STRIP_NOPS.
35395 2015-02-11  Jeff Law  <law@redhat.com>
35397         PR target/63347
35398         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35399         that needs to be queued, just queue it for a single cycle.
35401 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
35403         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35404         bodies of thunks; comment on why.
35405         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35406         symbols are extern.
35408 2015-02-11  Richard Henderson  <rth@redhat.com>
35410         PR sanitize/65000
35411         * tree-eh.c (mark_reachable_handlers): Mark source and destination
35412         regions of __builtin_eh_copy_values.
35414 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
35416         PR middle-end/65003
35417         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35418         ultimate alias is MEM with SYMBOL_REF satisfying
35419         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
35420         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35422 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
35424         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35425         "diagnostic-core.h".
35426         (main): Initialize progname, and call diagnostic_initialize.
35428         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35429         instead of __OPENMP_TARGET__.
35431         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35432         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35433         hard-coding PTX_ID.
35435 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
35437         * doc/sourcebuild.texi (pie_enabled): Document.
35439 2015-02-11  Martin Liska  <mliska@suse.cz>
35441         PR ipa/64813
35442         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
35443         a return value for call to a function that is noreturn.
35445 2015-02-11  Richard Biener  <rguenther@suse.de>
35447         PR lto/65015
35448         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
35449         and -fresolution.
35451 2015-02-11  Andrew Pinski  <apinski@cavium.com>
35453         PR target/64893
35454         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
35455         Change the first argument type to size_type_node and add another
35456         size_type_node.
35457         (aarch64_simd_expand_builtin): Handle the new argument to
35458         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
35459         print an out when the first two arguments are not
35460         nonzero integer constants.
35461         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
35462         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
35464 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
35466         PR target/61925
35467         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
35468         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
35469         (ix86_set_current_function): Rewritten.
35470         (ix86_add_new_builtins): Temporarily clear current_target_pragma
35471         when creating builtin fndecls.
35473 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
35475         PR ipa/65005
35476         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
35477         function.
35478         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
35479         have no comdat group.
35480         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
35481         (lto_output_varpool_node): Always output alias info.
35482         (output_refs): Output refs of boundary aliases, too.
35483         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
35484         (output_symtab): Output call eges in thunks in boundary.
35485         (get_alias_symbol): Remove.
35486         (input_node, input_varpool_node): Do not special case weakrefs.
35487         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
35488         alias and thunks targets in the boundary; do not take removed symbols
35489         from their comdat groups.
35490         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
35491         (cgraph_node::global_info): Remove.
35492         (cgraph_node::rtl_info): Look through aliases and thunks.
35493         * cgrpah.h (global_info): Remove.
35494         (non_local_p): Remove.
35496 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35497             Sandra Loosemore  <sandra@codesourcery.com>
35499         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
35500         to inline asm.  List dialects in proper order.
35502 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35503             Sandra Loosemore  <sandra@codesourcery.com>
35505         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
35507 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
35509         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
35510         modified) reference to Solaris.
35512 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
35514         * doc/extend.texi (Extended Asm): Fix typos.
35516 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
35518         PR sanitizer/65004
35519         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
35521 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
35523         PR target/64661
35524         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
35525         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
35526         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
35527         * config/sh/constraints.md (Ara, Add): New constraints.
35528         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
35529         predicates.
35530         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
35531         atomic_mem_operand_0.  Don't use force_reg on the memory address.
35532         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
35533         Sra constraint.  Convert to insn_and_split.  Add workaround for
35534         PR 64974.
35535         (atomic_compare_and_swap<mode>_hard): Copy to
35536         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
35537         Use atomic_mem_operand_0 predicate.
35538         (atomic_compare_and_swap<mode>_soft_gusa,
35539         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
35540         AraAdd constraints.
35541         (atomic_compare_and_swap<mode>_soft_tcb,
35542         atomic_compare_and_swap<mode>_soft_imask,
35543         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
35544         atomic_mem_operand_0 predicate and SraSdd constraints.
35545         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
35546         constraint.
35547         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
35548         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
35549         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
35550         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
35551         force_reg on the memory address.
35552         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
35553         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
35554         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
35555         atomic_mem_operand_1 predicate and Sra constraint.
35556         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
35557         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
35558         Use atomic_mem_operand_1 predicate.
35559         (atomic_<fetchop_name><mode>_hard): Copy to
35560         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
35561         Use atomic_mem_operand_1 predicate.
35562         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
35563         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
35564         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
35565         insn_and_split.  Use atomic_mem_operand_1 predicate.
35566         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
35567         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
35568         Use atomic_mem_operand_1 predicate.
35569         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
35570         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
35571         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
35572         in generated insn with original mem operand before emitting the insn.
35573         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
35574         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
35575         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
35576         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
35577         Use atomic_mem_operand_1 predicate and AraAdd constraints.
35578         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
35579         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
35580         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
35581         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
35582         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
35583         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
35584         atomic_not_fetch<mode>_soft_tcb,
35585         atomic_<fetchop_name>_fetch<mode>_soft_imask,
35586         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
35587         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
35588         Use atomic_mem_operand_1 predicate and SraSdd constraints.
35590 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
35592         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
35593         and 3 earlyclobber operands.
35595 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
35597         * common.opt (fstack-reuse): Mark as optimization.
35599 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
35601         PR ipa/64982
35602         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
35604 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
35606         PR tree-optimization/64326
35607         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
35609 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
35611         PR gcov-profile/61889
35612         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
35614 2015-02-10  Richard Biener  <rguenther@suse.de>
35616         PR tree-optimization/64995
35617         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
35618         value we use is final.
35619         (visit_reference_op_store): Always valueize op.
35620         (visit_use): Properly valueize vuses.
35622 2015-02-10  Richard Biener  <rguenther@suse.de>
35624         PR tree-optimization/64909
35625         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
35626         pass a scalar-stmt count estimate to the cost model.
35627         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
35629 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
35631         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
35632         enabled by default together with var-tracking.
35634 2015-02-10  Nick Clifton  <nickc@redhat.com>
35636         * config/rl78/rl78.c: Remove DIV attribute code accidentally
35637         included in previous rl78 commit.
35639 2015-02-10  Richard Biener  <rguenther@suse.de>
35641         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
35642         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
35643         return the bitpack.
35645 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
35647         PR gcov-profile/61889
35648         * config.in: regenerate.
35649         * configure.in: Likewise.
35650         * configure.ac: Check for ftw.h.
35651         * gcov-tool.c: Check for ftw.h before using nftw.
35653 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
35655         PR lto/64076
35656         * ipa-visibility.c (update_visibility_by_resolution_info): Only
35657         assert when not in lto mode.
35659 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
35661         * ira-color.c (setup_left_conflict_sizes_p): Simplify
35662         initialization/assignment of conflict_size.
35664 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
35666         PR ipa/64978
35667         * ipa-cp.c (gather_caller_stats): Skip thunks.
35668         (propagate_constants_topo): Skip aliases.
35670 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
35672         PR target/64761
35673         * config/sh/sh.c (sh_option_override): Don't change
35674         -freorder-blocks-and-partition to -freorder-blocks even when
35675         unwinding is enabled.
35676         (sh_can_follow_jump): Return false if the followee jump is
35677         a crossing jump when -freorder-blocks-and-partition is specified.
35678         * config/sh/sh.md (*jump_compact_crossing): New insn.
35680 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
35681             Kaz Kojima  <kkojima@gcc.gnu.org>
35683         PR target/64761
35684         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
35685         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
35686         (sh_can_redirect_branch): Rename to ...
35687         (sh_can_follow_jump): ... this.  Constify argument types.
35688         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
35689         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
35690         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
35691         * doc/tm.texi: Regenerate.
35693 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
35695         PR sanitizer/64981
35696         * builtins.c (expand_builtin): Call targetm.expand_builtin
35697         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
35699 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35701         PR ipa/61548
35702         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
35704 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35706         PR ipa/63566
35707         * ipa-icf.c (set_local): New function.
35708         (sem_function::merge): Use it.
35710 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35712         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
35713         (add_type_duplicate): Fix comparison of BINFOs.
35715 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35717         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
35718         on getting VOID pointer.
35720 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
35722         PR target/64979
35723         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
35724         va_list escapes.
35726 2015-02-09  Richard Biener  <rguenther@suse.de>
35728         * genmatch.c (replace_id): Copy expr_type.
35730 2015-02-09  Richard Biener  <rguenther@suse.de>
35732         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
35733         (streamer_write_tree_bitfields): Declare.
35734         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
35735         properly unpack padding.
35736         (unpack_value_fields): Inline ...
35737         (streamer_read_tree_bitfields): ... here.
35738         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
35739         and properly add padding bits.
35740         (streamer_pack_tree_bitfields): Fold into ...
35741         (streamer_write_tree_bitfields): ... this new function,
35742         exposing the bitpack object.
35743         * lto-streamer-out.c (lto_write_tree_1): Call
35744         streamer_write_tree_bitfields.
35746 2015-02-09  Richard Biener  <rguenther@suse.de>
35748         PR tree-optimization/54000
35749         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
35750         (struct ivopts_data): Add loop_loc member.
35751         (tree_ssa_iv_optimize_loop): Dump loop location.
35752         (create_new_ivs): Likewise, also dump number of IVs generated.
35754 2015-02-09  Martin Liska  <mliska@suse.cz>
35756         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
35757         just if not yet registered.
35758         (ipa_icf_generate_summary): Register callgraph hooks.
35760 2015-02-08  Andrew Pinski  <apinski@cavium.com>
35762         * config/aarch64/aarch64.c (gty_dummy): Delete.
35764 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35766         PR ipa/63566
35767         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
35768         (cgraph_node::local_p): Remove thunk related FIXME.
35770 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35772         PR ipa/63566
35773         * i386.c (ix86_function_regparm): Look through aliases to see if callee
35774         is local and optimized.
35775         (ix86_function_sseregparm): Likewise; also use target's SSE math
35776         settings; error out instead of silently generating wrong code
35777         on mismatches.
35778         (init_cumulative_args): Look through aliases.
35780 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35782         PR ipa/63566
35783         * ipa-split.c (execute_split_functions): Split if function has aliases.
35785 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
35787         PR ipa/63566
35788         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
35789         aliases before trying to expand it.
35790         (cgraph_node::expand_thunk): Fix formating.
35792 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
35794         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
35795         (Using Assembly Language with C): Expand introduction.
35796         (Basic Asm): Copy-edit.  Add more information about uses of
35797         basic asm.
35798         (Extended Asm): Copy-edit.  Document new escape syntax and
35799         %l[label] syntax.
35800         (Global Reg Vars): Copy-edit.
35801         (Local Reg Vars): Likewise.
35803 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
35805         PR debug/2714
35806         PR bootstrap/64256
35807         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
35808         (DBX_CONTIN_CHAR): Define.
35810 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
35811             Brian Rzycki  <b.rzycki@samsung.com>
35813         PR tree-optimization/64878
35814         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
35815         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
35816         Stop recursion at loop phi nodes after having visited a loop phi node.
35818 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
35820         * toplev.c (process_options): Change flag_ipa_ra before creating
35821         optimization_{default,current}_node.
35823         PR ipa/64896
35824         * cgraphunit.c (cgraph_node::expand_thunk): If
35825         restype is not is_gimple_reg_type nor the thunk_fndecl
35826         returns aggregate_value_p, set restmp to a temporary variable
35827         instead of resdecl.
35829 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
35831         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
35833 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35835         PR target/64205
35836         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
35837         add a general secondary reload handler for SDmode, unless we have
35838         both read/write support for SDmode.
35840 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
35842         PR middle-end/64937
35843         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
35844         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
35845         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
35846         1 before, push it to abstract_vec.
35847         (dwarf2out_abstract_function): Adjust caller.  Don't call
35848         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
35849         DECL_ABSTRACT_P flags for all abstract_vec elts.
35851 2015-02-06  Renlin Li  <renlin.li@arm.com>
35853         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
35854         complex gimple.
35855         * tree-ssa.c (execute_update_addresses_taken): Likewise.
35857 2015-02-06  Jeff Law  <law@redhat.com>
35859         PR target/64889
35860         * config/h8300/h8300.c (push): New argument "in_prologue".
35861         Pass "in_prologue" along to "F".
35862         (h8300_push_pop): Corresponding changes.
35863         (h8300_expand_prologue): Likewise.
35864         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
35866 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
35868         PR rtl-optimization/64957
35869         PR debug/64817
35870         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
35871         IOR rather than for AND.
35873 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
35875         PR target/62631
35876         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
35877         of shift-add and (add + shift) operations.  Rename local variable.
35879 2015-02-05  Jeff Law  <law@redhat.com>
35881         PR target/17306
35882         * config/h8300/constraints.md (U): Correctly dectect
35883         "eightbit_data" memory addresses.
35884         * config/h8300/h8300.c (eightbit_constant_address_p): Also
35885         handle (const (plus (symbol_ref (x)))) where x is declared
35886         as an 8-bit data memory address.
35887         * config/h8300/h8300.md (call, call_value): Correctly detect
35888         "funcvec" functions.
35890         PR target/43264
35891         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
35892         24 to 28 bits for the H8/300.
35894 2015-02-06  Alan Modra  <amodra@gmail.com>
35896         PR target/64876
35897         * config/rs6000/rs6000.c (chain_already_loaded): New function.
35898         (rs6000_call_aix): Use it.
35900 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
35902         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
35903         check.
35905 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
35907         * config/h8300/constraints.md ("U" constraint): Use strict
35908         variant of REG_OK_FOR_BASE_P after reload has started.
35910 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
35912         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
35913         define to zero if !TARGET_NEON.
35914         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
35916 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35917             Trevor Saunders  <tsaunders@mozilla.com>
35919         PR ipa/61548
35920         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
35922 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35924         PR ipa/61548
35925         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
35926         when removing varpool nodes.
35928 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35930         PR ipa/61548
35931         * varpool.c (varpool_node::remove): Fix order of variables.
35933 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35935         PR ipa/64686
35936         * ipa-inline.c (inline_small_functions): Fix ordering issue between
35937         speculation resolution and key updates.
35939 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35941         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
35942         about not letting any speculative edges unupdated.
35944 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35946         PR gcov/64123
35947         * gcov-io.c (gcov_var): Export.
35949 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35951         PR middle-end/64922
35952         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
35953         edges that become speculative.
35955 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
35957         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
35958         or DW_LANG_Fortran08.
35959         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
35960         DW_LANG_Fortran08.
35961         (gen_compile_unit_die): Handle "GNU Fortran2003" and
35962         "GNU Fortran2008" language strings.
35963         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
35964         * langhooks.h (lang_GNU_Fortran): New prototype.
35965         * langhooks.c (lang_GNU_Fortran): New function.
35966         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
35967         lang_GNU_Fortran.
35969 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
35971         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
35972         (RTX_OK_FOR_OLO10_P): Likewise.
35974 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
35976         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
35978 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
35980         PR middle-end/64922
35981         * gimple.c: Include gimple-ssa.h.
35982         (maybe_remove_unused_call_args): New function.
35983         * gimple.h (maybe_remove_unused_call_args): Declare.
35984         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
35985         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
35986         * gimple-fold.c (gimple_fold_call): Likewise.
35988 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
35990         PR rtl-optimization/64905
35991         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
35992         pointer alignment if it isn't needed.
35994 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
35996         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
35997         cortex-a72.cortex-a53.
35998         * config/aarch64/aarch64-tune.md: Regenerate.
35999         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36001 2015-02-04  Nick Clifton  <nickc@redhat.com>
36003         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36004         inside a MEM.
36006 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36008         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36009         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36010         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36011         of DEF_BUILTIN.
36012         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36013         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36014         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36015         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36016         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36017         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36018         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36019         * tree-core.h (enum built_in_function): In between
36020         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36021         for builtins that use DEF_BUILTIN_CHKP macro.
36023 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
36025         PR debug/64817
36026         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36027         operands for tcc_comparison exprs.  Fix typos.
36029         PR debug/64817
36030         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36031         of two XORs that have an intervening AND or IOR.
36033         PR debug/64817
36034         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36035         simplification of XOR of AND to not allocate new rtx before
36036         committing to a simplification.
36038 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36040         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36041         manual swaps in all peepholes.
36043 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36045         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36046         of manual swapping implementation.
36047         (aarch64_expand_vec_perm_const_1): Likewise.
36049 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
36051         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36052         (generic_addrcost_table): Remove NAMED_PARAM.
36053         (cortexa57_addrcost_table): Likewise.
36054         (xgene1_addrcost_table): Likewise.
36055         (generic_regmove_table): Likewise.
36056         (cortexa53_regmove_table): Likewise.
36057         (xgene1_regmove_table): Likewise.
36058         (generic_vector_table): Likewise.
36059         (cortexa57_vector_table): Likewise.
36060         (xgene1_vector_table): Likewise.
36061         (generic_tunings): Likewise.
36062         (cortexa53_tunings): Likewise.
36063         (cortexa57_tunings): Likewise.
36064         (xgene1_tunings): Likewise.
36066 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36068         * config/arm/arm-cores.def: Add cortex-a72 and
36069         cortex-a72.cortex-a53.
36070         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36071         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36072         * config/arm/arm-tune.md: Regenerate.
36073         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36074         "cortex-a72.cortex-a53".
36075         * doc/invoke.texi (ARM Options/-mtune): Likewise.
36077 2015-02-04  Nick Clifton  <nickc@redhat.com>
36079         PR target/64408
36080         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36081         of accepted codes.
36082         (nonimmediate_di_operand): Likewise.
36084         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36085         prefixes of known F5 using MSP430 MCUs.
36087 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36089         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36090         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36091         instead of __builtin_sqrt.
36093 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
36095         * varasm.c (do_assemble_alias): Follow transparent alias
36096         chain for target.
36097         (default_assemble_visibility): Follow transparent alias
36098         chain for decl name.
36100 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36102         PR middle-end/62103
36103         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36104         to compute size of referenced value in the constant case.
36106 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36108         PR rtl-optimization/64756
36109         * cse.c (invalidate_dest): New function.
36110         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
36111         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36112         invalidate and do not record it.
36114 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
36116         PR target/64660
36117         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36118         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36119         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36120         atomic_nand<mode>_soft_tcb): New insns.
36121         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36122         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36123         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36124         Split into atomic_not_fetchsi_hard if operands[0] is unused.
36125         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36126         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36127         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
36128         atomic_not<mode>_hard if operands[0] is unused.
36129         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36130         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36131         if operands[0] is unused.
36132         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
36133         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36134         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36135         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36136         unused.
36137         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
36138         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36139         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36140         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36141         if operands[0] is unused.
36142         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
36143         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36144         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
36145         atomic_nand_fetchsi_hard if operands[0] is unused.
36146         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
36147         atomic_nand<mode>_hard if operands[0] is unused.
36148         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
36149         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36150         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
36151         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36152         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
36153         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36154         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36155         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36156         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
36157         atomic_not<mode>_hard if operands[0] is unused.
36158         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36159         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36160         unused.
36161         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36162         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36163         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
36164         atomic_nand<mode>_hard if operands[0] is unused.
36165         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36166         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36168 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
36170         PR jit/64810
36171         * Makefile.in (GCC_OBJS): Add gcc-main.o.
36172         * gcc-main.c: New file, containing "main" taken from gcc.c.
36173         * gcc.c (do_self_spec): Free decoded_options.
36174         (class driver): Move declaration to gcc.h.
36175         (main): Move declaration and implementation to new file
36176         gcc-main.c.
36177         (driver_get_configure_time_options): New function.
36178         * gcc.h (class driver): Move this declaration here, from
36179         gcc.c.
36180         (driver_get_configure_time_options): New declaration.
36182 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
36184         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36185         cross-module inlining.
36186         * cgraph.h (cgraph_node): Add flag merged.
36187         * ipa-icf.c (sem_function::merge): Maintain it.
36189 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
36191         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36192         instead of OBJECT_P.
36194 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
36196         PR target/62631
36197         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36198         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36199         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36200         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36202 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36204         PR other/63504
36205         * combine.c (reg_n_sets_max): New variable.
36206         (can_change_dest_mode, reg_nonzero_bits_for_combine,
36207         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36208         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36209         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36210         (rest_of_handle_combine): Initialize reg_n_sets_max.
36212 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
36214         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36215         if some always_inline was inlined, apply changes before inlining
36216         heuristically.
36218 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
36220         PR jit/64810
36221         * config/arm/arm.c (arm_option_override): Set
36222         arm_selected_arch/cpu/tune to NULL on entry.
36224 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
36225             Andrew Pinski  <pinskia@gcc.gnu.org>
36226             Jakub Jelinek  <jakub@gcc.gnu.org>
36228         PR target/64231
36229         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36230         integer typing for small model. Use IN_RANGE.
36232 2015-02-02  Richard Biener  <rguenther@suse.de>
36234         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36235         * tree-vrp.c (vrp_valueize_1): Likewise.
36237 2015-02-02  Alan Modra  <amodra@gmail.com>
36239         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36240         than mem for toc_restore.
36241         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36242         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36243         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36245 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
36247         PR target/64047
36248         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36249         explicit default options.
36251 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
36253         PR ipa/64872
36254         * ipa-utils.c (ipa_merge_profiles): Add release argument.
36255         * ipa-icf.c (sem_function::merge): Do not release body when merging.
36256         * ipa-utils.h (ipa_merge_profiles): Update prototype.
36258 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
36260         PR debug/64817
36261         * cfgexpand.c (deep_ter_debug_map): New variable.
36262         (avoid_deep_ter_for_debug): New function.
36263         (expand_debug_expr): If TERed SSA_NAME is in
36264         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36265         instead of trying to expand SSA_NAME's def stmt.
36266         (expand_debug_locations): When expanding debug bind
36267         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36268         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36269         value.
36270         (pass_expand::execute): Call avoid_deep_ter_for_debug on
36271         all debug bind stmts.  Delete deep_ter_debug_map after
36272         expand_debug_location if non-NULL and clear it.
36274 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
36276         PR target/64851
36277         * config/sh/sync.md (atomic_fetch_notsi_hard,
36278         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36279         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36280         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36281         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36282         atomic_not_fetch<mode>_soft_imask): New insns.
36284 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36286         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36287         (rank_for_schedule_debug): Split from ...
36288         (rank_for_schedule): ... this.
36289         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36290         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36292 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36294         * doc/md.texi (Machine Constraints): Alphabetize table by target.
36295         * doc/extend.texi (x86 Variable Attributes): Move section to
36296         correct alphabetization after renaming.
36297         (x86 Type Attributes): Likewise.
36298         (Target Builtins): Re-alphabetize menu.
36299         (x86 Built-in Functions): Move section to correct alphabetization
36300         after renaming.
36301         (x86 transactional memory intrinsics): Likewise.
36302         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36303         and x86 Windows Options in table and menu.
36304         (x86 Options): Move section to correct alphabetization after
36305         renaming.
36306         (x86 Windows Options): Likewise.
36308 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36310         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36311         preferred names of the architecture and its 32- and 64-bit
36312         variants.
36313         * doc/invoke.texi: Likewise.
36314         * doc/md.texi: Likewise.
36316 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36318         PR target/64882
36319         * config/i386/predicates.md (address_no_seg_operand): Reject
36320         non-CONST_INT_P operands in invalid mode.
36322 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36324         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36325         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
36326         * config/i386/predicates.md (address_no_seg_operand): Call
36327         address_operand with VOIDmode.
36328         (vsib_address_operand): Ditto.
36329         (address_mpx_no_base_operand): Ditto.
36330         (address_mpx_no_index_operand): Ditto.
36332 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36334         PR target/64688
36335         * lra-constraints.c (original_subreg_reg_mode): New.
36336         (simplify_operand_subreg): Try to simplify subreg of const.  Use
36337         original_subreg_reg_mode for it.
36338         (swap_operands): Update original_subreg_reg_mode.
36339         (curr_insn_transform): Set up original_subreg_reg_mode.
36341 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36343         PR target/64617
36344         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36345         function.
36346         (process_alt_operands): Use it.
36347         (curr_insn_transform): Check the optional reload pseudo class is
36348         ok for the mode.
36350 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
36352         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36353         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36354         prototype.
36355         * toplev.h (init_asm_output): Update comment on use of
36356         UNKNOWN_LOCATION with fatal_error.
36357         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36358         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36359         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36360         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36361         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36362         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36363         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36364         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36365         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36366         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36367         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36368         fatal_error changed to pass input_location as first argument.
36370 2015-01-30  Martin Liska  <mliska@suse.cz>
36372         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36373         in #pragma GCC diagnostic guards.
36375 2015-01-30  Richard Biener  <rguenther@suse.de>
36377         PR tree-optimization/64829
36378         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36379         not add a widening conversion pattern but hand off extra
36380         widenings to callers.
36381         (vect_recog_widen_mult_pattern): Handle extra widening produced
36382         by vect_handle_widen_op_by_const.
36383         (vect_recog_widen_shift_pattern): Likewise.
36384         (vect_pattern_recog_1): Remove excess vertical space in dumping.
36385         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36386         (vect_init_vector_1): Likewise.
36387         (vect_get_vec_def_for_operand): Likewise.
36388         (vect_finish_stmt_generation): Likewise.
36389         (vectorizable_load): Likewise.
36390         (vect_analyze_stmt): Likewise.
36391         (vect_is_simple_use): Likewise.
36393 2015-01-29  Jeff Law  <law@redhat.com>
36395         * combine.c (try_combine): Fix typo in comment.
36397 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
36399         PR target/64580
36400         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36401         (rs6000_stack_info): Add assert.
36402         (rs6000_output_savres_externs): New function, split off from...
36403         (rs6000_output_function_prologue): ... here.  Do not call it for
36404         thunks.
36406 2015-01-29  Jeff Law  <law@redhat.com>
36408         PR target/15184
36409         * combine.c (try_combine): If I0 is a memory load and I3 a store
36410         to a related address, increase the "goodness" of doing a 4-insn
36411         combination with I0-I3.
36412         (make_field_assignment): Handle SUBREGs in the ior+and case.
36414 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
36416         PR tree-optimization/64746
36417         * tree-if-conv.c (mask_exists): New function.
36418         (predicate_mem_writes): Save created mask with given size for further
36419         use.
36420         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36421         (ifcvt_repair_bool_pattern): Collect all statements that are root
36422         of bool pattern and use iterative algorithm to remove multiple uses
36423         of predicates, display number of required iterations.
36425 2015-01-29  Richard Biener  <rguenther@suse.de>
36427         PR tree-optimization/64853
36428         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36429         stmt will get simulated again.
36430         * tree-ssa-ccp.c (valueize_op_1): Likewise.
36432 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36434         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36435         return_in_pc.  Remove redundant assignments.
36436         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36437         (arm_expand_epilogue): Don't compare boolean with true in if condition.
36439 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
36441         * config/i386/i386.c (ix86_mode_after): Make static.
36443 2015-01-29  Richard Biener  <rguenther@suse.de>
36445         PR tree-optimization/64844
36446         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
36447         dump cost model analysis.
36448         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
36449         Do not register adjusted load/store costs here.
36451 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
36452             Uros Bizjak  <ubizjak@gmail.com>
36454         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
36455         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
36456         using x86_use_pseudo_pic_reg.
36457         * config/i386/i386.c (ix86_conditional_register_usage): Remove
36458         support for fixed PIC register.
36459         (ix86_use_pseudo_pic_reg): Not static any more.
36461 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
36463         PR middle-end/64805
36464         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
36465         to avoid error in cgraph node verification.
36467 2015-01-29  Marek Polacek  <polacek@redhat.com>
36469         * doc/standards.texi: Reflect that the default for C is gnu11.
36471 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
36473         PR target/64761
36474         * reorg.c (switch_text_sections_between_p): New function.
36475         (relax_delay_slots): Call it when testing if the jump insn
36476         is removable.  Use targetm.can_follow_jump when testing if
36477         the conditional branch can follow an unconditional jump.
36479 2015-01-27  Caroline Tice  <cmtice@google.com>
36481         Committing VTV Cywin/Ming patch for Patrick Wollgast
36482         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
36483         if -fvtable-verify=preinit/std is used.
36484         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
36485         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
36486         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
36487         if -fvtable-verify=preinit/std is used.
36488         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36489         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
36490         if -fvtable-verify=preinit/std is used.
36491         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
36492         * config/i386/mingw32.h (LIB_SPEC): Likewise.
36493         * varasm.c (assemble_variable): Add code to properly set the comdat
36494         section and name for the .vtable_map_vars section in case the
36495         target is PE or COFF.
36497 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
36499         PR ipa/64801
36500         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
36501         make sane BB profile.
36502         (cgraph_node::expand_thunk): Make sane BB profile.
36503         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
36504         * cgraph.h (init_lowered_empty_function): Update prototype.
36505         * config/i386/i386.c (make_resolver_func): Update call.
36506         * predict.c (gate): Disable branch prediction pass if
36507         profile is already there.
36509 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
36511         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
36512         * opth-gen.awk: Likewise.
36513         * common.opt: Mark flag_fp_contract_mode as Optimization.
36515 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36517         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
36518         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
36520 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
36522         PR target/64659
36523         * config/sh/predicates.md (atomic_arith_operand,
36524         atomic_logical_operand): Remove.
36525         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
36526         (atomic_arith_operand_0): New predicate.
36527         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
36528         Use atomic_arith_operand_0 for input values.
36529         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
36530         atomic_compare_and_swap<mode>_soft_gusa,
36531         atomic_compare_and_swap<mode>_soft_tcb,
36532         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
36533         arith_reg_operand instead of register_operand.
36534         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
36535         atomic_arith_operand_0 for newval input.
36536         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
36537         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
36538         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
36539         arith_reg_operand instead of register_operand.
36540         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
36541         fetchop_predicate_1, fetchop_constraint_1_llcs,
36542         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
36543         fetchop_constraint_1_imask): New code iterator attributes.
36544         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
36545         register_operand.  Use fetchop_predicate_1.
36546         (atomic_fetch_<fetchop_name>si_hard,
36547         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
36548         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
36549         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
36550         and arith_reg_operand instead of register_operand.  Use
36551         fetchop_predicate_1, fetchop_constraint_1_gusa.
36552         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
36553         and arith_reg_operand instead of register_operand.  Use
36554         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
36555         to allow R0 usage.
36556         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
36557         and arith_reg_operand instead of register_operand.  Use
36558         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
36559         to allow R0 usage.
36560         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
36561         register_operand.  Use atomic_logical_operand_1.
36562         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
36563         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
36564         arith_reg_operand instead of register_operand.
36565         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
36566         Use arith_reg_dest and arith_reg_operand instead of register_operand.
36567         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
36568         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
36569         register_operand.  Use fetchop_predicate_1.
36570         (atomic_<fetchop_name>_fetchsi_hard,
36571         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
36572         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36573         fetchop_constraint_1_llcs.
36574         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
36575         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36576         fetchop_constraint_1_gusa.
36577         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
36578         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36579         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
36580         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
36581         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
36582         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
36583         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
36584         register_operand.  Use atomic_logical_operand_1.
36585         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
36586         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
36587         arith_reg_operand instead of register_operand.
36588         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
36589         arith_reg_operand instead of register_operand.  Use logical_operand
36590         and K08.  Adjust asm sequence to allow R0 usage.
36591         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
36592         arith_reg_operand instead of register_operand.  Use logical_operand
36593         and K08.
36595 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
36597         PR other/63504
36598         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
36599         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
36600         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
36601         only get_full_len HOST_WIDE_INTs from get_val () array rather than
36602         all bits in *val_wide.
36604 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
36606         * varpool.c (tls_model_names): Fix names.
36607         (varpool_node::dump): Dump tls- prefix for tls models.
36609 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
36610             Bernd Schmidt  <bernds@codesourcery.com>
36611             Nathan Sidwell  <nathan@codesourcery.com>
36613         * config/nvptx/mkoffload.c: New file.
36614         * config/nvptx/t-nvptx: Add build rules for it.
36615         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
36616         (extra_programs): Add mkoffload.
36617         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
36618         function.
36619         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
36621 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
36623         PR middle-end/64809
36624         * cfgexpand.c (reorder_operands): Skip debug gimples.
36626 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
36628         PR tree-optimization/64277
36629         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
36630         range info when possible to refine estimation.
36632 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36634         PR tree-optimization/64718
36635         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
36636         be a 16bit unsigned integer when n->range is 16.
36637         (bswap_replace): Convert src to that type if necessary for all bswap
36638         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
36639         set in pass_optimize_bswap::execute ().
36641 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
36643         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
36644         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
36645         integer and floating point variants.
36646         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
36648 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
36650         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
36651         for all vector modes.
36653 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
36655         PR bootstrap/64612
36656         * doc/sourcebuild.texi (comdat_group): Document.
36658 2015-01-28  Terry Guo  <terry.guo@arm.com>
36660         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
36662 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
36664         * toplev.c (print_version): Add param "show_global_state", and
36665         only print GGC and plugin information if it is true.
36666         (init_asm_output): Pass in "true" for the new param when calling
36667         print_version.
36668         (process_options): Likewise.
36669         (toplev::main): Likewise.
36670         * toplev.h (print_version): Add new param to decl.
36672 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
36674         PR ipa/60871
36675         PR ipa/64139
36676         * tree.c (lookup_binfo_at_offset): New function.
36677         (get_binfo_at_offset): Use it.
36679 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
36681         PR ipa/64282
36682         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
36683         on vtable being vtable.
36685 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36687         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
36688         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
36689         -mhotpatch= option.
36690         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
36691         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
36692         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
36693         Renamed.
36694         (s390_hotpatch_trampoline_halfwords_max): Renamed.
36695         (s390_hotpatch_hw_max): New name.
36696         (s390_hotpatch_trampoline_halfwords): Renamed.
36697         (s390_hotpatch_hw_before_label): New name.
36698         (get_hotpatch_attribute): Removed.
36699         (s390_hotpatch_hw_after_label): New name.
36700         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
36701         attribute.
36702         (s390_attribute_table): Ditto.
36703         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
36704         (s390_function_num_hotpatch_hw): New name.
36705         Remove special handling of inline functions and hotpatching.
36706         Return number of nops before and after the function label.
36707         (s390_can_inline_p): Removed.
36708         (s390_asm_output_function_label): Emit a configurable number of nops
36709         after the function label.
36710         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
36711         (TARGET_CAN_INLINE_P) Removed.
36712         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
36714 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36715             Jiong Wang  <jiong.wang@arm.com>
36717         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
36718         of scratch reg.
36719         (cb<optab><mode>1): Likewise.
36720         * config/aarch64/iterators.md (bcond): New define_code_attr.
36722 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36724         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
36725         memory accesses.
36727 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36729         * config/s390/s390.c (s390_register_move_cost): Increase costs for
36730         FPR->GPR moves.
36732 2015-01-27  Richard Biener  <rguenther@suse.de>
36734         * tree-vrp.c (update_value_range): Intersect the range with
36735         old recorded SSA name range information.
36737 2015-01-27  Nick Clifton  <nickc@redhat.com>
36739         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
36740         BC, DE and HL registers directly, not via AX.
36741         When decrementing the stack pointer by a large amount, transfer SP
36742         into AX and perform the subtraction there.
36743         (rl78_expand_epilogue): Perform the inverse of the above
36744         enhancements.
36746 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36748         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
36750 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
36751             Yury Gribov  <y.gribov@samsung.com>
36753         PR ubsan/64741
36754         * ubsan.c (ubsan_source_location): Refactor code.
36755         (ubsan_type_descriptor): Update type size. Refactor code.
36757 2015-01-27  Richard Biener  <rguenther@suse.de>
36759         PR tree-optimization/56273
36760         PR tree-optimization/59124
36761         PR tree-optimization/64277
36762         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
36763         from the first VRP pass.
36765 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
36767         PR ipa/64776
36768         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
36769         handle the first argument in the same loop as all the other arguments.
36771         PR rtl-optimization/61058
36772         * jump.c (cleanup_barriers): Update basic block boundaries
36773         if BLOCK_FOR_INSN is non-NULL on PREV.
36775 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
36777         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
36778         bounds narrowing, already instrumented calls and calls to
36779         not instrumentable functions.
36781 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
36783         PR tree-optimization/64807
36784         * wide-int.cc (wi::divmod_internal): Clear
36785         b_dividend[dividend_blocks_needed].
36787 2015-01-26  DJ Delorie  <dj@redhat.com>
36789         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
36790         volatile memory references.
36792 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
36794         PR target/49263
36795         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
36796         remove_insn.
36797         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
36798         shifts if it already fits into K08.
36800 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
36802         PR ipa/64730
36803         * ipa-inline.c (inline_small_functions): Print "unknown" even
36804         if edge->call_stmt is non-NULL, but has builtins or unknown
36805         location.
36807         PR middle-end/64421
36808         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
36809         with asterisk, skip the first character.
36811 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
36813         PR target/64806
36814         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
36815         order change.
36817 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
36819         PR target/64795
36820         * config/i386/i386.md (*movdi_internal): Also check operand 0
36821         to determine TYPE_LEA operand.
36822         (*movsi_internal): Ditto.
36824 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
36826         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
36827         OPTION_MASK_QUAD_MEMORY_ATOMIC.
36829 2015-01-26  Renlin Li  <renlin.li@arm.com>
36831         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
36832         the comment.
36833         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
36834         for higher part.
36836 2015-01-26  Richard Biener  <rguenther@suse.de>
36838         PR middle-end/64764
36839         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
36840         combining two BIT_AND_EXPR predicates.
36842 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
36844         PR bootstrap/64754
36845         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
36847 2015-01-26  Terry Guo  <terry.guo@arm.com>
36849         * config/arm/arm.c (arm_file_start): Update the assignment of
36850         Tag_ABI_HardFP_use.
36852 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
36854         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
36855         pipeline model.
36856         config/arm/arm.md: Include the new Cortex-A57 model.
36857         (generic_sched): Don't use generic_sched when tuning for
36858         Cortex-A57.
36860 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
36861             Uros Bizjak  <ubizjak@gmail.com>
36863         * config/i386/i386.c (get_builtin_code_for_version): Add
36864         support for BMI and BMI2 multiversion functions.
36866 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36868         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
36869         (extract_bit_field): Likewise.
36870         (extract_low_bits): Likewise.
36871         (expand_mult): Likewise.
36872         (expand_mult_highpart_adjust): Likewise.
36874 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
36876         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
36877         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
36878         * config/i386/i386.c (processor_model): Add
36879         M_INTEL_COREI7_BROADWELL.
36880         (arch_names_table): Add "broadwell".
36882 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
36884         PR target/49263
36885         PR target/53987
36886         PR target/64345
36887         PR target/59533
36888         PR target/52933
36889         PR target/54236
36890         PR target/51244
36891         * config/sh/sh-protos.h
36892         (sh_extending_set_of_reg::can_use_as_unextended_reg,
36893         sh_extending_set_of_reg::use_as_unextended_reg,
36894         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
36895         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
36896         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
36897         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
36898         (sh_treg_insns): New class.
36899         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
36900         (scope_counter): New class.
36901         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
36902         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
36903         sh_extending_set_of_reg::can_use_as_unextended_reg,
36904         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
36905         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
36906         sh_split_treg_set_expr): New functions.
36907         (addsubcosts): Handle treg_set_expr.
36908         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
36909         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
36910         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
36911         (sh_insn_operands_modified_between_p): Make non-static.
36912         * config/sh/predicates.md (zero_extend_movu_operand): Allow
36913         simple_mem_operand in addition to displacement_mem_operand.
36914         (zero_extend_operand): Don't allow zero_extend_movu_operand.
36915         (treg_set_expr, treg_set_expr_not_const01,
36916         arith_reg_or_treg_set_expr): New predicates.
36917         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
36918         arith_or_int_operand instead of logical_operand.  Convert to
36919         insn_and_split.  Try to optimize constant operand in splitter.
36920         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
36921         (*tstqi_t_zero): Delete.
36922         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
36923         (tstsi_t_and_not): Delete.
36924         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
36925         Convert to insn_and_split.
36926         (unnamed split, tstsi_t_zero_extract_xor,
36927         tstsi_t_zero_extract_subreg_xor_little,
36928         tstsi_t_zero_extract_subreg_xor_big): Delete.
36929         (*tstsi_t_shift_mask): New insn_and_split.
36930         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
36931         to recombine with surrounding insns when splitting.
36932         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
36933         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
36934         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
36935         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
36936         (*cbranch_div0s: Delete.
36937         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
36938         Try to recombine with surrounding insns when splitting.  Add operand
36939         order variants.
36940         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
36941         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
36942         *addc_r_r_msb, *addc_2r_msb): Delete.
36943         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
36944         order variant.
36945         (*addc_negreg_t): New insn_and_split.
36946         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
36947         Try to recombine with surrounding insns when splitting.
36948         Add operand order variants.
36949         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
36950         insn_and_split patterns.
36951         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
36952         surrounding insns when splitting.
36953         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
36954         (*rotcl): Likewise.  Add zero_extract variant.
36955         (*ashrsi2_31): New insn_and_split.
36956         (*negc): Convert to insn_and_split.  Use treg_set_expr.
36957         (*zero_extend<mode>si2_disp_mem): Update comment.
36958         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
36959         condition.
36960         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
36961         with surrounding insns when splitting.
36962         (any_treg_expr_to_reg): New insn_and_split.
36963         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
36964         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
36965         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
36966         *zero_extract_2): New single bit zero extract patterns.
36967         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
36968         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
36969         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
36970         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
36971         set destination.
36972         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
36973         register_operand for set source.
36975 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
36977         * i386.opt (prefetch_sse): New targetsave.
36978         * i386.c (ix86_function_specific_save): Save prefetch_sse.
36979         (ix86_function_specific_restore): Restore prefetch_sse and initialize
36980         ix86_cost/ix86_tune_cost.
36982 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
36984         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
36985         Support the JIT by using 0 as the language type.
36987 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
36989         PR target/64317
36990         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
36991         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
36992         (mark_regno_live, process_bb_lives): Pass new parameter value to
36993         make_hard_regno_born.
36995 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
36997         PR rtl-optimization/63637
36998         PR rtl-optimization/60663
36999         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37000         if elt->cost is MAX_COST for ASM_OPERANDS.
37001         (find_sets_in_insn): Fix up comment typo.
37002         (cse_insn): Don't set src_volatile for all non-volatile
37003         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37004         or with "memory" clobber.  Set elt->cost to MAX_COST
37005         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
37006         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37008 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37010         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37011         alternative 1.
37013 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37015         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37016         libgcc/config/i386/elf-lib.h.
37018 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37020         PR driver/64737
37021         * gcc.c (print_configuration): Don't print a blank line at the end
37022         here...
37023         (run_attempt): ... but here unstead.
37025         PR middle-end/64734
37026         * omp-low.c (scan_sharing_clauses): Don't ignore
37027         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37028         on target data/update constructs.
37030 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37032         PR target/50928
37033         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37034         (DEBUG_RELOAD): Removed define.
37035         (m32c_limit_reload_class): Enable traces with if DEBUG0.
37036         (m32c_function_arg): Added a type cast.
37037         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37038         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37039         * config/m32c/bitops.md (andqi3_16): Likewise.
37040         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37041         (push_a01_l): Likewise.
37043 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37045         PR jit/64721
37046         * main.c (main): Construct toplev instances with init_signals=true.
37047         * toplev.c (general_init): Add param "init_signals", and use it to
37048         conditionalize the calls to signal and host_hooks.extra_signals.
37049         (toplev::toplev): Add param "init_signals".
37050         (toplev::main): When invoking general_init, pass m_init_signals
37051         to control whether signal-handlers are installed.
37052         * toplev.h (toplev::toplev): Add param "init_signals".
37053         (toplev::m_init_signals): New field.
37055 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37057         PR jit/64722
37058         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37059         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37060         latter may be affected by the former (e.g. on i686).
37062 2015-01-23  Martin Liska  <mliska@suse.cz>
37064         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37065         false positive during profiledbootstrap.
37067 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37069         PR libgomp/64672
37070         * lto-opts.c (lto_write_options): Output non-explicit conservative
37071         -fno-openacc.
37072         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37073         (append_compiler_options): Pass -fopenacc through.
37075 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37077         PR libgomp/64707
37078         * lto-opts.c (lto_write_options): Output non-explicit conservative
37079         -fno-openmp.
37080         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37081         (append_compiler_options): Pass -fopenmp through.
37083 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37085         PR debug/64511
37086         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37087         GTY markup.
37089         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37090         * diagnostic.def (DK_ICE_NOBT): New kind.
37091         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37092         like DK_ICE, but never print backtrace.
37093         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37094         (internal_error_no_backtrace): New function.
37095         * gcc.c (execute): Use internal_error_no_backtrace instead of
37096         internal_error.
37098 2015-01-22  Jeff Law  <law@redhat.com>
37100         PR target/52076
37101         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37102         improve code density for small immediate to memory case.
37103         (insv): Better handle bitfield assignments when the field is
37104         being set to all ones.
37105         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37106         operand predicate.
37108 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37109             Jakub Jelinek  <jakub@redhat.com>
37111         PR middle-end/64729
37112         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37113         for !TARGET_LIBC_PROVIDES_SSP version and
37114         -fstack-protector-{all,strong,explicit} otherwise.
37115         * config/freebsd.h (LINK_SSP_SPEC): Handle
37116         -fstack-protector-{strong,explicit}.
37118 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
37119             H.J. Lu  <hongjiu.lu@intel.com>
37121         PR ipa/64694
37122         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37123         heap.
37125 2015-01-22  Wei Mi  <wmi@google.com>
37127         PR rtl-optimization/64557
37128         * dse.c (record_store): Call get_addr for mem_addr.
37129         (check_mem_read_rtx): Likewise.
37131 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
37133         * fold-const.c (const_binop): Add early return for non-tcc_binary.
37135 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
37137         * toplev.c (init_local_tick): Process the failure when read
37138         fails for random_seed.
37140         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37141         'pretty_name' to avoid memory overflow.
37143 2015-01-22  Richard Biener  <rguenther@suse.de>
37145         PR middle-end/64728
37146         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37147         abnormal coalescing on undefined SSA names.
37149 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
37151         PR target/64688
37152         PR target/64477
37153         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37154         for alternative 3.
37155         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37157 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
37159         PR middle-end/63325
37160         * fold-const.c (fold_checksum_tree): Don't include value of
37161         expr->decl_with_vis.symtab_node in the checksum.
37163 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37165         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37167 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
37169         PR driver/64690
37170         * gcc.c (insert_comments): New function.
37171         (try_generate_repro): Call it.
37172         (append_text): Removed.
37174 2015-01-22  Richard Biener  <rguenther@suse.de>
37176         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37177         with IL incompatible options.  Properly honor user optimize
37178         attributes.
37180 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
37182         PR rtl-optimization/64682
37183         * combine.c (distribute_notes): When moving a death note for
37184         a register that is set in the new I2, make sure to put it
37185         before that new I2.
37187 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
37189         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37190         not TARGET_DEFAULT.
37192 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
37194         PR debug/64511
37195         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37196         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37197         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37199         PR sanitizer/64706
37200         * doc/invoke.texi (-fsanitize=vptr): Document.
37202         PR rtl-optimization/62078
37203         * dse.c: Include cfgcleanup.h.
37204         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37205         anything call purge_all_dead_edges and cleanup_cfg at the end
37206         of the pass.
37208 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
37210         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37211         edges.
37213 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37215         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37216         decl attribute.
37218 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37219             Tejas Belagod <Tejas.Belagod@arm.com>
37221         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37222         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37223         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37224         Removed.
37226 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37227             Tejas Belagod <Tejas.Belagod@arm.com>
37229         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37230         (aarch64_reverse_mask): New decls.
37231         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37232         (insn_count): New mode_attr.
37233         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37234         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37235         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37236         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37237         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37238         (aarch64_simd_st4): New patterns.
37239         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37240         (aarch64_reverse_mask): New functions.
37242 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37244         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37245         Declare.
37246         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37247         addressing modes for BE.
37248         (aarch64_print_operand): Add 'R' specifier.
37249         (aarch64_simd_disambiguate_copy): Delete.
37250         (aarch64_simd_emit_reg_reg_move): New function.
37251         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37252         in define_splits for structural moves.
37253         (mov<mode>): Use less restrictive predicates.
37254         (*aarch64_mov<mode>): Simplify and only allow for LE.
37255         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37257 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37259         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37261 2015-01-21  Richard Henderson  <rth@redhat.com>
37263         PR target/64669
37264         * ccmp.c (used_in_cond_stmt_p): Remove.
37265         (expand_ccmp_expr): Don't use it.
37267 2015-01-21  Nick Clifton  <nickc@redhat.com>
37269         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37270         PARALLELs.
37272 2015-01-21  Richard Biener  <rguenther@suse.de>
37274         PR middle-end/64313
37275         * tree-core.h (builtin_info, builtin_info_type): Turn from
37276         an object with two arrays into an array of an object with
37277         decl and two flags, implicit_p and declared_p.
37278         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37279         set_builtin_decl, set_builtin_decl_implicit_p,
37280         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37281         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37282         * builtins.c (builtin_info): Adjust.
37283         * gimplify.c (gimplify_addr_expr): References to builtins
37284         that have been declared by the user makes them eligible for
37285         use by the compiler.  Call set_builtin_decl_implicit_p on them.
37287 2015-01-20  Jeff Law  <law@redhat.com>
37289         PR target/59946
37290         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37291         allow pc-relative addresses in operand predicates or constraints.
37293 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
37295         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37296         neon on aarch32 processors for stringops.
37298 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37300         PR ipa/63576
37301         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37303 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37305         PR lto/45375
37306         * ipa-inline.c: Include lto-streamer.h
37307         (report_inline_failed_reason): Output source file differences and
37308         flags on optimization/target node mismatch.
37309         (can_inline_edge_p): Consider caller to be the outer inline function;
37310         be less restrictive about matching opimize and optimize_size attributes.
37311         (inline_account_function_p): Break out from ...
37312         (inline_small_functions): ... here.
37313         * ipa-inline-transform.c (clone_inlined_nodes): Use
37314         inline_account_function_p.
37315         (inline_call): Use optimize attribution; use inline_account_function_p.
37316         (inline_transform): Use opt_for_fn.
37317         * ipa-inline.h (inline_account_function_p): Declare.
37319 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
37321         PR debug/64663
37322         * dwarf2out.c (decl_piece_node): Don't put bitsize into
37323         mode if bitsize <= 0.
37324         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37325         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37326         sizes and positions.
37328 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
37330         * config/nios2/nios2.c (nios2_asm_file_end): Implement
37331         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37332         needed.
37333         (TARGET_ASM_FILE_END): Define.
37335 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37337         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37338         (struct tune_params): Use the enum.
37339         * arm.c (arm_*_tune): Update.
37340         (arm_option_override): Update.
37342 2015-01-20  Richard Biener  <rguenther@suse.de>
37344         PR ipa/64684
37345         * ipa-reference.c (add_static_var): Inline ...
37346         (analyze_function): ... here after splitting out from ...
37347         (is_proper_for_analysis): ... this.
37349 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
37351         PR target/64149
37352         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37353         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37354         replace the conditional with it's true branch.
37355         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37356         (arm_lra_p): Remove.
37358 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
37360         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37362 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37364         * config/tilegx/mul-tables.c: Move symtab.h include after
37365         coretypes.h include.
37366         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37367         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37368         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37369         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37370         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37372 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
37374         PR bootstrap/64676
37375         Revert:
37376         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
37378         PR rtl-optimization/64081
37379         * loop-iv.c (def_pred_latch_p): New function.
37380         (latch_dominating_def): Allow specific cases with non-single
37381         definitions.
37382         (iv_get_reaching_def): Likewise.
37383         (check_complex_exit_p): New function.
37384         (check_simple_exit): Use check_complex_exit_p to allow certain cases
37385         with exits not executing on any iteration.
37387 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37389         PR lto/45375
37390         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37391         to set branch cost.
37393 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37395         PR lto/45375
37396         * i386.c (gate): Check flag_expensive_optimizations and
37397         optimize_size.
37398         (ix86_option_override_internal): Drop optimize_size condition
37399         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37400         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37401         MASK_PREFER_AVX128.
37402         (ix86_avx256_split_vector_move_misalign,
37403         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37404         * sse.md (all uses of TARGET_PREFER_AVX128): Add
37405         optimize_insn_for_speed_p check.
37407 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
37409         * config/mips/mips.h (FP_ASM_SPEC): New define.
37410         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37411         instead.
37413 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
37415         PR target/53988
37416         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37417         nullptr for insn when reaching the first insn.
37418         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37419         (sh_insn_operands_modified_between_p): Add nullptr check.
37420         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
37421         sign extending mem load if the insn contains any UNSPEC or
37422         UNSPEC_VOLATILE.
37424 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37426         * params.def (inline-unit-growth): Drop to 15%.
37427         * invoke.texi (inline-unit-growth): Document change.
37429 2015-01-19  Martin Liska  <mliska@suse.cz>
37431         PR ipa/64668
37432         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37433         function for second argument of OBJ_TYPE_REF.
37435 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37437         PR ipa/64218
37438         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37439         whether function is an alias.
37441 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37443         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
37444         cases.
37446 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
37448         PR rtl-optimization/64671
37449         * lra-remat.c (operand_to_remat): Don't consider jump and call
37450         insns.
37452 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
37454         PR target/59828
37455         * config/rs6000/default64.h: Include rs6000-cpus.def.
37456         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
37457         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
37458         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
37459         and POWER8.
37460         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
37461         POWER8.
37462         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
37463         pseudo-op to specify assembler dialect.
37465 2015-01-19  Martin Liska  <mliska@suse.cz>
37467         PR ipa/64664
37468         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
37469         Handle safe potentially removed nodes during filtering.
37471 2015-01-19  Martin Liska  <mliska@suse.cz>
37473         * doc/extend.texi (no_icf): Add new attribute description.
37474         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
37475         where the pass attempts to merge a function with no_icf attribute.
37477 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37479         PR target/64532
37480         * doc/md.texi (ARM Options): Document register constraints.
37482 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
37483             Andrew Pinski  <apinski@cavium.com>
37485         PR target/64304
37486         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
37487         (ashl<mode>3): Don't expand if operands[2] is not constant.
37489 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37491         PR target/64448
37492         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
37493         Match xor-and-xor RTL pattern.
37495 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
37497         PR rtl-optimization/64081
37498         * loop-iv.c (def_pred_latch_p): New function.
37499         (latch_dominating_def): Allow specific cases with non-single
37500         definitions.
37501         (iv_get_reaching_def): Likewise.
37502         (check_complex_exit_p): New function.
37503         (check_simple_exit): Use check_complex_exit_p to allow certain cases
37504         with exits not executing on any iteration.
37506 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
37508         * common.opt (fgraphite): Fix a typo.
37510 2015-01-19  Felix Yang  <felix.yang@huawei.com>
37512         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
37513         pattern.
37514         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
37515         uminp, smax_nanp, smin_nanp): New builtins.
37516         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
37517         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
37518         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
37519         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
37520         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
37521         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
37522         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
37523         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
37524         vpminnms_f32): Rewrite using builtin functions.
37526 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
37528         PR libgomp/64625
37529         * omp-low.c (offload_symbol_decl): Remove variable.
37530         (get_offload_symbol_decl): Remove function.
37531         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
37532         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
37533         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
37534         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
37535         BUILT_IN_GOACC_UPDATE don't pass it at all.
37537 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
37539         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
37540         callers.
37542 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
37544         * ipa-chkp.c (chkp_produce_thunks): Add early param
37545         to split thunks production into two passes.  Keep
37546         'always_inline' function bodies after the first pass.
37547         (pass_data_ipa_chkp_early_produce_thunks): New.
37548         (pass_ipa_chkp_early_produce_thunks): New.
37549         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
37550         chkp_produce_thunks signature.
37551         (make_pass_ipa_chkp_early_produce_thunks): New.
37552         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
37553         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
37554         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
37556 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
37558         * cgraph.c (cgraph_node::dump): Dump profile flags.
37560 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
37562         PR target/64652
37563         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
37564         reg appear first in the parallel.
37566 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
37568         * ipa-reference.c (set_reference_optimization_summary,
37569         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
37570         disabled.
37571         (ignore_module_statics): New static var.
37572         (propagate_bits): If ipa-reference is disabled, do not look into local
37573         properties.
37574         (analyze_function): Disable analysis when ipa_reference is disabled.
37575         (generate_summary): Do not dump when reference is disabled;
37576         collect vars accessed from functions with ipa-reference disabled.
37577         (get_read_write_all_from_node): When ipa-reference is disabled, use the
37578         node flags.
37579         (gate): Enable for LTO.
37580         (ignore_edge_p): New function.
37581         (propagate): Skip functions w/o ipa-reference analysis.
37582         * optc-save-gen.awk: Handle optimize_debug correctly.
37583         * opth-gen.awk: Likewise.
37584         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
37585         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
37586         fira-share-save-slots, fira-share-spill-slots,
37587         fmodulo-sched-allow-regmoves, fpartial-inlining,
37588         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
37589         ftracer, ftree-parallelize-loops, fassociative-math,
37590         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
37591         Optimization
37592         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
37593         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
37594         Optimization.
37595         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
37596         Fix for IPA.
37598 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
37600         PR ipa/64378
37601         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
37602         flag correctly.
37603         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
37605 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
37607         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
37608         Remove duplicate option listings.
37610 2015-01-18  Felix Yang  <felix.yang@huawei.com>
37612         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
37613         (autofdo_source_profile::get_callsite_total_count,
37614         function_instance::get_function_instance_by_decl,
37615         string_table::get_index, string_table::get_index_by_decl,
37616         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
37617         Fix comment typos. Reformatting and minor code rearrangement.
37619 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
37621         * config/rs6000/rs6000.md (probe_stack): Delete.
37622         (probe_stack_address): New.
37624 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
37626         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
37627         to test for 32-bit ABIs, not !TARGET_POWERPC64.
37629 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
37631         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
37632         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
37633         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
37634         snafu.
37635         (rs6000_libcall_value): Use the new function.
37637 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
37639         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
37641 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
37643         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
37644         implement a more precise life analysis for it during backward scan.
37646 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
37648         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
37650 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
37652         PR rtl-optimization/52773
37653         * calls.c (emit_library_call_value): When pushing arguments use
37654         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
37655         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
37656         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
37658 2015-01-17  Jeff Law  <law@redhat.com>
37660         PR rtl-optimization/32790
37661         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
37662         not ZERO_EXTEND in SET_DESTs.
37664 2015-01-17  Alan Modra  <amodra@gmail.com>
37666         * cprop.c (do_local_cprop): Revert last change.
37668 2015-01-16  DJ Delorie  <dj@redhat.com>
37669             Nick Clifton  <nickc@redhat.com>
37671         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
37672         (addhi3_real): Likewise.  Fix [HL+0] syntax.
37673         (subqi3_real): Likewise.
37674         (subhi3_real): Likewise.
37675         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
37676         (cbranchhi4_real): Likewise.
37677         (cbranchhi4_real_inverted): Likewise.
37678         (cbranchsi4_real_lt): Likewise.
37679         (cbranchsi4_real_ge): Likewise.
37680         (cbranchsi4_real_ge): Likewise.
37681         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
37682         (sub<mode>3_virt): Likewise.
37683         (cbranchqi4_virt): Likewise.
37684         (cbranchhi4_virt): Likewise.
37685         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
37686         always use '[reg+imm]' even when imm is zero.
37687         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
37688         (rl78_general_operand): New.
37689         (rl78_nonimmediate_operand): New.
37690         (rl78_nonfar_operand): Use them.
37691         (rl78_nonfar_nonimm_operand): Likewise.
37692         (rl78_stack_based_mem): Fix.
37693         * config/rl78/constraints.md (Ibqi): New.
37694         (IBqi): New.
37695         (Wsa): New.
37696         (Wsf): New.
37697         (Cs1): Fix.
37698         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
37699         (iorqi3): Likewise.
37700         (xorqi3): Likewise.
37701         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
37703         * config/rl78/constrains (Qs8): New constraint.
37704         * config/rl78/rl78.c (rl78_flags_already_set): New function.
37705         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
37706         * config/rl78/rl78-real.md (update_Z): New attribute.
37707         Update patterns to set it.
37708         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
37709         shorter compare and branch sequence can be used.
37710         (cbranchhi4_real): Likewise.
37711         (cbranchhi4_real_inverted): Likewise.
37713         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
37714         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
37715         address space.
37716         * config/rl78/rl78.c (rl78_get_name_encoding): New.
37717         (rl78_option_override): Allow -mes0 only if C.
37718         (characterize_address): Support subregs of symbol_refs.
37719         (rl78_addr_space_address_mode): Move.  Add __near.
37720         (rl78_far_p): Likewise.
37721         (rl78_addr_space_pointer_mode): Likewise.
37722         (rl78_as_legitimate_address): Likewise.
37723         (rl78_addr_space_subset_p): Likewise.
37724         (rl78_addr_space_convert): Likewise.
37725         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
37726         symbols with -mes0.
37727         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
37728         addressing.
37729         (rl78_alloc_physical_registers_op1): Change logic to prefer
37730         symbol[BC] addressing.
37731         (frodata_section): New.
37732         (rl78_asm_init_sections): Initialize it.
37733         (rl78_select_section): Put __far readonly symbols in .frodata.
37734         (rl78_make_type_far): New.
37735         (rl78_insert_attributes): Force all readonly symbols to be
37736         __far when -mes0.
37737         (rl78_asm_out_integer): New.
37738         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
37739         * config/rl78/rl78.opt (-mes0): New.
37741         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
37742         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
37743         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
37744         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
37745         (rl78_saddr_p): New.
37746         (rl78_output_aligned_common): New.
37747         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
37748         (rl78_handle_saddr_attribute): New.
37749         (rl78_handle_naked_attribute): New.
37750         (rl78_attribute_table): Add saddr.
37751         (rl78_print_operand_1): Don't print '!' on saddr operands.
37752         (rl78_print_operand_1): Strip encodings.
37753         (rl78_sfr_p): New.
37754         (rl78_strip_name_encoding): New.
37755         (rl78_attrlist_to_encoding): New.
37756         (rl78_encode_section_info): New.
37757         (rl78_asm_init_sections): New.
37758         (rl78_select_section): New.
37759         (rl78_output_labelref): New.
37760         (rl78_output_aligned_common): New.
37761         (rl78_asm_out_integer): New.
37762         (rl78_asm_ctor_dtor): New.
37763         (rl78_asm_constructor): New.
37764         (rl78_asm_destructor): New.
37766         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
37767         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
37768         (transcode_memory_rtx): Update.
37769         (rl78_expand_epilogue): Use A_REG instead of 0.
37771 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37773         * config/arm/arm-protos.h (struct tune_params): New field
37774         sched_autopref_queue_depth.
37775         * config/arm/arm.c (sched-int.h): Include header.
37776         (arm_first_cycle_multipass_dfa_lookahead_guard,)
37777         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
37778         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
37779         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
37780         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
37781         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
37782         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
37783         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
37784         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
37785         * config/arm/t-arm (arm.o): Update.
37786         * haifa-sched.c (update_insn_after_change): Update.
37787         (rank_for_schedule): Use auto-prefetcher model, if requested.
37788         (autopref_multipass_init): New static function.
37789         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
37790         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
37791         variable for debug dumps.
37792         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
37793         (autopref_multipass_dfa_lookahead_guard): New global function that
37794         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
37795         (init_h_i_d): Update.
37796         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
37797         * sched-int.h (enum autopref_multipass_data_status): New const enum.
37798         (autopref_multipass_data_): Structure for auto-prefetcher data.
37799         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
37800         (struct _haifa_insn_data:autopref_multipass_data): New field.
37801         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
37802         (autopref_multipass_dfa_lookahead_guard): Declare.
37804 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37806         * rtlanal.c (get_base_term): Handle SCRATCH.
37808 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37810         * config/aarch64/aarch64.c
37811         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
37812         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37813         * config/arm/arm.c
37814         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
37815         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
37817 2015-01-17  Alan Modra  <amodra@gmail.com>
37819         * cprop.c (do_local_cprop): Disallow replacement of fixed
37820         hard registers.
37822 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37824         PR target/62066
37825         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
37826         early return 0.
37828 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37830         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
37831         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
37833 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37835         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
37836         * config/arm/thumb1.md: ... Here.
37838 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37840         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
37841         TImode for TARGET_32BIT.
37843 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37845         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
37846         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
37847         as ...
37848         (rs6000_abi_word_mode): New function.
37850 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37852         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
37853         instead of UNITS_PER_WORD to describe the size of stack slots.
37855 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37857         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
37858         as rs6000_promote_function_mode.  Move comment to there.
37859         (rs6000_promote_function_mode): New function.
37861 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
37863         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
37864         -mpowerpc64 is active.
37866 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
37868         PR middle-end/64353
37869         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
37870         virtuals on start.
37872 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
37874         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
37875         introduced in revision 219724.
37877 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37878             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37880         PR target/64263
37881         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
37882         destination is not a GP reg.
37883         (*movdi_aarch64): Likewise.
37885 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
37887         PR target/64623
37888         * config/rs6000/default64.h: Revert ISA change.
37890 2015-01-16  Richard Biener  <rguenther@suse.de>
37892         PR middle-end/64614
37893         * tree-ssa-uninit.c: Include tree-cfg.h.
37894         (MAX_SWITCH_CASES): New define.
37895         (convert_control_dep_chain_into_preds): Handle switch statements.
37896         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
37897         (normalize_one_pred_1): Do not split bit-manipulations.
37898         Record (x & CST).
37900 2015-01-16  Richard Biener  <rguenther@suse.de>
37902         PR tree-optimization/64568
37903         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
37904         complex load rewriting for TARGET_MEM_REFs.
37906 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
37908         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
37910 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
37912         PR target/64149
37913         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
37914         variable.
37915         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
37916         (aarch64_lra_p): Remove.
37918 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
37920         PR target/64363
37921         * ipa-chkp.h (chkp_instrumentable_p): New.
37922         * ipa-chkp.c: Include tree-inline.h.
37923         (chkp_instrumentable_p): New.
37924         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
37925         Fix processing of not instrumentable functions.
37926         (chkp_versioning): Use chkp_instrumentable_p. Warn about
37927         not instrumentable functions.
37928         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
37929         chkp_instrumentable_p.
37930         * tree-inline.h (copy_forbidden): New.
37931         * tree-inline.c (copy_forbidden): Not static anymore.
37933 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37935         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
37936         ptr1, ptr2 unused.
37938 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
37940         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
37941         type OP_OUT to OP_INOUT.
37943 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
37945         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
37946         (high x) y) to y if x and y have the same base.
37948 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
37950         * config/arm/cortex-a57.md: New.
37951         * config/aarch64/aarch64.md: Include it.
37952         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
37953         * config/aarch64/aarch64-tune.md: Regenerate.
37955 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
37957         PR target/64015
37958         * ccmp.c (expand_ccmp_next): New function.
37959         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
37960         and compare insn sequence.
37961         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
37962         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
37963         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
37964         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
37965         (*ccmp_ior): Changed to ccmp_ior<mode>.
37966         (cmp<mode>): New pattern.
37967         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
37968         parameters.
37969         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
37971 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
37973         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
37974         _mm256_bsrli_epi128): New.
37975         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
37977 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
37979         * expmed.c (store_bit_field_using_insv): Improve warning message.
37980         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
37982 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
37984         PR rtl-optimization/64011
37985         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
37986         there is partial overflow.
37988 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
37990         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
37991         prototype.
37992         (nds32_expand_epilogue_v3pop): Likewise.
37993         * config/nds32/nds32.md (sibcall): Define this for sibling call
37994         optimization.
37995         (sibcall_register): Likewise.
37996         (sibcall_immediate): Likewise.
37997         (sibcall_value): Likewise.
37998         (sibcall_value_register): Likewise.
37999         (sibcall_value_immediate): Likewise.
38000         (sibcall_epilogue): Likewise.
38001         (epilogue): Pass false to indicate this is not a sibcall epilogue.
38002         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38003         (nds32_expand_epilogue_v3pop): Likewise.
38005 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38007         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38008         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38009         (return_internal): New.
38010         (return): Define this named pattern.
38011         (simple_return): Define this named pattern.
38012         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38013         pattern instead of unspec_volatile_func_return.
38014         (nds32_expand_epilogue_v3pop): Likewise.
38015         (nds32_can_use_return_insn): New function.
38017 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38019         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38020         * config/nds32/nds32.md (pop25return): New.
38021         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38022         pop25return pattern.
38024 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38026         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38027         -mforbid-fp-as-gp, and -mex9 options.
38029 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38031         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38032         remove -mgp-direct option.
38034 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38036         * doc/invoke.texi (--param early-inlining-insns): Update default value.
38037         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38039 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38041         * ipa-inline.c (inline_small_functions): Work around hints
38042         cache issue.
38044 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
38046         PR target/59710
38047         * doc/invoke.texi (Option Summary): Document new Nios II
38048         -mgpopt= syntax.
38049         (Nios II Options): Likewise.
38050         * config/nios2/nios2.opt: Add -mgpopt= option support.
38051         Modify existing -mgpopt and -mno-gpopt options to be aliases.
38052         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38053         * config/nios2/nios2.c (nios2_option_override): Adjust
38054         -mgpopt defaulting.
38055         (nios2_in_small_data_p): Return true for explicit small data
38056         sections even with -G0.
38057         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38058         option choices.
38060 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38062         PR ipa/64612
38063         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38064         of comdat locals.
38065         (inline_call): Fix removal of aliases.
38067 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
38069         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38070         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38071         * opts.c (common_handle_option): Add -fsanitize=vptr.
38072         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38073         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38074         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38075         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38076         (ubsan_expand_vptr_ifn): New prototype.
38077         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38078         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38079         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38080         expand_LOOP_VECTORIZED): Make argument nameless, remove
38081         ATTRIBUTE_UNUSED.
38082         (expand_UBSAN_VPTR): New function.
38083         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38084         in fn spec.
38085         (UBSAN_VPTR): New internal function.
38086         * sanopt.c (tree_map_traits): Renamed to ...
38087         (sanopt_tree_map_traits): ... this.
38088         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38089         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38090         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
38091         (maybe_optimize_ubsan_vptr_ifn): New function.
38092         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38093         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
38094         -fsanitize=vptr.
38095         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38096         internal calls like pure functions for aliasing, even when they
38097         have other side-effects that prevent making them ECF_PURE.
38098         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38099         (ubsan_expand_vptr_ifn): New function.
38101 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38103         PR rtl-optimization/64110
38104         * stmt.c (parse_output_constraint): Process '^' and '$'.
38105         (parse_input_constraint): Ditto.
38106         * lra-constraints.c (process_alt_operands): Process the new
38107         constraints.
38108         * ira-costs.c (record_reg_classes): Process the new constraint
38109         '^'.
38110         * genoutput.c (indep_constraints): Add '^' and '$'.
38111         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38112         * doc/md.texi: Add description of the new constraints.
38114 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
38115             Bernd Schmidt  <bernds@codesourcery.com>
38116             Cesar Philippidis  <cesar@codesourcery.com>
38117             James Norris  <jnorris@codesourcery.com>
38118             Tom de Vries  <tom@codesourcery.com>
38119             Ilmir Usmanov  <i.usmanov@samsung.com>
38120             Dmitry Bocharnikov  <dmitry.b@samsung.com>
38121             Evgeny Gavrin  <e.gavrin@samsung.com>
38122             Jakub Jelinek  <jakub@redhat.com>
38124         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38125         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38126         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38127         New function types.
38128         * builtins.c: Include "gomp-constants.h".
38129         (expand_builtin_acc_on_device): New function.
38130         (expand_builtin, is_inexpensive_builtin): Handle
38131         BUILT_IN_ACC_ON_DEVICE.
38132         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38133         New macros.
38134         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38135         flag_openmp.
38136         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38137         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38138         i386/intelmic-offload.h.
38139         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38140         to libgomp and its dependencies.
38141         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38142         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38143         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38144         * config/ia64/hpux.h (LIB_SPEC): Likewise.
38145         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38146         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38147         * doc/generic.texi: Update for OpenACC changes.
38148         * doc/gimple.texi: Likewise.
38149         * doc/invoke.texi: Likewise.
38150         * doc/sourcebuild.texi: Likewise.
38151         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38152         GF_OMP_FOR_KIND_OACC_LOOP.
38153         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38154         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38155         GF_OMP_TARGET_KIND_OACC_UPDATE,
38156         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38157         Dump more data.
38158         * gimple.c: Update comments for OpenACC changes.
38159         * gimple.def: Likewise.
38160         * gimple.h: Likewise.
38161         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38162         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38163         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38164         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38165         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38166         appropriate place.
38167         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38168         * gimplify.c: Include "gomp-constants.h".
38169         Update comments for OpenACC changes.
38170         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38171         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38172         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38173         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38174         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38175         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38176         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38177         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38178         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38179         OMP_CLAUSE_SEQ.
38180         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38181         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38182         OMP_CLAUSE_SET_MAP_KIND.
38183         (gimplify_oacc_cache): New function.
38184         (gimplify_omp_for): Handle OACC_LOOP.
38185         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38186         OACC_DATA.
38187         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38188         OACC_EXIT_DATA, OACC_UPDATE.
38189         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38190         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38191         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38192         (gimplify_body): Consider flag_openacc next to flag_openmp.
38193         * lto-streamer-out.c: Include "gomp-constants.h".
38194         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38195         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38196         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38197         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38198         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38199         (BUILT_IN_ACC_ON_DEVICE): New builtins.
38200         * omp-low.c: Include "gomp-constants.h".
38201         Update comments for OpenACC changes.
38202         (struct omp_context): Add reduction_map, gwv_below, gwv_this
38203         members.
38204         (extract_omp_for_data, use_pointer_for_field, install_var_field)
38205         (new_omp_context, delete_omp_context, scan_sharing_clauses)
38206         (create_omp_child_function, scan_omp_for, scan_omp_target)
38207         (check_omp_nesting_restrictions, lower_reduction_clauses)
38208         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38209         Update for OpenACC changes.
38210         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38211         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38212         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38213         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38214         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38215         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
38216         OMP_CLAUSE_MAP_*.
38217         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38218         Handle GF_OMP_FOR_KIND_OACC_LOOP.
38219         (expand_omp_target, lower_omp_target): Handle
38220         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38221         GF_OMP_TARGET_KIND_OACC_UPDATE,
38222         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38223         GF_OMP_TARGET_KIND_OACC_DATA.
38224         (pass_expand_omp::execute, execute_lower_omp)
38225         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38226         flag_openmp.
38227         (offload_symbol_decl): New variable.
38228         (oacc_get_reduction_array_id, oacc_max_threads)
38229         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38230         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38231         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38232         (oacc_gimple_assign, oacc_initialize_reduction_data)
38233         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38234         functions.
38235         (is_targetreg_ctx): Remove function.
38236         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38237         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38238         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38239         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38240         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38241         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38242         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38243         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38244         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38245         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38246         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38247         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38248         * tree-core.h: Update comments for OpenACC changes.
38249         (enum omp_clause_map_kind): Remove.
38250         (struct tree_omp_clause): Change type of map_kind member from enum
38251         omp_clause_map_kind to unsigned char.
38252         * tree-inline.c: Update comments for OpenACC changes.
38253         * tree-nested.c: Likewise.  Include "gomp-constants.h".
38254         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38255         (convert_tramp_reference_stmt, convert_gimple_call): Update for
38256         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38257         OMP_CLAUSE_SET_MAP_KIND.
38258         * tree-pretty-print.c: Include "gomp-constants.h".
38259         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38260         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38261         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38262         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38263         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38264         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
38265         instead of OMP_CLAUSE_MAP_*.
38266         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38267         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38268         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38269         * tree-streamer-in.c: Include "gomp-constants.h".
38270         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38271         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
38272         * tree-streamer-out.c: Include "gomp-constants.h".
38273         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38274         OMP_CLAUSE_MAP_*.
38275         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38276         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38277         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38278         * tree.c (omp_clause_num_ops): Update accordingly.
38279         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38280         Likewise.
38281         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38282         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38283         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38284         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38285         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38286         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38287         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38288         (OMP_CLAUSE_SET_MAP_KIND): New macro.
38289         * varpool.c (varpool_node::get_create): Consider flag_openacc next
38290         to flag_openmp.
38291         * config/i386/intelmic-offload.h: New file.
38292         * config/nvptx/offload.h: Likewise.
38294 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38296         * explow.h: Remove duplicate contents.
38297         * dojump.h: Likewise.
38299 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
38301         * arm.c (arm_xgene_tune): Add default initializer for instruction
38302         fusion.
38304 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38306         PR ipa/64068
38307         PR ipa/64559
38308         * ipa.c (symbol_table::remove_unreachable_nodes):
38309         Do not put abstract origins into boundary.
38311 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
38313         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38314         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38316 2015-01-15  Steve Ellcey  <sellcey@mips.com>
38318         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38319         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38320         builtins.def, and chkp-builtins.def.
38322 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
38324         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38325         ISA 2.7 (POWER8).
38327 2015-01-15  Richard Biener  <rguenther@suse.de>
38329         PR tree-optimization/61743
38330         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38331         information on PHIs for some simple cases.
38333 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38335         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38336         Include xgene1.md.
38337         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38338         * config/arm/arm-cores.def (xgene1): New entry.
38339         * config/arm/arm-tables.opt: Regenerate.
38340         * config/arm/arm-tune.md: Regenerate.
38341         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38343 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
38345         * tree-if-conv.c: Include hash-map.h.
38346         (aggressive_if_conv): New variable.
38347         (fold_build_cond_expr): Add simplification of non-zero condition.
38348         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38349         destination block is not always executed.
38350         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38351         than two predecessors if AGGRESSIVE_IF_CONV is true.
38352         (if_convertible_stmt_p): Fix commentary.
38353         (all_preds_critical_p): New function.
38354         (has_pred_critical_p): New function.
38355         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38356         BB can have more than two predecessors and all incoming edges can be
38357         critical.
38358         (predicate_bbs): Skip predication for loop exit block, use build2_loc
38359         to compute predicate for true edge.
38360         (find_phi_replacement_condition): Delete this function.
38361         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38362         Allow interchange PHI arguments if EXTENDED is false.
38363         Change check that block containing reduction statement candidate
38364         is predecessor of phi-block since phi may have more than two arguments.
38365         (phi_args_hash_traits): New helper structure.
38366         (struct phi_args_hash_traits): New type.
38367         (phi_args_hash_traits::hash): New function.
38368         (phi_args_hash_traits::equal_keys): New function.
38369         (gen_phi_arg_condition): New function.
38370         (predicate_scalar_phi): Add handling of phi nodes with more than two
38371         arguments, delete COND and TRUE_BB arguments, insert body of
38372         find_phi_replacement_condition to predicate ordinary phi nodes.
38373         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38374         delete call of find_phi_replacement_condition and invoke
38375         predicate_scalar_phi with two arguments.
38376         (insert_gimplified_predicates): Add assert that non-predicated block
38377         don't have statements to insert.
38378         (ifcvt_split_critical_edges): New function.
38379         (ifcvt_split_def_stmt): Likewise.
38380         (ifcvt_walk_pattern_tree): Likewise.
38381         (stmt_is_root_of_bool_pattern): Likewise.
38382         (ifcvt_repair_bool_pattern): Likewise.
38383         (ifcvt_local_dce): Likewise.
38384         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38385         is copy of inner or outer loop force_vectorize field, invoke
38386         ifcvt_split_critical_edges, ifcvt_local_dce and
38387         ifcvt_repair_bool_pattern for aggressive if-conversion.
38389 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
38391         * config/aarch64/aarch64.md: Include xgene1.md.
38392         * config/aarch64/xgene1.md: New file.
38394 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38396         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38397         xgene1 (APM XGene-1) core definition.
38398         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38399         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38400         * doc/invoke.texi: Document -mcpu=xgene1.
38402 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38404         * dojump.h: New header file.
38405         * explow.h: Likewise.
38406         * expr.h: Remove includes.
38407         Move expmed.c prototypes to expmed.h.
38408         Move dojump.c prototypes to dojump.h.
38409         Move alias.c prototypes to alias.h.
38410         Move explow.c prototypes to explow.h.
38411         Move calls.c prototypes to calls.h.
38412         Move emit-rtl.c prototypes to emit-rtl.h.
38413         Move varasm.c prototypes to varasm.h.
38414         Move stmt.c prototypes to stmt.h.
38415         (saved_pending_stack_adjust): Move to dojump.h.
38416         (adjust_address): Move to explow.h.
38417         (adjust_address_nv): Move to emit-rtl.h.
38418         (adjust_bitfield_address): Likewise.
38419         (adjust_bitfield_address_size): Likewise.
38420         (adjust_bitfield_address_nv): Likewise.
38421         (adjust_automodify_address_nv): Likewise.
38422         * explow.c (expr_size): Move to expr.c.
38423         (int_expr_size): Likewise.
38424         (tree_expr_size): Likewise.
38425         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38426         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38427         * genemit.c (main): Generate includes statistics.h, real.h,
38428         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38429         stmt.h.
38430         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38431         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38432         explow.h, emit-rtl.h, stmt.h.
38433         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38434         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38435         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38436         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38437         emit-rtl.h, varasm.h, stmt.h.
38438         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38439         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38440         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38441         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
38442         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38443         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
38444         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
38445         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
38446         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
38447         tm.h tree.h varasm.h vec.h wide-int.h.
38448         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38449         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38450         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
38451         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
38452         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
38453         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
38454         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
38455         * loop-iv.c: Likewise.
38456         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
38457         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
38458         statistics.h stmt.h tree.h varasm.h wide-int.h.
38459         * lra-constraints.c: Likewise.
38460         * lra-eliminations.c: Likewise.
38461         * lra-lives.c: Likewise.
38462         * lra-remat.c: Likewise.
38463         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38464         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
38465         statistics.h stmt.h tree.h varasm.h wide-int.h.
38466         * hw-doloop.c: Likewise.
38467         * ira-color.c: Likewise.
38468         * ira-emit.c: Likewise.
38469         * loop-doloop.c: Likewise.
38470         * loop-invariant.c: Likewise.
38471         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38472         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
38473         statistics.h stmt.h tree.h varasm.h wide-int.h.
38474         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
38475         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
38476         statistics.h stmt.h tree.h varasm.h wide-int.h.
38477         * combine-stack-adj.c: Likewise.
38478         * cse.c: Likewise.
38479         * ddg.c: Likewise.
38480         * ifcvt.c: Likewise.
38481         * ira-costs.c: Likewise.
38482         * jump.c: Likewise.
38483         * lra-coalesce.c: Likewise.
38484         * lra-spills.c: Likewise.
38485         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38486         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
38487         stmt.h varasm.h wide-int.h.
38488         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
38489         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38490         varasm.h.
38491         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
38492         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
38493         statistics.h stmt.h varasm.h wide-int.h.
38494         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
38495         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
38496         varasm.h wide-int.h.
38497         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
38498         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38499         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
38500         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
38501         statistics.h stmt.h.
38502         * config/tilepro/tilepro.c: Likewise.
38503         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
38504         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
38505         * config/pdp11/pdp11.c: Likewise.
38506         * config/xtensa/xtensa.c: Likewise.
38507         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
38508         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
38509         varasm.h.
38510         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38511         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38512         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
38513         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38514         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
38515         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
38516         * rtl-chkp.c: Likewise.
38517         * tree-chkp-opt.c: Likewise.
38518         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
38519         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
38520         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
38521         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38522         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38523         statistics.h stmt.h.
38524         * tree-vect-data-refs.c: Likewise.
38525         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
38526         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38527         rtl.h statistics.h stmt.h varasm.h.
38528         * internal-fn.c: Likewise.
38529         * ipa-icf-gimple.c: Likewise.
38530         * lto-section-out.c: Likewise.
38531         * tree-data-ref.c: Likewise.
38532         * tree-nested.c: Likewise.
38533         * tree-outof-ssa.c: Likewise.
38534         * tree-predcom.c: Likewise.
38535         * tree-pretty-print.c: Likewise.
38536         * tree-scalar-evolution.c: Likewise.
38537         * tree-ssa-strlen.c: Likewise.
38538         * tree-vect-loop.c: Likewise.
38539         * tree-vect-patterns.c: Likewise.
38540         * tree-vect-slp.c: Likewise.
38541         * tree-vect-stmts.c: Likewise.
38542         * tsan.c: Likewise.
38543         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38544         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
38545         stmt.h.
38546         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
38547         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38548         statistics.h stmt.h varasm.h.
38549         * loop-unroll.c: Likewise.
38550         * ubsan.c: Likewise.
38551         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
38552         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
38553         stmt.h varasm.h.
38554         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38555         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
38556         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
38557         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38558         statistics.h stmt.h.
38559         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
38560         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
38561         statistics.h stmt.h varasm.h.
38562         * gimple-match-head.c: Likewise.
38563         * lto-cgraph.c: Likewise.
38564         * lto-section-in.c: Likewise.
38565         * lto-streamer-in.c: Likewise.
38566         * lto-streamer-out.c: Likewise.
38567         * tree-affine.c: Likewise.
38568         * tree-cfg.c: Likewise.
38569         * tree-cfgcleanup.c: Likewise.
38570         * tree-if-conv.c: Likewise.
38571         * tree-into-ssa.c: Likewise.
38572         * tree-ssa-alias.c: Likewise.
38573         * tree-ssa-copyrename.c: Likewise.
38574         * tree-ssa-dse.c: Likewise.
38575         * tree-ssa-forwprop.c: Likewise.
38576         * tree-ssa-live.c: Likewise.
38577         * tree-ssa-math-opts.c: Likewise.
38578         * tree-ssa-pre.c: Likewise.
38579         * tree-ssa-sccvn.c: Likewise.
38580         * tree-tailcall.c: Likewise.
38581         * tree-vect-generic.c: Likewise.
38582         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38583         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
38584         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38585         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
38586         * varasm.c: Likewise.
38587         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38588         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
38589         varasm.h.
38590         * init-regs.c: Likewise.
38591         * ira.c: Likewise.
38592         * omp-low.c: Likewise.
38593         * stack-ptr-mod.c: Likewise.
38594         * tree-ssa-reassoc.c: Likewise.
38595         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38596         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
38597         varasm.h.
38598         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38599         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
38600         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38601         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
38602         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38603         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
38604         * tree-ssa-phiopt.c: Likewise.
38605         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38606         fixed-value.h hashtab.h real.h statistics.h stmt.h.
38607         * config/fr30/fr30.c: Likewise.
38608         * config/frv/frv.c: Likewise.
38609         * expr.c: Likewise.
38610         * final.c: Likewise.
38611         * optabs.c: Likewise.
38612         * passes.c: Likewise.
38613         * simplify-rtx.c: Likewise.
38614         * stmt.c: Likewise.
38615         * toplev.c: Likewise.
38616         * var-tracking.c: Likewise.
38617         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38618         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38619         * lower-subreg.c: Likewise.
38620         * postreload-gcse.c: Likewise.
38621         * ree.c: Likewise.
38622         * reginfo.c: Likewise.
38623         * store-motion.c: Likewise.
38624         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38625         fixed-value.h hashtab.h real.h stmt.h varasm.h.
38626         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38627         fixed-value.h hashtab.h statistics.h stmt.h.
38628         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38629         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38630         * except.c: Likewise.
38631         * explow.c: Likewise.
38632         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38633         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
38634         varasm.h.
38635         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38636         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
38637         * tree-ssa-structalias.c: Likewise.
38638         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38639         fixed-value.h insn-config.h real.h statistics.h.
38640         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38641         fixed-value.h insn-config.h real.h statistics.h stmt.h.
38642         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38643         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38644         * cfgbuild.c: Likewise.
38645         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38646         fixed-value.h real.h rtl.h statistics.h stmt.h.
38647         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38648         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38649         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38650         fixed-value.h real.h statistics.h stmt.h.
38651         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38652         fixed-value.h real.h statistics.h stmt.h varasm.h.
38653         * cprop.c: Likewise.
38654         * modulo-sched.c: Likewise.
38655         * postreload.c: Likewise.
38656         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38657         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
38658         statistics.h stmt.h varasm.h.
38659         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
38660         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38661         rtl.h statistics.h stmt.h varasm.h.
38662         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
38663         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
38664         varasm.h.
38665         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
38666         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
38667         varasm.h.
38668         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
38669         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
38670         varasm.h.
38671         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
38672         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38673         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38674         function.h real.h statistics.h stmt.h varasm.h.
38675         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38676         insn-config.h real.h statistics.h stmt.h.
38677         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
38678         statistics.h stmt.h.
38679         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
38680         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
38681         statistics.h stmt.h varasm.h.
38682         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
38683         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
38684         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38685         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
38686         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
38687         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
38688         statistics.h stmt.h varasm.h.
38689         * ipa-polymorphic-call.c: Likewise.
38690         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
38691         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38692         statistics.h stmt.h.
38693         * config/c6x/c6x.c: Likewise.
38694         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
38695         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
38696         statistics.h stmt.h varasm.h.
38697         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
38698         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
38699         stmt.h varasm.h.
38700         * ipa-split.c: Likewise.
38701         * tree-eh.c: Likewise.
38702         * tree-ssa-dce.c: Likewise.
38703         * tree-ssa-loop-niter.c: Likewise.
38704         * tree-vrp.c: Likewise.
38705         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
38706         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
38707         stmt.h.
38708         * config/nds32/nds32-fp-as-gp.c: Likewise.
38709         * config/nds32/nds32-intrinsic.c: Likewise.
38710         * config/nds32/nds32-isr.c: Likewise.
38711         * config/nds32/nds32-md-auxiliary.c: Likewise.
38712         * config/nds32/nds32-memory-manipulation.c: Likewise.
38713         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
38714         * config/nds32/nds32-predicates.c: Likewise.
38715         * config/nds32/nds32.c: Likewise.
38716         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
38717         fixed-value.h hashtab.h real.h statistics.h.
38718         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
38719         fixed-value.h hashtab.h real.h statistics.h stmt.h.
38720         * config/arm/arm.c: Likewise.
38721         * config/avr/avr.c: Likewise.
38722         * config/bfin/bfin.c: Likewise.
38723         * config/h8300/h8300.c: Likewise.
38724         * config/i386/i386.c: Likewise.
38725         * config/ia64/ia64.c: Likewise.
38726         * config/iq2000/iq2000.c: Likewise.
38727         * config/m32c/m32c.c: Likewise.
38728         * config/m32r/m32r.c: Likewise.
38729         * config/m68k/m68k.c: Likewise.
38730         * config/mcore/mcore.c: Likewise.
38731         * config/mep/mep.c: Likewise.
38732         * config/mips/mips.c: Likewise.
38733         * config/mn10300/mn10300.c: Likewise.
38734         * config/moxie/moxie.c: Likewise.
38735         * config/pa/pa.c: Likewise.
38736         * config/rl78/rl78.c: Likewise.
38737         * config/rx/rx.c: Likewise.
38738         * config/s390/s390.c: Likewise.
38739         * config/sh/sh.c: Likewise.
38740         * config/sparc/sparc.c: Likewise.
38741         * config/spu/spu.c: Likewise.
38742         * config/stormy16/stormy16.c: Likewise.
38743         * config/v850/v850.c: Likewise.
38744         * config/vax/vax.c: Likewise.
38745         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
38746         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
38747         * config/msp430/msp430.c: Likewise.
38748         * predict.c: Likewise.
38749         * value-prof.c: Likewise.
38750         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
38751         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
38752         * config/microblaze/microblaze.c: Likewise.
38753         * config/nios2/nios2.c: Likewise.
38754         * config/rs6000/rs6000.c: Likewise.
38755         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38756         insn-config.h real.h rtl.h statistics.h stmt.h.
38757         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
38758         insn-config.h real.h statistics.h stmt.h.
38759         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
38760         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
38761         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
38762         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
38763         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
38764         fixed-value.h real.h statistics.h stmt.h.
38765         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
38766         fixed-value.h statistics.h stmt.h.
38767         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
38768         stmt.h.
38770 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
38772         * gengtype.c (create_user_defined_type): Workaround
38773         -Wmaybe-uninitialized false positives.
38774         * cse.c (fold_rtx): Likewise.
38775         * loop-invariant.c (gain_for_invariant): Likewise.
38777 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
38779         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
38780         set the memory attributes in all cases but clear MEM_EXPR if need be.
38782 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
38784         PR tree-optimization/64434
38785         * cfgexpand.c (reorder_operands): New function.
38786         (expand_gimple_basic_block): Insert call of reorder_operands if
38787         optimized is true.
38789 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
38791         * config/mips/micromips.md (*swp): Remove explicit parallel.
38792         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
38793         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
38794         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
38795         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
38796         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
38797         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
38798         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
38799         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
38800         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
38801         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
38802         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
38803         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
38804         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
38805         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
38806         (mips_wrdsp): Likewise.
38807         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
38808         parallel.
38809         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
38810         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
38811         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
38812         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
38813         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
38814         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
38815         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
38816         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
38817         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
38819 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
38821         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
38822         (mips_print_operand): Support 'y' to print exact log2 in decimal
38823         of a const_int.
38824         * config/mips/mips.h (ISA_HAS_LSA): New define.
38825         (ISA_HAS_DLSA): Likewise.
38826         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
38827         * config/mips/predicates.md (const_immlsa_operand): New predicate.
38829 2015-01-15  Martin Liska  <mliska@suse.cz>
38831         PR target/64377
38832         * optc-save-gen.awk: Add support for array types.
38834 2015-01-15  Richard Biener  <rguenther@suse.de>
38836         PR middle-end/64365
38837         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
38838         for MEM_REF access functions with the same base can never partially
38839         overlap.
38841 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
38843         * common.opt: New option -fstack-protector-explicit.
38844         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
38845         (stack_protect_decl_phase): Handle stack_protect attribute for
38846         explicit stack protection requests.
38847         (expand_used_vars): Similarly.
38848         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
38849         * doc/extend.texi: Add documentation for "stack_protect" attribute.
38850         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
38852 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
38854         PR target/53988
38855         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
38856         reg-reg copies.
38857         (sh_extending_set_of_reg): New struct.
38858         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
38859         sh_remove_reg_dead_or_unused_notes): New Declarations.
38860         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
38861         sh_find_extending_set_of_reg, sh_split_tst_subregs,
38862         sh_extending_set_of_reg::use_as_extended_reg): New functions.
38863         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
38864         convert to insn_and_split and use new function sh_split_tst_subregs.
38866 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
38868         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
38869         option.
38870         (Optimization Options): Move -fuse-ld documentation to...
38871         (Link Options): ...here.
38873 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
38875         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
38876         offsets.
38877         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
38878         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
38879         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
38880         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
38881         instead of ZR for the memory operand of LL/SC.
38882         (compare_and_swap_12, sync_add<mode>): Likewise.
38883         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
38884         (sync_new_<optab>_12, sync_nand_12): Likewise.
38885         (sync_old_nand_12, sync_new_nand_12): Likewise.
38886         (sync_sub<mode>, sync_old_add<mode>): Likewise.
38887         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
38888         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
38889         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
38890         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
38891         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
38892         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
38893         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
38894         * doc/md.texi (ZC): Update description.
38896 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
38898         * builtins.c (expand_builtin_atomic_exchange): Remove error when
38899         memory model is CONSUME.
38900         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
38901         expand_builtin_atomic_store): Change invalid memory model errors to
38902         warnings.
38903         (expand_builtin_atomic_clear): Change invalid model errors to warnings
38904         and issue warning for CONSUME.
38906 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
38908         * lto-cgraph: Update function comments for
38909         lto_symtab_encoder_encode_*.
38911 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
38913         * Makefile.in (site.exp): Do not set ENABLE_LTO.
38915 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
38917         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
38918         * lto-cgraph.c (select_what_to_stream): Remove argument, use
38919         lto_stream_offload_p instead.
38920         * lto-streamer.h (select_what_to_stream): Remove argument.
38921         * passes.c (ipa_write_summaries): Likewise.
38922         * tree-pass.h (ipa_write_summaries): Likewise.
38924 2015-01-14  Richard Biener  <rguenther@suse.de>
38926         PR tree-optimization/59354
38927         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
38928         groups larger than the slp group size as having gaps.
38930 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
38932         PR middle-end/59448
38933         * builtins.c (get_memmodel): Promote consume to acquire always.
38935 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
38937         PR target/64386
38938         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
38939         V32HImode.
38941 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
38943         PR target/64393
38944         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
38945         Enable AVX512BW.
38946         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
38947         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
38948         AVX512VBMI, as it implies AVX512BW.
38950 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
38952         PR target/64387
38953         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
38954         (vec_unpacks_hi_v16sf): Ditto.
38956 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38958         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
38959         is not available.
38961 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38963         * doc/invoke.texi (mapcs): Mention deprecation.
38964         (mapcs-frame): Likewise.
38966 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38968         PR target/64453
38969         * config/arm/arm.c (callee_saved_reg_p): Define.
38970         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
38971         register is callee saved instead of !call_used_regs[reg].
38972         (thumb1_compute_save_reg_mask): Likewise.
38974 2015-01-14  Hale Wang  <hale.wang@arm.com>
38976         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
38977         Cortex-M7.
38979 2015-01-14  Richard Biener  <rguenther@suse.de>
38981         PR lto/64415
38982         * tree-inline.c (insert_debug_decl_map): Check destination
38983         function MAY_HAVE_DEBUG_STMTS.
38984         (insert_init_debug_bind): Likewise.
38985         (insert_init_stmt): Remove redundant check.
38986         (remap_gimple_stmt): Drop debug stmts if the destination
38987         function has var-tracking assignments disabled.
38989 2015-01-14  Martin Liska  <mliska@suse.cz>
38991         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
38992         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
38994 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38996         PR target/64460
38997         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
38998         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39000 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39002         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39003         level from an ARCH; do not inject the default.
39004         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39005         MIPS_ISA_LEVEL_SPEC.
39006         (MIPS_ISA_NAN2008_SPEC): Update comment.
39007         (BASE_DRIVER_SELF_SPECS): Likewise.
39008         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39009         MIPS_DEFAULT_ISA_LEVEL_SPEC.
39010         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39011         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39012         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39014 2015-01-14  Richard Biener  <rguenther@suse.de>
39016         PR tree-optimization/64493
39017         PR tree-optimization/64495
39018         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39019         assign the proper vectorized PHI to the inner loop exit PHIs.
39021 2015-01-14  Joey Ye  <joey.ye@arm.com>
39023         * config/arm/arm.c (arm_compute_save_reg_mask):
39024         Do not save lr in case of tail call.
39025         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39027 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
39029         * tree-vrp.c (check_array_ref): Emit more warnings
39030         for warn_array_bounds >= 2.
39031         * common.opt: New option -Warray-bounds=.
39032         * doc/invoke.texi: Document -Warray-bounds=.
39034 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
39036         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39037         (mforbid-fp-as-gp): Remove.
39038         (mex9): Remove.
39039         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39040         (nds32_symbol_load_store_p): Remove.
39041         (nds32_fp_as_gp_check_available): Clean up implementation.
39042         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39043         cases.
39044         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39045         fp-as-gp and ex9 cases.
39047 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39049         * tree-profile.c (init_ic_make_global_vars): Drop workaround
39050         for bintuils bug 14342.
39051         (init_ic_make_global_vars): Likewise.
39052         (gimple_init_edge_profiler): Likewise.
39053         (gimple_gen_ic_func_profiler): Likewise.
39055 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39057         * ipa-inline.c (inline_small_functions): Swap the operands in
39058         enum.
39060 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39062         PR ipa/64481
39063         * ipa-inline-analysis.c (node_growth_cache): Remove.
39064         (initialize_growth_caches): Do not initialize it.
39065         (free_growth_caches): Do not free it.
39066         (do_estimate_growth): Rename to ...
39067         (estimate_growth): ... this one; drop growth cache code.
39068         (growth_likely_positive): Always go the heuristics way.
39069         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39070         (reset_edge_caches): Do not reset node growth.
39071         (heap_edge_removal_hook): Do not maintain cache.
39072         (inline_small_functions): Likewise; strenghten sanity check.
39073         (ipa_inline): Do not maintain caches.
39074         * ipa-inline.h (node_growth_cache): Remove.
39075         (do_estimate_growth): Remove to ...
39076         (estimate_growth): this one; remove inline version.
39077         (reset_node_growth_cache): Remove.
39079 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39081         PR ipa/64565
39082         * ipa-inline.c (inline_small_functions): Update callee keys after
39083         resolving speculation
39084         (inline_small_functions): Always check monotonicity of the queue.
39086 2015-01-13  Marek Polacek  <polacek@redhat.com>
39088         PR middle-end/64391
39089         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39091 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39093         PR rtl-optimization/64286
39094         * ree.c (combine_reaching_defs): Move part of comment earlier,
39095         remove !SCALAR_INT_MODE_P check.
39096         (add_removable_extension): Don't add vector mode
39097         extensions if all uses of the source register aren't the same
39098         vector extensions.
39100 2015-01-13  Renlin Li  <renlin.li@arm.com>
39102         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39103         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39105 2015-01-13  Martin Liska  <mliska@suse.cz>
39107         * ipa-icf.c (sem_function::equals_private): Call new functions
39108         cl_target_option_print_diff and cl_optimization_print_diff.
39109         * optc-save-gen.awk (cl_target_option_print_diff): New function.
39110         (cl_optimization_print_diff): Likewise.
39111         * opth-gen.awk: Likewise.
39113 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
39115         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39116         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39117         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39118         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39119         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39120         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39122 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39124         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39125         instead of src mode.
39127 2015-01-13  Richard Biener  <rguenther@suse.de>
39129         PR lto/64373
39130         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39131         DECL_CONTEXT.
39133 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39135         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39136         volatile mems.
39137         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39139 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39141         PR middle-end/63974
39142         * cfgexpand.c (expand_computed_goto): Don't call
39143         convert_memory_address here.
39145 2015-01-13  Richard Biener  <rguenther@suse.de>
39147         PR tree-optimization/64406
39148         * tree-loop-distibution.c (pass_loop_distribution::execute):
39149         Reset the SCEV hashtable if we distributed anything.
39151 2015-01-13  Richard Biener  <rguenther@suse.de>
39153         PR tree-optimization/64404
39154         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39155         SLP types for CSEd loads.
39157 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39159         PR tree-optimization/64436
39160         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39161         merge of two symbolic numbers for a bitwise OR to ...
39162         (perform_symbolic_merge): This. Also fix computation of the range and
39163         end of the symbolic number corresponding to the result of a bitwise OR.
39165 2015-01-13  Richard Biener  <rguenther@suse.de>
39167         PR tree-optimization/64568
39168         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39169         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39171 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39173         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39174         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39176 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39178         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39179         target-specific symbol_ref flag.
39180         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39181         resides in rodata section.
39182         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39183         (nds32_encode_section_info): New function.
39185 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39187         * config/nds32/nds32.md (call): Use pseudo instruction bal which
39188         clobbers TA_REGNUM if large code model is specified.
39189         (call_register): Likewise.
39190         (call_immediate): Likewise.
39191         (call_value): Likewise.
39192         (call_value_register): Likewise.
39193         (call_value_immediate): Likewise.
39195 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39197         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39198         (TARGET_CMODEL_MEDIUM): New macro.
39199         (TARGET_CMODEL_LARGE): New macro.
39200         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39201         code model setting in assembly code.
39203 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39205         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39206         Remove MASK_GP_DIRECT flag.
39207         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39208         one of the multilib default options.
39209         * config/nds32/nds32.opt (mgp-direct): Remove.
39210         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39211         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
39213 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39215         * config/nds32/nds32.opt (mcmodel): Add new option.
39216         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39217         to describe code model.
39219 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
39221         PR target/64479
39222         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39224 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
39226         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39227         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39228         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39229         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39230         __builtin_sh_set_fpscr.
39232 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39234         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39235         after a funtion name just to indicate it is a function.
39236         ([-fsanitize-undefined-trap-on-error]): Likewise.
39237         ([-fdbg-cnt=]): Likewise.
39238         ([-mmemcpy]): Likewise.
39239         ([-mflush-func]): Likewise.
39240         ([-msynci]): Likewise.
39242 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39244         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39245         example.
39247 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
39249         PR tree-optimization/64563
39250         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39251         instead of != VR_VARYING.
39253         PR target/64513
39254         * config/i386/i386.c (ix86_expand_prologue): Add
39255         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39257         PR tree-optimization/64454
39258         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39259         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39260         for signed or [0, op1 - 1] for unsigned modulo.
39261         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39262         even if op1 does not satisfy integer_pow2p.
39264         PR other/64370
39265         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39267 2015-01-12  Jeff Law  <law@redhat.com>
39269         PR target/64461
39270         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39271         (trunchiqi2, truncsihi2): Similarly.
39273         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39274         rather than calling F.
39276 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39278         * tsan.c (instrument_expr): Use force_gimple_operand.
39279         Use may_be_nonaddressable_p instead of is_gimple_addressable.
39281 2015-01-12  Richard Biener  <rguenther@suse.de>
39283         PR tree-optimization/64530
39284         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39285         back dr1.
39287 2015-01-12  Richard Biener  <rguenther@suse.de>
39289         PR middle-end/64357
39290         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39291         latches properly.
39293 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39295         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39296         Cortex-A17 tuning parameters.
39297         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39299 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39301         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39302         * config/arm/arm.c (arm_macro_fusion_p): New function.
39303         (arm_macro_fusion_pair_p): Likewise.
39304         (TARGET_SCHED_MACRO_FUSION_P): Define.
39305         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39306         (ARM_FUSE_NOTHING): Likewise.
39307         (ARM_FUSE_MOVW_MOVT): Likewise.
39308         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39309         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39310         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39311         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39312         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39313         arm_cortex_a5_tune): Specify fuseable_ops value.
39315 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
39317         PR bootstrap/64561
39318         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39319         test for PIE with copy reloc.
39320         * configure: Regenerated.
39322 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39324         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39325         in gen_rtx_REG.
39326         (arm_tls_descseq_addr): Likewise.
39327         (arm_gen_movmemqi): Likewise.
39328         (arm_expand_epilogue_apcs_frame): Likewise.
39329         (arm_expand_epilogue): Likewise.
39330         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
39331         in gen_rtx_REG.
39333 2015-01-12  Martin Liska  <mliska@suse.cz>
39335         PR ipa/64550
39336         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39337         volatility for correct operands.
39339 2015-01-12  Martin Liska  <mliska@suse.cz>
39341         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39342         indication that a function is not leaf.
39343         (sem_function::compare_polymorphic_p): Likewise.
39345 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39347         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39348         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39349         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39350         fold-const.h, tree-check.h.
39352 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
39354         PR ipa/63967
39355         PR ipa/64425
39356         * ipa-inline.c (compute_uninlined_call_time,
39357         compute_inlined_call_time): Use counts for extra precision when
39358         needed possible.
39359         (big_speedup_p): Fix formating.
39360         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39361         (relative_time_benefit): Remove.
39362         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39363         merge guessed and read profile paths.
39364         (inline_small_functions): Count only !optimize_size functions into
39365         initial size; be more lax about sanity check when profile is used;
39366         be sure to update inlined function profile when profile is read.
39368 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
39370         PR ipa/63470
39371         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39372         cost when edge becomes direct.
39373         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39374         is resolved or when introducing new speculation.
39376 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
39378         PR ipa/64551
39379         PR ipa/64552
39380         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39381         '||' to fix typo issue.
39383         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39384         accept and return NULL.
39386 2015-01-12  Martin Liska  <mliska@suse.cz>
39388         * cgraph.c (cgraph_edge::remove_callee): Move function to header
39389         file for being inlined.
39390         (cgraph_set_edge_callee): Delete.
39391         (cgraph_edge::redirect_callee): Move function to header file
39392         for being inlined.
39393         (cgraph_edge::make_direct): Use new function.
39394         (cgraph_edge::dump_edge_flags): New function created from
39395         static dump_edge_flags function.
39396         (cgraph_node::dump): Use new function.
39397         (cgraph_edge::verify_count_and_frequency): New function created
39398         from verify_edge_count_and_frequency.
39399         (cgraph_edge::verify_corresponds_to_fndecl): New function created
39400         from verify_edge_corresponds_to_fndecl.
39401         (verify_edge_corresponds_to_fndecl): Delete.
39402         (cgraph_node::verify_node): Use new function.
39403         * cgraph.h (cgraph_edge::set_callee): New function.
39404         (cgraph_edge::dump_edge_flags): Likewise.
39405         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39407 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
39409         * ipa-utils.c (estimate_function_body_sizes): Do not
39410         free node params when called late with early=true.
39412 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
39414         * doc/md.texi (Instruction Patterns): Rewrite text for
39415         clarity.
39416         (Example): Likewise.
39418 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
39420         * doc/invoke.texi (Option Summary): Break long lines.
39421         [(-fdiagnostics-color)]: Put long literal in @smallexample
39422         instead of inline.
39423         [(-fsanitize-recover)]: Likewise.
39424         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39425         [(-ffast-math)]: Likewise.
39426         [(--param max-inline-insns-recursive)]: Likewise.
39427         [(--param max-inline-recursive-depth)]: Likewise.
39428         [(-mno-text-section-literals)]: Likewise.
39430 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
39432         * doc/install.texi: Update for libgomp being renamed from "GNU
39433         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39434         Runtime Library".
39435         * doc/sourcebuild.texi: Likewise.
39437 2015-01-10  Anthony Green  <green@moxielogic.com>
39439         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39440         mul.x availability for moxiebox configuration.
39442 2015-01-09  Anthony Green  <green@moxielogic.com>
39444         * config/moxie/moxie.md: Tabify assembly output.
39446 2015-01-09  Anthony Green  <green@moxielogic.com>
39448         * config/moxie/moxie.md (CC_REG): Correct register definition.
39450 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
39452         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
39453         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
39454         of log files.
39456 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39458         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
39460 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
39461             Jakub Jelinek  <jakub@redhat.com>
39463         PR middle-end/64412
39464         * lto-streamer.h (lto_stream_offload_p): New declaration.
39465         * lto-streamer.c (lto_stream_offload_p): New variable.
39466         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
39467         at the same time as section_name_prefix.
39468         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
39469         if lto_stream_offload_p.
39470         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
39471         stream TREE_TARGET_OPTION if lto_stream_offload_p.
39472         (write_ts_function_decl_tree_pointers): Don't
39473         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
39474         * tree-streamer-in.c (unpack_value_fields): Don't stream
39475         TREE_TARGET_OPTION in if ACCEL_COMPILER.
39476         (lto_input_ts_function_decl_tree_pointers): Don't stream
39477         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
39478         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
39479         instead of section_name_prefix string comparisons.
39481 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
39483         PR rtl-optimization/64536
39484         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
39485         tablejumps.
39487 2015-01-09  Michael Collison  <michael.collison@linaro.org>
39489         PR tree-optimization/64322
39490         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
39491         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
39493 2015-01-09  Tom de Vries  <tom@codesourcery.com>
39495         PR rtl-optimization/64539
39496         * regcprop.c (kill_clobbered_values): Factor out of ...
39497         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
39498         instead of note_stores with kill_clobbered_value.
39500 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39502          * ginclude/unwind-arm-common.h: Revert previous commit.
39504 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
39506         * config.gcc (arm*-*-freebsd*): New configuration.
39507         * config/arm/freebsd.h: New file.
39508         * config.host: Add extra components for arm*-*-freebsd*.
39509         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
39510         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
39512 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39514         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
39515         for -mcpu=e6500.
39516         * config/rs6000/t-rtems: Add e6500 multilibs.
39518 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39520         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
39521         MPC8540.
39523 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39525         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
39526         MULTILIB_EXCEPTIONS.
39528 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39530         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
39531         MULTILIB_EXCEPTIONS.
39533 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
39535         * config/arm/t-rtems-eabi: Rename to...
39536         * config/arm/t-rtems: ...this.
39537         * config/arm/rtems-eabi.h: Rename to...
39538         * config/arm/rtems.h: ...this.
39539         * config.gcc (arm*-*-rtems*): Reflect changes above.
39541 2015-01-09  Richard Biener  <rguenther@suse.de>
39543         PR tree-optimization/64410
39544         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
39545         on the LHS.
39546         (execute_update_addresses_taken): Deal with that.
39547         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
39548         loads/stores for complex variables.
39550 2015-01-09  Martin Liska  <mliska@suse.cz>
39552         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
39553         name comparison.
39554         (func_checker::compare_memory_operand): New function.
39555         (func_checker::compare_operand): Split case to newly
39556         added functions.
39557         (func_checker::compare_cst_or_decl): New function.
39558         (func_checker::compare_gimple_call): Identify
39559         memory operands.
39560         (func_checker::compare_gimple_assign): Likewise.
39561         * ipa-icf-gimple.h: New function.
39563 2015-01-09  Martin Liska  <mliska@suse.cz>
39565         PR ipa/64503
39566         * sreal.c (sreal::dump): Change unsigned format to signed for
39567         m_exp value.
39568         (sreal::to_double): Replace exp2 with scalbln.
39570 2015-01-09  Martin Liska  <mliska@suse.cz>
39572         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
39573         * ipa-icf.c (sem_function::equals_private): Add support for target and
39574         (sem_item_optimizer::merge_classes): Remove redundant function
39575         optimization flags comparison.
39576         * tree.h (target_opts_for_fn): New function.
39578 2015-01-09  Tom de Vries  <tom@codesourcery.com>
39580         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
39582 2015-01-09  Kito Cheng  <kito@0xlab.org>
39584         PR rtl-optimization/64348
39585         * lra-constraints.c (split_reg): Fix caller-save store/restore
39586         instruction generation.
39588 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
39590         PR gcov-profile/61790
39591         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
39592         long long.  Fallback to int64_t if host doesn't have long long and
39593         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
39595 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
39597         PR tree-optimization/63989
39598         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
39599         from 1000 to 10000.
39600         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
39601         (get_stridx): If we don't have a record for certain SSA_NAME,
39602         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
39603         constant offset, call get_stridx_plus_constant.
39604         (get_stridx_plus_constant): New function.
39605         (zero_length_string): Don't use get_stridx here.
39607         PR target/55023
39608         PR middle-end/64388
39609         * dse.c (struct insn_info): Mention frame_read set also
39610         before reload for tail calls on some targets.
39611         (scan_insn): Revert 2014-12-22 change.  Set frame_read
39612         also before reload for tail calls if
39613         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
39614         instead of add_non_frame_wild_read for non-const/memset
39615         tail calls after reload.
39617 2015-01-08  Jason Merrill  <jason@redhat.com>
39619         * ubsan.c (do_ubsan_in_current_function): New.
39620         (pass_ubsan::gate): Use it.
39621         * ubsan.h: Declare it.
39622         * convert.c (convert_to_integer): Use it.
39624 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
39626         PR target/64338
39627         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
39628         compare_code when it is unconditionally overwritten afterwards.
39629         Use ix86_reverse_condition instead of reverse_condition.  Don't
39630         change code if *reverse_condition* returned UNKNOWN and don't
39631         swap ct/cf and negate diff in that case.
39633 2015-01-08  Mike Stump  <mikestump@comcast.net>
39635         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
39636         (pass_tsan_O0::gate): Likewise.
39637         * extend.texi (Function Attributes): Add no_sanitize_thread
39638         documentation.
39640 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
39642         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
39643         for registering builtins.
39644         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
39645         add -fopenmp to the argv_obstack used when invoking
39646         compile_for_target.
39648         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
39649         add "-m32" or "-m64" to argv_obstack.
39650         (generate_host_descr_file): Likewise, when invoking host_compiler.
39651         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
39652         ld.
39654 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
39656         * config/sh/sh-mem.cc: Use constant as second operand when emitting
39657         tstsi_t insns.
39659 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
39661         PR target/55212
39662         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
39663         constant load if constant operand fits into I08.
39665 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
39667         PR sanitizer/64336
39668         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
39669         and TREE_THIS_VOLATILE for MEM_REFs.
39670         (build5_stat): Fix up initialization of TREE_READONLY and
39671         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
39673 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
39675         PR target/64533
39676         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
39677         of r for the second alternative of the destination operand.
39679 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
39681         PR target/36557
39682         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
39684 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
39686         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
39687         keywords.
39688         ([-fivar-visibility], [-fvisibility]): Likewise.
39690 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
39692         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
39693         the file where @code, @command, etc is more appropriate.
39695 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
39697         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
39698         of -mrecip= documentation.
39700 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
39702         PR target/64505
39703         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
39704         correct reload handler if -m32 -mpowerpc64 is used.
39706 2015-01-06  Tom de Vries  <tom@codesourcery.com>
39708         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
39710 2015-01-08  Christian Bruel  <christian.bruel@st.com>
39712         PR target/64507
39713         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
39715 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39717         PR tree-optimization/63259
39718         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
39719         if optab exists for 16bit byteswap.
39721 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
39723         * opts.c (common_handle_option): Add support for
39724         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
39725         * doc/invoke.texi: Document -fno-sanitize=all,
39726         -f{,no-}sanitize-recover=all.  Document that
39727         -fsanitize=float-cast-overflow is not enabled
39728         by -fsanitize=undefined.  Fix up documentation
39729         of -f{,no-}sanitize-recover.
39731 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
39733         * config.gcc: Add Visium support.
39734         * configure.ac: Likewise.
39735         * configure: Regenerate.
39736         * doc/extend.texi (interrupt attribute): Add Visium.
39737         * doc/invoke.texi: Document Visium options.
39738         * doc/install.texi: Document Visium target.
39739         * doc/md.texi: Document Visium constraints.
39740         * common/config/visium: New directory.
39741         * config/visium: Likewise.
39743 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
39745         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
39746         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
39748 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
39750         * combine.c (combine_validate_cost): Do not count the cost of a
39751         split I2 twice.  Do not display it twice in the dump, either.
39753 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
39755         Revert parts of r219199.
39756         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
39757         <inttypes.h>.
39758         ([-Wtraditional]): Restore markup on <limits.h>.
39760 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
39762         PR c++/31397
39763         * doc/invoke.texi: Document -Wsuggest-override.
39765 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
39767         PR rtl-optimization/64287
39768         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
39769         (process_options): Disable flag_ipa_ra if profiling.
39771 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
39773         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
39775 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
39777         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
39778         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
39779         put under #if TARGET_LOOPS guard.
39781 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
39783         * config/i386/i386.c (output_387_binary_op): Use std::swap.
39785 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
39787         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
39788         * rtl.h (refers_to_regno_p): Add overload.
39789         * cse.c: Use it.
39790         * bt-load.c: Likewise.
39791         * combine.c: Likewise.
39792         * df-scan.c: Likewise.
39793         * sched-deps.c: Likewise.
39794         * config/s390/s390.c: Likewise.
39795         * config/m32r/m32r.c: Likewise.
39796         * config/rs6000/spe.md: Likewise.
39797         * config/rs6000/rs6000.c: Likewise.
39798         * config/pa/pa.c: Likewise.
39799         * config/stormy16/stormy16.c: Likewise.
39800         * config/cris/cris.c: Likewise.
39801         * config/arc/arc.md: Likewise.
39802         * config/arc/arc.c: Likewise.
39803         * config/sh/sh.md: Likewise.
39804         * config/sh/sh.c: Likewise.
39805         * config/frv/frv.c: Likewise.
39807 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
39809         PR sanitizer/64265
39810         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
39811         call as cleanup of the whole body.
39812         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
39813         * tsan.c (replace_func_exit): New function.
39814         (instrument_func_exit): Moved earlier.
39815         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
39816         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
39817         been found.
39818         (tsan_pass): Don't call instrument_func_exit.
39819         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
39820         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
39821         inlining.
39823         PR sanitizer/64344
39824         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
39825         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
39826         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
39827         if the result is integer_zerop, return NULL_TREE.
39828         * convert.c (convert_to_integer): Pass expr as ARG.
39830         PR tree-optimization/64465
39831         * tree-inline.c (redirect_all_calls): During inlining
39832         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
39833         changed the stmt to a non-throwing call.
39835 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
39837         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
39838         etc markup throughout the file.
39840 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39842         Enable experimental TSAN support for Ada.
39843         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
39845 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
39847         PR tree-optimization/64494
39848         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
39849         clear SSA_NAME_ANTI_RANGE_P flag.
39851 2015-01-05  Marek Polacek  <polacek@redhat.com>
39853         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
39855 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
39857         Update copyright years.
39859         * gcc.c (process_command): Update copyright notice dates.
39860         * gcov-dump.c: Ditto.
39861         * gcov.c: Ditto.
39862         * doc/cpp.texi: Bump @copying's copyright year.
39863         * doc/cppinternals.texi: Ditto.
39864         * doc/gcc.texi: Ditto.
39865         * doc/gccint.texi: Ditto.
39866         * doc/gcov.texi: Ditto.
39867         * doc/install.texi: Ditto.
39868         * doc/invoke.texi: Ditto.
39870         * auto-profile.c, auto-profile.h: Fix up Copyright line.
39872 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
39874         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
39875         verb tense, etc.
39876         ([-fvtable-verify], [-fvtv-debug]): Likewise.
39877         ([-Wabi]): Likewise.
39878         ([-fmessage-length]): Likewise.
39879         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
39880         ([-Wno-discarded-qualifiers]): Likewise.
39881         ([-Wnodiscarded-array-qualifiers]): Likewise.
39882         ([-Wno-virtual-move-assign]): Likewise.
39883         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
39884         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
39885         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
39886         ([-fsanitize-undefined-trap-on-error]): Likewise.
39887         ([-floop-interchange]): Likewise.
39888         ([-ftree-coalesce-inlined-vars]): Likewise.
39889         ([-fvect-cost-model]): Likewise.
39890         ([-flto]): Likewise.
39891         ([--param]): Likewise.
39892         (Spec Files): Likewise.
39893         ([-mstrict-align]): Likewise.
39894         ([-mfix-cortex-a53-835769]): Likewise.
39895         ([-march], [-mtune]): Likewise.
39896         ([-mpic-register]): Likewise.
39897         ([-munaligned-access]): Likewise.
39898         ([-msp8]): Likewise.
39899         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
39900         (AVR Built-in Macros): Likewise.
39901         ([-mpreferred-stack-boundary]): Likewise.
39902         ([-mtune-crtl]): Likewise.
39903         ([-mashf]): Likewise.
39904         ([-mmcu=]): Likewise.
39905         ([-minrt]): Likewise.
39906         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
39907         ([-mupper-regs]): Likewise.
39908         ([-matomic-model]): Likewise.
39909         ([-mdiv]): Likewise.
39910         ([-mzdcbranch]): Likewise.
39911         ([-mdisable-callt]): Likewise.
39912         ([-msoft-float]): Likewise.
39913         ([-m8byte-align]): Likewise.
39914         ([-fstack-reuse]): Likewise.
39916 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39918         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
39919         Fix markup, light copy-editing.
39920         ([-fauto-profile]): Rewrite to fix formatting and content
39921         problems.
39923 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39925         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
39926         Copy-edit description.
39927         ([-fisolate-erroneous-paths-attribute]): Likewise.
39928         * common.opt (fisolate-erroneous-paths-dereference):
39929         Copy-edit description.
39930         (fisolate-erroneous-paths-attribute): Likewise.
39932 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39934         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
39935         tidy grammar.
39937 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
39939         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
39940         ([-fvtv-debug]): Likewise.
39941         ([-Wc++-compat]): Likewise.
39942         ([-Wc++11-compat]): Likewise.
39943         ([-Wc++14-compat]): Likewise.
39944         ([-Wno-sized-deallocation]): Likewise.
39945         ([-femit-class-debug-always]): Likewise.
39946         ([-femit-struct-debug-detailed]): Likewise.
39947         ([-fno-keep-inline-dllexport]): Likewise.
39948         ([-fira-algorithm]): Likewise.
39949         ([-fira-region]): Likewise.
39950         ([-flra-remat]): Likewise.
39951         ([-fipa-ra]): Likewise.
39952         ([-fhoist-adjacent-loads]): Likewise.
39953         ([-fisolate-erroneous-paths-dereference]): Likewise.
39954         ([-fisolate-erroneous-paths-attribute]): Likewise.
39955         ([-ftree-switch-conversion]): Likewise.
39956         ([-ftree-tail-merge]): Likewise.
39957         ([-ftree-loop-if-convert]): Likewise.
39958         ([-ftree-loop-if-convert-stores]): Likewise.
39959         ([-ftree-loop-distribution]): Likewise.
39960         ([-ftree-loop-distribute-patterns]): Likewise.
39961         ([-flto-compression-level]): Likewise.
39962         ([-flto-report]): Likewise.
39963         ([-flto-report-wpa]): Likewise.
39964         ([-fuse-linker-plugin]): Likewise.
39965         ([-mfix-cortex-a53-835769]): Likewise.
39966         ([-mno-fix-cortex-a53-835769]): Likewise.
39967         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
39968         explicit listing; add a note to the discussion indicating they
39969         exist.  Reorder table to group similar options.  Add missing
39970         @opindex entries.  Add @need commands throughout the table to
39971         allow it to be split across multiple pages.
39972         ([-m8bit-idiv]): Fix @opindex.
39973         ([-mavx256-split-unaligned-load]): Likewise.
39974         ([-mavx256-split-unaligned-store]): Likewise.
39975         ([-mstack-protector-guard]): Likewise.
39976         ([-mcpu=]): Likewise.
39977         ([-mcpu]): Likewise.
39978         ([-mpointer-size=]): Likewise.
39980 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
39982         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
39983         instead of `m' constraint.  Likewise for unnamed movb comparison
39984         patterns using reg_before_reload_operand predicate.
39985         * config/pa/predicates.md (reg_before_reload_operand): Tighten
39986         predicate to reject register index and LO_SUM DLT memory forms
39987         after reload.
39989 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
39991         * doc/invoke.texi (Option Summary): Fix spelling of
39992         -fdevirtualize-at-ltrans.
39993         ([-fdevirtualize]): Fix markup.
39994         ([-fdevirtualize-speculatively]): Fix typo.
39995         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
39996         implementor-speaky.
39997         * common.opt (fdevirtualize-at-ltrans): Likewise.
39998         * ipa-devirt.c: Fix typos in comments throughout the file.
39999         (ipa_devirt): Fix typos in format strings for dump output.
40001 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40003         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40004         discussion of defaults, light copy-editing.
40006 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40008         * tsan.c (instrument_expr): corrected previous checkin.
40010 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40012         Instrument bit field and unaligned accesses for TSAN.
40013         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40014         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40015         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40016         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40017         unaligned memory regions.
40019 2015-01-01  Anthony Green  <green@moxielogic.com>
40021         * config/moxie/predicates.md (moxie_general_movsrc_operand):
40022         Restrict move source register offsets to 16 bits.
40024 Copyright (C) 2015 Free Software Foundation, Inc.
40026 Copying and distribution of this file, with or without modification,
40027 are permitted in any medium without royalty provided the copyright
40028 notice and this notice are preserved.