gcc/
[official-gcc.git] / gcc / ChangeLog
blobbdf4d3d6f7bb886dfdb0c196ef29c452faf6abe6
1 2017-07-28  Peter Bergner  <bergner@vnet.ibm.com>
3         * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
4         (PPC_FEATURE2_SCV): Likewise.
5         * config/rs6000/rs6000.c (cpu_supports_info): Use them.
7 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
9         * config/aarch64/aarch64.c
10         (aarch64_internal_mov_immediate): Add new special pattern.
11         * config/aarch64/aarch64.md (*movdi_aarch64):
12         Add reg/32bit const mov case.
14 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
15             Richard Sandiford <richard.sandiford@linaro.org>
17         * config/aarch64/aarch64.md (mov<mode>): Generalize.
18         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
19         Add integer and movi cases.
20         (movi-split-hf-df-sf split, fp16): New.
21         (enabled): Added TARGET_FP_F16INST.
22         * config/aarch64/iterators.md (GPF_HF): New.
23         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
25 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
27         * config/aarch64/aarch64.c
28         (aarch64_simd_container_mode): Add prototype.
29         (aarch64_expand_mov_immediate): Add HI support.
30         (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
31         (aarch64_can_const_movi_rtx_p): New.
32         (aarch64_preferred_reload_class):
33         Remove restrictions of using FP registers for certain SIMD operations.
34         (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
35         (aarch64_valid_floating_const): Add integer move validation.
36         (aarch64_simd_imm_scalar_p): Remove.
37         (aarch64_output_scalar_simd_mov_immediate): Generalize function.
38         (aarch64_legitimate_constant_p): Expand list of supported cases.
39         * config/aarch64/aarch64-protos.h
40         (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
41         (aarch64_reinterpret_float_as_int): New.
42         (aarch64_simd_imm_scalar_p): Remove.
43         * config/aarch64/constraints.md (Uvi): New.
44         (Dd): Split into Ds and new Dd.
45         * config/aarch64/aarch64.md (*movsi_aarch64):
46         Add SIMD mov case.
47         (*movdi_aarch64): Add SIMD mov case.
49 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
51         * tree-predcom.c: (struct chain): Handle store-store chain in which
52         stores for elimination only store loop invariant values.
53         (execute_pred_commoning_chain): Ditto.
54         (prepare_initializers_chain_store_elim): Ditto.
55         (prepare_finalizers): Ditto.
56         (is_inv_store_elimination_chain): New function.
57         (initialize_root_vars_store_elim_1): New function.
59 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
61         * tree-predcom.c: Revise general description of the pass.
62         (enum chain_type): New enum type for store elimination.
63         (struct chain): New field supporting store elimination.
64         (struct component): Ditto.
65         (dump_chain): Dump store-stores chain.
66         (release_chain): Release resources.
67         (split_data_refs_to_components): Compute and create component
68         contains only stores for elimination.
69         (get_chain_last_ref_at): New function.
70         (make_invariant_chain): Initialization.
71         (make_rooted_chain): Specify chain type in parameter and record it.
72         (add_looparound_copies): Skip for store-stores chain.
73         (determine_roots_comp): Compute type of chain and pass it to
74         make_rooted_chain.
75         (initialize_root_vars_store_elim_2): New function.
76         (finalize_eliminated_stores): New function.
77         (remove_stmt): Handle store for elimination.
78         (execute_pred_commoning_chain): Execute predictive commoning on
79         store-store chains.
80         (determine_unroll_factor): Skip unroll for store-stores chain.
81         (prepare_initializers_chain_store_elim): New function.
82         (prepare_initializers_chain): Hanlde store-store chain.
83         (prepare_finalizers_chain, prepare_finalizers): New function.
84         (tree_predictive_commoning_loop): Return integer value indicating
85         if loop is unrolled or lcssa form is corrupted.
86         (tree_predictive_commoning): Rewrite for lcssa form if necessary.
88 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
90         * tree-predcom.c (initialize_root): Delete.
91         (execute_pred_commoning_chain): Initialize root vars and replace
92         reference of non-combined chain directly, rather than call above
93         function.
95 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
97         * tree-predcom.c (ref_at_iteration): Add parameter NITERS.  Compute
98         memory reference to DR at (NITERS + ITERS)-th iteration of loop.
100 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
102         * tree-predcom.c (struct chain): New field init_seq.
103         (release_chain): Release init_seq.
104         (prepare_initializers_chain): Record intialization stmts in above
105         field.
106         (insert_init_seqs): New function.
107         (tree_predictive_commoning_loop): Call insert_init_seqs.
109 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
111         * tree-predcom.c (determine_roots_comp): Skip trivial components.
113 2017-07-28  Richard Biener  <rguenther@suse.de>
115         * match.pd: Remove superfluous :c.
116         * genmatch.c (simplify::id): Add member.
117         (lower_commutative, lower_opt_convert, lower_cond, lower_for):
118         Copy id.
119         (current_id): New global.
120         (dt_node::parent): Move from ...
121         (dt_operand::parent): ... here.  Add for_id member.
122         (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
123         (decision_tree::find_node): Relax order requirement when
124         merging DT_TRUE nodes to ones inbetween the current simplify
125         and the one we try to merge with.  Add diagnostic whenever
126         we need to enforce pattern order by not merging.
127         (decision_tree::insert): Set current_id.
128         (decision_tree::print_node): Dump parent node and for_id.
129         (parser::last_id): Add member.
130         (parser::push_simplify): Assign unique id.
131         (parser::parser): Initialize last_id.
133 2017-07-28  Martin Liska  <mliska@suse.cz>
135         PR sanitizer/81340
136         * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
137         gimple_build_debug_bind.
139 2017-07-28  Richard Biener  <rguenther@suse.de>
141         PR tree-optimization/81502
142         * match.pd: Add pattern combining BIT_INSERT_EXPR with
143         BIT_FIELD_REF.
144         * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
145         size/pos operands.
146         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
147         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
148         for BIT_FIELD_REF args.
149         * fold-const.c (make_bit_field_ref): Likewise.
150         * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
152 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
154         PR sanitizer/80998
155         * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
156         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
157         * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
158         Or it into SANITIZER_UNDEFINED.
159         * ubsan.c: Include gimple-fold.h and varasm.h.
160         (ubsan_expand_ptr_ifn): New function.
161         (instrument_pointer_overflow): New function.
162         (maybe_instrument_pointer_overflow): New function.
163         (instrument_object_size): Formatting fix.
164         (pass_ubsan::execute): Call instrument_pointer_overflow
165         and maybe_instrument_pointer_overflow.
166         * internal-fn.c (expand_UBSAN_PTR): New function.
167         * ubsan.h (ubsan_expand_ptr_ifn): Declare.
168         * sanitizer.def (__ubsan_handle_pointer_overflow,
169         __ubsan_handle_pointer_overflow_abort): New builtins.
170         * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
171         * internal-fn.def (UBSAN_PTR): New internal function.
172         * opts.c (sanitizer_opts): Add pointer-overflow.
173         * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
174         * fold-const.c (build_range_check): Compute pointer range check in
175         integral type if pointer arithmetics would be needed.  Formatting
176         fixes.
178 2017-07-28  Martin Liska  <mliska@suse.cz>
180         PR sanitizer/81460
181         * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
182         parameters that are of a variable-length.
184 2017-07-28  Sebastian Huber  <sebastian.huber@embedded-brains.de>
186         * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h.  Add
187         rs6000/biarch64.h.
188         * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
189         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
190         (CRT_CALL_STATIC_FUNCTION): Likewise.
191         (ASM_DEFAULT_SPEC): New define.
192         (ASM_SPEC32): Likewise.
193         (ASM_SPEC64): Likewise.
194         (ASM_SPEC_COMMON): Likewise.
195         (ASM_SPEC): Likewise.
196         (INVALID_64BIT): Likewise.
197         (LINK_OS_DEFAULT_SPEC): Likewise.
198         (LINK_OS_SPEC32): Likewise.
199         (LINK_OS_SPEC64): Likewise.
200         (POWERPC_LINUX): Likewise.
201         (PTRDIFF_TYPE): Likewise.
202         (RESTORE_FP_PREFIX): Likewise.
203         (RESTORE_FP_SUFFIX): Likewise.
204         (SAVE_FP_PREFIX): Likewise.
205         (SAVE_FP_SUFFIX): Likewise.
206         (SIZE_TYPE): Likewise.
207         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
208         (TARGET_64BIT): Likewise.
209         (TARGET_64BIT): Likewise.
210         (TARGET_AIX): Likewise.
211         (WCHAR_TYPE_SIZE): Likewise.
212         (WCHAR_TYPE): Undefine.
213         (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
214         (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
215         (CPP_OS_RTEMS_SPEC): Delete.
216         (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems.  Add
217         asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
218         link_os_spec64.
219         * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
221 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
223         PR tree-optimization/81578
224         * tree-parloops.c (build_new_reduction): Bail out if
225         reduction_code isn't one of the standard OpenMP reductions.
226         Move the details printing after that decision.
228 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
230         * config/rs6000/predicates.md (volatile_mem_operand): Remove code
231         related to reload_in_progress.
232         (splat_input_operand): Likewise.
233         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
234         Delete prototype.
235         * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
236         field.
237         (TARGET_EXPAND_TO_RTL_HOOK): Delete.
238         (TARGET_INSTANTIATE_DECLS): Likewise.
239         (legitimate_indexed_address_p): Delete reload_in_progress code.
240         (rs6000_debug_legitimate_address_p): Likewise.
241         (rs6000_eliminate_indexed_memrefs): Likewise.
242         (rs6000_emit_le_vsx_store): Likewise.
243         (rs6000_emit_move_si_sf_subreg): Likewise.
244         (rs6000_emit_move): Likewise.
245         (register_to_reg_type): Likewise.
246         (rs6000_pre_atomic_barrier): Likewise.
247         (rs6000_machopic_legitimize_pic_address): Likewise.
248         (rs6000_allocate_stack_temp): Likewise.
249         (rs6000_address_for_fpconvert): Likewise.
250         (rs6000_address_for_altivec): Likewise.
251         (rs6000_secondary_memory_needed_rtx): Delete function.
252         (rs6000_check_sdmode): Likewise.
253         (rs6000_alloc_sdmode_stack_slot): Likewise.
254         (rs6000_instantiate_decls): Likewise.
255         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
256         * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
257         Delete reload_in_progress.
258         (*vec_reload_and_plus_<mptrsize>): Likewise.
259         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
260         (vsx_div_v2di): Likewise.
261         (vsx_udiv_v2di): Likewise.
263 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
265         * config/rs6000/rs6000.opt (mlra): Replace with stub.
266         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
267         * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
268         (rs6000_debug_reg_global): Delete print of LRA status.
269         (rs6000_option_override_internal): Delete dead LRA related code.
270         (rs6000_lra_p): Delete function.
271         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
273 2017-07-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
275         * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
276         * config/riscv/rtems.h: New file.
278 2017-07-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
279             Sudakshina Das  <sudi.das@arm.com>
281         * config/aarch64/aarch64.md
282         (define_split for and<mode>3nr_compare): Move
283         non aarch64_logical_operand to a register.
284         (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
285         register immediate operand to a register.
286         * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
288 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
290         PR middle-end/81564
291         * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
293 2017-07-27  Richard Biener  <rguenther@suse.de>
295         PR tree-optimization/81573
296         PR tree-optimization/81494
297         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
298         multi defuse cycle case.
300 2017-07-27  Richard Biener  <rguenther@suse.de>
302         PR tree-optimization/81571
303         * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
304         PHIs.
306 2017-07-27  Eric Botcazou  <ebotcazou@adacore.com>
308         * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
309         earlier and only if MASK_FPU is set.  Adjust formatting.
311 2017-07-27  Martin Liska  <mliska@suse.cz>
313         * opt-functions.awk: Add validation of value of Init.
314         * optc-gen.awk: Pass new argument.
316 2017-07-27  Martin Liska  <mliska@suse.cz>
318         * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
319         Fix wrong condition.
321 2017-07-27  Martin Liska  <mliska@suse.cz>
323         * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
324         BBs and edges seen by autoFDO.
326 2017-07-27  Richard Biener  <rguenther@suse.de>
328         PR tree-optimization/81502
329         * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
330         with incompatible but same sized type.
331         (execute_update_addresses_taken): Likewise.
333 2017-07-27  James Greenhalgh  <james.greenhalgh@arm.com>
335         * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
336         flag_tree_loop_vectorize rather than flag_tree_vectorize.
338 2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
340         PR target/81534
341         * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
342         ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
343         Change s_operand to memory_operand.
345 2017-07-27  Richard Sandiford  <richard.sandiford@linaro.org>
347         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
348         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
349         (rs6000_emit_le_vsx_permute): ...this.  Take the destination as input.
350         Emit instructions rather than returning an expression.  Handle TFmode
351         and KFmode by casting to TImode.
352         (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
353         (rs6000_emit_le_vsx_store): Likewise.
354         * config/rs6000/vsx.md (VSX_TI): New iterator.
355         (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
356         (*vsx_le_undo_permute_<mode>): Likewise.
357         (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
358         emit the split sequence.
359         (*vsx_le_perm_store_<mode>): Likewise.
361 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
363         PR tree-optimization/81555
364         PR tree-optimization/81556
365         * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
366         if true, force CHANGED for the recursive invocation.
367         (reassociate_bb): Remember original length of ops array, pass
368         len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
370         * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
371         attributes for noipa attribute.  For naked attribute use
372         lookup_attribute first before lookup_attribute_spec.
373         * final.c (rest_of_handle_final): Disable IPA RA for functions with
374         noipa attribute.
375         * ipa-visibility.c (non_local_p): Fix comment typos.  Return true
376         for functions with noipa attribute.
377         (cgraph_externally_visible_p): Return true for functions with noipa
378         attribute.
379         * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
380         for functions with noipa attribute.
381         * doc/extend.texi: Document noipa function attribute.
382         * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
383         also for functions with noipa attribute.
384         (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
386 2017-07-26  Andrew Pinski  <apinski@cavium.com>
388         * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
389         vec_unalign_load_cost and vec_unalign_store_cost.
391 2017-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
393         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
394         -mvsx-small-integer option.
395         (ISA_3_0_MASKS_IEEE): Likewise.
396         (OTHER_VSX_VECTOR_MASKS): Likewise.
397         (POWERPC_MASKS): Likewise.
398         * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
399         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
400         code, only testing for DImode being allowed in non-VSX floating
401         point registers.
402         (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
403         to TARGET_P8_VECTOR test.  Remove redundant VSX test inside of
404         another VSX test.
405         (rs6000_option_override_internal): Delete -mvsx-small-integer.
406         (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
407         TARGET_P8_VECTOR test.
408         (rs6000_secondary_reload_simple_move): Likewise.
409         (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
410         since TARGET_P9_VECTOR was already tested.
411         (rs6000_opt_masks): Remove -mvsx-small-integer.
412         * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
413         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
414         used.
415         (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
416         test for TARGET_VEXTRACTUB was used, and that uses
417         TARGET_P9_VECTOR.
418         (p9 extract splitter): Likewise.
419         (vsx_extract_<mode>_di_p9): Likewise.
420         (vsx_extract_<mode>_store_p9): Likewise.
421         (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
422         for TARGET_P9_VECTOR was used.  Delete code that is now dead with
423         the elimination of TARGET_VSX_SMALL_INTEGER.
424         (vsx_extract_<mode>_p8): Likewise.
425         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
426         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
427         (vsx_set_<mode>_p9): Likewise.
428         (vsx_set_v4sf_p9): Likewise.
429         (vsx_set_v4sf_p9_zero): Likewise.
430         (vsx_insert_extract_v4sf_p9): Likewise.
431         (vsx_insert_extract_v4sf_p9_2): Likewise.
432         * config/rs6000/rs6000.md (sign extend splitter): Change
433         TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
434         (floatsi<mode>2_lfiwax_mem): Likewise.
435         (floatunssi<mode>2_lfiwzx_mem): Likewise.
436         (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
437         since a test for TARGET_P9_VECTOR was used.
438         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
439         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
440         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
441         (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
442         TARGET_P8_VECTOR test.
443         (fix_trunc<mode>si2_stfiwx): Likewise.
444         (fix_trunc<mode>si2_internal): Likewise.
445         (fix_trunc<SFDF:mode><QHI:mode>2): Delete
446         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
447         used.
448         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
449         (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
450         TARGET_P8_VECTOR test.
451         (fixuns_trunc<mode>si2_stfiwx): Likewise.
452         (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
453         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
454         used.
455         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
456         (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
457         since a test for TARGET_P9_VECTOR was used.
458         (splitter for loading small constants): Likewise.
460 2017-07-26  Andrew Pinski  <apinski@cavium.com>
462         * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
463         vec_fp_stmt_cost.
465 2017-07-26  H.J. Lu  <hongjiu.lu@intel.com>
467         PR target/81563
468         * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
469         (fp_valid_at): Likewise.
471 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
473         * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
474         (qdf24xx_addrcost_table): Likewise.
475         (cortexa57_tunings): Update to use generic_branch_cost.
476         (cortexa72_tunings): Likewise.
477         (cortexa73_tunings): Likewise.
478         (qdf24xx_tunings): Likewise.
480 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
482         * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
483         (thunderx2t99_branch_cost): Likewise.
484         (cortexa35_tunings): Update to use generic_branch_cost.
485         (cortexa53_tunings): Likewise.
486         (cortexa57_tunings): Likewise.
487         (cortexa72_tunings): Likewise.
488         (cortexa73_tunings): Likewise.
489         (thunderx2t99_tunings): Likewise.
491 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
493         * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
494         (sparc_option_override): Honour MASK_FSMULD.
495         * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
496         * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
497         * config/sparc/sparc.opt (mfsmuld): New option.
498         * doc/invoke.texi (mfsmuld): Document option.
500 2017-07-26  Marek Polacek  <polacek@redhat.com>
502         PR middle-end/70992
503         * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
505 2017-07-26  Richard Biener  <rguenther@suse.de>
507         * gimple-match-head.c (do_valueize): Return OP if valueize
508         returns NULL_TREE.
509         (get_def): New helper to get at the def stmt of a SSA name
510         if valueize allows.
511         * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
512         do_valueize to get at the def stmt.
513         (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
515 2017-07-26  Wilco Dijkstra  <wdijkstr@arm.com>
517         PR middle-end/46932
518         * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
520 2017-07-26  Martin Liska  <mliska@suse.cz>
522         PR sanitize/81186
523         * function.c (expand_function_start): Make expansion of
524         nonlocal_goto_save_area after parm_birth_insn.
526 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
528         * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
529         from all CPU target flags enable members.
531 2017-07-26  Richard Biener  <rguenther@suse.de>
533         * genmatch.c (dt_simplify::gen): Make iterator vars const.
534         (decision_tree::gen): Make 'type' const.
535         (write_predicate): Likewise.
537 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
539         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
540         Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
541         (rs6000_option_override_internal): Likewise.
542         (rs6000_expand_vector_set): Likewise.
543         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
544         (TARGET_UPPER_REGS_SF): Likewise.
545         (TARGET_UPPER_REGS_DI): Likewise.
546         (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
547         (TARGET_DIRECT_MOVE_64BIT): Likewise.
548         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
549         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
550         (Splitters for DI constants in Altivec registers): Likewise.
551         * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
552         (vsx_set_v4sf_p9): Likewise.
553         (vsx_set_v4sf_p9_zero): Likewise.
554         (vsx_insert_extract_v4sf_p9): Likewise.
555         (vsx_insert_extract_v4sf_p9_2): Likewise.
557 2017-07-25  Carl Love  <cel@us.ibm.com>
559         * doc/extend.texi: Update the built-in documentation file for the
560         existing built-in functions
561         vector signed char vec_cnttz (vector signed char);
562         vector unsigned char vec_cnttz (vector unsigned char);
563         vector signed short vec_cnttz (vector signed short);
564         vector unsigned short vec_cnttz (vector unsigned short);
565         vector signed int vec_cnttz (vector signed int);
566         vector unsigned int vec_cnttz (vector unsigned int);
567         vector signed long long vec_cnttz (vector signed long long);
568         vector unsigned long long vec_cnttz (vector unsigned long long);
570 2017-07-25  Andrew Pinski  <apinski@cavium.com>
572         * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
573         accesses where the use is for the first operand of a BIT_INSERT.
575 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
577         PR bootstrap/81521
578         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
579         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
581 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
583         * config/i386/gstabs.h: Delete.
584         * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
586 2017-07-25  Uros Bizjak  <ubizjak@gmail.com>
588         * config/i386/i386.c (ix86_decompose_address): Do not check for
589         register RTX when looking at index_reg or base_reg.
590         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
592 2017-07-25  Eric Botcazou  <ebotcazou@adacore.com>
594         * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
595         to update EH info here.
597 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
599         * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
601 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
603         * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
605 2017-07-25  Torsten Duwe  <duwe@suse.de>
607         * common.opt: Introduce -fpatchable-function-entry
608         command line option, and its variables function_entry_patch_area_size
609         and function_entry_patch_area_start.
610         * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
611         including a two-value parser.
612         * target.def (print_patchable_function_entry): New target hook.
613         * targhooks.h (default_print_patchable_function_entry): New function.
614         * targhooks.c (default_print_patchable_function_entry): Likewise.
615         * toplev.c (process_options): Switch off IPA-RA if
616         patchable function entries are being generated.
617         * varasm.c (assemble_start_function): Look at the
618         patchable-function-entry command line switch and current
619         function attributes and maybe generate NOP instructions by
620         calling the print_patchable_function_entry hook.
621         * doc/extend.texi: Document patchable_function_entry attribute.
622         * doc/invoke.texi: Document -fpatchable_function_entry
623         command line option.
624         * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
625         New target hook.
626         * doc/tm.texi: Re-generate.
628 2017-07-25  Jakub Jelinek  <jakub@redhat.com>
630         PR target/81532
631         * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
632         TARGET_AVX512DQ rather than TARGET_AVX512BW.
634 2017-07-25  Tamar Christina  <tamar.christina@arm.com>
636         * config/arm/parsecpu.awk (all_cores): Remove duplicates.
638 2017-07-25  Richard Biener  <rguenther@suse.de>
640         PR tree-optimization/81455
641         * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
642         not walk in cycles when looking for guards.
644 2017-07-25  Richard Biener  <rguenther@suse.de>
646         PR tree-optimization/81529
647         * tree-vect-stmts.c (process_use): Disregard live induction PHIs
648         when optimizing backedge uses.
650 2017-07-25  David Edelsohn  <dje.gcc@gmail.com>
652         * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
653         character for AIX.
654         * dwarf2out.c (output_macinfo): Copy debug_line_section_label
655         to dl_section_ref.  On AIX, append an expression to subtract
656         the size of the section length to dl_section_ref.
658 2017-07-25  Segher Boessenkool  <segher@kernel.crashing.org>
660         * configure.ac: If any of the config.* scripts fail, exit 1.
661         * configure: Regenerate.
663 2017-07-25  Richard Biener  <rguenther@suse.de>
665         PR middle-end/81546
666         * tree-ssa-operands.c (verify_imm_links): Remove cap on number
667         of immediate uses, be more verbose on errors.
669 2017-07-25  Richard Biener  <rguenther@suse.de>
671         PR tree-optimization/81510
672         * tree-vect-loop.c (vect_is_simple_reduction): When the
673         reduction stmt is not inside the loop bail out.
675 2017-07-25  Richard Biener  <rguenther@suse.de>
677         PR tree-optimization/81303
678         * tree-vect-loop-manip.c (vect_loop_versioning): Build
679         profitability check against LOOP_VINFO_NITERSM1.
681 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
683         * domwalk.c (cmp_bb_postorder): Simplify.
684         (sort_bbs_postorder): New function.  Use it...
685         (dom_walker::walk): ...here to optimize common cases.
687 2017-07-25  Martin Liska  <mliska@suse.cz>
689         PR ipa/81520
690         * ipa-visibility.c (function_and_variable_visibility): Make the
691         redirection just on target that supports aliasing.
692         Fix GNU coding style.
694 2017-07-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
696         PR libgcc/61152
697         * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
698         Format changes.
699         * config/arm/rtems.h: Likewise.
700         * config/bfin/rtems.h: Likewise.
701         * config/i386/rtemself.h: Likewise.
702         * config/lm32/rtems.h: Likewise.
703         * config/m32c/rtems.h: Likewise.
704         * config/m68k/rtemself.h: Likewise.
705         * config/microblaze/rtems.h: Likewise.
706         * config/mips/rtems.h: Likewise.
707         * config/moxie/rtems.h: Likewise.
708         * config/nios2/rtems.h: Likewise.
709         * config/powerpcspe/rtems.h: Likewise.
710         * config/rs6000/rtems.h: Likewise.
711         * config/rtems.h: Likewise.
712         * config/sh/rtems.h: Likewise.
713         * config/sh/rtemself.h: Likewise.
714         * config/sparc/rtemself.h: Likewise.
716 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
718         PR 81487
719         * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
720         * gimple-pretty-print.c (dump_profile, dump_probability): Same.
721         * tree-ssa-structalias.c (alias_get_name): Same.
723 2017-07-25  Bin Cheng  <bin.cheng@arm.com>
725         PR target/81414
726         * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
727         instructions if no du chain is found.
729 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
731         * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
733 2017-07-25  Richard Biener  <rguenther@suse.de>
735         PR middle-end/81505
736         * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
737         sticky.
739 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
741         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
742         upper-regs options.
743         (ISA_2_7_MASKS_SERVER): Likewise.
744         (ISA_3_0_MASKS_IEEE): Likewise.
745         (OTHER_P8_VECTOR_MASKS): Likewise.
746         (OTHER_VSX_VECTOR_MASKS): Likewise.
747         (POWERPC_MASKS): Likewise.
748         (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
749         duplicate list of options.
750         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
751         explicit -mupper-regs options.
752         * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
753         -mupper-regs* options.  Delete -mvsx-scalar-memory, which was an
754         alias for -mupper-regs-df.
755         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
756         (rs6000_init_hard_regno_mode_ok): Likewise.
757         (rs6000_option_override_internal): Likewise.
758         (rs6000_opt_masks): Likewise.
759         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
760         options in terms of whether -mvsx or -mpower8-vector was used.
761         (TARGET_UPPER_REGS_DI): Likewise.
762         (TARGET_UPPER_REGS_SF): Likewise.
763         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
764         -mupper-regs-* options.
766 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
768         * passes.c (emergency_dump_function): Print some empty lines and a
769         header before the RTL dump.
771 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
773         * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
775 2017-07-24  Wilco Dijkstra  <wdijkstr@arm.com>
777         PR target/79041
778         * config/aarch64/aarch64.c (aarch64_classify_symbol):
779         Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
781 2017-07-24  Carl Love  <cel@us.ibm.com>
783         * config/rs6000/rs6000-c.c: Add support for built-in functions
784         vector float vec_extract_fp32_from_shorth (vector unsigned short);
785         vector float vec_extract_fp32_from_shortl (vector unsigned short);
786         * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
787         vec_extract_fp_from_shortl): Add defines for the two builtins.
788         * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
789         VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
790         new builtins.
791         * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
792         (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
793         * doc/extend.texi: Update the built-in documentation file for the
794         new built-in function.
796 2017-07-24  Jakub Jelinek  <jakub@redhat.com>
798         PR bootstrap/81521
799         * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
800         documentation.
801         * doc/generic.texi: Likewise.
802         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
803         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
805 2017-07-24  Jackson Woodruff  <jackson.woodruff@arm.com>
807         * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
808         (aarch64_mls_elt_merge<mode>): Likewise.
810 2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>
812         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
813         having __cxa_atexit.
815 2017-07-23  Michael Collison  <michael.collison@arm.com>
817         * config/arm/arm.c (arm_option_override): Deprecate
818         use of -mstructure-size-boundary.
819         * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
820         * doc/invoke.texi: Deprecate -mstructure-size-boundary.
822 2017-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
824         PR target/80695
825         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
826         Reduce cost estimate for direct moves.
828 2017-07-23  Uros Bizjak  <ubizjak@gmail.com>
830         PR target/80569
831         * config/i386/i386.c (ix86_option_override_internal): Disable
832         BMI, BMI2 and TBM instructions for -m16.
834 2017-07-21  Carl Love  <cel@us.ibm.com>
836         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
837         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
838         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
839         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
840         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
841         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
842         VMULOSW): New enum "unspec" values.
843         (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
844         altivec_vmulosw): New patterns.
845         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
846         VMULOSW): Add definitions.
848 2017-07-21  Jim Wilson  <jim.wilson@linaro.org>
850         * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
851         (qdf24xx): Likewise.
852         * config/aarch64/aarch64-options-extensions.def (rdma); New.
853         * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
854         (AARCH64_FL_V8_1): Renumber.
855         (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
856         (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
857         * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
858         * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs.  Add
859         rdma to feature modifiers list.
861 2017-07-21  Yury Gribov  <tetra2005@gmail.com>
863         PR middle-end/56727
864         * ipa-visibility (function_and_variable_visibility): Convert
865         recursive PLT call to direct call if appropriate.
867 2017-07-21  Andrew Pinski  <apinski@cavium.com>
869         * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
870         operand 1 to see if the types precision matches.
871         * fold-const.c (operand_equal_p): Likewise.
873 2017-07-21  Richard Biener  <rguenther@suse.de>
875         PR tree-optimization/81303
876         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
877         in datarefs vector.  Allow NULL dr0 for no peeling cost estimate.
878         (vect_peeling_hash_get_lowest_cost): Adjust.
879         (vect_enhance_data_refs_alignment): Likewise.  Use
880         vect_get_peeling_costs_all_drs to compute the penalty for no
881         peeling to match up costs.
883 2017-07-21  Richard Biener  <rguenther@suse.de>
885         PR tree-optimization/81500
886         * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
887         we didn't identify a reduction path.
889 2017-07-21  Tom de Vries  <tom@codesourcery.com>
890             Cesar Philippidis  <cesar@codesourcery.com>
892         PR gcov-profile/81442
893         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
894         probabilities.
896 2017-07-21  Tom de Vries  <tom@codesourcery.com>
898         PR lto/81430
899         * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
900         function.
901         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
902         nvptx_override_options_after_change.
904 2017-07-21  Ulrich Drepper  <drepper@redhat.com>
906         * dwarf2out.c (output_file_names): Avoid double testing for
907         dwarf_version >= 5.
909 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
911         * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
913 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
915         * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
916         hot/cold regions.
917         (try_crossjump_to_edge): Do not punt on partitioned functions.
919 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
921         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
922         Put all BBs reachable only via paths crossing cold region to cold
923         region.
924         * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
926 2016-07-21  Richard Biener  <rguenther@suse.de>
928         PR tree-optimization/81303
929         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
930         into account prologue and epilogue iterations when raising
931         min_profitable_iters to sth at least covering one vector iteration.
933 2017-07-21  Tamar Christina  <tamar.christina@arm.com>
935         * config/arm/arm.c (arm_test_cpu_arch_dat):
936         Check for overlap.
938 2017-07-20  Nathan Sidwell  <nathan@acm.org>
940         Remove TYPE_METHODS.
941         * tree.h (TYPE_METHODS): Delete.
942         * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
943         * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
944         (dbxout_type_methods): Scan TYPE_FIELDS.
945         (dbxout_type): Don't check TYPE_METHODS here.
946         * function.c (use_register_for_decl): Always ignore register for
947         class types when not optimizing.
948         * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
949         * tree.c (free_lang_data_in_type): Stitch out member functions and
950         templates from TYPE_FIELDS.
951         (build_distinct_type_copy, verify_type_variant,
952         verify_type): Member fns are on TYPE_FIELDS.
953         * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
954         * tree-pretty-print.c (dump_generic_node): Likewise.
956 2017-07-20  Jakub Jelinek  <jakub@redhat.com>
958         PR target/80846
959         * config/i386/i386.c (ix86_expand_vector_init_general): Handle
960         V2TImode and V4TImode.
961         (ix86_expand_vector_extract): Likewise.
962         * config/i386/sse.md (VMOVE): Enable V4TImode even for just
963         TARGET_AVX512F, instead of only for TARGET_AVX512BW.
964         (ssescalarmode): Handle V4TImode and V2TImode.
965         (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
966         (*vec_extractv2ti, *vec_extractv4ti): New insns.
967         (VEXTRACTI128_MODE): New mode iterator.
968         (splitter for *vec_extractv?ti first element): New.
969         (VEC_INIT_MODE): New mode iterator.
970         (vec_init<mode>): Consolidate 3 expanders into one using
971         VEC_INIT_MODE mode iterator.
973 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
975         * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
976         non_spilled_static_chain_regno_p.
978 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
980         * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
982 2017-07-20  Jan Hubicka  <hubicka@ucw.cz>
984         * bb-reorder.c (connect_traces): Allow copying of blocks within
985         single partition.
987 2017-07-20  Richard Biener  <rguenther@suse.de>
989         * gimple.h (gimple_phi_result): Add gphi * overload.
990         (gimple_phi_result_ptr): Likewise.
991         (gimple_phi_arg): Likewise.  Adjust index assert to only
992         allow actual argument accesses rather than all slots available
993         by capacity.
994         (gimple_phi_arg_def): Add gphi * overload.
995         * tree-phinodes.c (make_phi_node): Initialize only actual
996         arguments.
997         (resize_phi_node): Clear memory not covered by old node,
998         do not initialize excess argument slots.
999         (reserve_phi_args_for_new_edge): Initialize new argument slot
1000         completely.
1002 2017-07-20  Bin Cheng  <bin.cheng@arm.com>
1004         PR tree-optimization/81388
1005         Revert r238585:
1006         2016-07-21  Bin Cheng  <bin.cheng@arm.com>
1008         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
1009         by removing computation of may_be_zero.
1011 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
1012             Tom de Vries  <tom@codesourcery.com>
1014         PR middle-end/81030
1015         * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
1016         when gimple level profile disagrees with what RTL expander did.
1018 2017-07-20  Richard Biener  <rguenther@suse.de>
1020         PR tree-optimization/61171
1021         * tree-vectorizer.h (slp_instance): Add reduc_phis member.
1022         (vect_analyze_stmt): Add slp instance parameter.
1023         (vectorizable_reduction): Likewise.
1024         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
1025         (vect_is_simple_reduction): Deal with chains not detected
1026         as SLP reduction chain, specifically not properly associated
1027         chains containing a mix of plus/minus.
1028         (get_reduction_op): Remove.
1029         (get_initial_defs_for_reduction): Simplify, pass in whether
1030         this is a reduction chain, pass in the SLP node for the PHIs.
1031         (vect_create_epilog_for_reduction): Get the SLP instance as
1032         arg and adjust.
1033         (vectorizable_reduction): Get the SLP instance as arg.
1034         During analysis remember the SLP node with the PHIs in the
1035         instance.  Simplify getting at the vectorized reduction PHIs.
1036         * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
1037         through SLP instance.
1038         (vect_slp_analyze_operations): Likewise.
1039         * tree-vect-stms.c (vect_analyze_stmt): Likewise.
1040         (vect_transform_stmt): Likewise.
1042 2017-07-20  Tom de Vries  <tom@codesourcery.com>
1044         PR tree-optimization/81489
1045         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
1046         read of phi arg location to before loop that modifies phi.
1048 2017-07-20  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1050         * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
1051         New pattern.
1053 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
1055         PR middle-end/81331
1056         * except.c (execute): Fix ordering issue.
1058 2018-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
1060         PR rtl-optimization/81423
1061         * combine.c (make_compound_operation_int): Don't try to optimize
1062         the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
1064 2017-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
1066         PR rtl-optimization/81423
1067         * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
1068         with a constant that is -1 in the truncated to mode.
1070 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
1072         * predict.c (propagate_unlikely_bbs_forward): Break out from ...
1073         (determine_unlikely_bbs): ... here.
1074         * predict.h (propagate_unlikely_bbs_forward): Declare.
1075         * cfgexpand.c (pass_expand::execute): Use it.
1076         * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
1077         unlikely edges.
1078         (find_rarely_executed_basic_blocks_and_crossing_edges): Use
1079         propagate_unlikely_bbs_forward.
1081 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
1083         PR middle-end/81331
1084         * except.c (maybe_add_nop_after_section_switch): New function.
1085         (execute): Use it.
1087 2017-07-19  Tom de Vries  <tom@codesourcery.com>
1089         * gimple.h (gimple_phi_set_arg): Make assert more strict.
1091 2017-07-19  Tom de Vries  <tom@codesourcery.com>
1093         * gimple.h (gimple_phi_arg): Make assert more strict.
1095 2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>
1097         * config.gcc (powerpc*-*-*): Add mmintrin.h.
1098         * config/rs6000/mmintrin.h: New file.
1099         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
1101 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
1103         PR tree-optimization/81346
1104         * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
1106 2017-07-19  Tom de Vries  <tom@codesourcery.com>
1108         * config/nvptx/nvptx.md (VECIM): Add V2DI.
1110 2017-07-19  Tom de Vries  <tom@codesourcery.com>
1112         * config/nvptx/nvptx-modes.def: Add V2DImode.
1113         * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
1114         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
1115         (nvptx_output_mov_insn): Handle lack of mov.b128.
1116         (nvptx_print_operand): Handle 'H' and 'L' codes.
1117         (nvptx_vector_mode_supported): Allow V2DImode.
1118         (nvptx_preferred_simd_mode): New function.
1119         (nvptx_data_alignment): New function.
1120         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
1121         nvptx_preferred_simd_mode.
1122         * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
1123         64 to 128 bits.
1124         (DATA_ALIGNMENT): Define.  Set to nvptx_data_alignment.
1126 2017-07-19  Tom de Vries  <tom@codesourcery.com>
1128         * config/nvptx/nvptx-modes.def: New file.  Add V2SImode.
1129         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
1130         (nvptx_vector_mode_supported): New function.  Allow V2SImode.
1131         (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
1132         * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
1133         (mov<VECIM>_insn): New define_insn.
1134         (define_expand "mov<VECIM>): New define_expand.
1136 2017-07-19  Tom de Vries  <tom@codesourcery.com>
1138         * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
1140 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
1142         PR tree-optimization/81346
1143         * fold-const.h (fold_div_compare, range_check_type): Declare.
1144         * fold-const.c (range_check_type): New function.
1145         (build_range_check): Use range_check_type.
1146         (fold_div_compare): No longer static, rewritten into
1147         a match.pd helper function.
1148         (fold_comparison): Don't call fold_div_compare here.
1149         * match.pd (X / C1 op C2): New optimization using fold_div_compare
1150         as helper function.
1152 2017-07-19  Nathan Sidwell  <nathan@acm.org>
1154         * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
1155         (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
1156         * tree.c (find_decls_types_r, verify_type): Use
1157         TYPE_{MIN,MAX}_VALUE_RAW.
1158         * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
1159         (hash_tree): Likewise.
1160         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
1161         Likewise.
1162         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
1163         Likewise.
1165 2017-07-18  Tom de Vries  <tom@codesourcery.com>
1167         PR middle-end/81464
1168         * omp-expand.c (expand_omp_for_static_chunk): Handle
1169         equal-argument loop exit phi.
1171 2017-07-18  Uros Bizjak  <ubizjak@gmail.com>
1173         PR target/81471
1174         * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
1175         (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
1176         operand 2 predicate.
1177         (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
1178         operand 2 predicate.
1179         (ror,rol -> rorx splitters): Use const_int_operand as
1180         operand 2 predicate.
1182 2017-06-18  Richard Biener  <rguenther@suse.de>
1184         PR tree-optimization/81410
1185         * tree-vect-stmts.c (vectorizable_load): Properly adjust for
1186         the gap in the ! slp_perm SLP case after each group.
1188 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
1190         PR middle-end/81463
1191         * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
1192         again.
1194 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
1196         PR middle-end/81462
1197         * predict.c (set_even_probabilities): Cleanup; do not affect
1198         probabilities that are already known.
1199         (combine_predictions_for_bb): Call even when count is set.
1201 2017-07-18  Nathan Sidwell  <nathan@acm.org>
1203         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
1204         TYPE_MAX_VALUE.
1206 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
1208         PR target/81408
1209         * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
1210         optimization for loop niter analysis.
1212 2017-07-18  Georg-Johann Lay  <avr@gjlay.de>
1214         PR target/81473
1215         * config/avr/avr.c (avr_optimize_casesi): Don't use
1216         INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
1218 2017-07-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1220         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
1221         body_cost_vec from _vect_peel_extended_info.
1222         (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
1223         (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
1224         npeel.
1226 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
1228         * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
1230 2017-07-18  Richard Biener  <rguenther@suse.de>
1232         PR tree-optimization/80620
1233         PR tree-optimization/81403
1234         * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
1235         info when re-using a VN table entry.
1237 2017-07-18  Richard Biener  <rguenther@suse.de>
1239         PR tree-optimization/81418
1240         * tree-vect-loop.c (vectorizable_reduction): Properly compute
1241         vectype_in.  Verify that with lane-reducing reduction operations
1242         we have a single def-use cycle.
1244 2017-07-17  Carl Love  <cel@us.ibm.com>
1246         Revert commit r249424   2017-06-20  Carl Love  <cel@us.ibm.com>
1248         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1249         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
1250         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
1251         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
1252         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
1253         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
1254         VMULOSW): New enum "unspec" values.
1255         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
1256         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
1257         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
1258         altivec_vmulosw): New patterns.
1259         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
1260         VMULOSW): Add definitions.
1261 2017-07-17  Uros Bizjak  <ubizjak@gmail.com>
1263         * config/alpha/alpha.c: Include predict.h.
1265 2017-07-17  Yury Gribov  <tetra2005@gmail.com>
1267         * tree-vrp.c (compare_assert_loc): Fix comparison function
1268         to return predictable results.
1270 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
1272         * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
1273         option.
1274         (subdi3): Likewise.
1275         * config/arc/arc.opt (mexpand-adddi): Deprecate it.
1276         * doc/invoke.texi (mexpand-adddi): Update text.
1278 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
1280         * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
1281         that also clobbers the CC register. The old expand code is moved
1282         to ...
1283         (*arc_clzsi2): ... here.
1284         (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
1285         the CC register. The old expand code is moved to ...
1286         (arc_ctzsi2): ... here.
1288 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
1290         * config/arc/arc.opt (mindexed-loads): Use initial value
1291         TARGET_INDEXED_LOADS_DEFAULT.
1292         (mauto-modify-reg): Use initial value
1293         TARGET_AUTO_MODIFY_REG_DEFAULT.
1294         * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
1295         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
1296         * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
1297         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
1299 2017-07-17  Martin Liska  <mliska@suse.cz>
1301         PR sanitizer/81302
1302         * opts.c (finish_options): Do not allow -fgnu-tm
1303         w/ -fsanitize={kernel-,}address.  Say sorry.
1305 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
1307         PR target/81369
1308         * tree-loop-distribution.c (classify_partition): Only assert on
1309         numer of iterations.
1310         (merge_dep_scc_partitions): Delete prameter.  Update function call.
1311         (distribute_loop): Remove code handling loop with unknown niters.
1312         (pass_loop_distribution::execute): Skip loop with unknown niters.
1314 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
1316         PR target/81369
1317         * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
1318         function sort_partitions_by_post_order.
1320 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
1322         PR tree-optimization/81374
1323         * tree-loop-distribution.c (pass_loop_distribution::execute): Record
1324         the max index of basic blocks, rather than number of basic blocks.
1326 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
1328         * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
1329         proto.
1330         (arc_legitimate_pic_operand_p): Likewise.
1331         * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
1332         function.
1333         (arc_needs_pcl_p): Likewise.
1334         (arc_legitimate_pc_offset_p): Likewise.
1335         (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
1336         function is also used in constrains.md.
1337         (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
1338         validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
1339         PLUS.  Only return true/false in known cases, otherwise assert.
1340         (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
1341         is already called in arc_legitimate_constant_p.
1342         * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
1343         pic addresses.
1344         (LEGITIMATE_PIC_OPERAND_P): Use
1345         arc_raw_symbolic_reference_mentioned_p function.
1346         * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
1347         function.
1348         (Cal): Likewise.
1349         (C32): Likewise.
1351 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
1352         Andrew Burgess  <andrew.burgess@embecosm.com>
1354         * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
1355         (arc_return_address_register): New function.
1356         * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
1357         (arc_handle_fndecl_attribute): Add naked attribute.
1358         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1359         (TARGET_WARN_FUNC_RETURN): Likewise.
1360         (arc_allocate_stack_slots_for_args): New function.
1361         (arc_warn_func_return): Likewise.
1362         (machine_function): Change type fn_type.
1363         (arc_compute_function_type): Consider new naked function type,
1364         change function return type.
1365         (arc_must_save_register): Adapt to handle new
1366         arc_compute_function_type's return type.
1367         (arc_expand_prologue): Likewise.
1368         (arc_expand_epilogue): Likewise.
1369         (arc_return_address_regs): Delete.
1370         (arc_return_address_register): New function.
1371         (arc_epilogue_uses): Use above function.
1372         * config/arc/arc.h (arc_return_address_regs): Delete prototype.
1373         (arc_function_type): Change encoding, add naked type.
1374         (ARC_INTERRUPT_P): Change to handle the new encoding.
1375         (ARC_FAST_INTERRUPT_P): Likewise.
1376         (ARC_NORMAL_P): Define.
1377         (ARC_NAKED_P): Likewise.
1378         (arc_compute_function_type): Delete prototype.
1379         * config/arc/arc.md (in_ret_delay_slot): Use
1380         arc_return_address_register function.
1381         (simple_return): Likewise.
1382         (p_return_i): Likewise.
1384 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
1386         PR tree-optimization/81428
1387         * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
1388         can't be built for those types.
1390 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
1392         Remove stuff dead since r239246.
1394         * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
1395         * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
1396         (avr_inform_devices): Remove dead stuff.
1398 2017-07-17  Tamar Christina  <tamar.christina@arm.com>
1400         * config/arm/arm_neon.h: Fix softp typo.
1402 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
1404         PR tree-optimization/81365
1405         * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
1406         aggregate moves onto bb predecessor edges, make sure there are no
1407         loads that could alias the lhs in between the start of bb and the
1408         loads from *phi.
1410 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
1412         PR 80929
1413         * config/avr/avr.c (avr_mul_highpart_cost): New static function.
1414         (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
1415         [LSHIFTRT, outer_code = TRUNCATE]: Same.
1417 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
1419         PR tree-optimization/81396
1420         * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
1421         (init_symbolic_number): Initialize it to 1.
1422         (perform_symbolic_merge): Add n_ops from both operands into the new
1423         n_ops.
1424         (find_bswap_or_nop): Don't consider n->n == cmpnop computations
1425         without base_addr as useless if they need more than one operation.
1426         (bswap_replace): Handle !bswap case for NULL base_addr.
1428 2017-07-17  Tom de Vries  <tom@codesourcery.com>
1430         PR target/81069
1431         * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
1432         as possible.
1434 2017-07-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1436         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
1437         conditional builtin define __FIX_LEON3FT_B2BST.
1439 2017-07-17  Daniel Cederman  <cederman@gaisler.com>
1441         * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
1442         MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
1443         with -mfix-ut700.
1445 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1447         PR rtl-optimization/81424
1448         * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
1449         to remove potential trapping from operands if -fnon-call-exceptions.
1451 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
1453         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
1454         profile_proability for scalling.
1455         * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
1457 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
1459         * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
1461 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
1463         * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
1464         fixpoint arithmetics.
1466 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
1468         * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
1469         fixpoint arithmetics.
1471 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
1473         * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
1474         fixpoint arithmetics.
1476 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
1478         * profile-count.h (profile_probability::from_reg_br_prob_note,
1479         profile_probability::to_reg_br_prob_note): New functions.
1480         * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
1481         * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
1482         * predict.c (probability_reliable_p): Update.
1483         (edge_probability_reliable_p): Update.
1484         (br_prob_note_reliable_p): Update.
1485         (invert_br_probabilities): Update.
1486         (add_reg_br_prob_note): New function.
1487         (combine_predictions_for_insn): Update.
1488         * asan.c (asan_clear_shadow): Update.
1489         * cfgbuild.c (compute_outgoing_frequencies): Update.
1490         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
1491         (update_br_prob_note): Update.
1492         (rtl_verify_edges): Update.
1493         (purge_dead_edges): Update.
1494         (fixup_reorder_chain): Update.
1495         * emit-rtl.c (try_split): Update.
1496         * ifcvt.c (cond_exec_process_insns): Update.
1497         (cond_exec_process_if_block): Update.
1498         (dead_or_predicable): Update.
1499         * internal-fn.c (expand_addsub_overflow): Update.
1500         (expand_neg_overflow): Update.
1501         (expand_mul_overflow): Update.
1502         * loop-doloop.c (doloop_modify): Update.
1503         * loop-unroll.c (compare_and_jump_seq): Update.
1504         * optabs.c (emit_cmp_and_jump_insn_1): Update.
1505         * predict.h: Update.
1506         * reorg.c (mostly_true_jump): Update.
1507         * rtl.h: Update.
1508         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
1509         * config/alpha/alpha.c (emit_unlikely_jump): Update.
1510         * config/arc/arc.c: (emit_unlikely_jump): Update.
1511         * config/arm/arm.c: (emit_unlikely_jump): Update.
1512         * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
1513         * config/frv/frv.c (frv_print_operand_jump_hint): Update.
1514         * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
1515         (ix86_print_operand): Update.
1516         (ix86_split_fp_branch): Update.
1517         (predict_jump): Update.
1518         * config/ia64/ia64.c (ia64_print_operand): Update.
1519         * config/mmix/mmix.c (mmix_print_operand): Update.
1520         * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
1521         (rs6000_expand_split_stack_prologue): Update.
1522         * config/rs6000/rs6000.c: Update.
1523         * config/s390/s390.c (s390_expand_vec_strlen): Update.
1524         (s390_expand_vec_movstr): Update.
1525         (s390_expand_cs_tdsi): Update.
1526         (s390_expand_split_stack_prologue): Update.
1527         * config/sh/sh.c (sh_print_operand): Update.
1528         (expand_cbranchsi4): Update.
1529         (expand_cbranchdi4): Update.
1530         * config/sparc/sparc.c (output_v9branch): Update.
1531         * config/spu/spu.c (get_branch_target): Update.
1532         (ea_load_store_inline): Update.
1533         * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
1534         * config/tilepro/tilepro.c: Update.
1536 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1538         * gimplify.c (mostly_copy_tree_r): Revert latest change.
1539         (gimplify_save_expr): Likewise.
1541 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
1543         * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
1545 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
1547         * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
1548         TV_IPA_FNSUMMARY.
1549         * timevar.def (TV_IPA_FNSUMMARY): Define.
1551 2017-07-16  Daniel Cederman  <cederman@gaisler.com>
1553         * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
1554         to back store errata sensitive sequence from being generated.
1555         (sqrtdf2_fix): Likewise.
1557 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
1559         * tree-ssa-threadupdate.c (compute_path_counts,
1560         update_joiner_offpath_counts): Use profile_probability.
1562 2017-07-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1564         Revert:
1565         2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1567         * config/arm/arm-c.c (arm_cpu_builtins): Define
1568         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
1570 2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1572         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1573         array entries to represent __ieee128 versions of the
1574         scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
1575         scalar_extract_sig, and scalar_insert_exp built-in functions.
1576         (altivec_resolve_overloaded_builtin): Add special case handling
1577         for the __builtin_scalar_insert_exp function, as represented by
1578         the P9V_BUILTIN_VEC_VSIEDP constant.
1579         * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
1580         exponent support for __ieee128 argument.
1581         (VSESQP): Add scalar extract signature support for __ieee128
1582         argument.
1583         (VSTDCNQP): Add scalar test negative support for __ieee128
1584         argument.
1585         (VSIEQP): Add scalar insert exponent support for __int128 argument
1586         with __ieee128 result.
1587         (VSIEQPF): Add scalar insert exponent support for __ieee128
1588         argument with __ieee128 result.
1589         (VSTDCQP): Add scalar test data class support for __ieee128
1590         argument.
1591         (VSTDCNQP): Add overload support for scalar test negative with
1592         __ieee128 argument.
1593         (VSTDCQP): Add overload support for scalar test data class
1594         __ieee128 argument.
1595         * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
1596         UNSPEC_VSX_SXSIGDP.
1597         (UNSPEC_VSX_SIEXPQP): New constant.
1598         (xsxexpqp): New insn for VSX scalar extract exponent quad
1599         precision.
1600         (xsxsigqp): New insn for VSX scalar extract significand quad
1601         precision.
1602         (xsiexpqpf): New insn for VSX scalar insert exponent quad
1603         precision with floating point argument.
1604         (xststdcqp): New expand for VSX scalar test data class quad
1605         precision.
1606         (xststdcnegqp): New expand for VSX scalar test negative quad
1607         precision.
1608         (xststdcqp): New insn to match expansions for VSX scalar test data
1609         class quad precision and VSX scalar test negative quad precision.
1610         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
1611         special case operand checking to enforce that second operand of
1612         VSX scalar test data class with quad precision argument is a 7-bit
1613         unsigned literal.
1614         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1615         prototypes and descriptions of __ieee128 versions of
1616         scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
1617         scalar_test_data_class, and scalar_test_neg built-in functions.
1619 2016-07-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1621         PR tree-optimization/81162
1622         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
1623         replace a negate with an add.
1625 2017-07-14  James Greenhalgh  <james.greenhalgh@arm.com>
1627         * doc/invoke.texi (arm/-mcpu): Document +crypto.
1629 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1631         * config/arm/arm-c.c (arm_cpu_builtins): Define
1632         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
1634 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1636         * config/arm/arm-cpus.in (cortex-r52): Add new entry.
1637         (armv8-r): Set ARM Cortex-R52 as default CPU.
1638         * config/arm/arm-tables.opt: Regenerate.
1639         * config/arm/arm-tune.md: Regenerate.
1640         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
1641         Cortex-R52.
1642         * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
1643         extension for -mcpu=cortex-r52.
1645 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1647         * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
1648         (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
1649         * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
1650         (fp-armv8): Define it as FP_ARMv8 only.
1651         config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
1652         (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
1653         TARGET_FPU_ARMV8.
1654         config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
1655         TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
1656         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
1657         first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
1658         than TARGET_FPU_ARMV8.
1659         * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
1660         __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
1661         * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
1662         TARGET_FPU_ARMV8.
1663         * config/arm/neon.md (neon_vrint): Likewise.
1664         (neon_vcvt): Likewise.
1665         (neon_<fmaxmin_op><mode>): Likewise.
1666         (<fmaxmin><mode>3): Likewise.
1667         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
1668         * config/arm/predicates.md (arm_cond_move_operator): Check against
1669         TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
1671 2017-07-14  Jackson Woodruff  <jackson.woodruff@arm.com>
1673         * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
1674         to top of function.
1676 2017-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1678         * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
1679         loop in comment with memset.
1681 2017-07-14  Martin Liska  <mliska@suse.cz>
1683         * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
1684         * dwarf2out.c (is_java): Remove the function.
1685         (output_pubname): Remove usage of the function.
1686         (lower_bound_default): Remove usage of DW_LANG_Java.
1687         (gen_compile_unit_die): Likewise.
1688         * gcc.c: Remove compiler defaults for .java and .zip files.
1689         * gimple-expr.c (remove_suffix): Change as there's no longer
1690         extension than 4-letter one.
1691         * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
1692         (gimplify_save_expr): Likewise.
1693         * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
1694         as it's possible even for other languages than Java.
1695         * langhooks.h (struct lang_hooks): Remove Java from a comment.
1696         * lto-opts.c (lto_write_options): Remove reference to Java.
1697         * opts.c (strip_off_ending): Update file extension handling.
1698         * tree-cfg.c (verify_gimple_call): Remove comment with Java.
1699         * tree-eh.c (lower_resx): Likewise.
1700         * tree.c (free_lang_data_in_type): Remove dead code.
1701         (find_decls_types_r): Likewise.
1702         (build_common_builtin_nodes): Remove Java from a comment.
1703         (verify_type): Remove dead code.
1704         * varasm.c (assemble_external): Remove Java from a comment.
1706 2017-07-14  Martin Liska  <mliska@suse.cz>
1708         * opts.c (finish_options): Add quotes.
1709         (common_handle_option): Likewise.
1711 2017-07-14  Martin Liska  <mliska@suse.cz>
1713         * dbxout.c (get_lang_number): Do not handle GNU Pascal.
1714         * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
1715         Remove N_SO_PASCAL.
1716         * dwarf2out.c (lower_bound_default): Do not handle
1717         DW_LANG_Pascal83.
1718         (gen_compile_unit_die): Likewise.
1719         * gcc.c: Remove default extension binding for GNU Pascal.
1720         * stmt.c: Remove Pascal language from a comment.
1721         * xcoffout.c: Likewise.
1723 2017-07-13  David Malcolm  <dmalcolm@redhat.com>
1725         PR c/81405
1726         * diagnostic-show-locus.c (fixit_cmp): New function.
1727         (layout::layout): Sort m_fixit_hints.
1728         (column_range::column_range): Assert that the values are valid.
1729         (struct char_span): New struct.
1730         (correction::overwrite): New method.
1731         (struct source_line): New struct.
1732         (line_corrections::add_hint): Add assertions.  Reimplement memcpy
1733         calls in terms of classes source_line and char_span, and
1734         correction::overwrite.
1735         (selftest::test_overlapped_fixit_printing_2): New function.
1736         (selftest::diagnostic_show_locus_c_tests): Call it.
1738 2017-07-13  Will Schmidt  <will_schmidt@vnet.ibm.com>
1740         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
1741         early if there is no lhs.
1743 2017-07-13  Martin Liska  <mliska@suse.cz>
1745         * dwarf2out.c (gen_pointer_type_die): Remove dead code.
1746         (gen_reference_type_die): Likewise.
1747         * stor-layout.c: Remove Pascal-related comment.
1749 2017-07-13  Martin Liska  <mliska@suse.cz>
1751         * opts.c (finish_options): Add quotes to error messages.
1752         (parse_sanitizer_options): Likewise.
1754 2017-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1756         * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
1758 2017-07-13  Richard Earnshaw  <rearnsha@arm.com>
1760         * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
1762 2017-07-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
1764         * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
1765         during expansion.
1766         * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
1768 2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1770         PR target/81193
1771         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
1772         provides the hardware capability bits, define the macro
1773         __BUILTIN_CPU_SUPPORTS__.
1774         * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
1775         if GLIBC does not provide the hardware capability bits.  Add a
1776         gcc_unreachable call if the built-in cpu function is neither
1777         __builtin_cpu_is nor __builtin_cpu_supports.
1778         (rs6000_get_function_versions_dispatcher): Change the warning
1779         that an old GLIBC is used which does not export the capability
1780         bits to be an error.
1781         * doc/extend.texi (target_clones attribute): Document the
1782         restriction that GLIBC 2.23 or newer is needed on the PowerPC.
1783         (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
1784         needed by __builtin_cpu_is and __builtin_cpu_supports.  Document
1785         the macros defined by GCC if the newer GLIBC is available.
1787 2017-07-12  Jeff Law  <law@redhat.com>
1789         * config/riscv/riscv.c: Remove unnecessary includes.  Reorder
1790         remaining includes slightly.
1791         * config/riscv/riscv-builtins.c: Include profile-count.h.
1793 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
1795         PR target/79883
1796         * config/avr/avr.c (avr_set_current_function): In diagnostic
1797         messages: Quote keywords and (parts of) identifiers.
1798         [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
1799         "INTERUPT".
1801 2017-07-12  Carl Love  <cel@us.ibm.com>
1803         * config/rs6000/rs6000-c.c: Add support for built-in functions
1804         vector bool char vec_revb (vector bool char);
1805         vector bool short vec_revb (vector short char);
1806         vector bool int vec_revb (vector bool int);
1807         vector bool long long vec_revb (vector bool long long);
1808         * doc/extend.texi: Update the built-in documentation file for the
1809         new built-in functions.
1811 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1813         * config/s390/s390.md: Remove movcc splitter.
1815 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1817         * config/s390/s390.c (s390_rtx_costs): Return proper costs for
1818         load/store on condition.
1820 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
1822         PR target/81407
1823         * config/avr/avr.c (avr_encode_section_info)
1824         [progmem && !TREE_READONLY]: Error if progmem object needs
1825         constructing.
1827 2017-07-11  Michael Collison  <michael.collison@arm.com>
1829         * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
1830         New pattern.
1832 2017-07-11  Carl Love  <cel@us.ibm.com>
1834         * config/rs6000/rs6000-c.c: Add support for builtins
1835         vector unsigned int vec_parity_lsbb (vector signed int);
1836         vector unsigned int vec_parity_lsbb (vector unsigned int);
1837         vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
1838         vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
1839         vector unsigned long long vec_parity_lsbb (vector signed long long);
1840         vector unsigned long long vec_parity_lsbb (vector unsigned long long);
1841         * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
1842         * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
1843         * doc/extend.texi: Update the built-in documentation file for the
1844         new built-in functions.
1846 2017-07-11  David Malcolm  <dmalcolm@redhat.com>
1848         * diagnostic-show-locus.c: Include "gcc-rich-location.h".
1849         (layout::m_primary_loc): New field.
1850         (layout::layout): Initialize new field.  Move location filtering
1851         logic from here to...
1852         (layout::maybe_add_location_range): ...this new method.  Add
1853         support for filtering to just the lines already specified by other
1854         locations.
1855         (layout::will_show_line_p): New method.
1856         (gcc_rich_location::add_location_if_nearby): New method.
1857         (selftest::test_add_location_if_nearby): New test function.
1858         (selftest::diagnostic_show_locus_c_tests): Call it.
1859         * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
1860         New method.
1862 2017-07-11  Tom de Vries  <tom@codesourcery.com>
1864         * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
1865         (bb_first_real_insn): New function.
1866         (nvptx_single): Add extra initialization of broadcasted condition
1867         variables.
1869 2017-07-11  Nathan Sidwell  <nathan@acm.org>
1871         * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
1873 2017-07-11  Georg-Johann Lay  <avr@gjlay.de>
1875         * doc/extend.texi (AVR Function Attributes): Remove weblink to
1876         Binutils doc as TEXI will mess them up.
1877         * doc/invoke.texi (AVR Options): Same here.
1879 2017-07-11  Daniel Cederman  <cederman@gaisler.com>
1881         * config/sparc/sparc.opt (mfix-ut700): New option.
1882         (mfix-gr712rc): Likewise.
1883         (sparc_fix_b2bst): New variable.
1884         * doc/invoke.texi (SPARC options): Document them.
1885         (ARM options): Fix warnings.
1886         * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
1887         instructions to prevent sequences that can trigger the store-store
1888         errata for certain LEON3FT processors.
1889         (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
1890         (sparc_option_override): Set sparc_fix_b2bst appropriately.
1891         * config/sparc/sparc.md (fix_b2bst): New attribute.
1892         (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
1894 2017-07-10  Uros Bizjak  <ubizjak@gmail.com>
1896         PR target/81375
1897         * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
1898         (rcpps): Ditto.
1899         (*rsqrtsf2_sse): Ditto.
1900         (rsqrtsf2): Ditto.
1901         (div<mode>3): Macroize insn from divdf3 and divsf3
1902         using MODEF mode iterator.
1904 2017-07-10  Martin Sebor  <msebor@redhat.com>
1906         PR tree-optimization/80397
1907         * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
1908         instead of testing for equality to INTEGER_TYPE.
1910 2017-07-10  Vineet Gupta <vgupta@synopsys.com>
1912         * config.gcc: Remove uclibc from arc target spec.
1914 2017-07-10  Claudiu Zissulescu  <claziss@synopsys.com>
1916         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
1918 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
1920         PR lto/80838
1921         * lto-wrapper.c (remove_option): New function.
1922         (merge_and_complain): Merge PIC/PIE options more realistically.
1924 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
1926         Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
1928         PR target/20296
1929         PR target/81268
1930         * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
1931         (HAVE_AS_AVR_MGCCISR_OPTION):  If so, AC_DEFINE it.
1932         * config.in: Regenerate.
1933         * configure: Regenerate.
1934         * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
1935         * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
1936         * config/avr/avr.opt (-mgas-isr-prologues): New option and...
1937         (TARGET_GASISR_PROLOGUES): ...target mask.
1938         * common/config/avr/avr-common.c
1939         (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
1940         Set -mgas-isr-prologues.
1941         * config/avr/avr-passes.def (avr_pass_pre_proep): Add
1942         INSERT_PASS_BEFORE for it.
1943         * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
1944         * config/avr/avr.c (avr_option_override)
1945         [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
1946         (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
1947         (avr_attribute_table) <no_gccisr>: Add new function attribute.
1948         (avr_set_current_function) <is_no_gccisr>: Init machine field.
1949         (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
1950         and rtl_opt_pass.
1951         (make_avr_pass_pre_proep): New function.
1952         (emit_push_sfr) <treg>: Add argument to function and use it
1953         instead of TMP_REG.
1954         (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
1955         and set machine->gasisr.yes.
1956         (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
1957         (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
1958         __gcc_isr.n_pushed to .L__stack_usage.
1959         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
1960         (avr_asm_final_postscan_insn): ...this new static function.
1961         * config/avr/avr.h (machine_function)
1962         <is_no_gccisr, use_L__stack_usage>: New fields.
1963         <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
1964         * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
1965         (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
1966         (gasisr, *gasisr): New expander and insn.
1967         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1968         [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
1969         * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
1971 2017-07-10  Richard Earnshaw  <rearnsha@arm.com>
1973         * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
1974         in quoted strings.
1976 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
1978         Move jump-tables out of .text again.
1980         PR target/81075
1981         * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
1982         (ASM_OUTPUT_ADDR_VEC): New function.
1983         (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
1984         (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
1985         INSN_ADDRESSes as asm comment.
1986         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
1987         (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
1988         (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
1989         * config/avr/avr.md (*tablejump): Adjust comment.
1990         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1991         * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
1992         New detail.
1993         * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
1994         (avr_output_addr_vec): New proto.
1995         (avr_log_t) <insn_addresses>: New field.
1997 2017-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1999         PR target/81313
2000         * config/i386/i386.c (ix86_function_arg_advance): Set
2001         outgoing_args_on_stack to true if there are outgoing arguments
2002         on stack.
2003         (ix86_function_arg): Likewise.
2004         (ix86_get_drap_rtx): Use DRAP only if there are outgoing
2005         arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
2006         * config/i386/i386.h (machine_function): Add
2007         outgoing_args_on_stack.
2009 2017-07-09  Krister Walfridsson  <krister.walfridsson@gmail.com>
2011         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
2012         supporting pthreds.
2013         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
2015 2017-07-08  Richard Sandiford  <richard.sandiford@linaro.org>
2017         * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
2018         (REAL_H): Remove $(MACHMODE_H).
2019         (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
2020         double-int.h.
2021         (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
2022         $(MACHMODE_H) and double-int.h.
2023         (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
2024         $(MACHMODE_H).
2025         (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
2026         double-int.h.
2028 2017-07-07  Andrew Pinski  <apinski@cavium.com>
2030         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
2031         prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
2033 2017-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2035         * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
2036         Add warning if GCC was not configured to link against a GLIBC that
2037         exports the hardware capability bits.
2038         (make_resolver_func): Make resolver function private and not a
2039         COMDAT function.  Create the name with clone_function_name instead
2040         of make_unique_name.
2042         PR target/81348
2043         * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
2044         correct operand in doing the split.
2046 2017-07-07 Carl Love  <cel@us.ibm.com>
2048         * config/rs6000/rs6000-c: Add support for built-in function
2049         vector unsigned short vec_pack_to_short_fp32 (vector float,
2050                                                       vector float).
2051         * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
2052         BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
2053         * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
2054         * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
2055         (convert_4f32_8i16): Add define_expand.
2056         * doc/extend.texi: Update the built-in documentation file for the
2057         new built-in function.
2059 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2061         * config/sparc/m8.md: New file.
2062         * config/sparc/sparc.md: Include m8.md.
2064 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2066         * config/sparc/sparc.opt: New option -mvis4b.
2067         * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
2068         (sparc_option_override): Handle VIS4B.
2069         (enum sparc_builtins): Define
2070         SPARC_BUILTIN_DICTUNPACK{8,16,32},
2071         SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
2072         SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
2073         SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
2074         SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
2075         (check_constant_argument): New function.
2076         (sparc_vis_init_builtins): Define builtins
2077         __builtin_vis_dictunpack{8,16,32},
2078         __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
2079         __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
2080         __builtin_vis_fpcmpde{8,16,32}shl and
2081         __builtin_vis_fpcmpur{8,16,32}shl.
2082         (sparc_expand_builtin): Check that the constant operands to
2083         __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
2084         constant and in range.
2085         * config/sparc/sparc-c.c (sparc_target_macros): Handle
2086         TARGET_VIS4B.
2087         * config/sparc/sparc.h (SPARC_IMM2_P): Define.
2088         (SPARC_IMM5_P): Likewise.
2089         * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
2090         (enabled): Handle vis4b.
2091         (UNSPEC_DICTUNPACK): New unspec.
2092         (UNSPEC_FPCMPSHL): Likewise.
2093         (UNSPEC_FPUCMPSHL): Likewise.
2094         (UNSPEC_FPCMPDESHL): Likewise.
2095         (UNSPEC_FPCMPURSHL): Likewise.
2096         (cpu_feature): New CPU feature `vis4b'.
2097         (dictunpack{8,16,32}): New insns.
2098         (FPCSMODE): New mode iterator.
2099         (fpcscond): New code iterator.
2100         (fpcsucond): Likewise.
2101         (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
2102         (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
2103         (fpcmpde{8,16,32}{si,di}shl): Likewise.
2104         (fpcmpur{8,16,32}{si,di}shl): Likewise.
2105         * config/sparc/constraints.md: Define constraints `q' for unsigned
2106         2-bit integer constants and `t' for unsigned 5-bit integer
2107         constants.
2108         * config/sparc/predicates.md (imm5_operand_dictunpack8): New
2109         predicate.
2110         (imm5_operand_dictunpack16): Likewise.
2111         (imm5_operand_dictunpack32): Likewise.
2112         (imm2_operand): Likewise.
2113         * doc/invoke.texi (SPARC Options): Document -mvis4b.
2114         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2115         ditunpack* and fpcmp*shl builtins.
2117 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2119         * config.gcc: Handle m8 in --with-{cpu,tune} options.
2120         * config.in: Add HAVE_AS_SPARC6 define.
2121         * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
2122         M8.
2123         * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
2124         TARGET_CPU_m8.
2125         (ASM_CPU32_DEFAUILT_SPEC): Likewise.
2126         (CPP_CPU_SPEC): Handle m8.
2127         (ASM_CPU_SPEC): Likewise.
2128         * config/sparc/sparc-opts.h (enum processor_type): Add
2129         PROCESSOR_M8.
2130         * config/sparc/sparc.c (m8_costs): New struct.
2131         (sparc_option_override): Handle TARGET_CPU_m8.
2132         (sparc32_initialize_trampoline): Likewise.
2133         (sparc64_initialize_trampoline): Likewise.
2134         (sparc_issue_rate): Likewise.
2135         (sparc_register_move_cost): Likewise.
2136         * config/sparc/sparc.h (TARGET_CPU_m8): Define.
2137         (CPP_CPU64_DEFAULT_SPEC): Define for M8.
2138         (ASM_CPU64_DEFAULT_SPEC): Likewise.
2139         (CPP_CPU_SPEC): Handle M8.
2140         (ASM_CPU_SPEC): Likewise.
2141         (AS_M8_FLAG): Define.
2142         * config/sparc/sparc.md: Add m8 to the cpu attribute.
2143         * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
2144         * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
2145         M8 instructions.
2146         * configure: Regenerate.
2147         * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
2148         -mtune=m8.
2150 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2152         * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
2153         subtypes.
2154         * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
2155         ("*movdi_insn_sp32"): Do not set v3pipe.
2156         ("*movsi_insn"): Likewise.
2157         ("*movdi_insn_sp64"): Likewise.
2158         ("*movsf_insn"): Likewise.
2159         ("*movdf_insn_sp32"): Likewise.
2160         ("*movdf_insn_sp64"): Likewise.
2161         ("*zero_extendsidi2_insn_sp64"): Likewise.
2162         ("*sign_extendsidi2_insn"): Likewise.
2163         ("*mov<VM32:mode>_insn"): Likewise.
2164         ("*mov<VM64:mode>_insn_sp64"): Likewise.
2165         ("*mov<VM64:mode>_insn_sp32"): Likewise.
2166         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
2167         ("<vlop:code><VL:mode>3"): Likewise.
2168         ("*not_<vlop:code><VL:mode>3"): Likewise.
2169         ("*nand<VL:mode>_vis"): Likewise.
2170         ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
2171         ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
2172         ("one_cmpl<VL:mode>2"): Likewise.
2173         ("faligndata<VM64:mode>_vis"): Likewise.
2174         ("alignaddrsi_vis"): Likewise.
2175         ("alignaddrdi_vis"): Likweise.
2176         ("alignaddrlsi_vis"): Likewise.
2177         ("alignaddrldi_vis"): Likewise.
2178         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
2179         ("bmaskdi_vis"): Likewise.
2180         ("bmasksi_vis"): Likewise.
2181         ("bshuffle<VM64:mode>_vis"): Likewise.
2182         ("cmask8<P:mode>_vis"): Likewise.
2183         ("cmask16<P:mode>_vis"): Likewise.
2184         ("cmask32<P:mode>_vis"): Likewise.
2185         ("pdistn<P:mode>_vis"): Likewise.
2186         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
2188 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2190         * config/sparc/sparc.md ("subtype"): New insn attribute.
2191         ("*wrgsr_sp64"): Set insn subtype.
2192         ("*rdgsr_sp64"): Likewise.
2193         ("alignaddrsi_vis"): Likewise.
2194         ("alignaddrdi_vis"): Likewise.
2195         ("alignaddrlsi_vis"): Likewise.
2196         ("alignaddrldi_vis"): Likewise.
2197         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
2198         ("fexpand_vis"): Likewise.
2199         ("fpmerge_vis"): Likewise.
2200         ("faligndata<VM64:mode>_vis"): Likewise.
2201         ("bshuffle<VM64:mode>_vis"): Likewise.
2202         ("cmask8<P:mode>_vis"): Likewise.
2203         ("cmask16<P:mode>_vis"): Likewise.
2204         ("cmask32<P:mode>_vis"): Likewise.
2205         ("fchksm16_vis"): Likewise.
2206         ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
2207         ("fmean16_vis"): Likewise.
2208         ("fp<plusminus_insn>64_vis"): Likewise.
2209         ("<plusminus_insn>v8qi3"): Likewise.
2210         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
2211         ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
2212         ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
2213         ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
2214         ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
2215         ("*movqi_insn"): Likewise.
2216         ("*movhi_insn"): Likewise.
2217         ("*movsi_insn"): Likewise.
2218         ("movsi_pic_gotdata_op"): Likewise.
2219         ("*movdi_insn_sp32"): Likewise.
2220         ("*movdi_insn_sp64"): Likewise.
2221         ("movdi_pic_gotdata_op"): Likewise.
2222         ("*movsf_insn"): Likewise.
2223         ("*movdf_insn_sp32"): Likewise.
2224         ("*movdf_insn_sp64"): Likewise.
2225         ("*zero_extendhisi2_insn"): Likewise.
2226         ("*zero_extendqihi2_insn"): Likewise.
2227         ("*zero_extendqisi2_insn"): Likewise.
2228         ("*zero_extendqidi2_insn"): Likewise.
2229         ("*zero_extendhidi2_insn"): Likewise.
2230         ("*zero_extendsidi2_insn_sp64"): Likewise.
2231         ("ldfsr"): Likewise.
2232         ("prefetch_64"): Likewise.
2233         ("prefetch_32"): Likewise.
2234         ("tie_ld32"): Likewise.
2235         ("tie_ld64"): Likewise.
2236         ("*tldo_ldub_sp32"): Likewise.
2237         ("*tldo_ldub1_sp32"): Likewise.
2238         ("*tldo_ldub2_sp32"): Likewise.
2239         ("*tldo_ldub_sp64"): Likewise.
2240         ("*tldo_ldub1_sp64"): Likewise.
2241         ("*tldo_ldub2_sp64"): Likewise.
2242         ("*tldo_ldub3_sp64"): Likewise.
2243         ("*tldo_lduh_sp32"): Likewise.
2244         ("*tldo_lduh1_sp32"): Likewise.
2245         ("*tldo_lduh_sp64"): Likewise.
2246         ("*tldo_lduh1_sp64"): Likewise.
2247         ("*tldo_lduh2_sp64"): Likewise.
2248         ("*tldo_lduw_sp32"): Likewise.
2249         ("*tldo_lduw_sp64"): Likewise.
2250         ("*tldo_lduw1_sp64"): Likewise.
2251         ("*tldo_ldx_sp64"): Likewise.
2252         ("*mov<VM32:mode>_insn"): Likewise.
2253         ("*mov<VM64:mode>_insn_sp64"): Likewise.
2254         ("*mov<VM64:mode>_insn_sp32"): Likewise.
2256 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2258         * config/sparc/sparc.md ("type"): New insn type viscmp.
2259         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
2260         viscmp.
2261         ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
2262         ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
2263         ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
2264         * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
2265         viscmp.
2266         ("n7_vis_logical_11cycle"): Likewise.
2267         * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
2268         * config/sparc/niagara2.md ("niag3_vis": Likewise.
2269         * config/sparc/niagara.md ("niag_vis"): Likewise.
2270         * config/sparc/ultra3.md ("us3_fga"): Likewise.
2271         * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
2273 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
2275         * config/sparc/sparc.md: New instruction type `bmask'.
2276         (bmaskdi_vis): Use the `bmask' type.
2277         (bmasksi_vis): Likewise.
2278         * config/sparc/ultra3.md (us3_array): Likewise.
2279         * config/sparc/niagara7.md (n7_array): Likewise.
2280         * config/sparc/niagara4.md (n4_array): Likewise.
2281         * config/sparc/niagara2.md (niag2_vis): Likewise.
2282         (niag3_vis): Likewise.
2283         * config/sparc/niagara.md (niag_vis): Likewise.
2285 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
2287         * ipa-comdats.c: Remove optimize check from gate.
2288         * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
2289         for functions not optimized.
2290         (ipa_fn_summary_read): Skip optimize check.
2291         (ipa_fn_summary_write): Likewise.
2292         * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
2293         is optimized.
2294         * ipa-inline.c (can_inline_edge_p): Not optimized functions are
2295         uninlinable.
2296         (can_inline_edge_p): Check flag_pcc_struct_return for match.
2297         (check_callers): Give up on caller which is not optimized.
2298         (inline_small_functions): Likewise.
2299         (ipa_inline): Do not give up when not optimizing.
2300         * ipa-visbility.c (function_and_variable_visibility): Do not optimize
2301         away unoptimizes cdtors.
2302         (whole_program_function_and_variable_visibility): Do
2303         ipa_discover_readonly_nonaddressable_vars in LTO mode.
2304         * ipa.c (process_references): Do not check optimize.
2305         (symbol_table::remove_unreachable_nodes): Update optimize check.
2306         (set_writeonly_bit): Update optimize check.
2307         (pass_ipa_cdtor_merge::gate): Do not check optimize.
2308         (pass_ipa_single_use::gate): Remove.
2310 2017-07-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2312         * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
2313         insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
2314         rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
2315         mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
2316         permute_load, permute_store, adjust_extract, adjust_splat,
2317         adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
2318         replace_swap_with_copy, dump_swap_insn_table,
2319         alignment_with_canonical_addr, alignment_mask, find_alignment_op,
2320         recombine_lvx_pattern, recombine_stvx_pattern,
2321         recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
2322         make_pass_analyze_swaps): Move all code related to p8 swap optimizations
2323         to file rs6000-p8swap.c.
2324         * config/rs6000/rs6000-p8swap.c: New file.
2325         * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
2326         * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
2327         and rs6000*-*-* targets.
2329 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
2331         * Makefile.in (selftest): Remove dependency on s-selftest-c++.
2333 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
2335         * lto-wrapper.c (merge_and_complain): Do not merge
2336         fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
2337         fsigned_zeros, ftrapping_math, fwrapv.
2338         (append_compiler_options): Do not track these options.
2339         (append_linker_options): Likewie
2341 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
2343         * cgraphunit.c (cgraph_node::finalize_function): When
2344         !flag_toplevel_reorde set no_reorder flag.
2345         (varpool_node::finalize_decl): Likewise.
2346         (symbol_table::compile): Drop no toplevel reorder path.
2348 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
2350         * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
2351         edges; zero probability is not better than uninitialized.
2353 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
2355         * asan.h (asan_sanitize_allocas_p): Declare.
2356         * asan.c (asan_sanitize_allocas_p): New function.
2357         (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
2358         (handle_builtin_alloca): Likewise.
2359         * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
2360         if !asan_sanitize_allocas_p.
2361         * params.def (asan-instrument-allocas): Add new option.
2362         * params.h (ASAN_PROTECT_ALLOCAS): Define.
2363         * opts.c (common_handle_option): Disable allocas sanitization for
2364         KASan by default.
2366 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
2368         * asan.c: Include gimple-fold.h.
2369         (get_last_alloca_addr): New function.
2370         (handle_builtin_stackrestore): Likewise.
2371         (handle_builtin_alloca): Likewise.
2372         (asan_emit_allocas_unpoison): Likewise.
2373         (get_mem_refs_of_builtin_call): Add new parameter, remove const
2374         quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
2375         BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
2376         (instrument_builtin_call): Pass gimple iterator to
2377         get_mem_refs_of_builtin_call.
2378         (last_alloca_addr): New global.
2379         * asan.h (asan_emit_allocas_unpoison): Declare.
2380         * builtins.c (expand_asan_emit_allocas_unpoison): New function.
2381         (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
2382         * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
2383         if function calls alloca.
2384         * gimple-fold.c (replace_call_with_value): Remove static keyword.
2385         * gimple-fold.h (replace_call_with_value): Declare.
2386         * internal-fn.c: Include asan.h.
2387         * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
2388         BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
2390 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
2392         * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
2393         (C_SELFTEST_FLAGS): New.
2394         (CPP_SELFTEST_FLAGS): New.
2395         (SELFTEST_DEPS): New, from deps of s-selftest.
2396         (C_SELFTEST_DEPS): New, from deps of s-selftest.
2397         (CPP_SELFTEST_DEPS): New.
2398         (selftest): Add dependency on s-selftest-c++.
2399         (s-selftest): Rename to...
2400         (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
2401         and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
2402         than SELFTEST_FLAGS.
2403         (selftest-gdb): Rename to...
2404         (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
2405         C_SELFTEST_FLAGS.
2406         (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
2407         (selftest-valgrind): Rename to...
2408         (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
2409         C_SELFTEST_FLAGS.
2410         (selftest-valgrind): Reintroduce as an alias for
2411         selftest-c-valgrind.
2412         (s-selftest-c++): New.
2413         (selftest-c++-gdb): New.
2414         (selftest-c++-valgrind): New.
2416 2017-07-06  Olivier Hainque  <hainque@adacore.com>
2418         * gcc.c (process_command): When deciding if undefined variables
2419         should be ignored when processing specs, accept "gcc -v" as well.
2421 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
2423         * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
2424         afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
2426 2017-07-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2428         * config/arm/arm-cpus.in (armv8-r): Add new entry.
2429         * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
2430         * config/arm/arm-tables.opt: Regenerate.
2431         * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
2432         enumerator.
2433         * doc/invoke.texi: Mention -march=armv8-r and its extensions.
2435 2017-07-06  Carl Love  <cel@us.ibm.com>
2437         * ChangeLog: Clean up from mid air collision
2439 2017-07-06  Carl Love  <cel@us.ibm.com>
2441         * config/rs6000/rs6000-c.c: Add support for built-in functions
2442         vector signed int vec_subc (vector signed int, vector signed int);
2443         vector signed __int128 vec_subc (vector signed __int128,
2444                                          vector signed __int128);
2445         vector unsigned __int128 vec_subc (vector unsigned __int128,
2446                                            vector unsigned __int128);
2447         vector signed int vec_sube (vector signed int, vector signed int,
2448                                     vector signed int);
2449         vector unsigned int vec_sube (vector unsigned int,
2450                                       vector unsigned int,
2451                                       vector unsigned int);
2452         vector signed __int128 vec_sube (vector signed __int128,
2453                                          vector signed __int128,
2454                                          vector signed__int128);
2455         vector unsigned __int128 vec_sube (vector unsigned __int128,
2456                                            vector unsigned __int128,
2457                                            vector unsigned __int128);
2458         vector signed int vec_subec (vector signed int, vector signed int,
2459                                      vector signed int);
2460         vector unsigned int vec_subec (vector unsigned int,
2461                                        vector unsigned int,
2462                                        vector unsigned int);
2463         vector signed __int128 vec_subec (vector signed __int128,
2464                                           vector signed __int128,
2465                                           vector signed__int128);
2466         vector unsigned __int128 vec_subec (vector unsigned __int128,
2467                                             vector unsigned __int128,
2468                                             vector unsigned __int128);
2469         * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
2470         ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
2471         * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
2472         BU_ALTIVEC_OVERLOAD_X definitions.
2473         * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
2474         * doc/extend.texi: Update the built-in documentation file for the new
2475         built-in functions.
2477 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
2479         PR c++/79300
2480         * diagnostic-show-locus.c (layout::layout): Use start and finish
2481         spelling location for the start and finish of each range.
2482         * genmatch.c (linemap_client_expand_location_to_spelling_point):
2483         Add unused aspect param.
2484         * input.c (expand_location_1): Add "aspect" param, and use it
2485         to access the correct part of the location.
2486         (expand_location): Pass LOCATION_ASPECT_CARET to new param of
2487         expand_location_1.
2488         (expand_location_to_spelling_point): Likewise.
2489         (linemap_client_expand_location_to_spelling_point): Add "aspect"
2490         param, and pass it to expand_location_1.
2492 2017-07-06  Sebastian Peryt  <sebastian.peryt@intel.com>
2494         * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
2495         _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
2496         _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
2497         _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
2498         _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
2499         _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
2500         _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
2501         _mm_maskz_getmant_ss): New intrinsics.
2502         (__builtin_ia32_getexpss128_mask): Changed to ...
2503         __builtin_ia32_getexpss128_round ... this.
2504         (__builtin_ia32_getexpsd128_mask): Changed to ...
2505         __builtin_ia32_getexpsd128_round ... this.
2506         * config/i386/i386-builtin-types.def
2507         ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
2508         (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
2509         * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
2510         __builtin_ia32_getexpss_mask_round,     __builtin_ia32_getmantsd_mask_round,
2511         __builtin_ia32_getmantss_mask_round): New builtins.
2512         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
2513         V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
2514         (CODE_FOR_avx512f_vgetmantv2df_mask_round,
2515         CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
2516         * config/i386/sse.md
2517         (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
2518         avx512f_sgetexp<mode><mask_scalar_name>
2519         <round_saeonly_scalar_name> ... this.
2520         (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
2521         %0, %1, %2<round_saeonly_op3>}): Changed to ...
2522         vgetexp<ssescalarmodesuffix>
2523         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2524         %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
2525         (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
2526         avx512f_vgetmant<mode><mask_scalar_name>
2527         <round_saeonly_scalar_name> ... this.
2528         (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
2529         %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
2530         vgetmant<ssescalarmodesuffix>
2531         \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
2532         %0<mask_scalar_operand4>, %1, %2
2533         <round_saeonly_scalar_mask_op4>, %3} ... this.
2534         * config/i386/subst.md (mask_scalar_operand4,
2535         round_saeonly_scalar_mask_operand4,     round_saeonly_scalar_mask_op4,
2536         round_saeonly_scalar_nimm_predicate): New subst attributes.
2538 2017-07-06  Julia Koval  <julia.koval@intel.com>
2540         * config/i386/i386.c (ix86_erase_embedded_rounding):
2541         Remove code for old rounding pattern.
2543 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
2545         * config/arm/t-arm (GTM_H): Add arm-cpu.h.
2547 2017-07-06  Christophe Lyon  <christophe.lyon@linaro.org>
2549         * doc/sourcebuild.texi (Test Directives, Variants of
2550         dg-require-support): Add documentation for dg-require-stack-check.
2552 2017-07-05  Sebastian Peryt  <sebastian.peryt@intel.com>
2554         * config/i386/subst.md (mask_scalar, round_scalar,
2555         round_saeonly_scalar): New meta-templates.
2556         (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
2557         round_scalar_mask_operand3, round_scalar_mask_op3,
2558         round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
2559         round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
2560         round_saeonly_scalar_constraint,
2561         round_saeonly_scalar_prefix): New subst attribute.
2562         * config/i386/sse.md
2563         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
2564         <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
2565         <round_scalar_name> ... this.
2566         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
2567         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
2568         <round_scalar_name> ... this.
2569         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
2570         <sse>_vm<code><mode>3<mask_scalar_name>
2571         <round_saeonly_scalar_name> ... this.
2572         (v<plusminus_mnemonic><ssescalarmodesuffix>
2573         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
2574         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
2575         v<plusminus_mnemonic><ssescalarmodesuffix>
2576         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2577         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
2578         (v<multdiv_mnemonic><ssescalarmodesuffix>
2579         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
2580         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
2581         v<multdiv_mnemonic><ssescalarmodesuffix>
2582         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2583         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
2584         (v<maxmin_float><ssescalarmodesuffix>
2585         \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
2586         %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
2587         v<maxmin_float><ssescalarmodesuffix>
2588         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2589         %0<mask_scalar_operand3>, %1, %<iptr>2
2590         <round_saeonly_scalar_mask_op3>} ... this.
2592 2017-07-05  Richard Earnshaw  <rearnsha@arm.com>
2594         * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
2595         (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
2597 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
2598             Alan Hayward  <alan.hayward@arm.com>
2599             David Sherwood  <david.sherwood@arm.com>
2601         * combine.c (simplify_if_then_else): Remove "enum" before
2602         "machine_mode".
2603         * compare-elim.c (can_eliminate_compare): Likewise.
2604         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
2605         Likewise.
2606         (aarch64_lookup_simd_builtin_type): Likewise.
2607         (aarch64_simd_builtin_type): Likewise.
2608         (aarch64_init_simd_builtin_types): Likewise.
2609         (aarch64_simd_expand_args): Likewise.
2610         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
2611         Likewise.
2612         (aarch64_reverse_mask): Likewise.
2613         (aarch64_simd_emit_reg_reg_move): Likewise.
2614         (aarch64_gen_adjusted_ldpstp): Likewise.
2615         (aarch64_ccmp_mode_to_code): Likewise.
2616         (aarch64_operands_ok_for_ldpstp): Likewise.
2617         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2618         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
2619         Likewise.
2620         (aarch64_min_divisions_for_recip_mul): Likewise.
2621         (aarch64_reassociation_width): Likewise.
2622         (aarch64_get_condition_code_1): Likewise.
2623         (aarch64_simd_emit_reg_reg_move): Likewise.
2624         (aarch64_simd_attr_length_rglist): Likewise.
2625         (aarch64_reverse_mask): Likewise.
2626         (aarch64_operands_ok_for_ldpstp): Likewise.
2627         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2628         (aarch64_gen_adjusted_ldpstp): Likewise.
2629         * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
2630         Likewise.
2631         * config/arc/arc.c (legitimate_offset_address_p): Likewise.
2632         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
2633         (arm_lookup_simd_builtin_type): Likewise.
2634         (arm_simd_builtin_type): Likewise.
2635         (arm_init_simd_builtin_types): Likewise.
2636         (arm_expand_builtin_args): Likewise.
2637         * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
2638         * config/ft32/ft32.c (ft32_libcall_value): Likewise.
2639         (ft32_setup_incoming_varargs): Likewise.
2640         (ft32_function_arg): Likewise.
2641         (ft32_function_arg_advance): Likewise.
2642         (ft32_pass_by_reference): Likewise.
2643         (ft32_arg_partial_bytes): Likewise.
2644         (ft32_valid_pointer_mode): Likewise.
2645         (ft32_addr_space_pointer_mode): Likewise.
2646         (ft32_addr_space_legitimate_address_p): Likewise.
2647         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
2648         Likewise.
2649         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
2650         (ix86_emit_outlined_ms2sysv_restore): Likewise.
2651         (iamcu_alignment): Likewise.
2652         (canonicalize_vector_int_perm): Likewise.
2653         (ix86_noce_conversion_profitable_p): Likewise.
2654         (ix86_mpx_bound_mode): Likewise.
2655         (ix86_operands_ok_for_move_multiple): Likewise.
2656         * config/microblaze/microblaze-protos.h
2657         (microblaze_expand_conditional_branch_reg): Likewise.
2658         * config/microblaze/microblaze.c
2659         (microblaze_expand_conditional_branch_reg): Likewise.
2660         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
2661         Likewise.
2662         (rs6000_reassociation_width): Likewise.
2663         (rs6000_invalid_binary_op): Likewise.
2664         (fusion_p9_p): Likewise.
2665         (emit_fusion_p9_load): Likewise.
2666         (emit_fusion_p9_store): Likewise.
2667         * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
2668         Likewise.
2669         (riscv_hard_regno_mode_ok_p): Likewise.
2670         (riscv_address_insns): Likewise.
2671         (riscv_split_symbol): Likewise.
2672         (riscv_legitimize_move): Likewise.
2673         (riscv_function_value): Likewise.
2674         (riscv_hard_regno_nregs): Likewise.
2675         (riscv_expand_builtin): Likewise.
2676         * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
2677         (riscv_build_integer): Likewise.
2678         (riscv_split_integer): Likewise.
2679         (riscv_legitimate_constant_p): Likewise.
2680         (riscv_cannot_force_const_mem): Likewise.
2681         (riscv_regno_mode_ok_for_base_p): Likewise.
2682         (riscv_valid_base_register_p): Likewise.
2683         (riscv_valid_offset_p): Likewise.
2684         (riscv_valid_lo_sum_p): Likewise.
2685         (riscv_classify_address): Likewise.
2686         (riscv_legitimate_address_p): Likewise.
2687         (riscv_address_insns): Likewise.
2688         (riscv_load_store_insns): Likewise.
2689         (riscv_force_binary): Likewise.
2690         (riscv_split_symbol): Likewise.
2691         (riscv_force_address): Likewise.
2692         (riscv_legitimize_address): Likewise.
2693         (riscv_move_integer): Likewise.
2694         (riscv_legitimize_const_move): Likewise.
2695         (riscv_legitimize_move): Likewise.
2696         (riscv_address_cost): Likewise.
2697         (riscv_subword): Likewise.
2698         (riscv_output_move): Likewise.
2699         (riscv_canonicalize_int_order_test): Likewise.
2700         (riscv_emit_int_order_test): Likewise.
2701         (riscv_function_arg_boundary): Likewise.
2702         (riscv_pass_mode_in_fpr_p): Likewise.
2703         (riscv_pass_fpr_single): Likewise.
2704         (riscv_pass_fpr_pair): Likewise.
2705         (riscv_get_arg_info): Likewise.
2706         (riscv_function_arg): Likewise.
2707         (riscv_function_arg_advance): Likewise.
2708         (riscv_arg_partial_bytes): Likewise.
2709         (riscv_function_value): Likewise.
2710         (riscv_pass_by_reference): Likewise.
2711         (riscv_setup_incoming_varargs): Likewise.
2712         (riscv_print_operand): Likewise.
2713         (riscv_elf_select_rtx_section): Likewise.
2714         (riscv_save_restore_reg): Likewise.
2715         (riscv_for_each_saved_reg): Likewise.
2716         (riscv_register_move_cost): Likewise.
2717         (riscv_hard_regno_mode_ok_p): Likewise.
2718         (riscv_hard_regno_nregs): Likewise.
2719         (riscv_class_max_nregs): Likewise.
2720         (riscv_memory_move_cost): Likewise.
2721         * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
2722         * config/rl78/rl78.c (rl78_split_movsi): Likewise.
2723         (rl78_addr_space_address_mode): Likewise.
2724         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2725         Likewise.
2726         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
2727         (rs6000_reassociation_width): Likewise.
2728         (rs6000_invalid_binary_op): Likewise.
2729         (fusion_p9_p): Likewise.
2730         (emit_fusion_p9_load): Likewise.
2731         (emit_fusion_p9_store): Likewise.
2732         * config/visium/visium-protos.h (prepare_move_operands): Likewise.
2733         (ok_for_simple_move_operands): Likewise.
2734         (ok_for_simple_move_strict_operands): Likewise.
2735         (ok_for_simple_arith_logic_operands): Likewise.
2736         (visium_legitimize_reload_address): Likewise.
2737         (visium_select_cc_mode): Likewise.
2738         (output_cbranch): Likewise.
2739         (visium_split_double_move): Likewise.
2740         (visium_expand_copysign): Likewise.
2741         (visium_expand_int_cstore): Likewise.
2742         (visium_expand_fp_cstore): Likewise.
2743         * config/visium/visium.c (visium_pass_by_reference): Likewise.
2744         (visium_function_arg): Likewise.
2745         (visium_function_arg_advance): Likewise.
2746         (visium_libcall_value): Likewise.
2747         (visium_setup_incoming_varargs): Likewise.
2748         (visium_legitimate_constant_p): Likewise.
2749         (visium_legitimate_address_p): Likewise.
2750         (visium_legitimize_address): Likewise.
2751         (visium_secondary_reload): Likewise.
2752         (visium_register_move_cost): Likewise.
2753         (visium_memory_move_cost): Likewise.
2754         (prepare_move_operands): Likewise.
2755         (ok_for_simple_move_operands): Likewise.
2756         (ok_for_simple_move_strict_operands): Likewise.
2757         (ok_for_simple_arith_logic_operands): Likewise.
2758         (visium_function_value_1): Likewise.
2759         (rtx_ok_for_offset_p): Likewise.
2760         (visium_legitimize_reload_address): Likewise.
2761         (visium_split_double_move): Likewise.
2762         (visium_expand_copysign): Likewise.
2763         (visium_expand_int_cstore): Likewise.
2764         (visium_expand_fp_cstore): Likewise.
2765         (visium_split_cstore): Likewise.
2766         (visium_select_cc_mode): Likewise.
2767         (visium_split_cbranch): Likewise.
2768         (output_cbranch): Likewise.
2769         (visium_print_operand_address): Likewise.
2770         * expmed.c (flip_storage_order): Likewise.
2771         * expmed.h (emit_cstore): Likewise.
2772         (flip_storage_order): Likewise.
2773         * genrecog.c (validate_pattern): Likewise.
2774         * hsa-gen.c (gen_hsa_addr): Likewise.
2775         * internal-fn.c (expand_arith_overflow): Likewise.
2776         * ira-color.c (allocno_copy_cost_saving): Likewise.
2777         * lra-assigns.c (find_hard_regno_for_1): Likewise.
2778         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
2779         (process_invariant_for_inheritance): Likewise.
2780         * lra-eliminations.c (move_plus_up): Likewise.
2781         * omp-low.c (lower_oacc_reductions): Likewise.
2782         * simplify-rtx.c (simplify_subreg): Likewise.
2783         * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
2784         (TARGET_CHKP_BOUND_MODE): Likewise..
2785         * targhooks.c (default_chkp_bound_mode): Likewise.
2786         (default_setup_incoming_vararg_bounds): Likewise.
2787         * targhooks.h (default_chkp_bound_mode): Likewise.
2788         (default_setup_incoming_vararg_bounds): Likewise.
2789         * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
2790         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
2791         (have_whole_vector_shift): Likewise.
2792         * tree-vect-stmts.c (vectorizable_load): Likewise.
2793         * doc/tm.texi: Regenerate.
2795 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
2797         Graceful degrade if Binutils PR21472 is not available.
2799         PR target/81072
2800         * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
2801         .rodata in flash test fails.
2802         (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
2803         * confgure: Regenerate.
2804         * config.in: Regenerate.
2805         * config/avr/avr.c (avr_asm_named_section)
2806         [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
2807         __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
2808         (avr_asm_init_sections): Same.
2810 2017-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2812         * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
2813         (fma<VH:mode>4_intrinsic): Likewise.
2814         (*fmsub<VCVTF:mode>4): Likewise.
2815         (*fmsub<VH:mode>4_intrinsic): Likewise.
2817 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
2819         PR target/81305
2820         * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
2821         Don't depend on "optimize > 0".
2822         (out_movhi_r_mr, out_movqi_mr_r): Same.
2823         (out_movhi_mr_r, out_movqi_r_mr): Same.
2824         (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
2825         io_address_operand on "optimize > 0".
2827 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2829         * tree-loop-distribution.c: Add general explanantion on the pass.
2830         (generate_loops_for_partition): Mark distributed loop.
2831         (pg_add_dependence_edges): New parameter.  Handle alias data
2832         dependence specially and record it in the parameter if asked.
2833         (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
2834         (init_partition_graph_vertices, add_partition_graph_edge): New.
2835         (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
2836         (free_partition_graph_vdata, build_partition_graph): New.
2837         (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
2838         (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
2839         (data_ref_segment_size, latch_dominated_by_data_ref): New.
2840         (compute_alias_check_pairs, version_loop_by_alias_check): New.
2841         (version_for_distribution_p, finalize_partitions): New.
2842         (distribute_loop): Handle alias data dependence specially.  Factor
2843         out loop fusion code as functions and call these functions.
2845 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2847         * tree-loop-distribution.c (classify_partition): New parameter and
2848         better handle reduction statement.
2849         (rdg_build_partitions): Revise comment.
2850         (distribute_loop): Compute statements in all partitions and pass it
2851         to classify_partition.
2853 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2855         * tree-loop-distribution.c (enum partition_type): New.
2856         (struct partition): New field type.
2857         (partition_merge_into): Add parameter.  Update partition type.
2858         (data_dep_in_cycle_p, update_type_for_merge): New functions.
2859         (build_rdg_partition_for_vertex): Compute partition type.
2860         (rdg_build_partitions): Dump partition type.
2861         (distribute_loop): Update calls to partition_merge_into.
2863 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2865         * tree-loop-distribution.c (struct ddr_hasher): New.
2866         (ddr_hasher::hash, ::equal, get_data_dependence): New function.
2867         (ddrs_table): New.
2868         (classify_partition): Call get_data_dependence.
2869         (pg_add_dependence_edges): Ditto.
2870         (distribute_loop): Release data dependence hash table.
2872 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2874         * tree-loop-distribution.c (ref_base_address): Delete.
2875         (similar_memory_accesses): Rename ...
2876         (share_memory_accesses): ... to this.  Check if partitions access
2877         the same memory reference.
2878         (distribute_loop): Call share_memory_accesses.
2880 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2882         * tree-loop-distribution.c (struct partition): New field recording
2883         its data reference.
2884         (partition_alloc, partition_free): Init and release data refs.
2885         (partition_merge_into): Merge data refs.
2886         (build_rdg_partition_for_vertex): Collect data refs for partition.
2887         (pg_add_dependence_edges): Change parameters from vector to bitmap.
2888         Update uses.
2889         (distribute_loop): Remve data refs from vertice data of partition
2890         graph.
2892 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2894         * tree-loop-distribution.c (params.h): Include header file.
2895         (MAX_DATAREFS_NUM, DR_INDEX): New macro.
2896         (datarefs_vec): New global var.
2897         (create_rdg_vertices): Use datarefs_vec directly.
2898         (free_rdg): Don't free data references.
2899         (build_rdg): Update use.  Don't free data references.
2900         (distribute_loop): Compute global variable for data references.
2901         Bail out if there are too many data references.
2903 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2905         * tree-loop-distribution.c (loop_nest): New global var.
2906         (build_rdg): Use loop directly, rather than loop nest.
2907         (pg_add_dependence_edges): Remove loop nest parameter.  Use global
2908         variable directly.
2909         (distribute_loop): Compute global variable loop nest.  Update use.
2911 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2913         * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
2914         (partition_merge_into): New parameter.  Dump reason for fusion.
2915         (distribute_loop): Update use of partition_merge_into.
2917 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2919         * tree-loop-distribution.c (bb_top_order_index): New.
2920         (bb_top_order_index_size, bb_top_order_cmp): New.
2921         (stmts_from_loop): Use topological order.
2922         (pass_loop_distribution::execute): Compute and release topological
2923         order for basic blocks.
2925 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2927         * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
2928         if no loops.
2930 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
2932         * cfgloop.h (struct loop): Add comment.  New field orig_loop_num.
2933         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
2934         * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
2935         * internal-fn.def (LOOP_DIST_ALIAS): New.
2936         * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
2937         (fold_loop_internal_call): ... this.
2938         (vect_loop_dist_alias_call): New function.
2939         (set_uid_loop_bbs): Call fold_loop_internal_call.
2940         (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
2941         internal calls.
2943 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
2945         PR target/81300
2946         * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
2947         Require dead FLAGS_REG at the beginning of a peephole.
2949 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
2951         PR target/81294
2952         * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
2953         arguments in the call to __builtin_ia32_sbb_u32.
2954         (_subborrow_u64): Swap _X and _Y arguments in the call to
2955         __builtin_ia32_sbb_u64.
2957 2017-07-04  Jakub Jelinek  <jakub@redhat.com>
2959         PR debug/81278
2960         * tree-vrp.c (compare_assert_loc): Turn into a function template
2961         with stable template parameter.  Only test if a->e is NULL,
2962         !a->e == !b->e has been verified already.  Use e == NULL or
2963         e != NULL instead of e or ! e tests.  If stable is true, don't use
2964         iterative_hash_expr, on the other side allow a or b or both NULL
2965         and sort the NULLs last.
2966         (process_assert_insertions): Sort using compare_assert_loc<false>
2967         instead of compare_assert_loc, later sort using
2968         compare_assert_loc<true> before calling process_assert_insertions_for
2969         in a loop.  Use break instead of continue once seen NULL pointer.
2971 2017-07-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2973         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
2974         Cortex-R7 and Cortex-R8 processors.
2976 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
2978         * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
2979         uninitialized while src is not.
2981 2017-07-04  Richard Earnshaw  <rearnsha@arm.com>
2983         * common/config/arm/arm-common.c: Adjust include path for
2984         arm-cpu-cdata.h
2985         * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
2986         (arm-cpu.h): Create in build directory.  Adjust dependency rules.
2987         (arm-cpu-data.h): Likewise.
2988         (arm-cpu-cdata.h): Likewise.
2989         * config/arm/arm-cpu.h: Delete.
2990         * config/arm/arm-cpu-cdata.h: Delete.
2991         * config/arm/arm-cpu-data.h: Delete.
2993 2017-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
2995         * config/arm/arm-cpus.in (cortex-a55): New.
2996         (cortex-a75): Likewise.
2997         (cortex-a75.cortex-a55): Likewise.
2998         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
2999         cortex-a75.
3000         * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
3001         * config/arm/arm-cpu-cdata.h: Regenerate.
3002         * config/arm/arm-cpu-data.h: Regenerate.
3003         * config/arm/arm-cpu.h: Regenerate.
3004         * config/arm/arm-tables.opt: Regenerate.
3005         * config/arm/arm-tune.md: Regenerate.
3007 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
3009         * haifa-sched.c (sched_create_recovery_edges): Update profile.
3011 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
3013         * bb-reorder.c (better_edge_p): Fix handling of uninitialized
3014         probability.
3016 2017-07-04  Richard Sandiford  <richard.sandiford@linaro.org>
3018         PR tree-optimization/81292
3019         * tree-ssa-strlen.c (handle_builtin_strlen): When setting
3020         full_string_p, also call adjust_related_strinfos if the adjustment
3021         is simple, otherwise invalidate related strinfos.
3023 2017-07-04  Martin Liska  <mliska@suse.cz>
3025         PR sanitizer/81040
3026         * sanopt.c (sanitize_rewrite_addressable_params): Mark the
3027         newly created variable as DECL_IGNORED_P.
3029 2017-07-04  Martin Liska  <mliska@suse.cz>
3031         PR ipa/81293
3032         * ipa-inline.c (inline_small_functions):
3033         Use xstrdup_for_dump.
3035 2017-07-04  Tom de Vries  <tom@codesourcery.com>
3037         * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
3039 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
3041         PR target/81033
3042         * config/darwin.c (darwin_function_switched_text_sections):
3043         Fix spaces.
3045 2017-07-03  Jan Hubicka  <hubicka@ucw.cz>
3047         * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
3049 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
3051         * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
3053 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3055         * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
3056         min_profitable_iters, and th as inclusive lower bounds.
3057         Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
3058         (vect_estimate_min_profitable_iters): Return inclusive lower bounds
3059         for min_profitable_iters and min_profitable_estimate.
3060         (vect_transform_loop): Treat th as an inclusive lower bound.
3061         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
3063 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
3065         PR target/81033
3066         * config/darwin.c (darwin_function_switched_text_sections):
3067         Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
3068         in two pieces, and suppress the use of buf.
3070 2017-07-03  Nathan Sidwell  <nathan@acm.org>
3072         * hash-table.h (hash_table_mod1): Fix indentation.
3074 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3076         PR middle-end/81290
3077         * predict.c (force_edge_cold): Be more careful about propagation
3078         backward.
3079         * profile-count.h (profile_probability::guessed,
3080         profile_probability::fdo, profile_count::guessed, profile_count::fdo):
3081         New.
3082         * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
3084 2017-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
3086         * doc/invoke.texi (rcpc architecture extension): Document it.
3088 2017-07-03  Richard Biener  <rguenther@suse.de>
3090         PR tree-optimization/60510
3091         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
3092         the scalar reduction PHI and use it.
3093         (vectorizable_reduction): Properly guard the single_defuse_cycle
3094         path for non-SLP reduction chains where we cannot use it.
3095         Rework reduc_def/index and vector type deduction.  Rework
3096         vector operand gathering during reduction op code-gen.
3097         * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
3098         chains dissolve the chain and leave it to non-SLP reduction
3099         handling.
3101 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3103         * tree-data-ref.h (dr_alignment): Declare.
3104         * tree-data-ref.c (dr_alignment): New function.
3105         * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
3106         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
3107         set it.
3108         * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
3110 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3112         * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
3113         and base_misalignment fields.
3114         (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
3115         * tree-data-ref.c: Include builtins.h.
3116         (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
3117         * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
3118         (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
3119         * tree-vect-data-refs.c: Include tree-cfg.h.
3120         (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
3121         fields instead of calculating an alignment here.
3122         (vect_analyze_data_refs): Use dr_analyze_innermost.  Dump the new
3123         innermost_loop_behavior fields.
3125 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3127         * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
3128         field.
3129         (DR_STEP_ALIGNMENT): New macro.
3130         * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
3131         * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
3132         (create_data_ref): Print it.
3133         * tree-vect-stmts.c (vectorizable_load): Use the step alignment
3134         to tell whether the step preserves vector (mis)alignment.
3135         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3136         Move the check for an integer step and generalise to all INTEGER_CST.
3137         (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
3138         Print the outer step alignment.
3140 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3142         * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
3143         with offset_alignment.
3144         (DR_ALIGNED_TO): Delete.
3145         (DR_OFFSET_ALIGNMENT): New macro.
3146         * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
3147         (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
3148         * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
3149         (create_data_ref): Likewise.
3150         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3151         (vect_analyze_data_refs): Likewise.
3152         * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
3153         creating dummy innermost behavior.
3155 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3157         * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
3158         with a "innermost_loop_behavior *" and refeence tree.
3159         * tree-data-ref.c (dr_analyze_innermost): Likewise.
3160         (create_data_ref): Update call accordingly.
3161         * tree-predcom.c (find_looparound_phi): Likewise.
3163 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3165         * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
3166         fields with dr_wrt_vec_loop.
3167         (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
3168         (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
3169         (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
3170         (vect_dr_behavior): New function.
3171         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
3172         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3173         vect_dr_behavior.  Use a step_preserves_misalignment_p boolean to
3174         track whether the step preserves the misalignment.
3175         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
3176         Use vect_dr_behavior.
3177         (vect_setup_realignment): Update call accordingly.
3178         (vect_create_data_ref_ptr): Likewise.  Use vect_dr_behavior.
3179         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
3180         call to vect_create_addr_base_for_vector_ref.
3181         (vect_create_cond_for_align_checks): Likewise.
3182         * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
3183         STMT_VINFO_DR_WRT_VEC_LOOP as a block.
3184         (vect_recog_mask_conversion_pattern): Likewise.
3185         * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
3186         (new_stmt_vec_info): Remove redundant zeroing.
3188 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
3190         * common/config/arm/arm-common.c (arm_be8_option): New function.
3191         * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
3192         (ISA_ARMv6): Add isa_bit_be8.
3193         * config/arm/arm.h (arm_be8_option): Add prototype.
3194         (BE8_SPEC_FUNCTION): New define.
3195         (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
3196         * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
3197         (mlittle-endian): Similarly.
3198         (mbe8, mbe32): New options.
3199         * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
3200         * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
3202 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3204         * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
3206 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3208         * tree-cfgcleanup.c (want_merge_blocks_p): New function.
3209         (cleanup_tree_cfg_bb): Use it.
3210         * profile-count.h (profile_count::of_for_merging, profile_count::merge):
3211         New functions.
3212         * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
3214 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3216         PR bootstrap/81285
3217         * loop-doloop.c (add_test): Update profile.
3219 2017-07-03  Martin Liska  <mliska@suse.cz>
3221         PR sanitize/81040
3222         * sanopt.c (rewrite_usage_of_param): New function.
3223         (sanitize_rewrite_addressable_params): Likewise.
3224         (pass_sanopt::execute): Call rewrite_usage_of_param.
3226 2017-07-03  Richard Biener  <rguenther@suse.de>
3228         * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
3229         back to using VIEW_CONVERT_EXPR.
3231 2017-07-03  Martin Liska  <mliska@suse.cz>
3233         PR other/78366
3234         * doc/extend.texi: Document when a resolver function is
3235         generated for target_clones.
3237 2017-07-03  Martin Liska  <mliska@suse.cz>
3239         * asan.c (asan_emit_stack_protection): Unpoison just red zones
3240         and shadow memory of auto variables which are subject of
3241         use-after-scope sanitization.
3242         (asan_expand_mark_ifn): Add do set only when is_poison.
3244 2016-07-03  Richard Biener  <rguenther@suse.de>
3246         * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
3247         reduction PHIs.
3248         (vect_force_simple_reduction): Record reduction def -> phi mapping.
3249         (vectorizable_reduction): Perform reduction PHI creation when
3250         visiting a reduction PHI and adjust and simplify code generation
3251         phase of the reduction op.  Cache dts, use fold_binary, not fold_build2.
3252         (vect_transform_loop): Visit reduction PHIs.
3253         * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
3254         defs into the SLP tree.
3255         (vect_build_slp_tree): Reduction defs terminate the recursion.
3256         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
3257         of reduction defs.
3258         (vect_get_vec_defs_for_stmt_copy): Export.
3259         (vect_get_vec_defs): Likewise.
3260         * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
3261         purpose.
3262         (vect_get_vec_defs_for_stmt_copy): Declare.
3263         (vect_get_vec_defs): Likewise.
3265 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
3267         * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
3268         parameter with a "loop" parameter and use it instead of the
3269         loop containing DR_STMT.  Don't check simple_iv when doing
3270         BB analysis.  Describe the two analysis modes in the comment.
3272 2017-07-03  Tom de Vries  <tom@codesourcery.com>
3274         PR tree-optimization/69468
3275         * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
3276         (find_same_succ_bb): Handle ignore_edge_flags.
3278 2017-07-03  Tom de Vries  <tom@codesourcery.com>
3280         PR tree-optimization/81192
3281         * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
3282         hash.
3283         (same_succ::equal): Don't find bbs to be equal if bb->loop_father
3284         differs.
3285         (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
3287 2017-07-03  Tom de Vries  <tom@codesourcery.com>
3289         PR tree-optimization/81192
3290         * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
3291         BB_SAME_SUCC (bb) == NULL.
3293 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3295         * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
3296         consistency.
3298 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3300         * dumpfile.c: Include profile-count.h
3301         * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
3302         update profile.
3303         (insert_cond_bb): Update profile.
3304         * tree-cfg.h (insert_cond_bb): Update prototype.
3305         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
3306         * tree-dump.c: Do not include tree-cfg.
3308 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3310         * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
3312 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3314         * expect.c (dw2_build_landing_pads): Update profile of the landing pad
3315         bb.
3317 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
3319         * tree-complex.c (expand_complex_div_wide): update profile.
3321 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
3322             Alan Hayward  <alan.hayward@arm.com>
3323             David Sherwood  <david.sherwood@arm.com>
3325         * Makefile.in (MACHMODE_H): Remove insn-modes.h
3326         (CORETYPES_H): New define.
3327         (MOSTLYCLEANFILES): Add insn-modes-inline.h.
3328         (insn-modes-inline.h, s-modes-inline-h): New rules.
3329         (generated_files): Add insn-modes-inline.h.
3330         (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
3331         (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
3332         (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
3333         (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
3334         (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
3335         (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
3336         (build/gencodes.o, build/genconditions.o): Likewise.
3337         (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
3338         (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
3339         (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
3340         (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
3341         (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
3342         (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
3343         * coretypes.h: Include everything up to real.h for generators.
3344         Include insn-modes.h first.  Include wide-int-print.h after
3345         wide-int.h.  Include insn-modes-inline.h and then machmode.h.
3346         * machmode.h: Don't include insn-modes.h here.
3347         * function-tests.c: Remove includes of signop.h, machmode.h,
3348         double-int.h and wide-int.h.
3349         * rtl.h: Likewise.
3350         * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
3351         and wide-int.h.
3352         * optc-save-gen.awk: Likewise.
3353         * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
3354         * godump.c: Remove include of wide-int-print.h.
3355         * pretty-print.h: Likewise.
3356         * wide-int-print.cc: Likewise.
3357         * wide-int.cc: Likewise.
3358         * hash-map-tests.c: Remove include of signop.h.
3359         * hash-set-tests.c: Likewise.
3360         * rtl-tests.c: Likewise.
3361         * mkconfig.sh: Remove include of machmode.h.
3362         * genmodes.c (emit_insn_modes_h): Split emission of inline functions
3363         into...
3364         (emit_insn_modes_inline_h): ...this new function.  Emit the code
3365         into an insn-modes-inline.h header file, adding appropriate
3366         include guards and end comments.
3367         (emit_insn_modes_c_header): Remove include of machmode.h.
3368         (emit_min_insn_modes_c_header): Include coretypes.h rather than
3369         machmode.h.
3370         (main): Handle -i flag and call emit_insn_modes_inline_h when
3371         it is passed.
3373 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
3375         * tree-ssa-strlen.c (strinfo): Rename the length field to
3376         nonzero_chars.  Add a full_string_p field.
3377         (compare_nonzero_chars, zero_length_string_p): New functions.
3378         (get_addr_stridx): Add an offset_out parameter.
3379         Use compare_nonzero_chars.
3380         (get_stridx): Update accordingly.  Use compare_nonzero_chars.
3381         (new_strinfo): Update after above changes to strinfo.
3382         (set_endptr_and_length): Set full_string_p.
3383         (get_string_length): Update after above changes to strinfo.
3384         (unshare_strinfo): Update call to new_strinfo.
3385         (maybe_invalidate): Likewise.
3386         (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
3387         Use compare_nonzero_chars and zero_string_p.  Treat nonzero_chars
3388         as a uhwi instead of an shwi.  Update after above changes to
3389         strinfo and new_strinfo.
3390         (zero_length_string): Assert that chainsi contains full strings.
3391         Use zero_length_string_p.  Update call to new_strinfo.
3392         (adjust_related_strinfos): Update after above changes to strinfo.
3393         Copy full_string_p from origsi.
3394         (adjust_last_stmt): Use zero_length_string_p.
3395         (handle_builtin_strlen): Update after above changes to strinfo and
3396         new_strinfo.  Install the lhs as the string length if the previous
3397         entry didn't describe a full string.
3398         (handle_builtin_strchr): Update after above changes to strinfo
3399         and new_strinfo.
3400         (handle_builtin_strcpy): Likewise.
3401         (handle_builtin_strcat): Likewise.
3402         (handle_builtin_malloc): Likewise.
3403         (handle_pointer_plus): Likewise.
3404         (handle_builtin_memcpy): Likewise.  Track nonzero characters
3405         that aren't necessarily followed by a nul terminator.
3406         (handle_char_store): Likewise.
3408 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
3410         PR tree-optimization/80769
3411         * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
3412         for malloc and calloc.  Document the new invariant that all related
3413         strinfos have delayed lengths or none do.
3414         (verify_related_strinfos): Move earlier in file.
3415         (set_endptr_and_length): New function, split out from...
3416         (get_string_length): ...here.  Also set the lengths of related
3417         strinfos.
3418         (zero_length_string): Assert that chainsi has known (rather than
3419         delayed) lengths.
3420         (adjust_related_strinfos): Likewise.
3422 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
3424         PR tree-optimization/81136
3425         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
3426         assert that two references with the same misalignment have the same
3427         compile-time misalignment if those compile-time misalignments
3428         are known.
3430 2017-07-01  Andi Kleen  <ak@linux.intel.com>
3432         * print-tree.c (print_node): Print all attributes.
3434 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
3436         * cfg.c (scale_bbs_frequencies): New function.
3437         * cfg.h (scale_bbs_frequencies): Declare it.
3438         * cfgloopanal.c (single_likely_exit): Cleanup.
3439         * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
3440         as parameter.
3441         (scale_loop_profile): Likewise.
3442         (loop_version): Likewise.
3443         (create_empty_loop_on_edge): Update.
3444         * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
3445         scale_loop_frequencies, scale_loop_profile, loopify,
3446         loop_version): Update prototypes.
3447         * modulo-sched.c (sms_schedule): Update.
3448         * predict.c (unlikely_executed_edge_p): Also check probability.
3449         (probably_never_executed_edge_p): Fix typo.
3450         * tree-if-conv.c (version_loop_for_if_conversion): Update.
3451         * tree-parloops.c (gen_parallel_loop): Update.
3452         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
3453         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
3454         * tree-ssa-loop-split.c (split_loop): Update.
3455         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
3456         * tree-vect-loop-manip.c (vect_do_peeling): Update.
3457         (vect_loop_versioning): Update.
3458         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
3460 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
3462         * trans-mem.c (split_bb_make_tm_edge): Update profile.
3464 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
3466         * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
3467         to keep profile consistent.
3469 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
3471         * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
3472         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3473         * profile-count.h (max_safe_multiplier): Make unsigned.
3474         (profile_count::guessed_zero): New.
3476 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
3478         * bb-reorder.c (fix_up_crossing_landing_pad,
3479         fix_crossing_conditional_branches): Use make_single_succ_edge
3480         to keep profile consistent.
3482 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
3484         * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
3485         to update profile.
3487 2017-07-01  Jakub Jelinek  <jakub@redhat.com>
3489         PR sanitizer/81262
3490         * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
3491         the right scopes, make sure cond_jump isn't preserved between multiple
3492         iterations.  Search for fallthru edge whenever there are 3+ edges and
3493         use find_fallthru_edge for it.
3495 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
3497         Patch by Alexander Monakov <amonakov@ispras.ru>
3498         * sel-sched-ir.c (compute_succs_info): Handle uninitialized
3499         probabilities consistently.
3501 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
3503         * pa.c (pa_expand_compare_and_swap_loop): Update call of
3504         emit_cmp_and_jump_insns.
3506 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
3508         PR ipa/81261
3509         * tree-inline.c (expand_call_inline): Combine profile statuses.
3511 2017-06-30  Andrew Pinski  <apinski@cavium.com>
3513         * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
3514         fold_stmt returned true.
3516 2017-06-30  Nathan Sidwell  <nathan@acm.org>
3518         * ggc.h (empty_string): Delete.
3519         * cfgexpand.c (expand_asm_stmt): Use plain "".
3520         * optabs.c (expand_asm_memory_barrier): Likewise.
3521         * stringpool.c (empty_string): Delete.
3522         (digit_vector, digit_string): Delete.
3523         (ggc_alloc_string): Use plain "", don't optimize single digit
3524         strings.  Use ggc_alloc_atomic.
3526 2017-06-30  Richard Earnshaw  <rearnsha@arm.com>
3528         * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
3529         comparison set and one other set, use the cost of the non-comparison
3530         set.
3532 2017-06-30  Nathan Sidwell  <nathan@acm.org>
3534         * ggc.h: Replace all 'static inline' with plain 'inline'.  Fix
3535         some formatting.
3537 2017-06-30  Peter Bergner  <bergner@vnet.ibm.com>
3539         * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
3540         loops.  Remove now unneeded calls to gimple_switch_set_label() that
3541         just set removed labels to NULL_TREE.
3543 2017-06-30  Aldy Hernandez  <aldyh@redhat.com>
3545         * tree-ssanames.c (set_range_info_raw): Abstract from ...
3546         (set_range_info): ...here.  Only call set_range_info_raw if domain
3547         is useful.
3548         (set_nonzero_bits): Call set_range_info_raw.
3549         * tree-ssanames.h (set_range_info_raw): New.
3551 2017-06-30  Jakub Jelinek  <jakub@redhat.com>
3553         PR target/81225
3554         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
3555         V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
3556         of nonimmediate_operand and <store_mask_constraint> instead of m
3557         for the input operand.  For V8FI iterator, always split if input
3558         is a MEM.  For V16FI and V8SF_256 iterators, don't test if both
3559         operands are MEM if <mask_applied>.  For VI4F_256 iterator, use
3560         <store_mask_predicate> instead of register_operand and
3561         <store_mask_constraint> instead of v for the input operand.  Make
3562         sure both operands aren't MEMs for if not <mask_applied>.
3564 2017-06-30  Sylvestre Ledru  <sylvestre@debian.org>
3566         * lto-wrapper.c (copy_file) Close both file descriptors before
3567         exiting normally.
3569 2017-06-30  Martin Liska  <mliska@suse.cz>
3571         PR ipa/81214
3572         * multiple_target.c (create_dispatcher_calls): Make ifunc
3573         also for function that don't have calls or are not referenced.
3575 2017-06-30  Richard Biener  <rguenther@suse.de>
3577         * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
3578         analyze the first scalar stmt.  Move vector type computation
3579         for the BB case here from ...
3580         * tree-vect-stmts.c (vect_analyze_stmt): ... here.  Guard
3581         live operation processing in the SLP case properly.
3583 2017-06-30  Richard Biener  <rguenther@suse.de>
3585         * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
3587 2017-06-30  Martin Liska  <mliska@suse.cz>
3589         PR sanitizer/81021
3590         * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
3591         before BUILT_IN_UNWIND_RESUME when ASAN is used.
3593 2017-06-30  Yvan Roux  <yvan.roux@linaro.org>
3595         * doc/invoke.texi (AArch64): Add missing options and remove redundant
3596         ones.
3598 2017-06-30  Richard Biener  <rguenther@suse.de>
3600         PR tree-optimization/81249
3601         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
3602         condition reduction result to original scalar type.
3604 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3606         * profile-count.h (enum profile_quality): Fix typos and whitespace
3607         issues.
3609 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3611         * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
3612         type for branch probabilities.
3614 2017-06-29  Julian Brown  <julian@codesourcery.com>
3615             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3617         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
3618         * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
3619         (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
3620         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
3622 2017-06-29  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
3624         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
3625         check for CC usage into AARCH64_FUSE_CMP_BRANCH.
3626         * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
3627         CC usage from generic code to here.
3628         * sched-deps.c (sched_macro_fuse_insns): Move the condition for
3629         CC usage into the target macros.
3631 2017-06-29  Maya Rashish  <coypu@sdf.org>
3633         * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
3634         objects.
3636 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
3638         * arm/arm-builtins.c: Include profile-count.h
3639         * except.c (sjlj_emit_function_enter): Use
3640         profile_probability::unlikely.
3642 2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3644         * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
3645         and tocrel_offset be pointer args rather than implicitly using
3646         static versions.
3647         (legitimate_constant_pool_address_p, rs6000_emit_move,
3648         const_load_sequence_p, adjust_vperm): Add local tocrel_base and
3649         tocrel_offset and use in toc_relative_expr_p call.
3650         (print_operand, print_operand_address): Use static tocrel_base_oac
3651         and tocrel_offset_oac.
3652         (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
3653         tocrel_offset_oac.
3655 2017-06-29  Maya Rashish  <coypu@sdf.org>
3657         * config/vax/builtins.md (ffssi2_internal): Correct constraint.
3659 2017-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3661         * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
3662         objects, take into account only the alignment of 'op0' and 'mode1' if
3663         'op0' is a MEM.
3665 2017-06-29  Steve Ellcey  <sellcey@cavium.com>
3667         * ccmp.c (ccmp_tree_comparison_p): New function.
3668         (ccmp_candidate_p): Update to use above function.
3669         (get_compare_parts): New function.
3670         (expand_ccmp_next): Update to use new functions.
3671         (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
3672         new functions.
3673         (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
3674         take mode as argument.
3675         * ccmp.h (expand_ccmp_expr): Add mode as argument.
3676         * expr.c (expand_expr_real_1): Pass mode as argument.
3678 2017-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
3680         * combine.c (combine_instructions): Print insns to dump_file, together
3681         with their costs.
3683 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
3685         * asan.c (asan_emit_stack_protection): Update.
3686         (create_cond_insert_point): Update.
3687         * auto-profile.c (afdo_propagate_circuit): Update.
3688         * basic-block.h (struct edge_def): Turn probability to
3689         profile_probability.
3690         (EDGE_FREQUENCY): Update.
3691         * bb-reorder.c (find_traces_1_round): Update.
3692         (better_edge_p): Update.
3693         (sanitize_hot_paths): Update.
3694         * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
3695         (make_single_succ_edge): Update.
3696         (check_bb_profile): Update.
3697         (dump_edge_info): Update.
3698         (update_bb_profile_for_threading): Update.
3699         * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
3700         probabilitycount to 0.
3701         * cfgbuild.c (compute_outgoing_frequencies): Update.
3702         * cfgcleanup.c (try_forward_edges): Update.
3703         (outgoing_edges_match): Update.
3704         (try_crossjump_to_edge): Update.
3705         * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
3706         (expand_gimple_tailcall): Update.
3707         (construct_init_block): Use make_single_succ_edge.
3708         (construct_exit_block): Use make_single_succ_edge.
3709         * cfghooks.c (verify_flow_info): Update.
3710         (redirect_edge_succ_nodup): Update.
3711         (split_edge): Update.
3712         (account_profile_record): Update.
3713         * cfgloopanal.c (single_likely_exit): Update.
3714         * cfgloopmanip.c (scale_loop_profile): Update.
3715         (set_zero_probability): Remove.
3716         (duplicate_loop_to_header_edge): Update.
3717         * cfgloopmanip.h (loop_version): Update prototype.
3718         * cfgrtl.c (try_redirect_by_replacing_jump): Update.
3719         (force_nonfallthru_and_redirect): Update.
3720         (update_br_prob_note): Update.
3721         (rtl_verify_edges): Update.
3722         (purge_dead_edges): Update.
3723         (rtl_lv_add_condition_to_bb): Update.
3724         * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
3725         * cgraphunit.c (init_lowered_empty_function): Update.
3726         (cgraph_node::expand_thunk): Update.
3727         * cilk-common.c: Include profile-count.h
3728         * dojump.c (inv): Remove.
3729         (jumpifnot): Update.
3730         (jumpifnot_1): Update.
3731         (do_jump_1): Update.
3732         (do_jump): Update.
3733         (do_jump_by_parts_greater_rtx): Update.
3734         (do_compare_rtx_and_jump): Update.
3735         * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
3736         do_jump_1. do_compare_rtx_and_jump): Update prototype.
3737         * dwarf2cfi.c: Include profile-count.h
3738         * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
3739         (sjlj_emit_dispatch_table): Likewise.
3740         * explow.c: Include profile-count.h
3741         * expmed.c (emit_store_flag_force): Update.
3742         (do_cmp_and_jump): Update.
3743         * expr.c (compare_by_pieces_d::generate): Update.
3744         (compare_by_pieces_d::finish_mode): Update.
3745         (emit_block_move_via_loop): Update.
3746         (store_expr_with_bounds): Update.
3747         (store_constructor): Update.
3748         (expand_expr_real_2): Update.
3749         (expand_expr_real_1): Update.
3750         * expr.h (try_casesi, try_tablejump): Update prototypes.
3751         * gimple-pretty-print.c (dump_probability): Update.
3752         (dump_profile): New.
3753         (dump_gimple_label): Update.
3754         (dump_gimple_bb_header): Update.
3755         * graph.c (draw_cfg_node_succ_edges): Update.
3756         * hsa-gen.c (convert_switch_statements): Update.
3757         * ifcvt.c (cheap_bb_rtx_cost_p): Update.
3758         (find_if_case_1): Update.
3759         (find_if_case_2): Update.
3760         * internal-fn.c (expand_arith_overflow_result_store): Update.
3761         (expand_addsub_overflow): Update.
3762         (expand_neg_overflow): Update.
3763         (expand_mul_overflow): Update.
3764         (expand_vector_ubsan_overflow): Update.
3765         * ipa-cp.c (good_cloning_opportunity_p): Update.
3766         * ipa-split.c (split_function): Use make_single_succ_edge.
3767         * ipa-utils.c (ipa_merge_profiles): Update.
3768         * loop-doloop.c (add_test): Update.
3769         (doloop_modify): Update.
3770         * loop-unroll.c (compare_and_jump_seq): Update.
3771         (unroll_loop_runtime_iterations): Update.
3772         * lra-constraints.c (lra_inheritance): Update.
3773         * lto-streamer-in.c (input_cfg): Update.
3774         * lto-streamer-out.c (output_cfg): Update.
3775         * mcf.c (adjust_cfg_counts): Update.
3776         * modulo-sched.c (sms_schedule): Update.
3777         * omp-expand.c (expand_omp_for_init_counts): Update.
3778         (extract_omp_for_update_vars): Update.
3779         (expand_omp_ordered_sink): Update.
3780         (expand_omp_for_ordered_loops): Update.
3781         (expand_omp_for_generic): Update.
3782         (expand_omp_for_static_nochunk): Update.
3783         (expand_omp_for_static_chunk): Update.
3784         (expand_cilk_for): Update.
3785         (expand_omp_simd): Update.
3786         (expand_omp_taskloop_for_outer): Update.
3787         (expand_omp_taskloop_for_inner): Update.
3788         * omp-simd-clone.c (simd_clone_adjust): Update.
3789         * optabs.c (expand_doubleword_shift): Update.
3790         (expand_abs): Update.
3791         (emit_cmp_and_jump_insn_1): Update.
3792         (expand_compare_and_swap_loop): Update.
3793         * optabs.h (emit_cmp_and_jump_insns): Update prototype.
3794         * predict.c (predictable_edge_p): Update.
3795         (edge_probability_reliable_p): Update.
3796         (set_even_probabilities): Update.
3797         (combine_predictions_for_insn): Update.
3798         (combine_predictions_for_bb): Update.
3799         (propagate_freq): Update.
3800         (estimate_bb_frequencies): Update.
3801         (force_edge_cold): Update.
3802         * profile-count.c (profile_count::dump): Add missing space into dump.
3803         (profile_count::debug): Add newline.
3804         (profile_count::differs_from_p): Explicitly convert to unsigned.
3805         (profile_count::stream_in): Update.
3806         (profile_probability::dump): New member function.
3807         (profile_probability::debug): New member function.
3808         (profile_probability::differs_from_p): New member function.
3809         (profile_probability::differs_lot_from_p): New member function.
3810         (profile_probability::stream_in): New member function.
3811         (profile_probability::stream_out): New member function.
3812         * profile-count.h (profile_count_quality): Rename to ...
3813         (profile_quality): ... this one.
3814         (profile_probability): New.
3815         (profile_count): Update.
3816         * profile.c (compute_branch_probabilities): Update.
3817         * recog.c (peep2_attempt): Update.
3818         * sched-ebb.c (schedule_ebbs): Update.
3819         * sched-rgn.c (find_single_block_region): Update.
3820         (compute_dom_prob_ps): Update.
3821         (schedule_region): Update.
3822         * sel-sched-ir.c (compute_succs_info): Update.
3823         * stmt.c (struct case_node): Update.
3824         (do_jump_if_equal): Update.
3825         (get_outgoing_edge_probs): Update.
3826         (conditional_probability): Update.
3827         (emit_case_dispatch_table): Update.
3828         (expand_case): Update.
3829         (expand_sjlj_dispatch_table): Update.
3830         (emit_case_nodes): Update.
3831         * targhooks.c: Update.
3832         * tracer.c (better_p): Update.
3833         (find_best_successor): Update.
3834         * trans-mem.c (expand_transaction): Update.
3835         * tree-call-cdce.c: Update.
3836         * tree-cfg.c (gimple_split_edge): Upate.
3837         (move_sese_region_to_fn): Upate.
3838         * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
3839         * tree-eh.c (lower_resx): Upate.
3840         (cleanup_empty_eh_move_lp): Upate.
3841         * tree-if-conv.c (version_loop_for_if_conversion): Update.
3842         * tree-inline.c (copy_edges_for_bb): Update.
3843         (copy_cfg_body): Update.
3844         * tree-parloops.c (gen_parallel_loop): Update.
3845         * tree-profile.c (gimple_gen_ic_func_profiler): Update.
3846         (gimple_gen_time_profiler): Update.
3847         * tree-ssa-dce.c (remove_dead_stmt): Update.
3848         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
3849         * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
3850         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
3851         (unloop_loops): Update.
3852         (try_peel_loop): Update.
3853         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
3854         * tree-ssa-loop-split.c (connect_loops): Update.
3855         (split_loop): Update.
3856         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
3857         (hoist_guard): Update.
3858         * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
3859         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
3860         (value_replacement): Update.
3861         * tree-ssa-reassoc.c (branch_fixup): Update.
3862         * tree-ssa-tail-merge.c (replace_block_by): Update.
3863         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
3864         (create_edge_and_update_destination_phis): Update.
3865         (compute_path_counts): Update.
3866         (recompute_probabilities): Update.
3867         (update_joiner_offpath_counts): Update.
3868         (freqs_to_counts_path): Update.
3869         (duplicate_thread_path): Update.
3870         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
3871         (struct switch_conv_info): Update.
3872         (gen_inbound_check): Update.
3873         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
3874         (vect_do_peeling): Update.
3875         (vect_loop_versioning): Update.
3876         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
3877         (optimize_mask_stores): Update.
3878         * ubsan.c (ubsan_expand_null_ifn): Update.
3879         * value-prof.c (gimple_divmod_fixed_value): Update.
3880         (gimple_divmod_fixed_value_transform): Update.
3881         (gimple_mod_pow2): Update.
3882         (gimple_mod_pow2_value_transform): Update.
3883         (gimple_mod_subtract): Update.
3884         (gimple_mod_subtract_transform): Update.
3885         (gimple_ic): Update.
3886         (gimple_stringop_fixed_value): Update.
3887         (gimple_stringops_transform): Update.
3888         * value-prof.h: Update.
3890 2017-06-29  Carl Love  <cel@us.ibm.com>
3892         * config/rs6000/rs6000-c.c: Add support for built-in functions
3893         vector signed int vec_signed (vector float);
3894         vector signed long long vec_signed (vector double);
3895         vector signed int vec_signed2 (vector double, vector double);
3896         vector signed int vec_signede (vector double);
3897         vector signed int vec_signedo (vector double);
3898         * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
3899         instruction generator.
3900         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
3901         UNSPEC_VSX_VSIGNED2): Add UNSPECS.
3902         (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
3903         Add define_insn.
3904         (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
3905         vunsignede_v2df): Add define_expands.
3906         * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
3907         VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
3908         VEC_UNSIGNEDO): Add definitions.
3909         * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
3910         UNSPEC_VSX_VSIGNED2): Add UNSPECs.
3911         (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
3912         (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
3913         vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
3914         * config/rs6000/altivec.h (vec_signed, vec_signed2,
3915         vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
3916         vec_unsignede, vec_unsignedo): Add builtin defines.
3917         * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
3918         declaration.
3919         * doc/extend.texi: Update the built-in documentation file for the
3920         new built-in functions.
3922 2017-06-29  Richard Biener  <rguenther@suse.de>
3924         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
3925         reduction chains to LOOP_VINFO_REDUCTIONS.
3926         * tree-vect-slp.c (vect_analyze_slp): Continue looking for
3927         SLP reductions after processing reduction chains.
3929 2017-06-29  Nathan Sidwell  <nathan@acm.org>
3931         * builtins.c (fold_builtin_FUNCTION): Use
3932         lang_hooks.decl_printable_name.
3934 2017-06-29  Peter Bergner  <bergner@vnet.ibm.com>
3936         PR middle-end/81194
3937         * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
3938         with only one label.
3939         * stmt.c (expand_case): Assert NCASES is greater than one.
3941 2017-06-29  Richard Biener  <rguenther@suse.de>
3943         * tree-cfg.c (group_case_labels_stmt): Return whether we changed
3944         anything.
3945         (group_case_labels): Likewise.
3946         (find_taken_edge): Push sanity checking on val to workers...
3947         (find_taken_edge_cond_expr): ... here
3948         (find_taken_edge_switch_expr): ... and here, handle cases
3949         with just a default label.
3950         * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
3951         (group_case_labels): Likewise.
3952         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
3953         group_case_labels does anything cleanup the CFG again.
3955 2017-06-29  Bin Cheng  <bin.cheng@arm.com>
3957         PR tree-optimization/81196
3958         * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
3959         exit condition comparing two IVs.
3961 2017-06-29  Richard Earnshaw  <rearnsha@arm.com>
3963         * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
3964         profile to the dummy entry at the end of the list of architectures.
3965         * config/arm/arm-cpu-cdata.h: Regenerated.
3967 2017-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3968             Michael Collison <michael.collison@arm.com>
3970         PR target/70119
3971         * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
3972         New pattern.
3973         (*aarch64_reg_<mode>3_neg_mask2): New pattern.
3974         (*aarch64_reg_<mode>3_minus_mask): New pattern.
3975         (*aarch64_<optab>_reg_di3_mask2): New pattern.
3976         * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
3977         of shift when the shift amount is masked with constant equal to
3978         the size of the mode.
3979         * config/aarch64/predicates.md (subreg_lowpart_operator): New
3980         predicate.
3982 2017-06-29  Martin Liska  <mliska@suse.cz>
3984         * config/i386/i386.opt: Change range from [1,5] to [0,5].
3986 2017-06-29  Yury Gribov  <tetra2005@gmail.com>
3988         PR bootstrap/80565
3989         * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
3990         code.
3991         * ipa-inline.h
3992         (edge_growth_cache_entry::edge_growth_cache_entry): New
3993         function.
3994         (reset_edge_growth_cache): Update to use constructor.
3996 2017-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3998         * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
3999         (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
4000         (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
4002 2017-06-28  Sebastian Peryt  <sebastian.peryt@intel.com>
4004         * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
4005         (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
4007 2017-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4009         * config.gcc (*-linux-musl*): Add t-musl tmake_file.
4010         (*-linux-uclibc*): Add t-uclibc tmake_file.
4011         * config/t-musl: New.
4012         * config/t-uclibc: New.
4014 2017-06-28  Richard Earnshaw  <rearnsha@arm.com>
4016         * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
4017         context.
4018         (gen_comm_data): Emit architectural setting of arch_prof.
4019         * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
4020         profile.
4021         (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
4022         (armv8-m.base, armv8-m.main): Likewise.
4023         * arm-protos.h (arm_build_target): Add profile field.
4024         (arch_option): Likewise.
4025         * config/arm/arm.c (arm_configure_build_target): Copy the profile to
4026         the active target.
4027         * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
4028         arm_active_target.profile.
4030 2017-06-28  Richard Biener  <rguenther@suse.de>
4032         PR middle-end/81227
4033         * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
4034         TYPE_OVERFLOW_WRAPS.
4035         * match.pd (negate_expr_p): Likewise.
4036         * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
4037         fold_build2, not fold_binary.
4039 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
4041         * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
4042         Convert memory address to Pmode.
4043         (aarch64_print_operand): Assert MEM operands are always Pmode.
4045 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
4047         PR target/79665
4048         * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
4049         Remove redundant if.
4050         (aarch_forward_to_shift_is_not_shifted_reg): Remove.
4051         * config/arm/aarch-common-protos.h
4052         (aarch_forward_to_shift_is_not_shifted_re): Remove.
4053         * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
4055 2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
4057         PR ipa/81238
4058         * multiple_target.c (create_dispatcher_calls): Set the default
4059         clone to be static, not public.
4061 2017-06-28  Richard Biener  <rguenther@suse.de>
4063         * tree-vect-loop.c (vectorizable_reduction): Move special
4064         cond reduction IV var creation ...
4065         (vect_create_epilog_for_reduction): ... here.  Remove induction_index
4066         parameter.  Use STMT_VINFO_VECTYPE.
4067         * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
4068         constant_p.
4070 2017-06-28  Martin Liska  <mliska@suse.cz>
4072         PR ipa/81128
4073         * ipa-visibility.c (non_local_p): Handle visibility.
4075 2017-06-28  Martin Liska  <mliska@suse.cz>
4077         PR driver/79659
4078         * common.opt: Add IntegerRange to various options.
4079         * opt-functions.awk (integer_range_info): New function.
4080         * optc-gen.awk: Add integer_range_info to cl_options struct.
4081         * opts-common.c (decode_cmdline_option): Handle
4082         CL_ERR_INT_RANGE_ARG.
4083         (cmdline_handle_error): Likewise.
4084         * opts.c (print_filtered_help): Show valid interval in
4085         when --help is provided.
4086         * opts.h (struct cl_option): Add range_min and range_max fields.
4087         * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
4089 2017-06-28  Marc Glisse  <marc.glisse@inria.fr>
4091         * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
4092         (x * C EQ/NE y * C): New transformation.
4094 2017-06-28  Christophe Lyon  <christophe.lyon@linaro.org>
4096         * genmultilib (combination_space): Accept '+' in option names.
4098 2017-06-28  Martin Liska  <mliska@suse.cz>
4100         PR sanitizer/81224
4101         * asan.c (instrument_derefs): Bail out inner references
4102         that are hard register variables.
4104 2017-06-28  Jakub Jelinek  <jakub@redhat.com>
4106         PR target/81175
4107         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
4108         rather than def_builtin_pure for __builtin_ia32_gatherpf*.
4110 2017-06-28  Richard Biener  <rguenther@suse.de>
4112         * tree-vectorizer.h (vect_get_vec_defs): Remove.
4113         (vect_get_slp_defs): Adjust.
4114         * tree-vect-loop.c (get_initial_defs_for_reduction): Split
4115         out from ...
4116         * tree-vect-slp.c (vect_get_constant_vectors): ... here and
4117         simplify.
4118         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4119         get_initial_defs_for_reduction instead of vect_get_vec_defs.
4120         (vectorizable_reduction): Adjust.
4121         * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
4122         handling.
4123         (vect_get_slp_defs): Likewise.
4124         * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
4125         (vectorizable_bswap): Adjust.
4126         (vectorizable_call): Likewise.
4127         (vectorizable_conversion): Likewise.
4128         (vectorizable_assignment): Likewise.
4129         (vectorizable_shift): Likewise.
4130         (vectorizable_operation): Likewise.
4131         (vectorizable_store): Likewise.
4132         (vectorizable_condition): Likewise.
4133         (vectorizable_comparison): Likewise.
4135 2017-06-28  Michael Collison  <michael.collison@arm.com>
4137         PR target/68535
4138         * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
4139         set of base_reg
4140         (arm_gen_movmemqi): Removed unused variable 'i'.
4141         Convert 'for' loop into 'while' loop.
4142         (arm_expand_prologue): Remove last unnecessary set of insn.
4143         (thumb_pop): Remove unused variable 'pushed_words'.
4144         (thumb_exit): Remove last unnecessary set of regs_to_pop.
4146 2017-06-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4148         * config/s390/predicates.md: Use s390_rel_address_ok_p.
4149         * config/s390/s390-protos.h: Add prototype of
4150         s390_rel_address_ok_p.
4151         * config/s390/s390.c (s390_got_symbol): New function.
4152         (s390_rel_address_ok_p): New function.
4153         (legitimize_pic_address): Use s390_rel_address_ok_p.
4154         (s390_load_got): Use s390_got_symbol.
4155         (s390_option_override): Issue error if
4156         -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
4157         * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
4158         New macro.
4159         * config/s390/s390.opt: New option mpic-data-is-text-relative.
4161 2017-06-27  Andrew Pinski  <apinski@cavium.com>
4163         * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
4164         (X * copysign (1.0, X)): New pattern.
4165         (X * copysign (1.0, -X)): New pattern.
4166         (copysign (-1.0, CST)): New pattern.
4168 2017-06-27  Joseph Myers  <joseph@codesourcery.com>
4170         * genmultilib (combination_space): Remove variable.
4171         Validate reuse rules against regular expression for any sequence
4172         of multilib options in any order.
4174 2017-06-27  Michael Collison  <michael.collison@arm.com>
4176         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
4177         call aarch64_split_simd_combine.
4178         * (aarch64_combine_internal<mode>): Delete pattern.
4179         * config/aarch64/aarch64.c (aarch64_split_simd_combine):
4180         Allow register and subreg operands.
4182 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
4184         * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
4185         specific need, just fallback on defaults.
4186         (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
4188 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
4189             Olivier Hainque  <hainque@adacore.com>
4191         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
4192         map for 64bits.
4193         (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
4194         targets. Pick a default if no particular attempt applied.
4195         (STACK_CHECK_PROTECT): Double for 64bit targets, which have
4196         larger contexts.
4198 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
4200         * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
4201         (x86_64-wrs-vxworks7): Likewise.
4203 2017-06-27  Marek Polacek  <polacek@redhat.com>
4205         PR sanitizer/81223
4206         * ubsan.c (instrument_null): Check get_base_address's result for null.
4208 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
4210         * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
4212 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
4214         * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
4215         BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
4216         (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
4217         BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
4218         New function types.
4219         * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
4220         BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
4221         BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
4222         BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
4223         BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
4224         BUILT_IN_FEUPDATEENV): New builtins.
4225         * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
4226         TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
4227         * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
4228         fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
4229         macros.
4230         (builtin_structptr_types): Adjust size.
4231         * tree.c (builtin_structptr_types): Add four entries.
4233 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
4234             Olivier Hainque  <hainque@adacore.com>
4236         * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
4237         (TLS_SYM): New local macro, forcing reference to __tls__ on
4238         link command lines for VxWorks 7 RTPs, triggering initialization
4239         of tlsLib.
4240         (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
4241         OS features TLS support, true for RTPs on VxWorks 7.
4242         * config/vxworks.c (vxworks_override_options): Setup emutls
4243         accordingly.
4245 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
4247         * predict.c (test_prediction_value_range): Use -1U instead of -1
4248         to avoid narrowing conversion warning.
4249         * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
4250         to avoid narrowing conversion warning.
4251         * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
4252         -1.
4253         * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
4255 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
4257         * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
4258         64bit configurations.
4259         (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
4260         (SIZE_TYPE): Likewise.
4261         * config/vxworks.c (vxworks_emutls_var_fields): Use
4262         long_unsigned_type_node instead of unsigned_type_node as the offset
4263         field type, which is "pointer" mode in emutls.c.
4265 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
4267         PR sanitizer/81209
4268         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
4270         PR middle-end/81207
4271         * gimple-fold.c (replace_call_with_call_and_fold): Handle
4272         gimple_vuse copying separately from gimple_vdef copying.
4274 2017-06-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4276         * value-prof.c (free_hist): Remove call to memset and the enclosing if
4277         condition.
4279 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
4280             Olivier Hainque  <hainque@adacore.com>
4282         * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
4283         for all vxworks7 targets.
4284         * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
4285         (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
4286         (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
4287         variations for VX6/VX7 and 32/64bits later on in ...
4288         (VXWORKS_LIB_SPEC): Leverage new macros.
4289         (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
4290         as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
4292 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
4294         * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
4295         _VX_TOOL_FAMILY and _VX_TOOL to gnu.
4297 2017-06-26  Carl Love  <cel@us.ibm.com>
4299         * config/rs6000/rs6000-c.c: Add support for built-in functions
4300         vector bool char vec_reve (vector bool char);
4301         vector signed char vec_reve (vector signed char);
4302         vector unsigned char vec_reve (vector unsigned char);
4303         vector bool int vec_reve (vector bool int);
4304         vector signed int vec_reve (vector signed int);
4305         vector unsigned int vec_reve (vector unsigned int);
4306         vector bool long long vec_reve (vector bool long long);
4307         vector signed long long vec_reve (vector signed long long);
4308         vector unsigned long long vec_reve (vector unsigned long long);
4309         vector bool short vec_reve (vector bool short);
4310         vector signed short vec_reve (vector signed short);
4311         vector double vec_reve (vector double);
4312         vector float vec_reve (vector float);
4313         * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
4314         VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
4315         * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
4316         (altivec_vreve): New pattern.
4317         * config/rs6000/altivec.h (vec_reve): New define.
4318         * doc/extend.texi (vec_rev): Update the built-in documentation file
4319         for the new built-in functions.
4321 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4323         PR tree-optimization/71815
4324         * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
4325         function.
4326         (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
4327         has_single_use.
4328         (slsr_process_phi): Likewise.
4329         (replace_uncond_cands_and_profitable_phis): Don't replace a
4330         multiply candidate with a stride of 1 (copy or cast).
4331         (phi_incr_cost): Call uses_consumed_by_stmt rather than
4332         has_single_use.
4333         (lowest_cost_path): Likewise.
4334         (total_savings): Likewise.
4336 2017-06-26  Richard Biener  <rguenther@suse.de>
4338         PR target/81175
4339         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
4340         Use def_builtin_pure for all gather builtins.
4342 2017-06-26  Richard Biener  <rguenther@suse.de>
4344         PR tree-optimization/81203
4345         * tree-tailcall.c (find_tail_calls): Do not move stmts into
4346         non-dominating BBs.
4348 2017-06-26  Marek Polacek  <polacek@redhat.com>
4350         PR c/80116
4351         * doc/invoke.texi: Document -Wmultistatement-macros.
4353 2017-06-26  Christophe Lyon  <christophe.lyon@linaro.org>
4355         * doc/sourcebuild.texi (ARM-specific attributes): Document new
4356         arm_neon_ok_no_float_abi effective target.
4358 2017-06-26  Richard Biener  <rguenther@suse.de>
4360         PR tree-optimization/80928
4361         * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
4362         (copy_bbs): Set BB_DUPLICATED flag early.
4363         (execute_on_growing_pred): Do not execute for BB_DUPLICATED
4364         marked blocks.
4365         (execute_on_shrinking_pred): Likewise.
4366         * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
4367         BB_DUPLICATED blocks.
4368         * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
4369         iterate over all PHIs considering removal of *gsi.
4371 2017-06-23  Jim Wilson  <jim.wilson@linaro.org>
4373         * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
4374         qdf24xx.
4376 2017-06-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4378         * config/rs6000/rs6000-string.c: (expand_block_clear,
4379         do_load_for_compare, select_block_compare_mode,
4380         compute_current_alignment, expand_block_compare,
4381         expand_strncmp_align_check, expand_strn_compare,
4382         expand_block_move, rs6000_output_load_multiple)
4383         Move functions related to string/block move/compare
4384         to a separate file.
4385         * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
4386         * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
4387         for this function which is now used in two files.
4388         * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
4389         * config.gcc: Add rs6000-string.o to extra_objs for
4390         targets powerpc*-*-* and rs6000*-*-*.
4392 2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4394         PR target/80510
4395         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
4396         32-bit, since indexed is not valid for DImode.
4397         (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
4398         3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
4399         (define_peephole2 for Altivec d-form load): Add 32-bit support.
4400         (define_peephole2 for Altivec d-form store): Likewise.
4402         PR ipa/81185
4403         * multiple_target.c (create_dispatcher_calls): Only create the
4404         dispatcher call if the function is the default clone of a
4405         versioned function.
4407 2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
4409         PR middle-end/80902
4410         * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
4411         a call, force the call to not be a tail call.
4413 2017-06-23  Jeff Law  <law@redhat.com>
4415         * doc/contrib.texi: Add entry for Steven Pemberton's work on
4416         enquire.
4418 2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>
4420         * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
4421         update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
4422         handling for early expansion of vector shifts (sl,sr,sra,rl).
4423         (builtin_function_type): Add vector shift right instructions
4424         to the unsigned argument list.
4426 2017-06-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4428         rtl-optimizatoin/79286
4429         * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
4430         * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
4431         trap.  PIC register plus a const unspec without offset can never trap.
4433 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
4435         * tree.h (builtin_structptr_type): New type.
4436         (builtin_structptr_types): Declare new array.
4437         * tree.c (builtin_structptr_types): New array.
4438         (free_lang_data, build_common_tree_nodes): Use it.
4440 2017-06-23  Jonathan Wakely  <jwakely@redhat.com>
4442         PR c++/81187
4443         * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
4444         -Wnoexcept.
4446 2017-06-22  Matt Turner  <mattst88@gmail.com>
4448         * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
4449         Lake models to skylake case.  Assume skylake for unknown
4450         models with clflushopt.
4452 2017-06-22  Jeff Law  <law@redhat.com>
4454         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
4455         frame sizes that do not satisfy aarch64_uimm12_shift.
4457 2017-06-22  Jan Hubicka <hubicka@ucw.cz>
4459         * profile-count.h (apply_probability,
4460         apply_scale, probability_in): Fix checks for zero.
4462 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4464         * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
4465         * doc/cppdiropts.texi (-I @var{dir}): Document it.
4467 2016-06-22  Richard Biener  <rguenther@suse.de>
4469         * tree-vect-loop.c (vect_model_reduction_cost): Handle
4470         COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
4471         REDUC_MAX_EXPR support.
4472         (vectorizable_reduction): Likewise.
4473         (vect_create_epilog_for_reduction): Likewise.
4475 2017-06-22  James Greenhalgh  <james.greenhalgh@arm.com>
4477         * match.pd (A / (1 << B) -> A >> B): New.
4478         * generic-match-head.c: Include optabs-tree.h.
4479         * gimple-match-head.c: Likewise.
4480         * optabs-tree.h (target_supports_op_p): New.
4481         * optabs-tree.c (target_supports_op_p): New.
4483 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4485         * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
4486         $gcc_cv_ld --help output.
4487         (gcc_cv_ld_demangle): Likewise.
4488         (gcc_cv_ld_eh_frame_hdr): Likewise.
4489         (gcc_cv_ld_pie): Likewise.
4490         (gcc_cv_ld_as_needed): Likewise.  Prefer native forms unless $gnu_ld.
4491         (gcc_cv_ld_buildid): Likewise.
4492         (gcc_cv_ld_sysroot): Likewise.
4493         (ld_bndplt_support): Likewise.
4494         (ld_pushpopstate_support): Likewise.
4495         * configure: Regenerate.
4496         * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
4498 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
4500         PR target/81151
4501         * config/i386/sse.md (round<mode>2): Renumber match_dup and
4502         operands indexes to avoid gap between operands and match_dups.
4504 2017-06-21  Andrew Pinski  <apinski@cavium.com>
4506         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
4507         Increment Arith_shift and Arith_shift_reg by 1.
4508         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
4509         New tuning flag.
4510         * config/aarch64/aarch64.c (thunderx_tunings): Enable
4511         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
4512         (aarch64_strip_extend): Add new argument and test for it.
4513         (aarch64_cheap_mult_shift_p): New function.
4514         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
4515         add a cost if it is true.
4516         Update calls to aarch64_strip_extend.
4517         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
4519 2017-06-21  Andrew Pinski  <apinski@cavium.com>
4521         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
4522         tunings.
4523         (thunderxt88): Likewise.
4524         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
4525         (thunderx_prefetch_tune): New variable.
4526         (thunderx2t99_prefetch_tune): Update for the correct values.
4527         (thunderxt88_tunings): New variable.
4528         (thunderx_tunings): Use thunderx_prefetch_tune instead of
4529         generic_prefetch_tune.
4530         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
4532 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4534         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
4535         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
4536         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
4537         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
4538         (aarch64_atomic_cas<mode>, GPI): Likewise.
4540 2017-06-21  Martin Liska  <mliska@suse.cz>
4542         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
4543         statements on cold and hot labels.
4544         * predict.c (tree_estimate_probability_bb): Remove the
4545         prediction from this place.
4547 2017-06-21  Martin Liska  <mliska@suse.cz>
4549         PR tree-optimization/79489
4550         * gimplify.c (maybe_add_early_return_predict_stmt): New
4551         function.
4552         (gimplify_return_expr): Call the function.
4553         * predict.c (tree_estimate_probability_bb): Remove handling
4554         of early return.
4555         * predict.def: Update comment about early return predictor.
4556         * gimple-predict.h (is_gimple_predict): New function.
4557         * predict.def: Change default value of early return to 66.
4558         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
4559         statements.
4560         * passes.def: Put pass_strip_predict_hints to the beginning of
4561         IPA passes.
4563 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
4565         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
4566         FUNCTION_DECL declarations.
4567         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
4568         declarations.
4569         (dwaf2out_decl): Likewise.
4570         * godump.c (go_early_global_decl): Skip call to the real debug hook
4571         for FUNCTION_DECL declarations.
4572         * passes.c (rest_of_decl_compilation): Skip call to the
4573         early_global_decl debug hook for FUNCTION_DECL declarations, unless
4574         -fdump-go-spec is passed.
4576 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
4578         * config/i386/i386.c (struct builtin_isa): New field pure_p.
4579         Reorder for compactness.
4580         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
4581         (def_builtin_pure, def_builtin_pure2): New functions.
4582         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
4584 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
4586         * match.pd (nop_convert): New predicate.
4587         ((A +- CST1) +- CST2): Allow some NOP conversions.
4589 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
4591         PR c++/81130
4592         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
4593         with ctors/dtors if GOVD_SHARED is set.
4595 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
4597         * config/aarch64/aarch64.md (movti_aarch64):
4598         Emit mov rather than orr.
4599         (movtf_aarch64): Likewise.
4600         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
4601         Emit mov rather than orr.
4603 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
4605         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
4606         Swap alternatives, make integer dup more expensive.
4608 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
4610         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
4611         Return true for non-tls symbols.
4613 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
4615         * config/aarch64/aarch64-cores.def (cortex-a55): New.
4616         (cortex-a75): Likewise.
4617         (cortex-a75.cortex-a55): Likewise.
4618         * config/aarch64/aarch64-tune.md: Regenerate.
4619         * doc/invoke.texi (-mtune): Document new values for -mtune.
4621 2017-06-21  Tom de Vries  <tom@codesourcery.com>
4623         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
4624         stack_size feature.
4625         (Effective-Target Keywords, Other attributes): Suggest using
4626         dg-add-options stack_size feature to get stack limit in stack_size
4627         effective target documentation.
4629 2017-06-21  Julian Brown  <julian@codesourcery.com>
4630             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4632         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
4633         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
4634         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
4635         reservation.
4636         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
4637         attribute type list for neon_multiply.
4638         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
4639         attribute type list for neon_multiply.
4640         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
4641         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
4642         attribute type list for neon_multiply.
4643         * config/arm/types.md (crypto_pmull): Add.
4644         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
4645         attribute type list.
4647 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
4649         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
4650         arm1176jzf-s.
4652 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
4654         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
4655         to make sure not to dereference a NULL cost_classes_ptr pointer.
4657 2017-06-20  Carl Love  <cel@us.ibm.com>
4659         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4660         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
4661         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
4662         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
4663         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
4664         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
4665         VMULOSW): New enum "unspec" values.
4666         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
4667         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
4668         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
4669         altivec_vmulosw): New patterns.
4670         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
4671         VMULOSW): Add definitions.
4673 2017-06-20  Julia Koval  <julia.koval@intel.com>
4675         * config/i386/i386.c: Fix rounding expand for new pattern.
4676         * config/i386/subst.md: Fix pattern (parallel -> unspec).
4678 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4680         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
4681         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
4683 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4685         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
4686         feature string.
4688 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
4690         * config/aarch64/aarch64-cores.def: Rearrange to sort by
4691         architecture, then by implementer ID.
4692         * config/aarch64/aarch64-tune.md: Regenerate.
4694 2017-06-20  Richard Biener  <rguenther@suse.de>
4696         PR middle-end/81097
4697         * fold-const.c (split_tree): Fold to type before negating.
4699 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
4701         * diagnostic-show-locus.c
4702         (selftest::test_fixit_deletion_affecting_newline): New function.
4703         (selftest::diagnostic_show_locus_c_tests): Call it.
4705 2017-06-20  Andreas Schwab  <schwab@suse.de>
4707         PR target/80970
4708         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
4709         instead of "+d".
4711 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
4713         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
4714         __ARM_FEATURE_COPROC according to support.
4716 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
4718         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
4719         Rewritten to avoid overflow for > 32-bit pointers.
4721         PR sanitizer/81125
4722         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
4723         by removing enum keyword.
4724         (ubsan_type_descriptor): Likewise.  Formatting fix.
4726         PR target/81121
4727         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
4728         splitter): Require TARGET_SSE2 in the condition.
4730 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
4732         PR target/79799
4733         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
4734         for doing vector set of SFmode on ISA 3.0.
4735         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
4736         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
4737         element.
4738         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
4739         SFmode value into a V4SF variable that was extracted from another
4740         V4SF variable without converting the element to double precision
4741         and back to single precision vector format.
4742         (vsx_insert_extract_v4sf_p9_2): Likewise.
4744 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
4746         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
4747         in UWHI to avoid undefined overflow.
4749         PR sanitizer/81125
4750         * ubsan.h (enum ubsan_encode_value_phase): New.
4751         (ubsan_encode_value): Change second argument to
4752         enum ubsan_encode_value_phase with default value of
4753         UBSAN_ENCODE_VALUE_GENERIC.
4754         * ubsan.c (ubsan_encode_value): Change second argument to
4755         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
4756         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
4757         create_tmp_var_raw instead of create_tmp_var and use a
4758         TARGET_EXPR.
4759         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
4760         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
4761         ubsan_encode_value callers.
4763         PR sanitizer/81111
4764         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
4765         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
4766         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
4768 2017-06-19  Richard Biener  <rguenther@suse.de>
4770         PR middle-end/81118
4771         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
4772         estimates if we changed anything.
4774 2017-06-19  Richard Biener  <rguenther@suse.de>
4776         PR tree-optimization/80887
4777         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
4778         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
4779         simplified lookups, then reset mprts_hook.
4780         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
4781         simplifying.
4782         (try_to_simplify): Likewise.
4784 2017-06-19  Martin Liska  <mliska@suse.cz>
4786         PR sanitizer/80879
4787         * gimplify.c (gimplify_switch_expr):
4788         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
4790 2017-06-19  Martin Liska  <mliska@suse.cz>
4792         * doc/install.texi: Document that PGO runs in 4 stages.
4794 2017-06-19  Martin Liska  <mliska@suse.cz>
4796         PR ipa/80732
4797         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
4798         to dispatcher function name.
4799         * multiple_target.c (replace_function_decl): New function.
4800         (create_dispatcher_calls): Redirect both edges and references.
4802 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
4804         * profile-count.c (profile_count::dump): Dump quality.
4805         (profile_count::differs_from_p): Update for unsigned val.
4806         * profile-count.h (profile_count_quality): New enum.
4807         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
4809 2017-06-19  Richard Biener  <rguenther@suse.de>
4811         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
4812         struct function as arg.
4813         (estimate_numbers_of_iterations): Export overload with loop arg.
4814         (free_numbers_of_iterations_estimates_loop): Use an overload of
4815         free_numbers_of_iterations_estimates instead.
4816         * tree-cfg.c (remove_bb): Adjust.
4817         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
4818         * tree-parloops.c (gen_parallel_loop): Likewise.
4819         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
4820         Likewise.
4821         (tree_unroll_loops_completely): Likewise.
4822         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4823         Use an overload instead and export.
4824         (estimated_loop_iterations): Adjust.
4825         (max_loop_iterations): Likewise.
4826         (likely_max_loop_iterations): Likewise.
4827         (estimate_numbers_of_iterations): Take struct function as arg
4828         and adjust.
4829         (loop_exits_before_overflow): Adjust.
4830         (free_numbers_of_iterations_estimates_loop): Use an overload.
4831         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
4832         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
4834 2017-06-19  Richard Biener  <rguenther@suse.de>
4836         PR ipa/81112
4837         * ipa-prop.c (find_constructor_constant_at_offset): Handle
4838         RANGE_EXPR conservatively.
4840 2017-06-16  Carl Love  <cel@us.ibm.com>
4842         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4843         definitions for vec_float, vec_float2, vec_floato,
4844         vec_floate built-ins.
4845         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
4846         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
4847         floate.
4848         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
4849         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
4850         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
4851         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
4852         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
4853         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
4854         vec_floato): Add builtin defines.
4855         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
4856         Update the built-in documentation file for the new built-in
4857         functions.
4859 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4861         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
4862         (mthumb): Mark as the negative of -marm.
4864 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4866         * doc/invoke.texi (ARM Options, -mcpu): Document supported
4867         extension options.
4868         (ARM Options, -mtune): Document that this accepts the same
4869         extension options as -mcpu.
4870         (ARM Options, -mfpu): Document addition of -mfpu=auto.
4872 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4874         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
4875         permitted extensions.
4877 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4879         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
4880         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
4881         (armv8-m.main): Add option +nodsp.
4882         * config/arm/arm-cpu-cdata.h: Regenerated.
4884 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4886         * config/arm/t-fuchsia: New file.
4887         * config.gcc (arm*-*-fuchsia*): Use it.
4889 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4891         * config/arm/t-symbian: Rewrite for new option infrastructure.
4893 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4895         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
4896         (MULTILIB_REQUIRED): Likewise.
4898 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4900         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
4901         (MULTILIB_RESUE): Likewise.
4902         (MULTILIB_MATCHES): Likewise.
4903         (MULTLIB_REQUIRED): Likewise.
4905 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4907         * config/arm/t-rtems: Rewrite for new option framework.
4909 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4911         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
4912         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
4913         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
4914         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
4915         * config/arm/t-multilib: ... here.
4916         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
4917         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
4918         armv7-a and armv8*-a when A-profile libraries have not been built.
4919         * config/arm/t-rmprofile: Rewrite.
4921 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4923         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
4924         with a backslash.  Remove the backslash after substituting unescaped
4925         periods.
4926         * doc/fragments.texi (MULTILIB_REUSE): Document it.
4928 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4930         * config.gcc: (arm*-*-*): When building a-profile libraries, force
4931         the driver to pass through the default setting of -mfloat-abi.
4932         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
4933         rather than NULL.
4934         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
4935         (all_feat_combs): New rule.
4936         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
4937         default libraries.
4938         * config/arm/t-aprofile: Rewrite.
4940 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4942         * config/arm/arm.h (FPUTYPE_AUTO): Define.
4943         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
4944         fpu is not specified by the user/command-line.
4945         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
4946         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
4947         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
4948         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
4949         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
4950         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
4952 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4954         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
4955         * config/arm/t-arm-elf: Rewritten.
4957 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4959         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
4960         have some floating-point instructions.
4961         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
4962         (TARGET_MAYBE_HARD_FLOAT): New macro.
4963         * config/arm/arm-builtins.c (arm_init_builtins): Use
4964         TARGET_MAYBE_HARD_FLOAT.
4965         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
4967 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4969         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
4970         (configargs.h): Include it.
4971         (arm_print_hint_for_fpu_option): New function.
4972         (arm_parse_fpu_option): New function.
4973         (candidate_extension): New class.
4974         (arm_canon_for_multilib): New function.
4975         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
4976         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
4977         (ARCH_CANONICAL_SPECS): New macro.
4978         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
4980 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4982         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
4983         are set after handling multilib fragments.  Set target_cpu_default2
4984         from with_cpu.
4986 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
4988         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
4989         cpu name.
4990         (arm*-*-*): Set target_cpu_default2 to a quoted string.
4991         * config/arm/parsecpu.awk (check_cpu): Validate any extension
4992         options.
4993         (check_arch): Likewise.
4994         * config/arm/arm.c (arm_configure_build_target): Handle
4995         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
4996         options in the default.
4998 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5000         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
5001         when an option is an alias of another.
5002         * config/arm/parsecpu.awk (optalias): New parser token.
5003         (gen_comm_data): Mark non-alias options as such.  Emit entries
5004         for extension aliases.
5005         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
5006         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
5007         (armv6kz, armv6zk, armv6t2): Likewise.
5008         (armv7): Make vfpv3-d16 an alias.
5009         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
5010         canonical order.
5011         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
5012         Sort in canonical order.
5013         (armv8-a): Sort in canonical order.
5014         (armv8.1-a, armv8.2-a):  Likewise.
5015         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
5016         canonical order.
5017         (cortex-a9): Sort in canonical order.
5018         * config/arm/arm.c (selftests.h): Include it.
5019         (arm_test_cpu_arch_data): New function.
5020         (arm_run_self_tests): New function.
5021         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
5022         (targetm): Move declaration to the end of the file.
5023         * arm-cpu-cdata.h: Regenerated.
5025 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5027         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
5028         call to target_mode_check describing the type of option passed.
5029         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
5030         (arm_target_thumb_only): Use arm_parse_arch_option_name or
5031         arm_parse_cpu_option_name to match parameters against list of
5032         available targets.
5033         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
5034         arm_arch_core_flags data structure.
5035         * config/arm/arm-cpu_cdata.h: Regenerated.
5037 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5039         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
5040         config/arm/arm.c.
5041         (arm_print_hint_for_cpu_option): Likewise.
5042         (arm_print_hint_for_arch_option): Likewise.
5043         (arm_parse_cpu_option_name): Likewise.
5044         (arm_parse_arch_option_name): Likewise.
5045         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
5046         of entries in the all_fpus list.
5047         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
5048         (arm_parse_cpu_option_name): Declare.
5049         (arm_parse_arch_option_name): Declare.
5050         (arm_parse_option_features): Declare.
5051         (arm_intialize_isa): Declare.
5052         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
5053         data tables to ...
5054         (gen_comm_data): ... here.  Make definitions non-static.
5055         * config/arm/arm-cpu-data.h: Regenerated.
5056         * config/arm/arm-cpu-cdata.h: Regenerated.
5058 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5060         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
5061         (cpu_arch_extension): New structure.
5062         (cpu_arch_option, arch_option, cpu_option): New structures.
5063         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
5064         architecture types.
5065         (gen_data): Generate new format data tables.
5066         * config/arm/arm.c (cpu_tune): New structure.
5067         (cpu_option, processors): Delete.
5068         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
5069         (arm_print_hint_for_cpu_option): ... this and ...
5070         (arm_print_hint_for_arch_option): ... this.
5071         (arm_parse_arch_cpu_name): Delete.  Replace with ...
5072         (arm_parse_cpu_option_name): ... this and ...
5073         (arm_parse_arch_option_name): ... this.
5074         (arm_unrecognized_feature): Change type of target parameter to
5075         cpu_arch_option.
5076         (arm_parse_arch_cpu_features): Delete.  Replace with ...
5077         (arm_parse_option_features): ... this.
5078         (arm_configure_build_target): Rework to use new configuration data
5079         tables.
5080         (arm_print_tune_info): Rework for new configuration data tables.
5081         * config/arm/arm-cpu-data.h: Regenerated.
5082         * config/arm/arm-cpu.h: Regenerated.
5084 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5086         * Makefile.in (OBJS): Move sbitmap.o from here ...
5087         (OBJS-libcommon): ... to here.
5089 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5091         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
5092         (ISA_ALL_CRYPTO): New macro.
5093         (ISA_ALL_SIMD): New macro
5094         (ISA_ALL_FP): New macro.
5095         * config/arm/arm.c (fpu_bitlist): Update initializer.
5096         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
5097         simd or fp.
5098         (arm9e): Add fpu.  Add option for nofp
5099         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
5100         (arm926ej-s, arm1026ej-s): Likewise.
5101         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
5102         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
5103         neon-fp16, neon-vfpv4, nofp and nosimd.
5104         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
5105         (cortex-a8): Add fpu.  Add option for nofp.
5106         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
5107         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
5108         (cortex-r4f): Add fpu.
5109         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
5110         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
5111         for nofp.
5112         (cortex-r8): Likewise.
5113         (cortex-m4): Add fpu.  Add option for nofp.
5114         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
5115         (cortex-a17.cortex-a7): Likewise.
5116         (cortex-a32): Add fpu.  Add options for crypto and nofp.
5117         (cortex-a35, cortex-a53): Likewise.
5118         (cortex-a57): Add fpu.  Add option for crypto.
5119         (cortex-a72, cortex-a73): Likewise.
5120         (exynos-m1): Likewise.
5121         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
5122         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
5123         (cortex-m33): Add fpu.  Add option for nofp.
5124         * config/arm/arm-cpu-cdata.h: Regenerated
5125         * config/arm/arm-cpu-data.h: Regenerated.
5127 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5129         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
5130         (armv5te, armv5tej): Likewise.
5131         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
5132         (armv7): Add options fp and vfpv3-d16.
5133         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
5134         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
5135         nofp and nosimd.
5136         (armv7ve): Likewise.
5137         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
5138         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
5139         (armv8-a): Add nocrypto option.
5140         (armv8.1-a, armv8.2-a): Likewise.
5141         (armv8-m.main): add options fp, fp.dp and nofp.
5143 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5145         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
5146         nofp.
5147         (armv8-a+crc): Delete.
5148         (armv8.1-a): Add options simd, crypto and nofp.
5149         (armv8.2-a): Add options fp16, simd, crypto and nofp.
5150         (armv8.2-a+fp16): Delete.
5151         (armv8-m.main): Add option dsp.
5152         (armv8-m.main+dsp): Delete.
5153         (cortex-a8): Add fpu.  Add nofp option.
5154         (cortex-a9): Add fpu.  Add nofp and nosimd options.
5155         * config/arm/parsecpu.awk (gen_data): Generate option tables and
5156         link to main cpu and architecture data structures.
5157         (gen_comm_data): Only put isa attributes from the main architecture
5158         in common tables.
5159         (option): New statement for architecture and CPU entries.
5160         * arm.c (struct cpu_option): New structure.
5161         (struct processors): Add entry for options.
5162         (arm_unrecognized_feature): New function.
5163         (arm_parse_arch_cpu_name): Ignore any characters after the first
5164         '+' character.
5165         (arm_parse_arch_cpu_feature): New function.
5166         (arm_configure_build_target): Separate out any CPU and architecture
5167         features and parse separately.  Don't error out if -mfpu=auto is
5168         used with only an architecture string.
5169         (arm_print_asm_arch_directives): New function.
5170         (arm_file_start): Call it.
5171         * config/arm/arm-cpu-cdata.h: Regenerated.
5172         * config/arm/arm-cpu-data.h: Likewise.
5173         * config/arm/arm-tables.opt: Likewise.
5175 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5177         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
5178         assembler when it is not -mfpu=auto.
5180 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5182         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
5183         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
5184         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
5185         (ASM_CPU_SPEC): Rewrite.
5186         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
5187         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
5188         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
5189         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
5190         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
5191         copied string is NUL-terminated.  Also strip any characters prefixed
5192         by '+'.
5193         (arm_rewrite_selected_arch): New function.
5194         (arm_rewrite_march): New function.
5196 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
5198         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
5199         (x_arm_cpu_string, x_arm_tune_string): Likewise.
5200         (march, mcpu, mtune): Convert to string-based options.
5201         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
5202         (arm_parse_arch_cpu_name): New function.
5203         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
5204         identify selected architecture or CPU.
5205         (arm_option_save): New function.
5206         (TARGET_OPTION_SAVE): Redefine.
5207         (arm_option_restore): Restore string options.
5208         (arm_option_print): Print string options.
5210 2017-06-16  Martin Sebor  <msebor@redhat.com>
5212         PR tree-optimization/80933
5213         PR tree-optimization/80934
5214         * builtins.c (fold_builtin_3): Do not handle bcmp here.
5215         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
5216         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
5217         (gimple_fold_builtin): Call them.
5219 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
5221         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
5222         as unlikely; update profile.
5224 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
5226         * predict.c (force_edge_cold): Handle declaring edges impossible
5227         more aggresively.
5229 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
5231         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
5232         profile.
5233         (try_unroll_loop_completely): Fix reporting.
5235 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
5237         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
5239 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
5241         PR target/71778
5242         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
5243         if given a non-constant argument for an intrinsic which requires a
5244         constant.
5246 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
5248         * profile.c (compare_freqs): New function.
5249         (branch_prob): Sort edge list.
5250         (find_spanning_tree): Assume that the list is priority sorted.
5252 2017-06-16  Richard Biener  <rguenther@suse.de>
5254         PR tree-optimization/81090
5255         * passes.def (pass_record_bounds): Remove.
5256         * tree-pass.h (make_pass_record_bounds): Likewise.
5257         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
5258         make_pass_record_bounds): Likewise.
5259         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
5260         not free niter estimates at the beginning but at the end.
5261         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
5263 2017-06-16  Richard Biener  <rguenther@suse.de>
5265         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
5266         initializer to workaround ICE in host GCC 4.8.
5268 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
5270         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
5271         counts.
5272         (clone_inlined_nodes): Update.
5274 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
5276         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
5277         prefetch settings, and enable prefetching by default at -O3.
5279 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
5281         * config/aarch64/aarch64.c (aarch64_override_options_internal):
5282         Set flag_prefetch_loop_arrays according to tuning data.
5284 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
5286         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
5287         New tune structure.
5288         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
5289         [Unrelated to main purpose of the patch] Place the pointer field last
5290         to enable type checking errors when tune structure are wrongly merged.
5291         * config/aarch64/aarch64.c (generic_prefetch_tune,)
5292         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
5293         (thunderx2t99_prefetch_tune): New tune constants.
5294         (tune_params *_tunings): Update all tunings (no functional change).
5295         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
5296         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
5297         from tunings structures.
5299 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
5301         PR sanitizer/81094
5302         * ubsan.c (instrument_null): Add T argument, use it instead
5303         of computing it based on IS_LHS.
5304         (instrument_object_size): Likewise.
5305         (pass_ubsan::execute): Adjust instrument_null and
5306         instrument_object_size callers to pass gimple_get_lhs or
5307         gimple_assign_rhs1 result to it.  Use instrument_null instead of
5308         calling get_base_address and instrument_mem_ref.  Handle
5309         aggregate call arguments for object-size sanitization.
5311 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
5313         PR tree-optimization/81089
5314         * tree-vrp.c (is_masked_range_test): Validate operands of
5315         subexpression.
5317 2017-06-15  Martin Sebor  <msebor@redhat.com>
5319         PR c++/80560
5320         * dumpfile.c (dump_register): Avoid calling memset to initialize
5321         a class with a default ctor.
5322         * gcc.c (struct compiler): Remove const qualification.
5323         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
5324         * hash-table.h: Ditto.
5325         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
5326           assignment.
5327         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
5328         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
5329         default ctor.
5330         * params.h (struct param_info): Make struct members non-const.
5331         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
5332         with default initialization.
5333         * vec.h (vec_copy_construct, vec_default_construct): New helper
5334         functions.
5335         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
5336         with vec_copy_construct.
5337         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
5338         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
5339         * doc/invoke.texi (-Wclass-memaccess): Document.
5341 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5343         * emit-rtl.h (is_leaf): Update comment about local
5344         register allocator.
5346 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
5348         PR target/78818
5349         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
5350         for a variable to have a section before checking if the section has a
5351         name.
5352         Set section to.persistent if persistent attribute is set.
5353         Warn if .persistent attribute is used on an automatic variable.
5355 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
5357         PR rtl-optimization/80474
5358         * reorg.c (update_block): Do not ignore instructions in a delay slot.
5360 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
5362         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
5363         of REGNO.
5365 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
5367         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
5368         (casesi): Emit bounds checking as RTL.
5369         (casesi_internal_mips16_<mode>): Remove bounds checking.
5371 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
5373         * config/xtensa/xtensa.c (xtensa_option_override): Append
5374         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
5375         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
5376          xtensa_doloop_hooks): Define unconditionally.
5377         (xtensa_reorg_loops): Only call reorg_loops in the presence of
5378         TARGET_LOOPS.
5379         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
5380         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
5381         for it in xtensa_option_override.
5382         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5383          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
5385 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
5387         * doc/cppopts.texi: Document '-' special value to -MF.
5389 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
5391         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
5392         (cortex_a53_fconst): Likewise.
5393         (cortex_a53_fpmul): Likewise.
5394         (cortex_a53_f_load_64): Likewise.
5395         (cortex_a53_f_load_many): Likewise.
5396         (cortex_a53_advsimd_alu): Likewise.
5397         (cortex_a53_advsimd_alu_q): Likewise.
5398         (cortex_a53_advsimd_mul): Likewise.
5399         (cortex_a53_advsimd_mul_q): Likewise.
5400         (fpmac bypass): Add new bypass for fpmac-fpmac case.
5401         Add missing fmul, r2f_cvt and fconst cases.
5403 2017-06-14  Richard Biener  <rguenther@suse.de>
5405         PR middle-end/81088
5406         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
5407         literal constants.
5408         (fold_binary_loc): When associating do not treat pre-existing
5409         TREE_OVERFLOW on literal constants as a reason to allow
5410         TREE_OVERFLOW on associated literal constants.
5412 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5414         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
5415         (MASK_FEATURES): New macro.
5416         * config/sparc/sparc.c (sparc_option_override): Remove the special
5417         handling of -mfpu and generalize it to all MASK_FEATURES switches.
5419 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5421         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
5422         a division of 0 if non-call exceptions are enabled.
5424 2017-06-14  Andrew Pinski  <apinski@cavium.com>
5425             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
5427         PR target/71663
5428         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
5429         Improve vector initialization code gen for only variable case.
5431 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
5433         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
5435 2017-06-14  Richard Biener  <rguenther@suse.de>
5437         PR tree-optimization/81083
5438         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
5439         as values.
5441 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5443         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
5444         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
5445         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
5446         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
5447         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
5448         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
5450 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5452         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
5453         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
5455 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5457         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
5459 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5461         * config/rs6000/t-rtems: Don't handle SPE.
5463 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5465         * config/rs6000/t-linux: Don't handle SPE.
5467 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5469         * config/rs6000/eabispe.h: Delete file.
5471 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5473         * config/rs6000/t-spe: Delete file.
5475 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5477         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
5478         (rs6000_legitimate_offset_address_p): Return false for anything in
5479         V2SImode or V2SFmode.
5481 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
5483         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
5484         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
5485         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
5486         and V4HImode.
5487         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
5488         (rs6000_legitimate_offset_address_p): Ditto.
5489         (rs6000_emit_move): Ditto.
5490         (rs6000_init_builtins): Remove V4HI_type_node.
5492 2017-06-13  Martin Liska  <mliska@suse.cz>
5494         PR sanitize/78204
5495         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
5496         (gate_asan): Likewise.
5497         * asan.h (asan_no_sanitize_address_p): Remove the function.
5498         (sanitize_flags_p): New function.
5499         * builtins.def: Fix coding style.
5500         * common.opt: Use renamed enum value.
5501         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
5502         * doc/extend.texi: Document no_sanitize attribute.
5503         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
5504         to SANITIZE_UNDEFINED_NONDEFAULT.
5505         * gcc.c (sanitize_spec_function): Use the renamed enum value.
5506         * gimple-fold.c (optimize_atomic_compare_exchange_p):
5507         Use sanitize_flags_p.
5508         * gimplify.c (gimplify_function_tree): Likewise.
5509         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
5510         * opts.c (parse_no_sanitize_attribute): New function.
5511         (common_handle_option): Use renamed enum value.
5512         * opts.h (parse_no_sanitize_attribute): Declare.
5513         * tree.c (sanitize_flags_p): New function.
5514         * tree.h: Declared here.
5515         * tsan.c: Use sanitize_flags_p.
5516         * ubsan.c (ubsan_expand_null_ifn): Likewise.
5517         (instrument_mem_ref): Likewise.
5518         (instrument_bool_enum_load): Likewise.
5519         (do_ubsan_in_current_function): Remove the function.
5520         (pass_ubsan::execute): Use sanitize_flags_p.
5521         * ubsan.h: Remove do_ubsan_in_current_function
5522         * tree-cfg.c (print_no_sanitize_attr_value): New function.
5523         (dump_function_to_file): Use it here.
5525 2017-06-13  Martin Jambor  <mjambor@suse.cz>
5527         PR tree-optimization/80803
5528         PR tree-optimization/81063
5529         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
5530         (propagate_subaccesses_across_link): Enqueue subtree whenever
5531         necessary instead of relying on the caller.
5533 2017-06-13  Martin Jambor  <mjambor@suse.cz>
5535         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
5536         that have a first_link.
5537         (sort_and_splice_var_accesses): Do not check first_link before
5538         enquing.
5539         (subtree_mark_written_and_enqueue): Likewise.
5540         (propagate_all_subaccesses): Likewise and do not stop at first
5541         parent with a first_link.
5543 2017-06-13  Martin Jambor  <mjambor@suse.cz>
5545         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
5546         instead of f.
5548 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
5550         * match.pd: New pattern.
5552 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
5554         * tree-vrp.c (is_masked_range_test): New function.
5555         (register_edge_assert_for): Determine ranges for
5556         some bit tests.
5558 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
5560         PR tree-optimization/67328
5561         * fold-const.c (maskable_range_p): New function.
5562         (build_range_check): Generate bittests if possible.
5564 2017-06-13  Martin Liska  <mliska@suse.cz>
5566         * gimple-pretty-print.c (dump_probability): Add new argument.
5567         (dump_edge_probability): Dump both probability and count.
5568         (dump_gimple_label): Likewise.
5569         (dump_gimple_bb_header): Likewise.
5571 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
5573         PR target/81072
5574         * config/avr/avr-devices.c: Fix indentation.
5575         * config/avr/gen-avr-mmcu-specs.c: Dito.
5577 2017-06-13  Richard Biener  <rguenther@suse.de>
5579         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
5580         instead get vector type from stmt_info.
5581         (vectorizable_reduction): Adjust.  Remove dead code.
5583 2017-06-13  Richard Biener  <rguenther@suse.de>
5585         PR middle-end/81065
5586         * fold-const.c (extract_muldiv_1): Remove bogus distribution
5587         case of C * (x * C2 + C3).
5588         (fold_addr_of_array_ref_difference): Properly fold index difference.
5590 2017-06-12  David S. Miller  <davem@davemloft.net>
5592         PR target/80968
5593         * config/sparc/sparc.md (return expander): Emit frame blockage if
5594         function uses alloca.
5596 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
5598         * combine.c (make_field_assignment): Check len rather than the mode
5599         precision when calling force_to_mode.
5601 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
5603         Support multilibs and devices that see flash in RAM address range.
5605         PR target/81072
5606         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
5607         (avr_mcu_t) <flash_pm_offset>: New field.
5608         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
5609         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
5610         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
5611         (AVR_TINY_PM_OFFSET): Remove macro.
5612         * config/avr/avr.opt (-mshort-calls): New option.
5613         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
5614         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
5615         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5616         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
5617         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
5618         instead of avr_arch->have_jmp_call.
5619         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
5620         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
5621         avr_arch->flash_pm_offset to define.
5622         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
5623         new field flash_pm_offset.  Add entry for avrxmega3.
5624         (avr_texinfo): Add entry for avrxmega3.
5625         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
5626         attiny212, attiny214,
5627         attiny412, attiny414, attiny416, attiny417,
5628         attiny814, attiny816, attiny817,
5629         attiny1614, attiny1616, attiny1617,
5630         attiny3214, attiny3216, attiny3217.
5631         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
5632         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
5633         (avr_print_operand_address) [AVR_TINY]: Same.
5634         (avr_asm_init_sections) <readonly_data_section>: Only patch
5635         callback if avr_arch->flash_pm_offset = 0.
5636         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
5637         for rodata if avr_arch->flash_pm_offset != 0.
5638         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
5639         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
5640         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
5641         (m_options): Append opt_rcall.
5642         (m_dirnames): Append dir_rcall.
5643         * config/avr/t-multilib: Regenerate.
5645         * configure.ac [target=avr]: Check whether avrxmega3 default
5646         linker description file works as needed.
5647         * configure: Regenerate.
5648         * doc/avr-mmcu.texi: Regenerate.
5649         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
5650         <__AVR_ARCH__>: Document avrxmega3 and 103.
5651         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
5652         <__AVR_SHORT_CALLS__>: Document it.
5653         <__AVR_PM_BASE_ADDRESS__>: Document it.
5654         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
5655         (AVR Variable Attributes) <progmem>: Document this is
5656         not needed for avrxmega3.
5657         (AVR Named Address Spaces) <__flash>: Dito.
5659 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
5661         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
5663 2017-06-12  Doug Rupp  <rupp@adacore.com>
5665         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
5666         Append vxworks-stdint.h to the tm_file list.
5667         * config/vxworks-stdint.h: New file.
5669 2017-06-12  Martin Liska  <mliska@suse.cz>
5671         PR tree-optimization/81041
5672         * tree-profile.c (gimple_gen_ic_func_profiler):
5673         Create an extra BB in profile-generate
5674         (gimple_gen_time_profiler): Likewise.
5676 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
5678         PR tree-optimization/81003
5679         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
5680         (update_range_test): Use it instead of force_gimple_operand_gsi.
5682 2017-06-12  Richard Biener  <rguenther@suse.de>
5684         PR tree-optimization/81053
5685         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
5686         with backedge value not defined in loop.  Simplify def stmt
5687         compute.
5689 2017-06-11  Tom de Vries  <tom@codesourcery.com>
5691         PR target/79939
5692         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
5693         Return true.
5694         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
5695         nvptx_cannot_force_const_mem.
5697 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
5699         * opts.c (finish_options): Move test for flag_split_stack after
5700         it has been initialized.
5702 2017-06-11  Jason Merrill  <jason@redhat.com>
5704         * tree.h (id_equal): New.
5705         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
5706         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
5707         instead of strcmp of IDENTIFIER_POINTER.
5709 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
5711         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
5712         (mark_all_inlined_calls_cdtor): Fix formating.
5713         (inline_transform): Rescale profile before inlining.
5715 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
5717         * cgraph.h (cgraph_edge::clone): Update prototype.
5718         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
5719         (cgraph_node::create_clone): Update.
5720         (cgraph_node::create_version_clone): Update.
5721         * tree-inline.c (copy_bb): Update.
5722         (expand_call_inline): Update.
5724 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
5726         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
5727         factored out from ...
5728         (rs6000_emit_prologue): ... here.
5730 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
5732         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
5733         factored out from ...
5734         (rs6000_emit_prologue): ... here.
5736 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
5738         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
5739         edge counts.
5740         (handle_missing_profiles): Fix computation of tp_first_run.
5741         (counts_to_freqs): Do not touch freqs when count is 0.
5743 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
5745         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
5746         profile.
5748 2017-06-10  Tom de Vries  <tom@codesourcery.com>
5750         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5751         attributes): Document signal effective target.
5753 2017-06-10  Tom de Vries  <tom@codesourcery.com>
5755         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
5756         Document effective target stack_size.
5758 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
5760         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
5761         to the edit_context if they can be auto-applied.
5763 2017-06-9  Ian Lance Taylor  <iant@golang.org>
5765         * opts.c (finish_options): If -fsplit-stack, disable implicit
5766         -forder-blocks-and-partition.
5767         * doc/invoke.texi (Optimize Options): Document that when using
5768         -fsplit-stack -forder-blocks-and-partition is not implicitly
5769         enabled.
5771 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
5773         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
5774         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
5775         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
5776         * builtins.def (abort, trap, unreachable): Declare cold.
5777         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
5778         * tree-core.h (ECF_COLD): New.
5779         * tree.c (set_call_expr_flags): Handle ECF_COLD.
5780         (build_common_builtin_nodes): Mark unreachable and abort as cold.
5782 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
5784         * predict.c (unlikely_executed_stmt_p): Cleanup.
5786 2017-06-09  Richard Biener  <rguenther@suse.de>
5788         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
5789         model if the ref is always written to.
5791 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
5793         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
5795 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
5797         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
5798         than udiv.
5800 2017-06-09  Tom de Vries  <tom@codesourcery.com>
5802         PR target/80855
5803         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
5804         "target cannot support label values" when encountering LABEL_REF.
5806 2017-06-09  Martin Liska  <mliska@suse.cz>
5808         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
5809         (gimple_gen_ic_func_profiler): Emit direct comparison
5810         of __gcov_indirect_call_callee with NULL.
5811         (gimple_gen_time_profiler): Change probability from
5812         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
5814 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
5816         * profile.c (edge_gcov_counts): Turn to pointer.
5817         (compute_branch_probabilities, compute_branch_probabilities): Update.
5818         (branch_prob): Do not clear edge_gcov_count.
5819         * profile.h (edge_gcov_counts): Turn to pointer.
5820         (edge_gcov_count): Update.
5822 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
5824         * gimple.h (gimple_check_failed): Mark cold.
5826 2017-06-09  Richard Biener  <rguenther@suse.de>
5828         PR tree-optimization/66623
5829         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
5830         refactor check_reduction into two parts, properly computing
5831         whether we have to check reduction validity for outer loop
5832         vectorization.
5834 2017-06-09  Richard Biener  <rguenther@suse.de>
5836         PR tree-optimization/79483
5837         * graphite-scop-detection.c (order): New global.
5838         (get_order): Compute bb to order mapping that satisfies code
5839         generation constraints.
5840         (cmp_pbbs): New helper.
5841         (build_scops): Start domwalk at entry block, sort generated
5842         pbbs.
5844 2017-06-09  Richard Biener  <rguenther@suse.de>
5846         PR middle-end/81007
5847         * ipa-polymorphic-call.c
5848         (ipa_polymorphic_call_context::restrict_to_inner_class):
5849         Skip FIELD_DECLs with error_mark_node type.
5850         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
5851         last again.
5853 2017-06-09  Martin Liska  <mliska@suse.cz>
5855         * predict.c (struct branch_predictor): New struct.
5856         (test_prediction_value_range): New test.
5857         (predict_c_tests): New function.
5858         * selftest-run-tests.c (selftest::run_tests): Run the function.
5859         * selftest.h: Declare new tests.
5861 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
5863         PR target/80966
5864         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
5865         gen_add3_insn did not fail.
5866         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
5867         r0, construct that number in a temporary reg and add that reg to r0.
5868         If asked to put the result in r0 as well, fail.
5870 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
5872         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
5873         for early expansion of vec_eqv.
5875 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
5877         PR middle-end/81005
5878         * ubsan.c (instrument_null): Avoid pointless code temporary.
5879         (pass_ubsan::execute): Instrument aggregate arguments of calls.
5881 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
5883         PR target/81015
5884         Revert:
5885         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
5887         PR target/59874
5888         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
5889         (*clzhi2): Ditto.
5891 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
5893         * predict.c (unlikely_executed_edge_p): Move ahead.
5894         (probably_never_executed_edge_p): Use it.
5896 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5898         PR middle-end/79988
5899         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
5900         gimple_call_builtin_p call.
5902 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
5904         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
5905         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
5906         rtl_check_failed_type2, rtl_check_failed_code1,
5907         rtl_check_failed_code2, rtl_check_failed_code_mode,
5908         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
5909         rtvec_check_failed_bounds, rtl_check_failed_flag,
5910         _fatal_insn_not_found, _fatal_insn): Likewise.
5911         * tree.h (tree_contains_struct_check_failed,
5912         tree_check_failed, tree_not_check_failed,
5913         tree_class_check_failed, tree_range_check_failed,
5914         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
5915         tree_vec_elt_check_failed, phi_node_elt_check_failed,
5916         tree_operand_check_failed, omp_clause_check_failed,
5917         omp_clause_operand_check_failed, omp_clause_range_check_failed):
5918         Likewise.
5920 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
5922         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
5923         flag_branch_probabilities.
5924         * ipa-inline.c (edge_badness): Likewise.
5925         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
5926         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5927         * predict.c (maybe_hot_frequency_p): Likewise.
5928         (probably_never_executed): Likewise.
5929         * sched-ebb.c (schedule_ebbs): Likewise.
5930         * sched-rgn.c (find_single_block_region): Likewise.
5931         * tracer.c (tail_duplicate): Likewise.
5933 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
5935         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
5936         longer requires x_flag_profile_use.
5938 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
5940         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
5941         instead of flag_reorder_blocks_and_partition.
5942         * dbxout.c (dbxout_function_end): Likewise.
5943         * dwarf2out.c (gen_subprogram_die): Likewise.
5944         * haifa-sched.c (sched_create_recovery_edges): Likewise.
5945         * hw-doloop.c (reorg_loops): Likewise.
5946         * varasm.c (assemble_start_function,
5947         assemble_end_function): Likewise.
5948         (decide_function_section): Do not check for
5949         flag_reorder_blocks_and_partition.
5951 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5953         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
5954         New function.
5955         (chkp_get_hard_register_fake_addr_expr): Ditto.
5956         (chkp_build_addr_expr): Add check for hard reg case.
5957         (chkp_parse_array_and_component_ref): Ditto.
5958         (chkp_find_bounds_1): Ditto.
5959         (chkp_process_stmt): Don't generate bounds store for
5960         hard reg case.
5962 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
5964         * predict.c (maybe_hot_bb_p): Do not check profile status.
5965         (maybe_hot_edge_p): Likewise.
5966         (probably_never_executed): Check for zero counts even if profile
5967         is not read.
5968         (unlikely_executed_edge_p): New function.
5969         (unlikely_executed_stmt_p): New function.
5970         (unlikely_executed_bb_p): New function.
5971         (set_even_probabilities): Use unlikely predicates.
5972         (combine_predictions_for_bb): Likewise.
5973         (predict_paths_for_bb): Likewise.
5974         (predict_paths_leading_to_edge): Likewise.
5975         (determine_unlikely_bbs): New function.
5976         (estimate_bb_frequencies): Use it.
5977         (compute_function_frequency): Use zero counts even if profile is
5978         not read.
5979         * profile-count.h: Fix typo.
5981 2017-08-08  Julia Koval  <julia.koval@intel.com>
5983         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
5984         _mm512_mask_cvtsepi16_storeu_epi8,
5985         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
5986         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
5987         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
5988         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
5989         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
5990         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
5991         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
5992         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
5993         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
5994         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
5995         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
5996         __builtin_ia32_pmovuswb256mem_mask,
5997         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
5998         __builtin_ia32_pmovwb512mem_mask): New builtins.
6000 2017-08-08  Julia Koval  <julia.koval@intel.com>
6002         PR target/73350,80862
6003         * config/i386/subst.md (round): Fix round pattern.
6004         * config/i386/i386.c (ix86_erase_embedded_rounding):
6005         Fix erasing rounding for the fixed pattern.
6007 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
6009         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
6011 2017-06-08  Martin Liska  <mliska@suse.cz>
6013         PR gcov-profile/80911
6014         * gcov.c (block_info::block_info): New constructor.
6016 2017-06-07  Carl Love  <cel@us.ibm.com>
6018         * config/rs6000/rs6000-c: The return type of the following
6019         built-in functions was implemented as int not long long.  Fix sign
6020         of return value for the unsigned version of vec_mulo and vec_mule.
6021         vector unsigned long long vec_bperm (vector unsigned long long,
6022                                              vector unsigned char)
6023         vector signed long long vec_mule (vector signed int,
6024                                           vector signed int)
6025         vector unsigned long long vec_mule (vector unsigned int,
6026                                             vector unsigned int)
6027         vector signed long long vec_mulo (vector signed int,
6028                                           vector signed int)
6029         vector unsigned long long vec_mulo (vector unsigned int,
6030                                             vector unsigned int)
6031         * doc/extend.texi: Fix the documentation for the built-in
6032         functions.
6034 2017-06-07  Carl Love  <cel@us.ibm.com>
6036         PR target/80982
6037         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
6038         for BE.
6040 2017-06-07  Carl Love  <cel@us.ibm.com>
6042         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
6043         support, Generate       doublehv for signed int/float for BE case only.
6045 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
6047         * doc/invoke.texi (mcx16): Rewrite.
6049 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6051         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
6052         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
6053         *mov<mode>_softfloat, and an anonymous splitter): Use
6054         nonimmediate_operand instead of rs6000_nonimmediate_operand.
6056 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6058         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
6059         SPEFSCR registers.
6060         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
6061         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
6062         (rs6000_debug_reg_global): Adjust.
6063         (rs6000_init_hard_regno_mode_ok): Adjust.
6064         (rs6000_dbx_register_number): Adjust.
6065         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
6066         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
6067         Remove SPE_ACC and SPEFSCR.
6068         (REG_ALLOC_ORDER): Ditto.
6069         (FRAME_POINTER_REGNUM): Change to 111.
6070         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
6071         (REG_CLASS_NAMES): Ditto.
6072         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
6073         (REGISTER_NAMES): Ditto.
6074         (ADDITIONAL_REG_NAMES): Ditto.
6075         (rs6000_reg_names): Ditto.
6076         * config/rs6000/rs6000.md: Renumber some register number
6077         define_constants.
6079 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6081         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
6082         registers.
6083         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
6084         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
6085         to 117.
6086         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
6087         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
6088         Delete the SPE high registers.
6089         (REG_ALLOC_ORDER): Ditto.
6090         (enum reg_class): Remove SPE_HIGH_REGS.
6091         (REG_CLASS_NAMES): Ditto.
6092         (REG_CLASS_CONTENTS): Delete the SPE high registers.
6093         (REGISTER_NAMES): Ditto.
6094         (rs6000_reg_names): Ditto.
6095         * doc/tm.texi.in: Remove SPE as example.
6096         * doc/tm.texi: Regenerate.
6098 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6100         * config/rs6000/8540.md (ppc8540_brinc): Delete.
6101         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
6102         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
6103         * config/rs6000/rs6000.md (type): Remove "brinc".
6105 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6107         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
6108         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
6109         * config/rs6000/linuxspe.h: Delete file.
6110         * config/rs6000/rs6000.md: Don't include spe.md.
6111         * config/rs6000/spe.h: Delete file.
6112         * config/rs6000/spe.md: Delete file.
6113         * config/rs6000/t-rs6000: Remove spe.md.
6115 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6117         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
6118         (reg_or_none500mem_operand): Delete.
6119         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
6120         instead of reg_or_none500mem_operand.
6122 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6124         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
6125         handling of SPE flags.
6126         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
6128 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6130         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
6131         SPE ABI handling.
6132         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
6133         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
6134         paired_divv2sf3): Similar.
6135         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
6136         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
6137         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
6138         RS6000_BUILTIN_S.
6139         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
6140         Rename the paired_* instruction patterns.
6141         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
6142         define __SPE__.
6143         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
6144         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
6145         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
6146         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
6147         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
6148         PAIRED_VECTOR_MODE.
6149         (struct machine_function): Delete field spe_insn_chain_scanned_p.
6150         (spe_func_has_64bit_regs_p): Delete.
6151         (spe_expand_predicate_builtin): Delete.
6152         (spe_expand_evsel_builtin): Delete.
6153         (TARGET_DWARF_REGISTER_SPAN): Do not define.
6154         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
6155         (invalid_e500_subreg): Delete.
6156         (rs6000_legitimize_address): Always force_reg op2 as well, for
6157         paired single memory accesses.
6158         (rs6000_member_type_forces_blk): Delete.
6159         (rs6000_spe_function_arg): Delete.
6160         (rs6000_expand_unop_builtin): Delete SPE handling.
6161         (rs6000_expand_binop_builtin): Ditto.
6162         (spe_expand_stv_builtin): Delete.
6163         (bdesc_2arg_spe): Delete.
6164         (spe_expand_builtin): Delete.
6165         (spe_expand_predicate_builtin): Delete.
6166         (spe_expand_evsel_builtin): Delete.
6167         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
6168         (spe_init_builtins): Delete.
6169         (spe_func_has_64bit_regs_p): Delete.
6170         (savres_routine_name): Delete "info" parameter.  Adjust callers.
6171         (rs6000_emit_stack_reset): Ditto.
6172         (rs6000_dwarf_register_span): Delete.
6173         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
6174         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
6175         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
6176         Delete.
6177         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
6178         Delete.
6179         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
6180         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
6181         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
6182         mulv2sf3, divv2sf3): Delete expanders.
6184 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6186         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
6188 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6190         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
6191         * config/rs6000/rs6000.c: Ditto.
6193 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6195         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
6196         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
6197         comparison_operator.
6199 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6201         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
6202         * config/rs6000/rs6000.opt: Ditto.
6203         * config/rs6000/t-rtems: Ditto.
6205 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6207         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
6208         TARGET_E500_SINGLE by 0, simplify.
6209         * config/rs6000/rs6000.c: Ditto.
6210         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
6211         (spe_build_register_parallel): Delete.
6212         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
6213         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
6214         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
6215         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
6216         (E500_CONVERT): Delete.
6217         * config/rs6000/spe.md: Remove many patterns and all define_constants.
6219 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
6221         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
6222         * config/rs6000/dfp.md: Ditto.
6223         (negdd2, *negdd2_fpr): Merge.
6224         (absdd2, *absdd2_fpr): Merge.
6225         (negtd2, *negtd2_fpr): Merge.
6226         (abstd2, *abstd2_fpr): Merge.
6227         * config/rs6000/e500.h: Delete file.
6228         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
6229         TARGET_FPRS by 1 and simplify.
6230         * config/rs6000/rs6000-c.c: Ditto.
6231         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
6232         TARGET_DF_SPE by 0.
6233         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
6234         TARGET_DF_SPE.
6235         * config/rs6000/rs6000.md: Ditto.
6236         (floatdidf2, *floatdidf2_fpr): Merge.
6237         (move_from_CR_gt_bit): Delete.
6238         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
6239         (E500_CR_IOR_COMPARE): Delete.
6240         (All patterns that require !TARGET_FPRS): Delete.
6241         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
6243 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6245         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
6247 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6249         * graphds.c (add_edge): Intitialize edge's attached data.
6250         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
6251         pointer parameter.  Call pointed function on each edge during
6252         graph traversing.  Skip traversing the edge when the function
6253         returns true.
6254         (graphds_dfs, graphds_scc): Ditto.
6255         (for_each_edge): New parameter.  Pass the new parameter to callback
6256         function.
6257         * graphds.h (skip_edge_callback): New function pointer type.
6258         (graphds_dfs, graphds_scc): New function pointer parameter.
6259         (graphds_edge_callback, for_each_edge): New parameter.
6261 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6263         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
6264         out code checking if runtime alias check is possible to below ...
6265         Call the new function.
6266         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
6267         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
6269 2017-06-07  Marek Polacek  <polacek@redhat.com>
6271         PR sanitizer/80932
6272         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
6273         TYPE_OVERFLOW_WRAPS check.
6275 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6277         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
6278         if versioning is required.
6279         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
6280         peeling with the check for versioning.
6282 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6284         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
6285         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
6286         Set true to new parameter if new ssa variable is defined.
6287         (vect_gen_vector_loop_niters): Refactor.  Set range information
6288         for the new vector loop bound variable.
6289         (vect_do_peeling): Ditto.
6291 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6293         * tree-affine.c (ssa.h): Include header file.
6294         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
6295         has wrapping overflow behavior.
6297 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6299         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
6301 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6303         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
6304         (tree_to_aff_combination): ... here.
6306 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
6308         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
6309         reg_pressure model function.
6310         (ivopts_global_cost_for_size): Delete.
6311         (determine_set_costs, iv_ca_recount_cost): Call new model function
6312         ivopts_estimate_reg_pressure.
6314 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
6316         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
6317         expensive than udiv.  Remove floating point cases from mod.
6319 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
6321         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
6322         Increase idiv cost.
6324 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
6326         * config/aarch64/aarch64.md
6327         (copysignsf3): Fix mask generation.
6329 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
6331         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
6332         TDI_gimple.
6333         (class dump_manager): Add register_dumps method.
6334         * dumpfile.c: Include langhooks.h.
6335         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
6336         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
6337         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
6338         (dump_manager::dump_register): Start with 512 entries instead of 32.
6339         (dump_manager::register_dumps): New method.
6340         * toplev.c (general_init): Instead of invoking register_dumps
6341         langhook, invoke register_dumps method on the dump manager.
6342         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
6343         TDI_generic.
6345 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
6347         * doc/md.texi: Clarify the restrictions on a define_insn condition.
6348         Say that # requires an associated define_split to exist, and that
6349         the define_split must be suitable for use after register allocation.
6351 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
6353         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
6354         (compute_outgoing_frequencies): Also initialize zero counts.
6355         (find_many_sub_basic_blocks): Do not produce uninitialized profile
6356         around loops; preserve more of profile when nothing changes.
6358 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
6360         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
6361         here.
6362         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
6363         * config/arm/arm-cpu-cdata.h: Regenerate.
6364         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
6365         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
6366         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
6367         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
6368         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
6369         support.
6370         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
6371         support.
6372         * config/arm/t-rmprofile: Likewise.
6373         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
6375 2017-06-06  David S. Miller  <davem@davemloft.net>
6377         PR target/80968
6378         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
6379         blockage if function uses alloca.
6381 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6383         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
6384         New "uid" fields to hold pretty-print IDs of group and ref.
6385         Memory references are now identified as <group_id>:<ref_id>
6386         instead of using [random] addresses.
6387         (dump_mem_details): Simplify, no functional change.
6388         (dump_mem_ref): Simplify and make output more concise.
6389         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
6390         (find_or_create_group): Initialize group uid.
6391         (record_ref): Initialize ref uid.  Improve debug output.
6392         (prune_group_by_reuse, should_issue_prefetch_p,)
6393         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
6394         (mark_nontemporal_store, determine_loop_nest_reuse):
6395         Improve debug output.
6397 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6399         * dbgcnt.def (prefetch): New debug counter.
6400         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
6401         (schedule_prefetches): Stop issueing prefetches if debug counter
6402         tripped.
6404 2017-06-06  Tom de Vries  <tom@codesourcery.com>
6406         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
6407         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
6409 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6411         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
6412         Use aarch64_reg_or_zero predicate for operand 4.
6413         (aarch64_compare_and_swap<mode> define_insn_and_split):
6414         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
6415         (aarch64_store_exclusive<mode>): Likewise for operand 2.
6417 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6419         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
6420         (arm_compute_save_core_reg_mask): This.
6421         (thumb1_compute_save_reg_mask): Rename into ...
6422         (thumb1_compute_save_core_reg_mask): This.
6423         (arm_compute_save_reg0_reg12_mask): Adapt comment.
6424         (arm_compute_frame_layout): Likewise.
6426 2017-06-06  Richard Biener  <rguenther@suse.de>
6428         PR tree-optimization/80974
6429         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
6430         keep or clear leaders SSA info.
6432 2017-06-06  Tom de Vries  <tom@codesourcery.com>
6434         * config/nvptx/nvptx.c (split_mode_p): New function.
6435         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
6437 2017-06-06  Tom de Vries  <tom@codesourcery.com>
6439         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
6441 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
6443         PR bootstrap/80978
6444         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
6445         profile.
6447 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
6449         * shrink-wrap.c (handle_simple_exit): Update profile.
6450         (try_shrink_wrapping): Upate profile.
6452 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
6454         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
6455         (tree_guess_outgoing_edge_probabilities): New.
6456         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
6457         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
6459 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
6461         * ipa-split.c (split_function): Initialize return bb profile.
6463 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
6465         * profile.c (compute_branch_probabilities): Also initialize
6466         EXIT_BLOCK profile.
6468 2017-06-06  Richard Biener  <rguenther@suse.de>
6470         PR tree-optimization/80928
6471         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
6472         (vect_analyze_loop_operations): Properly guard analysis for
6473         pure SLP case.
6474         (vect_transform_loop): Likewise.
6475         (vect_analyze_loop_2): Also reset SLP type on PHIs.
6476         (vect_model_induction_cost): Do not cost for pure SLP.
6477         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
6478         of induction in inner loop vectorization.
6479         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
6480         (vect_get_and_check_slp_defs): Handle vect_induction_def.
6481         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
6482         recursion.
6483         (vect_analyze_slp_cost_1): Cost induction.
6484         (vect_detect_hybrid_slp_stmts): Handle PHIs.
6485         (vect_get_slp_vect_defs): Likewise.
6486         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
6487         (vect_transform_stmt): Handle SLP reductions.
6488         * tree-vectorizer.h (vectorizable_induction): Adjust.
6490 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
6492         * config/rs6000/rs6000.c (make_resolver_func): Update
6493         init_lowered_empty_function call.
6495 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6497         * doc/invoke.texi: Document the -fprofile-abs-path option.
6498         * common.opt (fprofile-abs-path): New option.
6499         * gcov-io.h (gcov_write_filename): Declare.
6500         * gcov-io.c (gcov_write_filename): New function.
6501         * coverage.c (coverage_begin_function): Use gcov_write_filename.
6502         * profile.c (output_location): Likewise.
6504 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
6506         * shring-wrap.c: Revert accidental commit.
6508 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
6510         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
6512 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
6514         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
6515         new edge.
6516         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
6517         profile in callgraph edge.
6518         * profile-count.h (apply_probability): If THIS is 0, then result is 0
6519         (apply_scale): Likewise.
6520         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
6521         Also scale profile when inlining function with zero profile.
6522         (initialize_cfun): Update exit block profile even when it is zero.
6523         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
6524         when profile is read.
6526 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
6528         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
6529         (CLONE_*): New constants to define the processors we can generate
6530         code for with the target_clone attribute.
6531         (rs6000_clone_map): New array to identify which clone processors
6532         the current program is running on.
6533         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
6534         target_clone attribute.
6535         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
6536         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
6537         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
6538         (cpu_expand_builtin): Add support for target_clone attribute.
6539         (rs6000_valid_attribute_p): Allow "default" attribute.
6540         (get_decl_name): New debug function to simplify printing the
6541         current function name in debugging statements.
6542         (rs6000_clone_priority): New functions to support the target_clone
6543         attribute, and be able to generate code to switch between ISA 2.05
6544         through ISA 3.0 (power6 through power9).
6545         (rs6000_compare_version_priority): Likewise.
6546         (rs6000_get_function_versions_dispatcher): Likewise.
6547         (make_resolver_func): Likewise.
6548         (add_condition_to_bb): Likewise.
6549         (dispatch_function_versions): Likewise.
6550         (rs6000_generate_version_dispatcher_body): Likewise.
6551         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
6552         (fusion_gpr_load_p): Fix a spacing issue.
6553         * doc/extend.texi (Common Function Attributes): Document that the
6554         PowerPC supports the target_clone attribute.
6556 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6558         * config/arm/arm.h: explain F symbol found in description of ARM
6559         register allocation in its legend.
6561 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
6563         * config/mips/frame-header-opt.c: Include profile-count.h.
6564         * config/riscv/riscv.c: Include profile-count.h
6566 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
6568         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
6569         update profile.
6570         (sm_set_flag_if_changed): Add bbs field.
6571         (execute_sm_if_changed_flag_set): Pass BBS.
6572         (execute_sm): Update.
6574 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6576         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
6577         New pattern.
6579 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6581         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
6582         (peephole2): New peephole2 to emit the above.
6583         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
6585 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6587         * config/aarch64/aarch64.c (define_peephole2 above
6588         *sub_<shift>_<mode>): New peephole.
6590 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
6592         * config/i386/i386.c (make_resolver_func): Update.
6593         * Makefile.in: Add profile-count.h and profile-count.o
6594         * auto-profile.c (afdo_indirect_call): Update to new API.
6595         (afdo_set_bb_count): Update.
6596         (afdo_propagate_edge): Update.
6597         (afdo_propagate_circuit): Update.
6598         (afdo_calculate_branch_prob): Update.
6599         (afdo_annotate_cfg): Update.
6600         * basic-block.h: Include profile-count.h
6601         (struct edge_def): Turn count to profile_count.
6602         (struct basic_block_def): Likewie.
6603         (REG_BR_PROB_BASE): Move to profile-count.h
6604         (RDIV): Move to profile-count.h
6605         * bb-reorder.c (max_entry_count): Turn to profile_count.
6606         (find_traces): Update.
6607         (rotate_loop):Update.
6608         (connect_traces):Update.
6609         (sanitize_hot_paths):Update.
6610         * bt-load.c (migrate_btr_defs): Update.
6611         * cfg.c (RDIV): Remove.
6612         (init_flow): Use alloc_block.
6613         (alloc_block): Uninitialize count.
6614         (unchecked_make_edge): Uninitialize count.
6615         (check_bb_profile): Update.
6616         (dump_edge_info): Update.
6617         (dump_bb_info): Update.
6618         (update_bb_profile_for_threading): Update.
6619         (scale_bbs_frequencies_int): Update.
6620         (scale_bbs_frequencies_gcov_type): Update.
6621         (scale_bbs_frequencies_profile_count): New.
6622         * cfg.h (update_bb_profile_for_threading): Update.
6623         (scale_bbs_frequencies_profile_count): Declare.
6624         * cfgbuild.c (compute_outgoing_frequencies): Update.
6625         (find_many_sub_basic_blocks): Update.
6626         * cfgcleanup.c (try_forward_edges): Update.
6627         (try_crossjump_to_edge): Update.
6628         * cfgexpand.c (expand_gimple_tailcall): Update.
6629         (construct_exit_block): Update.
6630         * cfghooks.c (verify_flow_info): Update.
6631         (dump_bb_for_graph): Update.
6632         (split_edge): Update.
6633         (make_forwarder_block): Update.
6634         (duplicate_block): Update.
6635         (account_profile_record): Update.
6636         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
6637         (get_estimated_loop_iterations): Update.
6638         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
6639         (single_likely_exit): Update.
6640         * cfgloopmanip.c (scale_loop_profile): Update.
6641         (loopify): Update.
6642         (set_zero_probability): Update.
6643         (lv_adjust_loop_entry_edge): Update.
6644         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
6645         (purge_dead_edges): Update.
6646         (rtl_account_profile_record): Update.
6647         * cgraph.c (cgraph_node::create): Uninitialize count.
6648         (symbol_table::create_edge): Uninitialize count.
6649         (cgraph_update_edges_for_call_stmt_node): Update.
6650         (cgraph_edge::dump_edge_flags): Update.
6651         (cgraph_node::dump): Update.
6652         (cgraph_edge::maybe_hot_p): Update.
6653         * cgraph.h: Include profile-count.h
6654         (create_clone), create_edge, create_indirect_edge): Update.
6655         (cgraph_node): Turn count to profile_count.
6656         (cgraph_edge0: Likewise.
6657         (make_speculative, clone): Update.
6658         (create_edge): Update.
6659         (init_lowered_empty_function): Update.
6660         * cgraphclones.c (cgraph_edge::clone): Update.
6661         (duplicate_thunk_for_node): Update.
6662         (cgraph_node::create_clone): Update.
6663         * cgraphunit.c (cgraph_node::analyze): Update.
6664         (cgraph_node::expand_thunk): Update.
6665         * final.c (dump_basic_block_info): Update.
6666         * gimple-streamer-in.c (input_bb): Update.
6667         * gimple-streamer-out.c (output_bb): Update.
6668         * graphite.c (print_global_statistics): Update.
6669         (print_graphite_scop_statistics): Update.
6670         * hsa-brig.c: Include basic-block.h.
6671         * hsa-dump.c: Include basic-block.h.
6672         * hsa-gen.c (T sum_slice): Update.
6673         (convert_switch_statements):Update.
6674         * hsa-regalloc.c: Include basic-block.h.
6675         * ipa-chkp.c (chkp_produce_thunks): Update.
6676         * ipa-cp.c (struct caller_statistics): Update.
6677         (init_caller_stats): Update.
6678         (gather_caller_stats): Update.
6679         (ipcp_cloning_candidate_p): Update.
6680         (good_cloning_opportunity_p): Update.
6681         (get_info_about_necessary_edges): Update.
6682         (dump_profile_updates): Update.
6683         (update_profiling_info): Update.
6684         (update_specialized_profile): Update.
6685         (perhaps_add_new_callers): Update.
6686         (decide_about_value): Update.
6687         (ipa_cp_c_finalize): Update.
6688         * ipa-devirt.c (struct odr_type_warn_count): Update.
6689         (struct decl_warn_count): Update.
6690         (struct final_warning_record): Update.
6691         (possible_polymorphic_call_targets): Update.
6692         (ipa_devirt): Update.
6693         * ipa-fnsummary.c (redirect_to_unreachable): Update.
6694         * ipa-icf.c (sem_function::merge): Update.
6695         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
6696         * ipa-inline.c (compute_uninlined_call_time): Update.
6697         (compute_inlined_call_time): Update.
6698         (want_inline_small_function_p): Update.
6699         (want_inline_self_recursive_call_p): Update.
6700         (edge_badness): Update.
6701         (lookup_recursive_calls): Update.
6702         (recursive_inlining): Update.
6703         (inline_small_functions): Update.
6704         (dump_overall_stats): Update.
6705         (dump_inline_stats): Update.
6706         * ipa-profile.c (ipa_profile_generate_summary): Update.
6707         (ipa_propagate_frequency): Update.
6708         (ipa_profile): Update.
6709         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
6710         * ipa-utils.c (ipa_merge_profiles): Update.
6711         * loop-doloop.c (doloop_modify): Update.
6712         * loop-unroll.c (report_unroll): Update.
6713         (unroll_loop_runtime_iterations): Update.
6714         * lto-cgraph.c (lto_output_edge): Update.
6715         (lto_output_node): Update.
6716         (input_node): Update.
6717         (input_edge): Update.
6718         (merge_profile_summaries): Update.
6719         * lto-streamer-in.c (input_cfg): Update.
6720         * lto-streamer-out.c (output_cfg): Update.
6721         * mcf.c (create_fixup_graph): Update.
6722         (adjust_cfg_counts): Update.
6723         (sum_edge_counts): Update.
6724         * modulo-sched.c (sms_schedule): Update.
6725         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
6726         * predict.c (maybe_hot_count_p): Update.
6727         (probably_never_executed): Update.
6728         (dump_prediction): Update.
6729         (combine_predictions_for_bb): Update.
6730         (propagate_freq): Update.
6731         (handle_missing_profiles): Update.
6732         (counts_to_freqs): Update.
6733         (rebuild_frequencies): Update.
6734         (force_edge_cold): Update.
6735         * predict.h: Include profile-count.h
6736         (maybe_hot_count_p, counts_to_freqs): UPdate.
6737         * print-rtl-function.c: Do not include cfg.h
6738         * print-rtl.c: Include basic-block.h
6739         * profile-count.c: New file.
6740         * profile-count.h: New file.
6741         * profile.c (is_edge_inconsistent): Update.
6742         (correct_negative_edge_counts): Update.
6743         (is_inconsistent): Update.
6744         (set_bb_counts): Update.
6745         (read_profile_edge_counts): Update.
6746         (compute_frequency_overlap): Update.
6747         (compute_branch_probabilities): Update; Initialize and deinitialize
6748         gcov_count tables.
6749         (branch_prob): Update.
6750         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
6751         (edge_gcov_count): New.
6752         (bb_gcov_count): New.
6753         * shrink-wrap.c (try_shrink_wrapping): Update.
6754         * tracer.c (better_p): Update.
6755         * trans-mem.c (expand_transaction): Update.
6756         (ipa_tm_insert_irr_call): Update.
6757         (ipa_tm_insert_gettmclone_call): Update.
6758         * tree-call-cdce.c: Update.
6759         * tree-cfg.c (gimple_duplicate_sese_region): Update.
6760         (gimple_duplicate_sese_tail): Update.
6761         (gimple_account_profile_record): Update.
6762         (execute_fixup_cfg): Update.
6763         * tree-inline.c (copy_bb): Update.
6764         (copy_edges_for_bb): Update.
6765         (initialize_cfun): Update.
6766         (freqs_to_counts): Update.
6767         (copy_cfg_body): Update.
6768         (expand_call_inline): Update.
6769         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
6770         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
6771         (try_unroll_loop_completely): Update.
6772         (try_peel_loop): Update.
6773         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
6774         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
6775         * tree-ssa-loop-split.c (connect_loops): Update.
6776         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
6777         * tree-ssa-reassoc.c (branch_fixup): Update.
6778         * tree-ssa-tail-merge.c (replace_block_by): Update.
6779         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
6780         (compute_path_counts): Update.
6781         (update_profile): Update.
6782         (recompute_probabilities): Update.
6783         (update_joiner_offpath_counts): Update.
6784         (estimated_freqs_path): Update.
6785         (freqs_to_counts_path): Update.
6786         (clear_counts_path): Update.
6787         (ssa_fix_duplicate_block_edges): Update.
6788         (duplicate_thread_path): Update.
6789         * tree-switch-conversion.c (case_bit_test_cmp): Update.
6790         (struct switch_conv_info): Update.
6791         * tree-tailcall.c (decrease_profile): Update.
6792         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
6793         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
6794         * value-prof.c (check_counter): Update.
6795         (gimple_divmod_fixed_value): Update.
6796         (gimple_mod_pow2): Update.
6797         (gimple_mod_subtract): Update.
6798         (gimple_ic_transform): Update.
6799         (gimple_stringop_fixed_value): Update.
6800         * value-prof.h (gimple_ic): Update.
6802 2017-06-02  Carl Love  <cel@us.ibm.com>
6804         * config/rs6000/rs6000-c: Add support for built-in functions
6805         vector double vec_doublee (vector signed int);
6806         vector double vec_doublee (vector unsigned int);
6807         vector double vec_doublee (vector float);
6808         vector double vec_doubleh (vector signed int);
6809         vector double vec_doubleh (vector unsigned int);
6810         vector double vec_doubleh (vector float);
6811         vector double vec_doublel (vector signed int);
6812         vector double vec_doublel (vector unsigned int);
6813         vector double vec_doublel (vector float);
6814         vector double vec_doubleo (vector signed int);
6815         vector double vec_doubleo (vector unsigned int);
6816         vector double vec_doubleo (vector float);.
6817         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
6818         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
6819         UNS_DOUBLEL.
6820         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
6821         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
6822         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
6823         VS_sxwsp.
6824         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
6825         vec_doublel, vec_doubleh.
6826         * doc/extend.texi: Update the built-in documentation file for the
6827         new built-in functions.
6829 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
6831         PR jit/80954
6832         * ipa-inline-analysis.c (free_growth_caches): Set
6833         edge_removal_hook_holder to NULL after removing it.
6835 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
6837         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
6838         comparision with zero.
6840 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
6841         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
6842         for early expansion of vec_min and vec_max builtins.
6843         (builtin_function_type): Add min/max unsigned variants to those
6844         identified as having unsigned arguments.
6846 2017-06-02  Olivier Hainque  <hainque@adacore.com>
6848         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
6850 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6852         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
6853         Use VALL_F16 iterator rather than VALL.
6855 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6857         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
6858         Emit CBNZ inside loop when doing a strong exchange and comparing
6859         against zero.  Generate the CC flags after the loop.
6861 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
6863         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
6864         (dl_section_ref): New.
6865         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
6866         On AIX, append an expression to subtract the size of the
6867         section length to dl_section_ref.
6869 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
6871         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
6872         for early expansion of vector absolute builtins.
6874 2017-06-02  Richard Biener  <rguenther@suse.de>
6876         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
6877         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
6879 2017-06-02  Richard Biener  <rguenther@suse.de>
6881         PR tree-optimization/80948
6882         * tree-tailcall.c (find_tail_calls): Track stmts to move in
6883         stmt order as well.
6885 2017-06-02  Richard Biener  <rguenther@suse.de>
6887         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
6888         PHIs are ok.
6889         * tree-vect-stmts.c (process_use): Do not mark backedge defs
6890         for inductions as relevant.
6892 2017-06-02  Richard Biener  <rguenther@suse.de>
6894         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
6895         (vectorizable_induction): ... this.  Remove dead code.
6897 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
6899         * builtins. (expand_builtin_alloca): Remove second parameter and
6900         infer its value from the first parameter instead.
6901         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
6903 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
6905         PR rtl-optimization/80903
6906         * loop-doloop.c (add_test): Unshare sequence.
6908 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6910         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
6912 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6914         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
6915         static.
6916         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
6917         xlogue_layout::get_instance, logue_layout::xlogue_layout,
6918         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
6919         (xlogue_layout::get_stub_rtx): Make static.
6920         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
6921         (xlogue_layout::compute_stub_managed_regs): Rename to...
6922         (xlogue_layout::count_stub_managed_regs): ...this.
6923         (xlogue_layout::is_stub_managed_reg): New function.
6924         (xlogue_layout::m_stub_names): Rename to...
6925         (xlogue_layout::s_stub_names): ...this, make static.
6926         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
6927         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
6928         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
6929         xlogue_layout::s_stub_names): Instantiate statics.
6930         (stub_managed_regs): Remove.
6931         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
6932         (disable_call_ms2sysv_xlogues): Rename to...
6933         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
6934         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
6935         warning logic.
6936         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
6937         change after reload_completed.
6938         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
6939         directly.
6940         (ix86_expand_prologue): Likewise.
6941         (ix86_expand_epilogue): Likewise.
6942         (ix86_expand_split_stack_prologue): Likewise.
6943         (ix86_compute_frame_layout): Remove frame parameter ...
6944         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
6945         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
6946         only if necessary.
6947         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
6948         (ix86_frame): Move from here ...
6949         * config/i386/i386.h (ix86_frame): ... to here.
6950         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
6951         complete ix86_frame data structure instead.  Remove some_ld_name.
6953 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
6955         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
6956         symbols that hold a DECL_VALUE_EXPR.
6958 2017-06-01  Martin Jambor  <mjambor@suse.cz>
6960         PR tree-optimization/80898
6961         * tree-sra.c (process_subtree_disqualification): Removed.
6962         (disqualify_candidate): Do not acll
6963         process_subtree_disqualification.
6964         (subtree_mark_written_and_enqueue): New function.
6965         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
6966         RHS has been disqualified and re-queue LHS if necessary.  Apart
6967         from that, ignore disqualified RHS.
6969 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6971         * config/s390/s390.c (s390_emit_epilogue): Disable early return
6972         address fetch for z10 or later.
6974 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
6976         * config/arc/arc.md (tst_movb): Add guard when splitting.
6978 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
6980         * config/arc/arc.c (arc_can_eliminate): Test against
6981         arc_frame_pointer_needed.
6983 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
6985         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
6986         to prevent store reordering.
6987         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
6988         (type): Add block type.
6989         (stack_tie): Define special instruction to be used in
6990         expand_prologue.
6992 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
6994         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
6995         constraint. It is not valid for the pattern.
6996         (noncommutative_binary_comparison): Likewise.
6998 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
7000         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
7001         scaled addresses.
7003 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
7005         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
7006         be used by the reg-alloc.
7008 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
7010         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
7011         reg-alloc when having mul64 or mul32x16 instructions.
7012         (mulsidi3): Likewise.
7013         (umulsidi3): Likewise.
7014         (mulsi32x16): New pattern.
7015         (mulsi64): Likewise.
7016         (mulsidi64): Likewise.
7017         (umulsidi64): Likewise.
7018         (MUL32x16_REG): Define.
7019         (mul64_600): Use MUL32x16_REG.
7020         (mac64_600): Likewise.
7021         (umul64_600): Likewise.
7022         (umac64_600): Likewise.
7024 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
7026         * config/arc/arc.md (mulsi3_700): Make it commutative.
7028 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
7030         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
7031         type for movstouw.
7032         (*sign_extendsidi2_insn): Likewise for movstosw.
7034 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
7036         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
7037         the type of the input discriminant value.  Convert the
7038         discriminant value of signedness vary.
7040 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
7042         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
7043         Add to -Wall section.
7045 2017-06-01  Richard Biener  <rguenther@suse.de>
7047         PR middle-end/66313
7048         * fold-const.c (fold_plusminus_mult_expr): If the factored
7049         factor may be zero use a wrapping type for the inner operation.
7050         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
7051         and handle moved defs.
7052         (process_assignment): Properly guard the unary op case.  Return a
7053         tri-state indicating that moving the stmt before the call may allow
7054         to continue.  Pass through to_move.
7055         (find_tail_calls): Handle moving unrelated defs before
7056         the call.
7058 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
7060         PR target/80618
7061         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
7062         splitter result in the canonical way.
7064 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
7066         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
7067         also for 32bit target.  Update insn attributes.
7068         (zero-extendsidi2 splitter): Allow all registers for operand 1.
7070 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
7072         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
7073         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
7074         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
7075         (_mm_maskz_min_ss): New intrinsics.
7077 2017-05-31  Martin Liska  <mliska@suse.cz>
7079         * tree-vect-loop.c (vect_create_epilog_for_reduction):
7080         Change comment style to one we normally use.
7081         (vectorizable_reduction): Likewise.
7082         (vectorizable_induction): Likewise.
7083         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
7084         (vectorizable_call): Likewise.
7085         (vectorizable_simd_clone_call): Likewise.
7086         (vectorizable_conversion): Likewise.
7087         (vectorizable_assignment): Likewise.
7088         (vectorizable_shift): Likewise.
7089         (vectorizable_operation): Likewise.
7090         (vectorizable_store): Likewise.
7091         (vectorizable_load): Likewise.
7092         * tree-vectorizer.h: Likewise.
7094 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
7096         * passes.c (emergency_dump_function): New.
7097         * tree-pass.h (emergency_dump_function): Declare.
7098         * plugin.c (plugins_internal_error_function): Remove.
7099         * plugin.h (plugins_internal_error_function): Remove declaration.
7100         * toplev.c (internal_error_function): New static function.  Use it...
7101         (general_init): ...here.
7103 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
7105         * config/arc/arc.c (arc_print_operand): Handle constant operands.
7106         (arc_rtx_costs): Add costs for new patterns.
7107         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
7108         * config/arc/predicates.md: Add _1_2_3_operand predicate.
7110 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
7112         * tree-ssa-strlen.c (get_next_strinfo): New function.
7113         (get_stridx_plus_constant): Use it.
7114         (zero_length_string): Likewise.
7115         (adjust_related_strinfos): Likewise.
7116         (adjust_last_stmt): Likewise.
7118 2017-05-31  Richard Biener  <rguenther@suse.de>
7120         PR target/80880
7121         * config/i386/i386.c (ix86_expand_builtin): Remove assert
7122         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
7124 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
7126         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
7127         loop_vinfo argument and use of dependence distance vectors.
7128         Check instead whether the two references differ only in their
7129         initial value and assume that they have the same alignment if the
7130         difference is a multiple of the vector alignment.
7131         (vect_analyze_data_refs_alignment): Update call accordingly.
7133 2017-05-31  Martin Liska  <mliska@suse.cz>
7135         PR target/79155
7136         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
7138 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
7140         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
7141         (create_intersect_range_checks): Move from ...
7142         * tree-data-ref.c (create_intersect_range_checks_index)
7143         (create_intersect_range_checks): ... to here.
7144         (create_runtime_alias_checks): New function factored from ...
7145         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
7146         here.  Call above function.
7147         * tree-data-ref.h (create_runtime_alias_checks): New function.
7149 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
7151         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
7152         segment length for dr_b and compute it in wide_int.
7154 2017-05-31  Richard Biener  <rguenther@suse.de>
7156         PR tree-optimization/80906
7157         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
7158         and pass through iv_map.
7159         (copy_bb_and_scalar_dependences): Adjust.
7160         (translate_pending_phi_nodes): Likewise.
7161         (copy_loop_close_phi_args): Handle code-generating IVs instead
7162         of ICEing.
7164 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
7166         * diagnostic-color.c (color_dict): Add "type-diff".
7167         (parse_gcc_colors): Update comment.
7168         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
7169         -fdiagnostics-show-template-tree and -fno-elide-type.
7170         (GCC_COLORS): Add type-diff to example.
7171         (type-diff=): New.
7172         (-fdiagnostics-show-template-tree): New.
7173         (-fno-elide-type): New.
7174         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
7175         the pp_format_decoder callback.  Call any m_format_postprocessor's
7176         "handle" method.
7177         (pretty_printer::pretty_printer): Initialize
7178         m_format_postprocessor.
7179         (pretty_printer::~pretty_printer): Delete any
7180         m_format_postprocessor.
7181         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
7182         (class format_postprocessor): New class.
7183         (struct pretty_printer::format_decoder): Document the new parameters.
7184         (struct pretty_printer::m_format_postprocessor): New field.
7185         * tree-diagnostic.c (default_tree_printer): Update for new
7186         bool and const char ** params.
7187         * tree-diagnostic.h (default_tree_printer): Likewise.
7189 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
7191         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
7192         (lwa_operand): Delete rs6000_gen_cell_microcode test.
7193         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
7194         rs6000_gen_cell_microcode code.
7195         (rs6000_final_prescan_insn): Delete.
7196         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
7197         "warn-cell-microcode" entries.
7198         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
7199         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
7200         throughout.  Change cc_reg_not_micro_cr0_operand to
7201         cc_reg_not_cr0_operand throughout.
7202         (*extendhi<mode>2_noload): Delete.
7203         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
7204         (mwarn-cell-microcode): Delete.
7205         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
7206         -mgen-cell-microcode and -mwarn-cell-microcode.
7208 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
7210         PR target/80833
7211         * config/i386/constraints.md (Yd): New constraint.
7212         (Ye): Ditto.
7213         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
7214         and (?Yd, r) alternatives.  Update insn attributes.
7215         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
7216         and (?*Yd, r) alternatives.  Update insn attributes.
7217         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
7219 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
7221         * gimplify.c (gimplify_modify_expr): Don't create a
7222         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
7223         function.
7225 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
7227         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
7229 2017-05-30  Richard Biener  <rguenther@suse.de>
7231         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
7232         and reduc_def fields.
7233         (STMT_VINFO_REDUC_TYPE): New define.
7234         (STMT_VINFO_REDUC_DEF): Likewise.
7235         (vect_force_simple_reduction): Adjust prototype.
7236         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
7237         (vect_is_simple_reduction): Remove check_reduction argument.
7238         (vect_force_simple_reduction): Adjust and set
7239         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
7240         (vectorizable_reduction): Do not re-do reduction analysis
7241         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
7242         * tree-parloops.c (gather_scalar_reductions): Adjust.
7244 2017-05-30  Richard Biener  <rguenther@suse.de>
7246         PR middle-end/80901
7247         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
7248         split_edge code.
7250 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7252         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
7253         Introduce unknown_misalignment parameter and remove vf.
7254         (vect_peeling_hash_get_lowest_cost):
7255         Pass unknown_misalignment parameter.
7256         (vect_enhance_data_refs_alignment):
7257         Fix unsupportable data ref treatment.
7259 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7261         * tree-vect-data-refs.c (vect_get_data_access_cost):
7262         Workaround for SLP handling.
7263         (vect_enhance_data_refs_alignment):
7264         Compute costs for doing no peeling at all, compare to the best
7265         peeling costs so far and avoid peeling if cheaper.
7267 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7269         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
7270         Return peeling info and set costs to zero for unlimited cost
7271         model.
7272         (vect_enhance_data_refs_alignment): Also inspect all datarefs
7273         with unknown misalignment. Compute and costs for unknown
7274         misalignment, compare them to the costs for known misalignment
7275         and choose the cheapest for peeling.
7277 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7279         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
7280         (vect_get_peeling_costs_all_drs): Create function.
7281         (vect_peeling_hash_get_lowest_cost):
7282         Use vect_get_peeling_costs_all_drs.
7283         (vect_peeling_supportable): Create function.
7284         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
7286 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
7288         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
7289         DR_HAS_NEGATIVE_STEP.
7290         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
7291         (vect_enhance_data_refs_alignment): Use.
7292         (vect_duplicate_ssa_name_ptr_info): Use.
7293         * tree-vectorizer.h (dr_misalignment): Use.
7294         (known_alignment_for_access_p): Use.
7296 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
7298         PR target/78838
7299         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
7300         .lowtext.
7301         (has_section_name): New function.
7303 2017-05-30  Martin Liska  <mliska@suse.cz>
7305         PR other/80909
7306         * auto-profile.c (get_function_decl_from_block): Fix
7307         parenthesis.
7309 2017-05-30  Richard Biener  <rguenther@suse.de>
7311         PR middle-end/80876
7312         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
7314 2017-05-30  Martin Liska  <mliska@suse.cz>
7316         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
7317         * dumpfile.h (struct dump_file_info): Remove ctors.
7319 2017-05-30  Martin Liska  <mliska@suse.cz>
7321         * predict.def: Fix GNU coding style.
7323 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7325         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
7326         Mark 'to' argument with ATTRIBUTE_UNUSED.
7328 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7330         * config/xtensa/xtensa.c (xtensa_emit_call): Use
7331         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
7332         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
7333         format string.
7335 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7337         * doc/install.texi (Options specification): Restore entry of
7338         --enable-sjlj-exceptions.
7340 2017-05-27  Michael Eager  <eager@eagercon.com>
7342         Revert:
7343         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7345         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
7347         * config/microblaze/microblaze.h
7348         (FIXED_REGISTERS): Update in macro.
7349         (CALL_USED_REGISTERS): Update in macro.
7351 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
7353         * doc/install.texi: Add links to macOS binary distributions.
7355 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
7357         PR bootstrap/80887
7358         Revert:
7359         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
7361         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
7363 2017-05-26  Martin Liska  <mliska@suse.cz>
7365         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
7367 2017-05-26  Martin Liska  <mliska@suse.cz>
7369         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
7370         always leading ';; '.
7371         (dump_bb_info): Likewise.
7372         (brief_dump_cfg): Likewise.
7373         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
7374         * dumpfile.c: Remove usage of TDF_VERBOSE.
7375         * dumpfile.h (enum dump_kind): Likewise.
7376         (dump_gimple_bb_header): Do not use TDF_COMMENT.
7377         * print-tree.c (debug_verbose): Remove.
7378         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
7379         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
7380         * tree-diagnostic.c (default_tree_printer): Replace
7381         TDF_DIAGNOSTIC with TDF_SLIM.
7383 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
7385         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
7386         in parameter loop, rather than loop_vinfo.
7387         (create_intersect_range_checks): Ditto.
7388         (vect_create_cond_for_alias_checks): Update call to above functions.
7390 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
7392         PR tree-optimization/80815
7393         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
7394         for merging runtime alias checks.  Handle negative DR_STEPs.
7396 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
7398         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
7399         Move from ...
7400         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
7401         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
7402         out code pruning runtime alias checks.
7403         * tree-data-ref.c (prune_runtime_alias_test_list): New function
7404         factored out from above.
7405         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
7406         Move from ...
7407         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
7408         ... to here.
7409         (prune_runtime_alias_test_list): New decalaration.
7411 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
7413         * tree-vect-data-refs.c (compare_tree): Rename and move ...
7414         * tree-data-ref.c (data_ref_compare_tree): ... to here.
7415         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
7416         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
7417         (operator==, comp_dr_with_seg_len_pair): Ditto.
7418         (vect_prune_runtime_alias_test_list): Ditto.
7420 2017-05-26  Martin Liska  <mliska@suse.cz>
7422         PR ipa/80663
7423         * params.def: Bound partial-inlining-entry-probability param.
7425 2017-05-26  Marek Polacek  <polacek@redhat.com>
7427         PR sanitizer/80875
7428         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
7429         can be negated.
7431 2017-05-26  Richard Biener  <rguenther@suse.de>
7433         PR tree-optimization/80842
7434         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
7435         value.
7437 2017-05-26  Richard Biener  <rguenther@suse.de>
7439         PR tree-optimization/80844
7440         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
7442 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
7444         * doc/md.texi (Machine Constraints): Update x86 family
7445         machine constraints section to match 'config/i386/constraints.md'.
7447 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
7449         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
7451 2017-05-25  Nathan Sidwell  <nathan@acm.org>
7453         * doc/invoke.texi (--enable-languages): Update documentation.
7455 2017-05-25  Martin Liska  <mliska@suse.cz>
7457         * dumpfile.c: Add TDF_FOLDING.
7458         * dumpfile.h (enum dump_kind): Likewise.
7459         * genmatch.c (dt_simplify::gen_1): Use it.
7461 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
7463         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
7465 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
7467         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
7468         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
7470 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
7472         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
7473         * match.pd (X == C): Rewrite it here.
7474         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
7475         with_certain_nonzero_bits2): New predicates.
7476         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
7478 2017-05-24  Nathan Sidwell  <nathan@acm.org>
7480         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
7481         avoid warning.
7483         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
7484         warning.
7486 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
7488         * config/powerpcspe: New port.  Files are copied from the rs6000
7489         port, with "rs6000" in filenames replaced by "powerpcspe".
7491 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
7493         PR rtl-optimization/80754
7494         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
7496 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
7498         * config/sparc/sparc.md (length): Return the correct value for -mflat
7499         sibcalls to match output_sibcall.
7501 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
7503         PR bootstrap/80860
7504         PR bootstrap/80843
7505         * config/rs6000/rs6000.c (struct machine_function): Add new field
7506         n_components.
7507         (rs6000_get_separate_components): Init that field, use it.
7508         (rs6000_components_for_bb): Use the field.
7510 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7512         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
7514 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
7516         PR middle-end/80823
7517         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
7519 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7521         PR target/80725
7522         * config/s390/s390.c (s390_check_qrst_address): Check incoming
7523         address against address_operand predicate.
7524         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
7526 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
7528         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
7529         parameters passed indirectly.
7531 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
7533         * config/i386/i386.md (*movdi_internal): Remove SSE4
7534         alternative 18 (?r, *v).  Update insn attributes.
7535         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
7536         Update insn attributes.
7537         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
7538         Update insn attributes.
7539         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
7540         alternative 1 (r, v). Remove isa attribute.
7541         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
7542         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
7543         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7545 2017-05-23  Tom de Vries  <tom@codesourcery.com>
7547         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
7548         dg-line directive.
7550 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
7552         * cgraphunit.c (symbol_table::process_new_functions): Update.
7553         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
7554         (inline_generate_summary): Rename to ...
7555         (ipa_fn_summary_generate): ... this one.
7556         (inline_read_summary): Rename to ...
7557         (ipa_fn_summary_read): ... this one.
7558         (inline_write_summary): Rename to ...
7559         (ipa_fn_summary_write): ... this one.
7560         (inline_free_summary): Rename to ...
7561         (ipa_free_fn_summary): ... this one.
7562         (pass_data_local_fn_summary, pass_local_fn_summary,
7563         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
7564         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
7565         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
7566         make_pass_ipa_fn_summary): New.
7567         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
7568         inline_write_summary, inline_free_summary): Remove.
7569         (ipa_free_fn_summary) : New.
7570         * ipa-inline.c (ipa_inline): Update.
7571         (pass_ipa_inline): Do not generate summaries.
7572         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
7573         Remove.
7574         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
7575         and add pass_ipa_fn_summary.
7576         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
7577         New.
7578         (make_pass_inline_parameters): Remove.
7580 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7582         * omp-low.c (struct omp_context): Remove "default_kind" member.
7583         Adjust all users.
7585         * omp-offload.c (execute_oacc_device_lower): Remove the
7586         parallelism dimensions function attributes for unparallelized
7587         OpenACC kernels constructs.
7589 2017-05-23  Martin Liska  <mliska@suse.cz>
7591         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
7592         functions.
7593         (cgraph_edge::make_speculative): Likewise.
7594         (cgraph_edge::resolve_speculation): Likewise.
7595         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7596         (cgraph_node::dump): Likewise.
7597         * cgraph.h: Likewise.
7598         * cgraphunit.c (analyze_functions): Likewise.
7599         (symbol_table::compile): Likewise.
7600         * ipa-cp.c (print_all_lattices): Likewise.
7601         (determine_versionability): Likewise.
7602         (initialize_node_lattices): Likewise.
7603         (ipcp_verify_propagated_values): Likewise.
7604         (estimate_local_effects): Likewise.
7605         (update_profiling_info): Likewise.
7606         (create_specialized_node): Likewise.
7607         (perhaps_add_new_callers): Likewise.
7608         (decide_about_value): Likewise.
7609         (decide_whether_version_node): Likewise.
7610         (identify_dead_nodes): Likewise.
7611         (ipcp_store_bits_results): Likewise.
7612         * ipa-devirt.c (dump_targets): Likewise.
7613         (ipa_devirt): Likewise.
7614         * ipa-icf.c (sem_item::dump): Likewise.
7615         (sem_function::equals): Likewise.
7616         (sem_variable::equals): Likewise.
7617         (sem_item_optimizer::read_section): Likewise.
7618         (sem_item_optimizer::execute): Likewise.
7619         (congruence_class::dump): Likewise.
7620         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
7621         (dump_inline_summary): Likewise.
7622         (estimate_node_size_and_time): Likewise.
7623         (inline_analyze_function): Likewise.
7624         * ipa-inline-transform.c (inline_call): Likewise.
7625         * ipa-inline.c (report_inline_failed_reason): Likewise.
7626         (want_early_inline_function_p): Likewise.
7627         (edge_badness): Likewise.
7628         (update_edge_key): Likewise.
7629         (inline_small_functions): Likewise.
7630         * ipa-profile.c (ipa_profile): Likewise.
7631         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
7632         (ipa_make_edge_direct_to_target): Likewise.
7633         (remove_described_reference): Likewise.
7634         (ipa_impossible_devirt_target): Likewise.
7635         (propagate_controlled_uses): Likewise.
7636         (ipa_print_node_params): Likewise.
7637         (ipcp_transform_function): Likewise.
7638         * ipa-pure-const.c (pure_const_read_summary): Likewise.
7639         (propagate_pure_const): Likewise.
7640         * ipa-reference.c (generate_summary): Likewise.
7641         (read_write_all_from_decl): Likewise.
7642         (propagate): Likewise.
7643         (ipa_reference_read_optimization_summary): Likewise.
7644         * ipa-utils.c (ipa_merge_profiles): Likewise.
7645         * ipa.c (walk_polymorphic_call_targets): Likewise.
7646         (symbol_table::remove_unreachable_nodes): Likewise.
7647         (ipa_single_use): Likewise.
7648         * passes.c (execute_todo): Likewise.
7649         * predict.c (drop_profile): Likewise.
7650         * symtab.c (symtab_node::get_dump_name): New function.
7651         (symtab_node::dump_name): Likewise.
7652         (symtab_node::dump_asm_name): Likewise.
7653         (symtab_node::dump_references): Likewise.
7654         (symtab_node::dump_referring): Likewise.
7655         (symtab_node::dump_base): Likewise.
7656         (symtab_node::debug_symtab): Likewise.
7657         * tree-sra.c (convert_callers_for_node): Likewise.
7658         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7659         * value-prof.c (init_node_map): Likewise.
7661 2017-05-23  Martin Liska  <mliska@suse.cz>
7663         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
7664         and symtab_node::debug_symtab to symbol_table::debug.
7665         * cgraphunit.c (analyze_functions): Use the renamed function.
7666         (symbol_table::compile): Likewise.
7667         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
7668         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7669         * passes.c (execute_todo): Likewise.
7670         * symtab.c (symbol_table::dump): New function.
7671         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
7673 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
7675         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
7676         that nonconst implies exec.
7678 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
7680         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
7681         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
7682         (inline_edge_summary_vec): Turn into ...
7683         (ipa_call_summaries): ... this one.
7684         (redirect_to_unreachable, edge_set_predicate,
7685         evaluate_properties_for_edge, inline_summary_alloc,
7686         reset_ipa_call_summary, reset_inline_summary,
7687         inline_summary_t::duplicate): Update.
7688         (inline_edge_duplication_hook): Turn to ...
7689         (ipa_call_summary_t::duplicate): ... this one.
7690         (inline_edge_removal_hook): Turn to ...
7691         (ipa_call_summary_t::remove): ... this one.
7692         (dump_inline_edge_summary): Turn to ...
7693         (dump_ipa_call_summary): ... this one.
7694         (estimate_function_body_sizes): Update.
7695         (inline_update_callee_summaries): Update.
7696         (remap_edge_change_prob): Update.
7697         (remap_edge_summaries): Update.
7698         (inline_merge_summary): Update.
7699         (do_estimate_edge_time): Update.
7700         (inline_generate_summary): Update.
7701         (inline_read_section): Update.
7702         (inline_read_summary): Update.
7703         (inline_free_summary): Update.
7704         * ipa-inline.c (can_inline_edge_p): Update.
7705         (compute_inlined_call_time): Update.
7706         (want_inline_small_function_p): Update.
7707         (edge_badness): Update.
7708         (early_inliner): Update.
7709         * ipa-inline.h (inline_edge_summary): Turn to ...
7710         (ipa_call_summary): ... this one.
7711         (ipa_call_summary_t): New class.
7712         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
7713         (ipa_call_summaries): New.
7714         (inline_edge_summary): Remove.
7715         (estimate_edge_growth): Update.
7716         * ipa-profile.c (ipa_propagate_frequency_1): Update.
7717         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
7718         * ipa-split.c (execute_split_functions): Update.
7719         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
7721 2017-05-23  Tom de Vries  <tom@codesourcery.com>
7723         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
7724         attributes): Document rdrand effective target.
7726 2017-05-23  Tom de Vries  <tom@codesourcery.com>
7728         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
7729         attributes): Sort alphabetically.
7731 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
7733         * config/avr/genmultilib.awk: Use gsub instead of gensub.
7735 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7737         PR target/80718
7738         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
7739         V2DF/V2DI splat into two separate patterns, one that handles
7740         registers, and the other that only handles memory.  Drop support
7741         for splatting from a GPR on ISA 2.07 and then splitting the
7742         splat into direct move and splat.
7743         (vsx_splat_<mode>_reg): Likewise.
7744         (vsx_splat_<mode>_mem): Likewise.
7746 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
7748         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
7750 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7752         PR middle-end/80809
7753         * omp-low.c (finish_taskreg_remap): New function.
7754         (finish_taskreg_scan): If unit size of ctx->record_type
7755         is non-constant, unshare the size expression and replace
7756         decls in it with possible outer var refs.
7758         PR middle-end/80809
7759         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
7760         GOVD_SHARED rather than GOVD_PRIVATE with it.
7761         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
7762         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
7764         PR middle-end/80853
7765         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
7766         as last argument to build_outer_var_ref for pointer bases of array
7767         section reductions.
7769 2017-05-19  Martin Sebor  <msebor@redhat.com>
7771         * print-tree.c (print_node): Print DECL_READ_P flag.
7773 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
7775         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
7776         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
7777         * cgraph.c: Likewise.
7778         * cgraphunit.c: Likewise.
7779         * gengtype.c: Likewise.
7780         * ipa-cp.c: Likewise.
7781         * ipa-devirt.c: Likewise.
7782         * ipa-icf.c: Likewise.
7783         * ipa-predicate.c: Likewise.
7784         * ipa-profile.c: Likewise.
7785         * ipa-prop.c: Likewise.
7786         * ipa-split.c: Likewise.
7787         * ipa.c: Likewise.
7788         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
7789         edge_predicate_pool, dump_inline_hints,
7790         inline_summary::account_size_time, redirect_to_unreachable,
7791         edge_set_predicate, set_hint_predicate,
7792         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
7793         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
7794         inline_summary_t::remove, remap_hint_predicate_after_duplication,
7795         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
7796         ipa_call_summary_t::remove, initialize_growth_caches,
7797         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
7798         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
7799         mark_modified, unmodified_parm_1, unmodified_parm,
7800         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
7801         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
7802         compute_bb_predicates, will_be_nonconstant_expr_predicate,
7803         will_be_nonconstant_predicate, record_modified_bb_info,
7804         get_minimal_bb, record_modified, param_change_prob,
7805         phi_result_unknown_predicate, predicate_for_phi_result,
7806         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
7807         estimate_function_body_sizes, compute_inline_parameters,
7808         compute_inline_parameters_for_curren, pass_data_inline_parameters,
7809         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
7810         inline_update_callee_summaries, remap_edge_change_prob,
7811         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
7812         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
7813         inline_analyze_function, inline_summary_t::insert,
7814         inline_generate_summary, read_ipa_call_summary, inline_read_section,
7815         inline_read_summary, write_ipa_call_summary, inline_write_summary,
7816         inline_free_summary): Move to ipa-fnsummary.h
7817         (predicate_t): Remove.
7818         * ipa-fnsummary.c: New file.
7819         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
7820         (enum inline_hints_vals, inline_hints, agg_position_info,
7821         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
7822         inline_summaries, ipa_call_summary, ipa_call_summary_t,
7823         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
7824         dump_inline_summary, dump_inline_hints, inline_generate_summary,
7825         inline_read_summary, inline_write_summary, inline_free_summary,
7826         inline_analyze_function, initialize_inline_failed,
7827         inline_merge_summary, inline_update_overall_summary,
7828         compute_inline_parameters): Move to ipa-fnsummary.h
7829         * ipa-fnsummary.h: New file.
7830         * ipa-inline-transform.h: Include ipa-inline.h.
7831         * ipa-inline.c: LIkewise.
7833 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
7835         * ipa-inline.c (edge_badness): Use inlined_time instead of
7836         inline_summaries->get.
7838 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
7840         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
7842 2017-05-22  Nathan Sidwell  <nathan@acm.org>
7844         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
7845         (fdump-lang): Document 'raw' option.
7846         * dumpfile.h (TDI_tu): Delete.
7847         * dumpfile.c (dump_files): Remove translation-unit.
7848         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
7850 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
7852         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
7853         command option from $(AWK) call.
7854         * config/avr/genmultilib.awk: Simplify and rewrite so that it
7855         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
7856         [FORMAT]: Remove handling of variable.
7857         * config/avr/t-multilib: Regenerate.
7859 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
7861         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
7862         self_time.
7863         (dump_inline_summary): Do not print self_time.
7864         (estimate_function_body_sizes): Do not set self_time.
7865         (compute_inline_parameters): Likewise.
7866         (inline_read_section, inline_write_summary): Do not stream self_time.
7867         * ipa-inline.h (inline_summary): Drop self_time.
7869 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
7871         * ipa-inline-analysis.c (account_size_time): Rename to ...
7872         (inline_summary::account_size_time): ... this one.
7873         (reset_ipa_call_summary): Turn to ...
7874         (ipa_call_summary::reset): ... this one.
7875         (reset_inline_summary): Turn to ...
7876         (inline_summary::reset): ... this one.
7877         (inline_summary_t::remove): Update.
7878         (inline_summary_t::duplicate): Update.
7879         (ipa_call_summary_t::remove): Update.
7880         (dump_inline_summary): Update.
7881         (estimate_function_body_sizes): Update.
7882         (compute_inline_parameters): Update.
7883         (estimate_node_size_and_time): Update.
7884         (inline_merge_summary): Update.
7885         (inline_update_overall_summary): Update.
7886         (inline_read_section): Update.
7887         (inline_write_summary): Update.
7888         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
7889         add account_size_time and reset member functions.
7890         (ipa_call_summary): Add reset function.
7891         * ipa-predicate.h (predicate::operator &): Constify.
7893 2017-05-22  Richard Biener  <rguenther@suse.de>
7895         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
7897 2017-05-19  Jason Merrill  <jason@redhat.com>
7899         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
7901 2017-05-19  Marek Polacek  <polacek@redhat.com>
7903         PR sanitizer/80800
7904         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
7905         TYPE_OVERFLOW_WRAPS checks.
7907 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7909         * tree-core.h (enum omp_clause_default_kind): Add
7910         "OMP_CLAUSE_DEFAULT_PRESENT".
7911         * tree-pretty-print.c (dump_omp_clause): Handle it.
7912         * gimplify.c (enum gimplify_omp_var_data): Add
7913         "GOVD_MAP_FORCE_PRESENT".
7914         (gimplify_adjust_omp_clauses_1): Map it to
7915         "GOMP_MAP_FORCE_PRESENT".
7916         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
7918         * gimplify.c (oacc_default_clause): Clarify.
7920 2017-05-19  Nathan Sidwell  <nathan@acm.org>
7922         LANG_HOOK_REGISTER_DUMPS
7923         * toplev.c (general_init): Call register dump lang hook.
7924         * doc/invoke.texi: Document -fdump-lang option family.
7925         * dumpfile.c (dump_files): Remove class dump here.
7926         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
7927         * dumpfile.h (tree_dump_index): Remove TDI_class.
7928         * langhooks-def.h (lhd_register_dumps): Declare.
7929         (LANG_HOOKS_REGISTER_DUMPS): Define.
7930         (LANG_HOOKS_INITIALIZER): Add it.
7931         * langhooks.c (lhd_register_dumps): Define.
7932         * langhooks.h (struct lang_hooks): Add register_dumps.
7934 2017-05-19  Nathan Sidwell  <nathan@acm.org>
7936         * context.h (context::set_passes): New.
7937         * context.c (context::context): Do not create pass manager.
7938         * toplev.c (general_init): Create pass manager here.
7940 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
7942         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
7943         use this splitter if two add or or instructions would also work for
7944         the constant we want to generate.
7946 2017-05-19  Richard Biener  <rguenther@suse.de>
7948         PR build/80821
7949         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
7950         predicate evaluation.
7952 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
7954         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
7955         add ctor.
7956         * ipa-inline.c (want_inline_small_function_p): Do not cast to
7957         unsigned.
7959 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
7961         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
7962         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
7963         (inline_edge_summary_vec): Turn into ...
7964         (ipa_call_summaries): ... this one.
7965         (redirect_to_unreachable, edge_set_predicate,
7966         evaluate_properties_for_edge, inline_summary_alloc,
7967         reset_ipa_call_summary, reset_inline_summary,
7968         inline_summary_t::duplicate): Update.
7969         (inline_edge_duplication_hook): Turn to ...
7970         (ipa_call_summary_t::duplicate): ... this one.
7971         (inline_edge_removal_hook): Turn to ...
7972         (ipa_call_summary_t::remove): ... this one.
7973         (dump_inline_edge_summary): Turn to ...
7974         (dump_ipa_call_summary): ... this one.
7975         (estimate_function_body_sizes): Update.
7976         (inline_update_callee_summaries): Update.
7977         (remap_edge_change_prob): Update.
7978         (remap_edge_summaries): Update.
7979         (inline_merge_summary): Update.
7980         (do_estimate_edge_time): Update.
7981         (inline_generate_summary): Update.
7982         (inline_read_section): Update.
7983         (inline_read_summary): Update.
7984         (inline_free_summary): Update.
7985         * ipa-inline.c (can_inline_edge_p): Update.
7986         (compute_inlined_call_time): Update.
7987         (want_inline_small_function_p): Update.
7988         (edge_badness): Update.
7989         (early_inliner): Update.
7990         * ipa-inline.h (inline_edge_summary): Turn to ...
7991         (ipa_call_summary): ... this one.
7992         (ipa_call_summary_t): New class.
7993         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
7994         (ipa_call_summaries): New.
7995         (inline_edge_summary): Remove.
7996         (estimate_edge_growth): Update.
7997         * ipa-profile.c (ipa_propagate_frequency_1): Update.
7998         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
7999         * ipa-split.c (execute_split_functions): Update.
8000         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
8002 2017-05-19  Richard Biener  <rguenther@suse.de>
8004         PR middle-end/80764
8005         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
8007 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
8009         * config/rs6000/rs6000.c (struct machine_function): Add field
8010         fpr_is_wrapped_separately.
8011         (rs6000_get_separate_components): Use 64 components.  Handle the
8012         new FPR components.
8013         (rs6000_components_for_bb): Handle the FPR components.
8014         (rs6000_emit_prologue_components): Handle the FPR components.
8015         (rs6000_emit_epilogue_components): Handle the FPR components.
8016         (rs6000_set_handled_components): Handle the FPR components.
8017         (rs6000_emit_prologue): Don't output prologue code for those FPRs
8018         that are already separately shrink-wrapped.
8019         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
8020         that are already separately shrink-wrapped.
8022 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8024         PR target/80510
8025         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
8026         New predicate.
8028         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
8029         (define_peephole2 for Altivec d-form load): Add peepholes to catch
8030         cases where the register allocator uses a move and an offsettable
8031         memory operation to/from a FPR register on ISA 2.06/2.07.
8032         (define_peephole2 for Altivec d-form store): Likewise.
8034 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
8036         PR target/80799
8037         * config/i386/mmx.md (*mov<mode>_internal): Enable
8038         alternatives 11, 12, 13 and 14 also for 32bit targets.
8039         Remove alternatives 15, 16, 17 and 18.
8040         * config/i386/sse.md (vec_concatv2di): Change
8041         alternative (!x, *y) to (x, ?!*Yn).
8043 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
8045         * dumpfile.h (enum dump_kind): Remove stray comma.
8047 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
8049         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
8050         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
8051         predicate::num_conditions
8052         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
8053         (CHANGED): turn into predicate::changed.
8054         (agg_position_info): Move to ipa-predicate.h
8055         (add_condition, predicate::add_clause, predicate::operator &=,
8056         predicate::or_with, predicate::evaluate, predicate::probability,
8057         dump_condition, dump_clause, predicate::dump,
8058         predicate::remap_after_duplication, predicate::remap_after_inlining,
8059         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
8060         (evaluate_conditions_for_known_args): Update.
8061         (set_cond_stmt_execution_predicate): Update.
8062         * ipa-inline.h: Include ipa-predicate.h
8063         (condition, inline_param_summary, conditions, agg_position_info,
8064         predicate): Move to ipa-predicate.h
8065         * ipa-predicate.c: New file.
8066         * ipa-predicate.h: New file.
8068 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
8070         * final.c (leaf_function_p): Check we are not in a sequence.
8072 2017-05-18  Martin Liska  <mliska@suse.cz>
8074         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
8075         * dumpfile.c (dump_register): Use new enum dump_kind.
8076         (get_dump_file_name): Likewise.
8077         (dump_enable_all): Likewise.
8078         (dump_switch_p_1): Likewise.
8079         (enable_rtl_dump_file): Remove usage of TDF_RTL.
8080         * dumpfile.h (enum dump_kind): New enum type.
8081         (struct dump_file_info): Create constructor and
8082         format fields and comments.
8083         * passes.c (pass_manager::register_one_dump_file):
8084         Use num dump_kind.
8085         * statistics.c (statistics_early_init): Likewise.
8086         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
8087         TDF_TREE with TDF_SLIM.
8088         (gather_memory_references_ref): Likewise.
8090 2017-05-18  Martin Liska  <mliska@suse.cz>
8092         * vec.h (struct vnull): Use it.
8094 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
8096         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
8097         (true_predicate, false_predicate, true_predicate_p,
8098         false_predicate_p): Remove.
8099         (single_cond_predicate, not_inlined_predicate): Turn to member function
8100         in ipa-inline.h
8101         (add_condition): Update.
8102         (add_clause): Turn to...
8103         (predicate::add_clause): ... this one; update; allow passing NULL
8104         as parameter.
8105         (and_predicates): Turn to ...
8106         (predicate::operator &=): ... this one.
8107         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
8108         (or_predicates): Turn to ...
8109         (predicate::or_with): ... this one.
8110         (evaluate_predicate): Turn to ...
8111         (predicate::evaluate): ... this one.
8112         (predicate_probability): Turn to ...
8113         (predicate::probability): ... this one.
8114         (dump_condition): Update.
8115         (dump_predicate): Turn to ...
8116         (predicate::dump): ... this one.
8117         (account_size_time): Update.
8118         (edge_set_predicate): Update.
8119         (set_hint_predicate): UPdate.
8120         (evaluate_conditions_for_known_args): Update.
8121         (evaluate_properties_for_edge): Update.
8122         (remap_predicate_after_duplication): Turn to...
8123         (predicate::remap_after_duplication): ... this one.
8124         (remap_hint_predicate_after_duplication): Update.
8125         (inline_summary_t::duplicate): UPdate.
8126         (dump_inline_edge_summary): Update.
8127         (dump_inline_summary): Update.
8128         (set_cond_stmt_execution_predicate): Update.
8129         (set_switch_stmt_execution_predicate): Update.
8130         (compute_bb_predicates): Update.
8131         (will_be_nonconstant_expr_predicate): Update.
8132         (will_be_nonconstant_predicate): Update.
8133         (phi_result_unknown_predicate): Update.
8134         (predicate_for_phi_result): Update.
8135         (array_index_predicate): Update.
8136         (estimate_function_body_sizes): Update.
8137         (estimate_node_size_and_time): Update.
8138         (estimate_ipcp_clone_size_and_time): Update.
8139         (remap_predicate): Rename to ...
8140         (predicate::remap_after_inlining): ... this one.
8141         (remap_hint_predicate): Update.
8142         (inline_merge_summary): Update.
8143         (inline_update_overall_summary): Update.
8144         (estimate_size_after_inlining): Update.
8145         (read_predicate): Rename to ...
8146         (predicate::stream_in): ... this one.
8147         (read_inline_edge_summary): Update.
8148         (write_predicate): Rename to ...
8149         (predicate::stream_out): ... this one.
8150         (write_inline_edge_summary): Update.
8151         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
8152         (clause_t): Turn to uint32_t
8153         (predicate): Turn to class; implement constructor and operators
8154         ==, !=, &
8155         (size_time_entry): Update.
8156         (inline_summary): Update.
8157         (inline_edge_summary): Update.
8159 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
8161         * fold-const.c (fold_binary_loc): Move transformation...
8162         * match.pd (C - X CMP X): ... here.
8164 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
8166         * config/sparc/sparc.c (sparc_option_override): Set function
8167         alignment for -mcpu=niagara7 to 64 to match the I$ line.
8168         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
8169         latency to 1.
8170         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
8171         latency to 2.
8172         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
8174 2017-05-18  Marek Polacek  <polacek@redhat.com>
8176         PR sanitizer/80797
8177         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
8178         (pass_ubsan::execute): Call gimple_assign_single_p instead of
8179         gimple_assign_load_p.
8181 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
8183         PR middle-end/80692
8184         * real.c (do_compare): Give decimal_do_compare preference over
8185         comparing just the signs.
8187 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
8189         * doc/md.texi (Canonicalization of Instructions): Describe the
8190         canonical form of instructions that inherently set a condition
8191         code register.
8193 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
8195         PR middle-end/80775
8196         * tree-cfg.c: Move deletion of unreachable case statements to after
8197         the merging of consecutive case labels.
8199 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8201         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
8202         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
8203         restoring of callee-saved registers.
8205 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
8207         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
8208         * config/visium/visium.c (single_set_and_flags): Likewise.
8209         * config/visium/visium.md (Substitutions): Likewise.
8211 2017-05-17  Martin Liska  <mliska@suse.cz>
8213         * cfg.c: Introduce dump_flags_t type and
8214         use it instead of int type.
8215         * cfg.h: Likewise.
8216         * cfghooks.c: Likewise.
8217         * cfghooks.h (struct cfg_hooks): Likewise.
8218         * cfgrtl.c: Likewise.
8219         * cfgrtl.h: Likewise.
8220         * cgraph.c (cgraph_node::get_body): Likewise.
8221         * coretypes.h: Likewise.
8222         * domwalk.c: Likewise.
8223         * domwalk.h: Likewise.
8224         * dumpfile.c (struct dump_option_value_info): Likewise.
8225         (dump_enable_all): Likewise.
8226         (dump_switch_p_1): Likewise.
8227         (opt_info_switch_p): Likewise.
8228         * dumpfile.h (enum tree_dump_index): Likewise.
8229         (struct dump_file_info): Likewise.
8230         * genemit.c: Likewise.
8231         * generic-match-head.c: Likewise.
8232         * gengtype.c (open_base_files): Likewise.
8233         * gimple-pretty-print.c: Likewise.
8234         * gimple-pretty-print.h: Likewise.
8235         * graph.c (print_graph_cfg): Likewise.
8236         * graphite-scop-detection.c (dot_all_sese): Likewise.
8237         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
8238         * loop-unroll.c (report_unroll): Likewise.
8239         * passes.c (pass_manager::register_one_dump_file): Likewise.
8240         * print-tree.c: Likewise.
8241         * statistics.c: Likewise.
8242         * tree-cfg.c: Likewise.
8243         * tree-cfg.h: Likewise.
8244         * tree-dfa.c: Likewise.
8245         * tree-dfa.h: Likewise.
8246         * tree-dump.c (dump_function): Likewise.
8247         * tree-dump.h (struct dump_info): Likewise.
8248         * tree-pretty-print.c: Likewise.
8249         * tree-pretty-print.h: Likewise.
8250         * tree-ssa-live.c: Likewise.
8251         * tree-ssa-live.h: Likewise.
8252         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
8253         * tree-vect-loop.c: Likewise.
8254         * tree-vect-slp.c: Likewise.
8256 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
8257             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8259         PR tree-optimization/80457
8260         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
8261         of all arguments to a statement as scalar_to_vec operations.
8262         (vectorizable_call): Adjust call to vect_model_simple_cost for
8263         new parameter.
8264         (vectorizable_conversion): Likewise.
8265         (vectorizable_assignment): Likewise.
8266         (vectorizable_shift): Likewise.
8267         (vectorizable_operation): Likewise.
8268         (vectorizable_comparison): Likewise.
8269         (vect_is_simple_cond): Record the def types for operands.
8270         (vectorizable_condition): Likewise, call vect_model_simple_cost.
8271         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
8272         for statement argument count.
8274 2017-05-16  Carl Love  <cel@us.ibm.com>
8276         * config/rs6000/rs6000-c: Add support for built-in functions
8277         vector unsigned long long vec_bperm (vector unsigned long long,
8278                                              vector unsigned char)
8279         vector signed long long vec_mule (vector signed int,
8280                                           vector signed int)
8281         vector unsigned long long vec_mule (vector unsigned int,
8282                                             vector unsigned int)
8283         vector signed long long vec_mulo (vector signed int,
8284                                           vector signed int)
8285         vector unsigned long long vec_mulo (vector unsigned int,
8286                                             vector unsigned int)
8287         vector signed char vec_sldw (vector signed char,
8288                                      vector signed char,
8289                                      const int)
8290         vector unsigned char vec_sldw (vector unsigned char,
8291                                        vector unsigned char,
8292                                        const int)
8293         vector signed short vec_sldw (vector signed short,
8294                                       vector signed short,
8295                                       const int)
8296         vector unsigned short vec_sldw (vector unsigned short,
8297                                         vector unsigned short,
8298                                         const int)
8299         vector signed int vec_sldw (vector signed int,
8300                                     vector signed int,
8301                                     const int)
8302         vector unsigned int vec_sldw (vector unsigned int,
8303                                       vector unsigned int,
8304                                       const int)
8305         vector signed long long vec_sldw (vector signed long long,
8306                                           vector signed long long,
8307                                           const int)
8308         vector unsigned long long vec_sldw (vector unsigned long long,
8309                                             vector unsigned long long,
8310                                             const int)
8311         * config/rs6000/rs6000-c: Add support for built-in functions
8312         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
8313         * config/rs6000/altivec.h: Add defintion for vec_sldw.
8314         * doc/extend.texi: Update the built-in documentation for the
8315         new built-in functions.
8317 2017-05-16  Marek Polacek  <polacek@redhat.com>
8319         PR sanitizer/80536
8320         PR sanitizer/80386
8321         * tree.c (save_expr): Don't fold the expression.
8323 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
8325         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
8326         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
8327         and (?*y,m).  Update insn attributes.
8329 2017-05-16  Martin Liska  <mliska@suse.cz>
8331         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
8332         flags argument of print_gimple_stmt, print_gimple_expr,
8333         print_generic_stmt and print_generic_expr.
8334         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8335         * coretypes.h: Likewise.
8336         * except.c (dump_eh_tree): Likewise.
8337         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8338         * gimple-pretty-print.h: Likewise.
8339         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
8340         (backprop::push_to_worklist): Likewise.
8341         (backprop::pop_from_worklist): Likewise.
8342         (backprop::process_use): Likewise.
8343         (backprop::intersect_uses): Likewise.
8344         (note_replacement): Likewise.
8345         * gimple-ssa-store-merging.c
8346         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
8347         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
8348         (pass_store_merging::execute): Likewise.
8349         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
8350         (ssa_base_cand_dump_callback): Likewise.
8351         (dump_incr_vec): Likewise.
8352         (replace_refs): Likewise.
8353         (replace_mult_candidate): Likewise.
8354         (create_add_on_incoming_edge): Likewise.
8355         (create_phi_basis): Likewise.
8356         (insert_initializers): Likewise.
8357         (all_phi_incrs_profitable): Likewise.
8358         (introduce_cast_before_cand): Likewise.
8359         (replace_one_candidate): Likewise.
8360         * gimplify.c (gimplify_expr): Likewise.
8361         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
8362         (set_rename): Likewise.
8363         (rename_uses): Likewise.
8364         (copy_loop_phi_nodes): Likewise.
8365         (add_close_phis_to_merge_points): Likewise.
8366         (copy_loop_close_phi_args): Likewise.
8367         (copy_cond_phi_args): Likewise.
8368         (graphite_copy_stmts_from_block): Likewise.
8369         (translate_pending_phi_nodes): Likewise.
8370         * graphite-poly.c (print_pdr): Likewise.
8371         (dump_gbb_cases): Likewise.
8372         (dump_gbb_conditions): Likewise.
8373         (print_scop_params): Likewise.
8374         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
8375         (build_cross_bb_scalars_use): Likewise.
8376         (gather_bbs::before_dom_children): Likewise.
8377         * hsa-dump.c (dump_hsa_immed): Likewise.
8378         * ipa-cp.c (print_ipcp_constant_value): Likewise.
8379         (get_replacement_map): Likewise.
8380         * ipa-inline-analysis.c (dump_condition): Likewise.
8381         (estimate_function_body_sizes): Likewise.
8382         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
8383         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
8384         * ipa-prop.c (ipa_dump_param): Likewise.
8385         (ipa_print_node_jump_functions_for_edge): Likewise.
8386         (ipa_modify_call_arguments): Likewise.
8387         (ipa_modify_expr): Likewise.
8388         (ipa_dump_param_adjustments): Likewise.
8389         (ipa_dump_agg_replacement_values): Likewise.
8390         (ipcp_modif_dom_walker::before_dom_children): Likewise.
8391         * ipa-pure-const.c (check_stmt): Likewise.
8392         (pass_nothrow::execute): Likewise.
8393         * ipa-split.c (execute_split_functions): Likewise.
8394         * omp-offload.c (dump_oacc_loop_part): Likewise.
8395         (dump_oacc_loop): Likewise.
8396         * trans-mem.c (tm_log_emit): Likewise.
8397         (tm_memopt_accumulate_memops): Likewise.
8398         (dump_tm_memopt_set): Likewise.
8399         (dump_tm_memopt_transform): Likewise.
8400         * tree-cfg.c (gimple_verify_flow_info): Likewise.
8401         (print_loop): Likewise.
8402         * tree-chkp-opt.c (chkp_print_addr): Likewise.
8403         (chkp_gather_checks_info): Likewise.
8404         (chkp_get_check_result): Likewise.
8405         (chkp_remove_check_if_pass): Likewise.
8406         (chkp_use_outer_bounds_if_possible): Likewise.
8407         (chkp_reduce_bounds_lifetime): Likewise.
8408         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
8409         (chkp_mark_completed_bounds): Likewise.
8410         (chkp_register_incomplete_bounds): Likewise.
8411         (chkp_mark_invalid_bounds): Likewise.
8412         (chkp_maybe_copy_and_register_bounds): Likewise.
8413         (chkp_build_returned_bound): Likewise.
8414         (chkp_get_bound_for_parm): Likewise.
8415         (chkp_build_bndldx): Likewise.
8416         (chkp_get_bounds_by_definition): Likewise.
8417         (chkp_generate_extern_var_bounds): Likewise.
8418         (chkp_get_bounds_for_decl_addr): Likewise.
8419         * tree-chrec.c (chrec_apply): Likewise.
8420         * tree-data-ref.c (dump_data_reference): Likewise.
8421         (dump_subscript): Likewise.
8422         (dump_data_dependence_relation): Likewise.
8423         (analyze_overlapping_iterations): Likewise.
8424         * tree-inline.c (expand_call_inline): Likewise.
8425         (tree_function_versioning): Likewise.
8426         * tree-into-ssa.c (dump_defs_stack): Likewise.
8427         (dump_currdefs): Likewise.
8428         (dump_names_replaced_by): Likewise.
8429         (dump_update_ssa): Likewise.
8430         (update_ssa): Likewise.
8431         * tree-object-size.c (pass_object_sizes::execute): Likewise.
8432         * tree-parloops.c (build_new_reduction): Likewise.
8433         (try_create_reduction_list): Likewise.
8434         (ref_conflicts_with_region): Likewise.
8435         (oacc_entry_exit_ok_1): Likewise.
8436         (oacc_entry_exit_single_gang): Likewise.
8437         * tree-pretty-print.h: Likewise.
8438         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
8439         (get_scalar_evolution): Likewise.
8440         (add_to_evolution): Likewise.
8441         (get_loop_exit_condition): Likewise.
8442         (analyze_evolution_in_loop): Likewise.
8443         (analyze_initial_condition): Likewise.
8444         (analyze_scalar_evolution): Likewise.
8445         (instantiate_scev): Likewise.
8446         (number_of_latch_executions): Likewise.
8447         (gather_chrec_stats): Likewise.
8448         (final_value_replacement_loop): Likewise.
8449         (scev_const_prop): Likewise.
8450         * tree-sra.c (dump_access): Likewise.
8451         (disqualify_candidate): Likewise.
8452         (create_access): Likewise.
8453         (reject): Likewise.
8454         (maybe_add_sra_candidate): Likewise.
8455         (create_access_replacement): Likewise.
8456         (analyze_access_subtree): Likewise.
8457         (analyze_all_variable_accesses): Likewise.
8458         (sra_modify_assign): Likewise.
8459         (initialize_constant_pool_replacements): Likewise.
8460         (find_param_candidates): Likewise.
8461         (decide_one_param_reduction): Likewise.
8462         (replace_removed_params_ssa_names): Likewise.
8463         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8464         * tree-ssa-copy.c (dump_copy_of): Likewise.
8465         (copy_prop_visit_cond_stmt): Likewise.
8466         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
8467         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
8468         (record_equivalences_from_stmt): Likewise.
8469         * tree-ssa-dse.c (compute_trims): Likewise.
8470         (delete_dead_call): Likewise.
8471         (delete_dead_assignment): Likewise.
8472         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
8473         (forward_propagate_into_cond): Likewise.
8474         (pass_forwprop::execute): Likewise.
8475         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8476         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
8477         Likewise.
8478         (move_computations_worker): Likewise.
8479         (execute_sm): Likewise.
8480         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
8481         (remove_exits_and_undefined_stmts): Likewise.
8482         (remove_redundant_iv_tests): Likewise.
8483         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
8484         (adjust_iv_update_pos): Likewise.
8485         * tree-ssa-math-opts.c (bswap_replace): Likewise.
8486         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
8487         (value_replacement): Likewise.
8488         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
8489         * tree-ssa-pre.c (print_pre_expr): Likewise.
8490         (get_representative_for): Likewise.
8491         (create_expression_by_pieces): Likewise.
8492         (insert_into_preds_of_block): Likewise.
8493         (eliminate_insert): Likewise.
8494         (eliminate_dom_walker::before_dom_children): Likewise.
8495         (eliminate): Likewise.
8496         (remove_dead_inserted_code): Likewise.
8497         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
8498         * tree-ssa-reassoc.c (get_rank): Likewise.
8499         (eliminate_duplicate_pair): Likewise.
8500         (eliminate_plus_minus_pair): Likewise.
8501         (eliminate_not_pairs): Likewise.
8502         (undistribute_ops_list): Likewise.
8503         (eliminate_redundant_comparison): Likewise.
8504         (update_range_test): Likewise.
8505         (optimize_range_tests_var_bound): Likewise.
8506         (optimize_vec_cond_expr): Likewise.
8507         (rewrite_expr_tree): Likewise.
8508         (rewrite_expr_tree_parallel): Likewise.
8509         (linearize_expr): Likewise.
8510         (break_up_subtract): Likewise.
8511         (linearize_expr_tree): Likewise.
8512         (attempt_builtin_powi): Likewise.
8513         (attempt_builtin_copysign): Likewise.
8514         (transform_stmt_to_copy): Likewise.
8515         (transform_stmt_to_multiply): Likewise.
8516         (dump_ops_vector): Likewise.
8517         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
8518         (print_scc): Likewise.
8519         (set_ssa_val_to): Likewise.
8520         (visit_reference_op_store): Likewise.
8521         (visit_use): Likewise.
8522         (sccvn_dom_walker::before_dom_children): Likewise.
8523         (run_scc_vn): Likewise.
8524         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
8525         Likewise.
8526         (expr_hash_elt::print): Likewise.
8527         (const_and_copies::pop_to_marker): Likewise.
8528         (const_and_copies::record_const_or_copy_raw): Likewise.
8529         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
8530         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
8531         (dump_predicates): Likewise.
8532         (find_uninit_use): Likewise.
8533         (warn_uninitialized_phi): Likewise.
8534         (pass_late_warn_uninitialized::execute): Likewise.
8535         * tree-ssa.c (verify_vssa): Likewise.
8536         (verify_ssa): Likewise.
8537         (maybe_optimize_var): Likewise.
8538         * tree-vrp.c (dump_value_range): Likewise.
8539         (dump_all_value_ranges): Likewise.
8540         (dump_asserts_for): Likewise.
8541         (register_edge_assert_for_2): Likewise.
8542         (vrp_visit_cond_stmt): Likewise.
8543         (vrp_visit_switch_stmt): Likewise.
8544         (vrp_visit_stmt): Likewise.
8545         (vrp_visit_phi_node): Likewise.
8546         (simplify_cond_using_ranges_1): Likewise.
8547         (fold_predicate_in): Likewise.
8548         (evrp_dom_walker::before_dom_children): Likewise.
8549         (evrp_dom_walker::push_value_range): Likewise.
8550         (evrp_dom_walker::pop_value_range): Likewise.
8551         (execute_early_vrp): Likewise.
8553 2017-05-16  Richard Biener  <rguenther@suse.de>
8555         * dwarf2out.c (loc_list_from_tree_1): Do not create
8556         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
8558 2017-05-16  Richard Biener  <rguenther@suse.de>
8560         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
8561         just generated.
8562         (note_variable_value_in_expr): If we resolved the decl ref
8563         do not push to the stack.
8565 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
8567         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
8568         operations in fast-math mode.
8569         (vaddq_f16): Likewise.
8570         (vmul_f16): Likewise.
8571         (vmulq_f16): Likewise.
8572         (vsub_f16): Likewise.
8573         (vsubq_f16): Likewise.
8574         * config/arm/neon.md (add<mode>3): New.
8575         (sub<mode>3): New.
8576         (fma:<VH:mode>3): New.  Also remove outdated comment.
8577         (mul<mode>3): New.
8579 2017-05-16  Martin Liska  <mliska@suse.cz>
8581         PR ipa/79849.
8582         PR ipa/79850.
8583         * ipa-devirt.c (warn_types_mismatch): Fix typo.
8584         (odr_types_equivalent_p): Likewise.
8586 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
8588         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
8590 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
8592         PR target/80425
8593         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
8594         non-interunit SSE move alternatives with '?'.
8595         (zero-extendsidi peephole2): New peephole to skip intermediate
8596         general register in SSE zero-extend sequence.
8598 2017-05-15  Jeff Law  <law@redhat.com>
8600         * reorg.c (relax_delay_slots): Create a new variable to hold
8601         the temporary target rather than clobbering TARGET_LABEL.
8603         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
8604         missing argument to extract_bit_field call.
8605         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
8607 2017-05-15  Martin Liska  <mliska@suse.cz>
8609         PR driver/31468
8610         * gcc.c (process_command): Do not allow empty argument of -o option.
8612 2017-05-15  Renlin Li  <renlin.li@arm.com>
8614         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
8615         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
8616         * config/aarch64/constraints.md (Usf): Add long call check.
8617         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
8618         (call_value): Likewise.
8619         (sibcall): Likewise.
8620         (sibcall_value): Likewise.
8621         (call_insn): New.
8622         (call_value_insn): New.
8623         (sibcall_insn): Update rtx pattern.
8624         (sibcall_value_insn): Likewise.
8625         (call_internal): Remove.
8626         (call_value_internal): Likewise.
8627         (sibcall_internal): Likewise.
8628         (sibcall_value_internal): Likewise.
8629         (call_reg): Likewise.
8630         (call_symbol): Likewise.
8631         (call_value_reg): Likewise.
8632         (call_value_symbol): Likewise.
8634 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
8636         PR target/80600
8637         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
8639 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
8641         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
8642         compatible with CCGOCmode and with CCZmode.
8644 2017-05-14  Martin Sebor  <msebor@redhat.com>
8646         PR middle-end/77671
8647         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
8648         (gimple_fold_builtin_snprintf): Same.
8649         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
8650         (gimple_fold_builtin_snprintf): Same.
8651         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
8652         of character types.
8653         (is_call_safe): New function.
8654         (try_substitute_return_value): Call it.
8655         (try_simplify_call): New function.
8656         (pass_sprintf_length::handle_gimple_call): Call it.
8658 2017-05-14  Martin Sebor  <msebor@redhat.com>
8660         PR middle-end/80669
8661         * builtins.c (expand_builtin_stpncpy): Simplify.
8663 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
8665         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
8666         * config/i386/i386.h
8667         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
8668         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
8669         (struct machine_function): Add new members call_ms2sysv,
8670         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
8671         (struct machine_frame_state): New fields sp_realigned and
8672         sp_realigned_offset.
8673         * config/i386/i386.c
8674         (enum xlogue_stub): New enum.
8675         (enum xlogue_stub_sets): New enum.
8676         (class xlogue_layout): New class.
8677         (struct ix86_frame): New fields stack_realign_allocate_offset,
8678         stack_realign_offset and outlined_save_offset.  Modify comments to
8679         detail stack layout when using out-of-line stubs.
8680         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
8681         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
8682         -mcall-ms2sysv-xlogues.
8683         (stub_managed_regs): New static variable.
8684         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
8685         registers managed by out-of-line stub.
8686         (disable_call_ms2sysv_xlogues): New function.
8687         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
8688         m->call_ms2sysv when appropriate and compute frame layout for
8689         out-of-line stubs.
8690         (sp_valid_at, fp_valid_at): New inline functions.
8691         (choose_basereg): New function.
8692         (choose_baseaddr): Add align parameter, use choose_basereg and modify
8693         all callers.
8694         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
8695         Use align parameter of choose_baseaddr to generated aligned SSE movs
8696         when possible.
8697         (pro_epilogue_adjust_stack): Modify to track
8698         machine_frame_state::sp_realigned.
8699         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
8700         (ix86_nsaved_sseregs): Likewise.
8701         (ix86_emit_save_regs): Likewise.
8702         (ix86_emit_save_regs_using_mov): Likewise.
8703         (ix86_emit_save_sse_regs_using_mov): Likewise.
8704         (get_scratch_register_on_entry): Likewise.
8705         (gen_frame_set): New function.
8706         (gen_frame_load): Likewise.
8707         (gen_frame_store): Likewise.
8708         (emit_outlined_ms2sysv_save): Likewise.
8709         (emit_outlined_ms2sysv_restore): Likewise.
8710         (ix86_expand_prologue): Modify stack re-alignment code and call
8711         emit_outlined_ms2sysv_save when appropriate.
8712         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
8713         parameter rtx_insn *insn, which allows the function to be used to only
8714         generate the notes.
8715         (ix86_expand_epilogue): Modify validity checks of frame and stack
8716         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
8717         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
8718         * config/i386/predicates.md
8719         (save_multiple): New predicate.
8720         (restore_multiple): Likewise.
8721         * config/i386/sse.md
8722         (save_multiple<mode>): New pattern.
8723         (save_multiple_realign<mode>): Likewise.
8724         (restore_multiple<mode>): Likewise.
8725         (restore_multiple_and_return<mode>): Likewise.
8726         (restore_multiple_leave_return<mode>): Likewise.
8727         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
8729 2017-05-14  Julia Koval  <julia.koval@intel.com>
8731         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
8732         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
8733         (__builtin_ia32_xsetbv): New builtins.
8734         * config/i386/i386.c (ix86_expand_special_args_builtin):
8735         Process new types.
8736         (ix86_expand_builtin): Special expand for new intrinsics.
8737         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
8738         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
8739         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
8741 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8743         * cfganal.c (inverted_post_order_compute): Change argument type
8744         to vec *.
8745         * cfganal.h (inverted_post_order_compute): Adjust prototype.
8746         * df-core.c (rest_of_handle_df_initialize): Adjust.
8747         (rest_of_handle_df_finish): Likewise.
8748         (df_analyze_1): Likewise.
8749         (df_analyze): Likewise.
8750         (loop_inverted_post_order_compute): Change argument to be a vec *.
8751         (df_analyze_loop): Adjust.
8752         (df_get_n_blocks): Likewise.
8753         (df_get_postorder): Likewise.
8754         * df.h (struct df_d): Change field to be a vec.
8755         * lcm.c (compute_laterin): Adjust.
8756         (compute_available): Likewise.
8757         * lra-lives.c (lra_create_live_ranges_1): Likewise.
8758         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
8759         * tree-ssa-pre.c (compute_antic): Likewise.
8761 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8763         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
8764         (depth_first_search::depth_first_search): Change structure init
8765         function to this constructor.
8766         (depth_first_search::add_bb): Rename function to this member.
8767         (depth_first_search::execute): Likewise.
8768         (flow_dfs_compute_reverse_finish): Adjust.
8770 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8772         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
8773         (longest_simple_path): Likewise.
8774         * shrink-wrap.c (spread_components): Likewise.
8775         (disqualify_problematic_components): Likewise.
8776         (emit_common_heads_for_components): Likewise.
8777         (emit_common_tails_for_components): Likewise.
8778         (insert_prologue_epilogue_for_components): Likewise.
8780 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8782         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
8783         auto_sbitmap.
8785 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8787         * df-core.c (df_set_blocks): Start using auto_bitmap.
8788         (df_compact_blocks): Likewise.
8789         * df-problems.c (df_rd_confluence_n): Likewise.
8790         * df-scan.c (df_insn_rescan_all): Likewise.
8791         (df_process_deferred_rescans): Likewise.
8792         (df_update_entry_block_defs): Likewise.
8793         (df_update_exit_block_uses): Likewise.
8794         (df_entry_block_bitmap_verify): Likewise.
8795         (df_exit_block_bitmap_verify): Likewise.
8796         (df_scan_verify): Likewise.
8797         * lra-constraints.c (lra_constraints): Likewise.
8798         (undo_optional_reloads): Likewise.
8799         (lra_undo_inheritance): Likewise.
8800         * lra-remat.c (calculate_gen_cands): Likewise.
8801         (do_remat): Likewise.
8802         * lra-spills.c (assign_spill_hard_regs): Likewise.
8803         (spill_pseudos): Likewise.
8804         * tree-ssa-pre.c (bitmap_set_and): Likewise.
8805         (bitmap_set_subtract_values): Likewise.
8807 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8809         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
8810         management with auto_bitmap.
8811         (fix_inter_tick): Likewise.
8812         (fix_recovery_deps): Likewise.
8813         * ira.c (add_store_equivs): Likewise.
8814         (find_moveable_pseudos): Likewise.
8815         (split_live_ranges_for_shrink_wrap): Likewise.
8816         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
8817         (rtx_reuse_manager::seen_def_p): Likewise.
8818         (rtx_reuse_manager::set_seen_def): Likewise.
8819         * print-rtl.h (class rtx_reuse_manager): Likewise.
8821 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8823         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
8824         lifetime.
8825         (migrate_btr_def): Likewise.
8826         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
8827         * df-core.c (loop_post_order_compute): Likewise.
8828         (loop_inverted_post_order_compute): Likewise.
8829         * hsa-common.h: Likewise.
8830         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
8831         * init-regs.c (initialize_uninitialized_regs): Likewise.
8832         * ipa-inline.c (resolve_noninline_speculation): Likewise.
8833         (inline_small_functions): Likewise.
8834         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
8835         * ira.c (combine_and_move_insns): Likewise.
8836         (build_insn_chain): Likewise.
8837         * loop-invariant.c (find_invariants): Likewise.
8838         * lower-subreg.c (propagate_pseudo_copies): Likewise.
8839         * predict.c (tree_predict_by_opcode): Likewise.
8840         (predict_paths_leading_to): Likewise.
8841         (predict_paths_leading_to_edge): Likewise.
8842         (estimate_loops_at_level): Likewise.
8843         (estimate_loops): Likewise.
8844         * shrink-wrap.c (try_shrink_wrapping): Likewise.
8845         (spread_components): Likewise.
8846         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
8847         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
8848         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
8849         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
8850         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
8851         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8852         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
8853         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
8854         (mark_threaded_blocks): Likewise.
8855         (thread_through_all_blocks): Likewise.
8856         * tree-ssa.c (verify_ssa): Likewise.
8857         (execute_update_addresses_taken): Likewise.
8858         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
8860 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8862         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
8863         auto_vec.
8864         (post_order_compute): Likewise.
8865         (inverted_post_order_compute): Likewise.
8866         (pre_and_rev_post_order_compute_fn): Likewise.
8868 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8870         * genrecog.c (int_set::int_set): Explicitly construct our
8871         auto_vec base class.
8872         * vec.h (auto_vec::auto_vec): New constructor.
8874 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8876         * bitmap.h (class auto_bitmap): New constructor taking
8877         bitmap_obstack * argument.
8879 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8881         * bitmap.h (class auto_bitmap): Change type of m_bits to
8882         bitmap_head, and adjust ctor / dtor and member operators.
8884 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
8886         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
8887         when returned register mode doesn't match original mode.
8889 2017-05-12  Jeff Law  <law@redhat.com>
8890             Jakub Jelinek  <jakub@redhat.com>
8892         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
8893         we look for cc setter after the compare-elim changes.
8894         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
8895         within the vector to match what compare-elim now expects.
8896         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
8897         (xorsi3_flags, one_cmplsi2_flags): Likewise.
8899         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
8900         after the compare-elim changes.
8901         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
8902         the vector to match what compare-elim now expects.
8903         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
8904         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
8905         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
8906         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
8907         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
8909         * config/visium/visium.c (single_set_and_flags): Fix where
8910         we look for cc setter after the compare-elim changes.
8911         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
8912         with the vector to match what compare-elim now expects.
8913         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
8914         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
8915         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
8916         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
8917         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
8918         (neg<mode>2_insn_set_overflow): Likewise.
8920 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
8922         PR middle-end/79794
8923         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
8924         maybe_expand_insn call, set ops[0].target.  If still set after call,
8925         set alt_rtl.  Add extra arg to recursive calls.
8926         (extract_bit_field): Add alt_rtl argument.  Pass to
8927         extract_bit_field.
8928         * expmed.h (extract_bit_field): Fix prototype.
8929         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
8930         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
8931         to extract_bit_field_calls.
8932         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
8933         Pass alt_rtl to extract_bit_field calls.
8934         * calls.c (store_unaligned_arguments_into_psuedos)
8935         load_register_parameters): Pass extra NULL to extract_bit_field calls.
8936         * optabs.c (maybe_legitimize_operand): Clear op->target when call
8937         gen_reg_rtx.
8938         * optabs.h (struct expand_operand): Add target bitfield.
8940 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
8942         * compare-elim.c (try_eliminate_compare): Canonicalize
8943         operation with embedded compare to
8944         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
8945          (set (reg) (operation)].
8947         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
8949 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
8951         PR target/80723
8952         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
8953         cost of adding a carry flag for ADC instruction.
8954         [case MINUS]: Ignore the cost of subtracting a carry flag
8955         for SBB instruction.
8957 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
8959         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
8960         and x86intrin.h
8961         * config/rs6000/bmiintrin.h: New file.
8962         * config/rs6000/bmi2intrin.h: New file.
8963         * config/rs6000/x86intrin.h: New file.
8965 2017-05-12  Jeff Law  <law@redhat.com>
8967         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
8968         markers.
8970 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
8972         PR middle-end/80707
8973         * tree-cfg.c: Remove cfg edges of unreachable case statements.
8975 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
8977         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
8978         early expansion of vector divide builtins.
8979         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
8980         builtins identified as having unsigned arguments.
8982 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
8984         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
8985         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
8986         expansion of vector logical operations (and, andc, or, xor,
8987         nor, orc, nand).
8989 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
8991         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
8992         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
8994 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
8996         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
8997         early GIMPLE expansion of vector multiplies.
8999 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
9001         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
9002         TARGET_HAVE_MOVT conditional.
9003         (movt splitter): Likewise.
9005 2017-05-12  Richard Biener  <rguenther@suse.de>
9007         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
9008         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9009         Fold all stmts not inplace.
9011 2017-05-12  Richard Biener  <rguenther@suse.de>
9013         PR tree-optimization/80713
9014         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
9015         inserted_exprs bit for not removed stmts.
9017 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
9019         PR middle-end/69921
9020         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
9021         parallelized" attribute for parallelized OpenACC kernels.
9022         * omp-offload.c (execute_oacc_device_lower): Use it.
9024         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
9025         Set "oacc kernels" attribute.
9026         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
9027         parameter.  Adjust all users.
9028         (oacc_fn_attrib_kernels_p): Remove function.
9029         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
9030         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
9031         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9032         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
9033         assert "oacc kernels" attribute is set.
9035 2017-05-11  Carl Love  <cel@us.ibm.com>
9037         * config/rs6000/rs6000-c: Add support for built-in functions
9038         vector unsigned char vec_popcnt (vector signed char)
9039         vector unsigned char vec_popcnt (vector unsigned char)
9040         vector unsigned short vec_popcnt (vector signed short)
9041         vector unsigned short vec_popcnt (vector unsigned short)
9042         vector unsigned int vec_popcnt (vector signed int)
9043         vector unsigned int vec_popcnt (vector unsigned int)
9044         vector unsigned long long vec_popcnt (vector signed long long)
9045         vector unsigned long long vec_popcnt (vector unsigned long long)
9046         vector signed long long vec_slo (vector signed long long,
9047                                          vector signed char)
9048         vector signed long long vec_slo (vector signed long long,
9049                                          vector unsigned char)
9050         vector unsigned long long vec_slo (vector unsigned long long,
9051                                            vector signed char)
9052         vector unsigned long long vec_slo (vector unsigned long long,
9053                                            vector unsigned char)
9054         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
9055         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
9056         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
9057         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
9058         * doc/extend.texi: Update the built-in documentation file for the
9059         new built-in functions.
9061 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9063         * attribs.h (sorted_attr_string): Move machine independent
9064         functions for target clone support from the i386 port to common
9065         code.  Rename ix86_function_versions to common_function_versions.
9066         Rename make_name to make_unique_name.
9067         (common_function_versions): Likewise.
9068         (make_unique_name): Likewise.
9069         (make_dispatcher_decl): Likewise.
9070         (is_function_default_version): Likewise.
9071         * attribs.c (attr_strcmp): Likewise.
9072         (sorted_attr_string): Likewise.
9073         (common_function_versions): Likewise.
9074         (make_unique_name): Likewise.
9075         (make_dispatcher_decl): Likewise.
9076         (is_function_default_version): Likewise.
9077         * config/i386/i386.c (attr_strcmp): Likewise.
9078         (sorted_attr_string): Likewise.
9079         (ix86_function_versions): Likewise.
9080         (make_name): Likewise.
9081         (make_dispatcher_decl): Likewise.
9082         (is_function_default_version): Likewise.
9083         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
9085 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9087         PR target/80695
9088         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
9089         Account for direct move costs for vec_construct of integer
9090         vectors.
9092 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
9094         PR target/80706
9095         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
9096         (UNSPEC_STX_ATOMIC): Ditto.
9097         (loaddi_via_sse): New insn.
9098         (storedi_via_sse): Ditto.
9099         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
9100         Update corresponding peephole2 patterns.
9101         (atomic_storedi_fpu): Ditto.
9103 2017-05-11  Julia Koval  <julia.koval@intel.com>
9105         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
9106         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
9107         New intrinsics.
9108         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
9109         (__builtin_ia32_rsqrt14ss_mask): New builtins.
9110         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
9112 2017-05-11  Nathan Sidwell  <nathan@acm.org>
9114         * graphite-poly.c: Include dumpfile.h.
9116         * dumpfle.h (dump_function): Declare here ...
9117         * tree-dump.h (dump_function): ... not here.
9118         * dumpfile.c: #include tree-cfg.h.
9119         (dump_function): Move here from ...
9120         * tree-dump.c (dump_function): ... here.
9121         * gimplify.c: #include splay-tree.h, not tree-dump.h.
9122         * graphite-poly.c: Don't include tree-dump.h.
9123         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
9124         * print-tree.c: Likewise.
9125         * stor-layout.c: Likewise.
9126         * tree-nested.c: Likewise.
9128         * dumpfile.c (dump_start): Use TDF_FLAGS.
9129         (dump_enable_all): Fix TDF_KIND check thinko.
9131 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9133         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9134         array entries to represent two legal parameterizations of the
9135         overloaded __builtin_cmpb function, as represented by the
9136         P6_OV_BUILTIN_CMPB constant.
9137         (altivec_resolve_overloaded_builtin): Add special case handling
9138         for the __builtin_cmpb function, as represented by the
9139         P6_OV_BUILTIN_CMPB constant.
9140         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
9141         (BU_P6_64BIT_2): New macro.
9142         (BU_P6_OVERLOAD_2): New macro
9143         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
9144         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
9145         (CMPB): Add overload support to represent both 32-bit and 64-bit
9146         compare-bytes function.
9147         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9148         support for TARGET_CMPB.
9149         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
9150         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
9151         documentation of the __builtin_cmpb overloaded built-in function.
9153 2017-05-11  Richard Biener  <rguenther@suse.de>
9155         PR tree-optimization/80705
9156         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
9157         bases are not vectorizable.
9159 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9161         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
9162         when counting register pressure.
9164 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9166         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
9167         (iv_ca_more_deps): Renamed to ...
9168         (iv_ca_compare_deps): ... this.
9169         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
9171 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9173         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
9174         to ...
9175         (determine_group_iv_costs): ... here.
9176         (find_inv_vars_cb): Record inv var if it's not recorded before.
9178 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9180         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
9181         (get_shiftadd_cost): Ditto.
9183 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9185         * tree-ssa-address.c: Include header file.
9186         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
9187         address.
9188         (add_to_parts): Refactor.
9189         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
9190         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
9191         in new order.
9193 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9195         PR tree-optimization/53090
9196         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
9197         COMP_IV_EXPR_2.
9198         (extract_cond_operands): Detect condition with IV on both sides
9199         and return COMP_IV_EXPR_2.
9200         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
9201         (rewrite_use_compare): Simplify by removing call to function
9202         extract_cond_operands.
9204 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9206         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
9207         (extract_cond_operands): Detect condition comparing against non-
9208         invariant bound and return appropriate enum value.
9209         (find_interesting_uses_cond): Update use of extract_cond_operands.
9210         Handle its return value accordingly.
9211         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
9213 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9215         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
9216         nonlinear iv_use computation in loop invariant sensitive way.
9218 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9220         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
9221         (find_iv_candidates): Call relate_compare_use_with_all_cands.
9223 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9225         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
9226         (dump_cand): Support iv_cand.inv_exprs.
9227         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
9228         for candidates.
9229         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
9230         iv_cand.inv_exprs.
9232 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9234         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
9235         from ...
9236         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
9237         as local function.  Include necessary header files.
9238         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
9240 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9242         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
9244 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9246         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
9247         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
9248         RSHIFT_EXPR and BIT_NOT_EXPR.
9250 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9252         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
9253         (adjust_setup_cost): New parameter supporting round up adjustment.
9254         (struct address_cost_data): Delete.
9255         (force_expr_to_var_cost): Don't bound cost with spill_cost.
9256         (split_address_cost, ptr_difference_cost): Delete.
9257         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
9258         (struct ainc_cost_data): New struct.
9259         (get_address_cost_ainc): New function.
9260         (get_address_cost, get_computation_cost): Reimplement.
9261         (determine_group_iv_cost_address): Record inv_expr for all uses of
9262         a group.
9263         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
9264         (iv_ca_has_deps): Reimplemented to ...
9265         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
9266         than OLD_CP.
9267         (iv_ca_extend): Call iv_ca_more_deps.
9269 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9271         * tree-ssa-address.c (struct mem_address): Move to header file.
9272         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
9273         * tree-ssa-address.h (struct mem_address): Move from C file.
9274         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
9276 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9278         * tree-affine.h (aff_combination_type): New interface.
9279         (aff_combination_zero_p): Remove static.
9280         (aff_combination_const_p): New interface.
9281         (aff_combination_singleton_var_p): New interfaces.
9283 2017-05-11  Richard Biener  <rguenther@suse.de>
9285         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9286         Skip unreachable blocks and destinations.
9287         (eliminate): Move stmt removal and fixup ...
9288         (fini_eliminate): ... here.  Skip inserted exprs.
9289         (pass_pre::execute): Move fini_pre after fini_eliminate.
9290         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
9291         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
9292         PRE to get rid of dead code that has invalid SSA form and
9293         split critical edges again.
9295 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
9297         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
9299 2017-05-11  Richard Biener  <rguenther@suse.de>
9301         * passes.c (execute_function_todo): Verify loops if they are
9302         said to be up-to-date.
9303         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
9304         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
9306 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
9308         PR target/80090
9309         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
9310         handle calling assemble_external ourself.
9312         PR target/79027
9313         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
9314         modes with zero size.  Enhance comment.
9316 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9318         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
9319         built-ins for vec_xl and vec_xst with short and char pointer
9320         arguments.
9322 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
9324         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
9325         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
9326         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
9327         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
9328         (_mm_maskz_min_round_ss): New intrinsics.
9329         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
9330         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
9331         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
9332         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
9333         (__builtin_ia32_minss_mask_round): New builtins.
9334         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
9335         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
9336         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
9337         Rename to ...
9338         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
9339         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
9340         Change to ...
9341         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
9342         ... this.
9344 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
9346         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
9347         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
9348         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
9349         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
9350         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
9351         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
9352         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
9353         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
9354         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
9355         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
9356         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
9357         (__builtin_ia32_mulss_mask_round): New builtins.
9358         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
9359         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
9360         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
9361         Rename to ...
9362         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
9363         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
9364         Change to ...
9365         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
9366         ... this.
9368 2017-05-10  Julia Koval  <julia.koval@intel.com>
9370         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
9371         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
9372         (_mm256_setr_m128i): New intrinsics.
9374 2017-05-10  Julia Koval  <julia.koval@intel.com>
9376         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
9377         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
9378         (_mm_maskz_rcp14_ss): New intrinsics.
9379         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
9380         (__builtin_ia32_rcp14ss_mask): New builtins.
9381         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
9383 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
9385         PR tree-optimization/51513
9386         * tree-cfg.c (gimple_seq_unreachable_p): New function.
9387         (assert_unreachable_fallthru_edge_p): Use it.
9388         (group_case_labels_stmt): Likewise.
9389         * tree-cfg.h: Prototype it.
9390         * stmt.c: Include cfghooks.h and tree-cfg.h.
9391         (emit_case_dispatch_table) <gap_label>: New local variable.
9392         Use it to fill dispatch table gaps.
9393         Test for default_label before updating probabilities.
9394         (expand_case) <default_label>: Remove unneeded initialization.
9395         Test for unreachable default case statement and remove its edge.
9396         Set default_label accordingly.
9397         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
9399 2017-05-10  Carl Love  <cel@us.ibm.com>
9401         * config/rs6000/rs6000-c: Add support for built-in functions
9402         vector signed char      vec_neg (vector signed char)
9403         vector signed short int vec_neg (vector short int)
9404         vector signed int       vec_neg (vector signed int)
9405         vector signed long long vec_neg (vector signed long long)
9406         vector float            vec_neg (vector float)
9407         vector double           vec_neg (vector double)
9408         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
9409         overload.
9410         * config/rs6000/altivec.h: Add define for vec_neg
9411         * doc/extend.texi: Update the built-in documentation for the
9412         new built-in functions.
9414 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9416         PR tree-optimization/77644
9417         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
9419 2017-05-10  Nathan Sidwell  <nathan@acm.org>
9421         * dumpfile.h (TDI_lang_all): New.
9422         (TDF_KIND): New. Renumber others
9423         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
9424         than bits.
9425         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
9426         lang-all.
9427         (get_dump_file_name): Adjust suffix generation.
9428         (dump_enable_all): Use TDF_KIND.
9429         * doc/invoke.texi (-fdump-lang-all): Document.
9431         * dumpfile.h: Tabify.
9433 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
9435         PR target/80671
9436         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
9437         Move member access before delete.
9439 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
9441         * tree-inline.c (expand_call_inline): Split block at stmt
9442         before the call.
9444 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
9446         PR target/68163
9447         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
9448         are now unused after splitting mov{sf,sd}_hardfloat.
9449         (f32_lr2): Likewise.
9450         (f32_lm): Likewise.
9451         (f32_lm2): Likewise.
9452         (f32_li): Likewise.
9453         (f32_li2): Likewise.
9454         (f32_lv): Likewise.
9455         (f32_sr): Likewise.
9456         (f32_sr2): Likewise.
9457         (f32_sm): Likewise.
9458         (f32_sm2): Likewise.
9459         (f32_si): Likewise.
9460         (f32_si2): Likewise.
9461         (f32_sv): Likewise.
9462         (f32_dm): Likewise.
9463         (f32_vsx): Likewise.
9464         (f32_av): Likewise.
9465         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
9466         For movsf, order stores so the VSX stores occur before the GPR
9467         store which encourages the register allocator to use a traditional
9468         FPR instead of a GPR.  For movsd, order the stores so that the GPR
9469         store comes before the VSX stores to allow the power6 to work.
9470         This is due to the power6 not having a 32-bit integer store
9471         instruction from a FPR.
9472         (movsf_hardfloat): Likewise.
9473         (movsd_hardfloat): Likewise.
9475 2017-05-09  Martin Sebor  <msebor@redhat.com>
9477         PR translation/80280
9478         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
9479         added in r247778.
9481         PR translation/80280
9482         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
9483         data member added in r247778.
9484         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
9486 2017-05-09  Nathan Sidwell  <nathan@acm.org>
9488         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
9490         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
9491         typedefs.
9493 2017-05-09  Marek Polacek  <polacek@redhat.com>
9495         * doc/invoke.texi: Fix typo.
9497 2017-05-09  Richard Biener  <rguenther@suse.de>
9499         * tree-vrp.c (vrp_val_is_max): Adjust comment.
9500         (vrp_val_is_min): Likewise.
9501         (set_value_range_to_value): Likewise.
9502         (set_value_range_to_nonnegative): Likewise.
9503         (gimple_assign_nonzero_p): Likewise.
9504         (gimple_stmt_nonzero_p): Likewise.
9505         (vrp_int_const_binop): Likewise.  Remove unreachable case.
9506         (adjust_range_with_scev): Adjust comments.
9507         (compare_range_with_value): Likewise.
9508         (extract_range_from_phi_node): Likewise.
9509         (test_for_singularity): Likewise.
9511 2017-05-09  Richard Biener  <rguenther@suse.de>
9513         * tree-vrp.c (get_single_symbol): Add assert that we don't
9514         get overflowed constants as invariant part.
9515         (compare_values_warnv): Add comment before the TREE_NO_WARNING
9516         checks.  Use wi::cmp instead of recursing for integer constants.
9517         (compare_values): Just ignore whether we assumed undefined
9518         overflow instead of failing the compare.
9519         (extract_range_for_var_from_comparison_expr): Add comment before the
9520         TREE_NO_WARNING sets.
9521         (test_for_singularity): Likewise.
9522         (extract_range_from_comparison): Do not disable optimization
9523         when we assumed undefined overflow.
9524         (extract_range_basic): Remove init of unused var.
9526 2017-05-09  Richard Biener  <rguenther@suse.de>
9528         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
9529         (extract_range_from_multiplicative_op_1): Adjust.
9530         (extract_range_from_binary_expr_1): Use int_const_binop.
9532 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9534         PR target/80101
9535         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
9536         rs6000_store_data_bypass_p in seven define_bypass directives and
9537         in several comments.
9538         * config/rs6000/rs6000-protos.h: Add prototype for
9539         rs6000_store_data_bypass_p function.
9540         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
9541         function implements slightly different (rs6000-specific) semantics
9542         than store_data_bypass_p, returning false rather than aborting
9543         with assertion error when arguments do not satisfy the
9544         requirements of store data bypass.
9545         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
9546         rs6000_store_data_bypass_p.
9548 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
9550         * config/xtensa/xtensa-protos.h
9551         (xtensa_initial_elimination_offset): New declaration.
9552         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
9553         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
9554         macro definition, add case for FRAME_POINTER_REGNUM when
9555         FRAME_GROWS_DOWNWARD.
9556         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
9557         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
9558         xtensa_initial_elimination_offset.
9560 2017-05-08  Nathan Sidwell  <nathan@acm.org>
9562         * doc/invoke.texi: Alphabetize -fdump options.
9564 2017-05-08  Martin Sebor  <msebor@redhat.com>
9566         PR translation/80280
9567         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
9569 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9571         * target.def (compute_frame_layout): New optional target hook.
9572         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
9573         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
9574         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
9575         target hook.
9576         * reload1.c (verify_initial_elim_offsets): Likewise.
9577         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
9578         (use_simple_return_p): Call arm_compute_frame_layout if needed.
9579         (arm_get_frame_offsets): Split up into this ...
9580         (arm_compute_frame_layout): ... and this function.
9582 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
9584         * config/aarch64/constraints.md (Usa): New constraint.
9585         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
9587 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9589         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
9590         with_multilib_list after it has been checked.
9592 2017-05-08  Richard Biener  <rguenther@suse.de>
9594         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
9595         (bitmap_set_subtract_values): Likewise.
9597 2017-05-08  Richard Biener  <rguenther@suse.de>
9599         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
9600         (gimple_assign_nonzero): ... this and remove strict_overflow_p
9601         argument.
9602         (gimple_stmt_nonzero_warnv_p): Rename to ...
9603         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
9604         argument.
9605         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
9606         (extract_range_basic): Adjust, do not disable propagation on
9607         strict overflow sensitive simplification.
9608         (vrp_visit_cond_stmt): Likewise.
9610 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
9612         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
9613         body size unconditionally.
9615 2017-05-07  Jeff Law  <law@redhat.com>
9617         Revert:
9618         2017-05-06  Jeff Law  <law@redhat.com>
9619         PR tree-optimization/78496
9620         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
9621         code.
9623         PR tree-optimization/78496
9624         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
9625         (simplify_stmt_using_ranges): Call it.
9626         (vrp_dom_walker::before_dom_children): Extract equivalences
9627         from an ASSERT_EXPR with an equality comparison against a
9628         constant.
9630 2017-05-06  Jeff Law  <law@redhat.com>
9632         PR tree-optimization/78496
9633         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
9634         code.
9636         PR tree-optimization/78496
9637         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
9638         (simplify_stmt_using_ranges): Call it.
9639         (vrp_dom_walker::before_dom_children): Extract equivalences
9640         from an ASSERT_EXPR with an equality comparison against a
9641         constant.
9643 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
9645         * lra-constraints.c (lra_copy_reg_equiv): New function.
9646         (split_reg): Use it to copy equivalence information from the
9647         original register to the spill register.
9649 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
9651         PR rtl-optimization/75964
9652         * simplify-rtx.c (simplify_const_relational_operation): Remove
9653         invalid handling of comparisons of integer ABS.
9655 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
9657         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
9658         initialize to zero.
9659         (init_regs): Remove declaration.
9660         (function_arg_advance_32): Initialize error_p as boolean variable.
9662 2017-05-05  Nathan Sidwell  <nathan@acm.org>
9664         * store-motion.c (remove_reachable_equiv_notes): Reformat long
9665         lines.  Use for (;;).
9667 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9669         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
9670         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
9671         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
9672         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
9673         VF=2 that require versioning.
9675 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
9677         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
9678         int.
9680 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
9682         * diagnostic.h (diagnostic_override_option_index): Convert from
9683         macro to inline function.
9685 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
9687         * diagnostic.c (last_module_changed_p): New function.
9688         (set_last_module): New function.
9689         (diagnostic_report_current_module): Convert macro usage to
9690         the above functions.
9691         * diagnostic.h (diagnostic_context::last_module): Strengthen
9692         from const line_map * to const line_map_ordinary *.
9693         (diagnostic_last_module_changed): Delete macro.
9694         (diagnostic_set_last_module): Delete macro.
9696 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
9698         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
9699         with diagnostic_report_diagnostic.
9700         (diagnostic_n_impl_richloc): Likewise.
9701         * diagnostic.h (report_diagnostic): Delete macro.
9702         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
9703         with diagnostic_report_diagnostic.
9704         * substring-locations.c (format_warning_va): Likewise.
9706 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
9708         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
9709         save/restor of format_spec.  Move option-printing code to...
9710         (print_option_information): ...this new function, and
9711         reimplement by simply printing to the pretty_printer,
9712         rather than appending to the format string.
9714 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
9716         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
9717         handling logic into...
9718         (update_effective_level_from_pragmas): ...this new function.
9720 2017-05-04  Andrew Waterman  <andrew@sifive.com>
9722         * config/riscv/riscv.opt (mstrict-align): New option.
9723         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
9724         (SLOW_UNALIGNED_ACCESS): Define.
9725         (riscv_slow_unaligned_access): Declare.
9726         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
9727         field.
9728         (riscv_slow_unaligned_access): New variable.
9729         (rocket_tune_info): Set slow_unaligned_access to true.
9730         (optimize_size_tune_info): Set slow_unaligned_access to false.
9731         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
9732         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
9733         (riscv_option_override): Set riscv_slow_unaligned_access.
9734         * doc/invoke.texi: Add -mstrict-align to RISC-V.
9736 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
9738         * config/riscv/riscv.md: Unify indentation.
9740 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9742         PR target/79038
9743         PR target/79202
9744         PR target/79203
9745         * config/rs6000/rs6000.md (u code attribute): Add FIX and
9746         UNSIGNED_FIX.
9747         (extendsi<mode>2): Add support for doing sign extension via
9748         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
9749         don't have ISA 3.0 instructions.
9750         (extendsi<mode>2 splitter): Likewise.
9751         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
9752         generate the normal insns since SImode can now go in vector
9753         registers.  Disallow the special UNSPECs needed for previous
9754         machines to hide SImode being used.  Add new insns
9755         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
9756         (fix_trunc<mode>si2_stfiwx): Likewise.
9757         (fix_trunc<mode>si2_internal): Likewise.
9758         (fixuns_trunc<mode>si2): Likewise.
9759         (fixuns_trunc<mode>si2_stfiwx): Likewise.
9760         (fctiw<u>z_<mode>_smallint): Likewise.
9761         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
9762         of floating point to 32-bit integer from doing a direct move to
9763         the GPR registers to do a store.
9764         (fctiwz_<mode>): Break long line.
9766 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
9768         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
9769         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
9770         (addr_list, addr_offset_valid_p): New.
9771         (split_address_groups): Check offset validity with above function.
9772         (gt-tree-ssa-loop-ivopts.h): Include header file.
9774 2017-05-05  Nathan Sidwell  <nathan@acm.org>
9776         * config.gcc (arm*-*-*): Add missing 'fi'.
9778 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
9780         * doc/invoke.texi (-fopt-info): Explicitly say order of options
9781         included in -fopt-info does not matter.
9782         * doc/optinfo.texi (-fopt-info): Fix description of default
9783         behavour. Explicitly say order of options included in -fopt-info
9784         does not matter.
9786 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9788         * config.gcc: Allow combinations of aprofile and rmprofile values for
9789         --with-multilib-list.
9790         * config/arm/t-multilib: New file.
9791         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
9792         variables.  Remove setting of ISA and floating-point ABI in
9793         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
9794         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
9795         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
9796         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
9797         CPU options.
9798         * config/arm/t-rmprofile: Likewise except for the matches changes.
9799         * doc/install.texi (--with-multilib-list): Document the combination of
9800         aprofile and rmprofile values and warn about pitfalls in doing that.
9802 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
9804         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
9805         (movdi_aarch64): Likewise.
9807 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
9809         PR tree-optimization/80632
9810         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
9811         field.
9812         (build_arrays): Initialize it for virtual phis.
9813         (fix_phi_nodes): Use it for virtual phis.
9815         PR tree-optimization/80558
9816         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
9817         [x, y] op z into [x op, y op z] for op & or | if conditions
9818         are met.
9820 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9821             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
9823         PR target/71607
9824         * config/arm/arm.md (use_literal_pool): Remove.
9825         (64-bit immediate split): No longer takes cost into consideration
9826         if arm_disable_literal_pool is enabled.
9827         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
9828         used when arm_disable_literal_pool is enabled.
9829         (arm_max_const_double_inline_cost): Remove use of
9830         arm_disable_literal_pool.
9831         (push_minipool_fix): Add assert.
9832         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
9833         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
9834         (no_literal_pool_sf_immediate): New.
9836 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9838         PR tree-optimization/80613
9839         * tree-ssa-dce.c (propagate_necessity): Remove cases for
9840         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
9842 2017-05-05  Richard Biener  <rguenther@suse.de>
9844         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
9846 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
9848         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
9849         of this flag from insn conditions due to removal from r247495.
9851 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
9853         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
9854         New function.
9855         (arm_early_store_addr_dep_ptr): Likewise.
9856         * config/arm/aarch-common-protos.h
9857         (arm_early_load_addr_dep_ptr): Add prototype.
9858         (arm_early_store_addr_dep_ptr): Likewise.
9859         * config/arm/cortex-a53.md: Add new bypasses.
9861 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
9863         * tree.c (next_type_uid): Change type to unsigned.
9864         (type_hash_canon): Decrement back next_type_uid if
9865         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
9866         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
9867         if possible.
9869 2017-05-04  Martin Sebor  <msebor@redhat.com>
9871         * builtins.c: Fix a trivial typo in a comment.
9873         PR middle-end/79234
9874         * builtins.c (check_sizes): Adjust to handle reading past the end.
9875         Avoid printing excessive upper bound of ranges.  Use %E to print
9876         tree nodes instead of converting them to %wu.
9877         (expand_builtin_memchr): New function.
9878         (compute_dest_size): Rename...
9879         (compute_objsize): ...to this.
9880         (expand_builtin_memcpy): Adjust.
9881         (expand_builtin_mempcpy): Adjust.
9882         (expand_builtin_strcat): Adjust.
9883         (expand_builtin_strcpy): Adjust.
9884         (check_strncat_sizes): Adjust.
9885         (expand_builtin_strncat): Adjust.
9886         (expand_builtin_strncpy): Adjust and simplify.
9887         (expand_builtin_memset): Adjust.
9888         (expand_builtin_bzero): Adjust.
9889         (expand_builtin_memcmp): Adjust.
9890         (expand_builtin): Handle memcmp.
9891         (maybe_emit_chk_warning): Check strncat just once.
9893 2017-05-04  Martin Sebor  <msebor@redhat.com>
9895         PR preprocessor/79214
9896         PR middle-end/79222
9897         PR middle-end/79223
9898         * builtins.c (check_sizes): Add inlining context and issue
9899         warnings even when -Wno-system-headers is set.
9900         (check_strncat_sizes): Same.
9901         (expand_builtin_strncat): Same.
9902         (expand_builtin_memmove): New function.
9903         (expand_builtin_stpncpy): Same.
9904         (expand_builtin): Handle memmove and stpncpy.
9906 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
9908         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
9909         which is not used any more.
9911 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
9913         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
9915 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
9917         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
9918         (cortexa53_tunings): Likewise.
9919         (cortexa57_tunings): Likewise.
9920         (cortexa72_tunings): Likewise.
9921         (cortexa73_tunings): Likewise.
9923 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
9925         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
9926         Set loop alignment to 8.
9928 2017-05-04  Martin Sebor  <msebor@redhat.com>
9930         PR translation/80280
9931         * builtins.c (expand_builtin_object_size): Add missing quoting to
9932         %D and like directives.
9933         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
9934         (hsa_type_for_tree_type): Same.
9935         (verify_function_arguments): Same.
9936         * symtab.c (symbol_table::change_decl_assembler_name): Same.
9937         * varasm.c (get_section): Same.
9938         (mark_weak): Same.
9940 2017-05-04  Martin Sebor  <msebor@redhat.com>
9942         PR translation/80280
9943         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
9945 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
9947         * config/aarch64/aarch64.c (generic_addrcost_table):
9948         Change HI/TI mode setting.
9950 2017-05-04  Martin Jambor  <mjambor@suse.cz>
9952         PR tree-optimization/80622
9953         * tree-sra.c (comes_initialized_p): New function.
9954         (build_accesses_from_assign): Only set write lazily when
9955         comes_initialized_p is false.
9956         (analyze_access_subtree): Use comes_initialized_p.
9957         (propagate_subaccesses_across_link): Assert !comes_initialized_p
9958         instead of testing for PARM_DECL.
9960 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9962         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
9963         constraint on operand 0 to allow more general addressing modes.
9964         Adjust output template.
9965         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
9966         New function.
9967         * config/aarch64/aarch64-protos.h
9968         (aarch64_address_valid_for_prefetch_p): Declare prototype.
9969         * config/aarch64/constraints.md (Dp): New address constraint.
9970         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
9971         predicate.
9973 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
9975         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
9976         update use of estimate_ipcp_clone_size_and_time.
9977         (estimate_local_effects): Update use of
9978         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
9979         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
9980         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
9981         Return nonspecialized time.
9983 2017-05-04  Richard Biener  <rguenther@suse.de>
9985         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
9986         for the last VUSE which def dominates the PHI.  Directly call
9987         maybe_skip_until.
9988         (get_continuation_for_phi_1): Remove.
9990 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
9992         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
9993         to explain the use of truncating division.  Cap the number of
9994         iterations to the maximum given by nb_iterations_upper_bound,
9995         if defined.
9997 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9999         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
10000         * configure: Regenerate.
10001         * config.in: Regenerate.
10002         * config/i386/driver-mingw32.c: new file.
10003         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
10004         * config.host: Link driver-mingw32.o on MinGW host.
10005         * doc/install.texi: Document new --enable-mingw-wildcard configure
10006         option.
10008 2017-05-04  Marek Polacek  <polacek@redhat.com>
10010         PR tree-optimization/80612
10011         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
10013 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
10014             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
10016         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
10017         (movt splitter): Likewise.
10018         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
10019         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
10020         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
10021         block for Thumb-1 with MOVT.
10022         (thumb2_legitimate_address_p): Move code block ...
10023         (can_avoid_literal_pool_for_label_p): ... into this new function.
10024         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
10025         literal pool.
10026         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
10027         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
10028         "M-profile targets with the MOVT instruction".
10030 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
10032         * config/arm/arm-builtins.c (arm_init_builtins): Rename
10033         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
10034         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
10036 2017-05-04  Martin Liska  <mliska@suse.cz>
10038         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
10039         variable cond_code.
10041 2017-05-04  Richard Biener  <rguenther@suse.de>
10043         * tree.c (array_at_struct_end_p): Handle arrays at struct
10044         end with flexarrays more conservatively.  Refactor and treat
10045         arrays of arrays or aggregates more strict.  Fix
10046         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
10047         * tree.c (array_at_struct_end_p): Adjust prototype.
10048         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
10049         * gimple-fold.c (get_range_strlen): Likewise.
10050         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
10052 2017-05-04  Richard Biener  <rguenther@suse.de>
10054         PR tree-optimization/31130
10055         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
10056         false.
10057         (supports_overflow_infinity): Likewise.
10058         (is_negative_overflow_infinity): Likewise.
10059         (is_positive_overflow_infinity): Likewise.
10060         (is_overflow_infinity): Likewise.
10061         (stmt_overflow_infinity): Likewise.
10062         (overflow_infinity_range_p): Likewise.
10063         (usable_range_p): Remove as always returning true.
10064         (make_overflow_infinity): Remove.
10065         (negative_overflow_infinity): Likewise.
10066         (positive_overflow_infinity): Likewise.
10067         (avoid_overflow_infinity): Likewise.
10068         (set_value_range): Adjust accordingly.
10069         (set_value_range_to_nonnegative): Likewise, remove now unused
10070         overflow_infinity arg.
10071         (vrp_operand_equal_p): Adjust.
10072         (update_value_range): Likewise.
10073         (range_int_cst_singleton_p): Likewise.
10074         (operand_less_p): Likewise.
10075         (compare_values_warnv): Likewise.
10076         (extract_range_for_var_from_comparison_expr): Likewise.
10077         (vrp_int_const_binop): Likewise.
10078         (zero_nonzero_bits_from_vr): Likewise.
10079         (extract_range_from_multiplicative_op_1): Likewise.
10080         (extract_range_from_binary_expr_1): Likewise.
10081         (extract_range_from_unary_expr): Likewise.
10082         (extract_range_from_comparison): Likewise.
10083         (extract_range_basic): Likewise.
10084         (adjust_range_with_scev): Likewise.
10085         (compare_ranges): Likewise.
10086         (compare_range_with_value): Likewise.
10087         (dump_value_range): Likewise.
10088         (test_for_singularity): Likewise, remove strict_overflow_p parameter
10089         never used.
10090         (simplify_cond_using_ranges): Adjust.
10092 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
10094         * brig-builtins.def: Added a builtin for class_f64.
10095         * builtin-types.def: Added a builtin type needed by class_f64.
10097 2017-05-03  Jason Merrill  <jason@redhat.com>
10099         * timevar.def: Add TV_CONSTEXPR.
10101 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
10103         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
10105 2017-05-03  Martin Jambor  <mjambor@suse.cz>
10107         * ipa-prop.c (ipa_update_after_lto_read): Removed.
10108         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
10109         * ipa-cp.c (ipcp_propagate_stage): Do not call
10110         ipa_update_after_lto_read.
10111         * ipa-inline.c (ipa_inline): Likewise.
10113 2017-05-03  Martin Jambor  <mjambor@suse.cz>
10115         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
10116         tag.  Added a default constructor and a destructor.
10117         (ipa_edge_args_sum_t): New class;
10118         (ipa_edge_args_sum): Declare.
10119         (ipa_edge_args_vector): Remove declaration.
10120         (IPA_EDGE_REF): Use ipa_edge_args_sum.
10121         (ipa_free_edge_args_substructures): Remove declaration.
10122         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
10123         (ipa_edge_args_info_available_for_edge_p): Likewise.
10124         * ipa-prop.c (ipa_edge_args_vector): Removed.
10125         (edge_removal_hook_holder): Likewise.
10126         (edge_duplication_hook_holder): Likewise.
10127         (ipa_edge_args_sum): New variable.
10128         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
10129         ipa_edge_args_vector.
10130         (ipa_free_edge_args_substructures): Likewise.
10131         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
10132         ipa_edge_args_vector.
10133         (ipa_edge_removal_hook): Turned into method
10134         ipa_edge_args_sum_t::remove.
10135         (ipa_edge_duplication_hook): Turned into method
10136         ipa_edge_args_sum_t::duplicate.
10137         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
10138         registering edge hooks.
10139         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
10140         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
10141         ipa_edge_args_sum instead of ipa_edge_args_vector.
10142         * ipa-profile.c (ipa_profile): Likewise.
10144 2017-05-03  Martin Jambor  <mjambor@suse.cz>
10146         * symbol-summary.h (function_summary): New method exists.
10147         (function_summary::symtab_removal): Deallocate through release.
10148         (call_summary): New class.
10149         (gt_ggc_mx): New overload.
10150         (gt_pch_nx): Likewise.
10151         (gt_pch_nx): Likewise.
10153 2017-05-03  Jeff Law  <law@redhat.com>
10155         PR tree-optimization/78496
10156         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
10157         from simplify_cond_using_ranges.  Split off code to walk
10158         backwards through casts into ...
10159         (simplify_cond_using_ranges_2): New function.
10160         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
10161         (execute_vrp): After identifying jump threads, call
10162         simplify_cond_using_ranges_2.
10164 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
10166         PR bootstrap/80609
10167         * ipa-inline.h (inline_summary): Add ctor.
10168         (create_ggc): Do not use ggc_cleared_alloc.
10170 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
10171             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10173         * gcc.c (handle_braces): Support escaping in switch matching
10174         text.
10175         * doc/invoke.texi (Spec Files): Document it.
10176         Remove superfluous @code markup in items.
10178 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
10180         * diagnostic-show-locus.c (struct column_range): New struct.
10181         (get_affected_columns): New function.
10182         (get_printed_columns): New function.
10183         (struct correction): New struct.
10184         (correction::ensure_capacity): New function.
10185         (correction::ensure_terminated): New function.
10186         (struct line_corrections): New struct.
10187         (line_corrections::~line_corrections): New dtor.
10188         (line_corrections::add_hint): New function.
10189         (layout::print_trailing_fixits): Reimplement in terms of the new
10190         classes.
10191         (selftest::test_overlapped_fixit_printing): New function.
10192         (selftest::diagnostic_show_locus_c_tests): Call it.
10194 2017-05-03  Nathan Sidwell  <nathan@acm.org>
10196         Canonicalize canonical type hashing
10197         * tree.h (type_hash_canon_hash): Declare.
10198         * tree.c (type_hash_list, attribute_hash_list): Move into
10199         type_hash_canon_hash.
10200         (build_type_attribute_qual_variant): Break out hash code calc into
10201         type_hash_canon_hash.
10202         (type_hash_canon_hash): New.  Generic type hash computation.
10203         (build_range_type_1, build_array_type_1, build_function_type,
10204         build_method_type_directly, build_offset_type, build_complex_type,
10205         make_vector_type): Call it.
10207 2017-05-03  Richard Biener  <rguenther@suse.de>
10209         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10210         When all DRs have unknown misaligned do not always peel
10211         when there is a store but apply the same costing model as if
10212         there were only loads.
10214 2017-05-03  Richard Biener  <rguenther@suse.de>
10216         Revert
10217         PR tree-optimization/80492
10218         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
10219         compare_base_decls returning dont-know properly.
10221 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10223         * config/arm/iterators.md (CCSI): New mode iterator.
10224         (arch): New mode attribute.
10225         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
10226         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
10227         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
10228         code iterator for success result mode.
10229         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
10230         the corresponding new insn generators.
10232 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
10234         Revert r247509
10235         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10236         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
10238 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
10240         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
10241         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
10242         (DDR_A): Wrap DDR argument in brackets.
10243         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
10244         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
10245         (DDR_REVERSED_P): Likewise.
10247 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
10249         PR tree-optimization/79472
10250         * tree-switch-conversion.c (struct switch_conv_info): Add
10251         contiguous_range and default_case_nonstandard fields.
10252         (collect_switch_conv_info): Compute contiguous_range and
10253         default_case_nonstandard fields, don't clear final_bb if
10254         contiguous_range and only the default case doesn't have the required
10255         structure.
10256         (check_all_empty_except_final): Set default_case_nonstandard instead
10257         of failing if contiguous_range and the default case doesn't have empty
10258         block.
10259         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
10260         and only the default case doesn't have the required constants.  Skip
10261         virtual phis.
10262         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
10263         if default_case_nonstandard.
10264         (build_constructors): Build constant 1 just once.  Assert that default
10265         values aren't inserted in between cases if contiguous_range.  Skip
10266         virtual phis.
10267         (build_arrays): Skip virtual phis.
10268         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
10269         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
10270         Handle virtual phis.
10271         (gen_inbound_check): Handle default_case_nonstandard case.
10272         (process_switch): Adjust check_final_bb caller.  Call
10273         gather_default_values with the first non-default case instead of
10274         default case if default_case_nonstandard.
10276 2017-05-02  Nathan Sidwell  <nathan@acm.org>
10278         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
10279         check.  Fix formatting.
10281 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
10283         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
10284         errors when comparing specialized and unspecialized times.
10286 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
10288         * diagnostic-show-locus.c
10289         (layout::should_print_annotation_line_p): Make private.
10290         (layout::print_annotation_line): Make private.
10291         (layout::annotation_line_showed_range_p): Make private.
10292         (layout::show_ruler): Make private.
10293         (layout::print_source_line): Make private.  Pass in line and
10294         line_width, rather than calling location_get_source_line.  Drop
10295         returned value.
10296         (layout::print_leading_fixits): New method.
10297         (layout::print_any_fixits): Rename to...
10298         (layout::print_trailing_fixits): ...this, and make private.
10299         Don't print newline fixits.
10300         (diagnostic_show_locus): Move logic for printing one row into...
10301         (layout::print_line): ...this new function.  Move the
10302         location_get_source_line call and error-handling from
10303         print_source_line to here.  Call print_leading_fixits, and rename
10304         print_any_fixits to print_trailing_fixits.
10305         (selftest::test_fixit_insert_containing_newline): Update now that
10306         newlines are partially supported.
10307         (selftest::test_fixit_insert_containing_newline_2): New test.
10308         (selftest::test_fixit_replace_containing_newline): Update comments.
10309         (selftest::diagnostic_show_locus_c_tests): Call the new test.
10310         * edit-context.c (class added_line): New class.
10311         (class edited_line): Describe newline handling in comment.
10312         (edited_line::actually_edited_p): New method.
10313         (edited_line::print_content): Delete redundant decl.
10314         (edited_line::m_predecessors): New field.
10315         (edited_file::print_content): Call edited_line::print_content.
10316         (edited_file::print_diff): Update to support newlines.
10317         (edited_file::print_diff_hunk): Likewise.
10318         (edited_file::print_run_of_changed_lines): New function.
10319         (edited_file::print_diff_line): Convert to...
10320         (print_diff_line): ...this.
10321         (edited_file::get_effective_line_count): New function.
10322         (edited_line::edited_line): Initialize new field m_predecessors.
10323         (edited_line::~edited_line): Clean up m_predecessors.
10324         (edited_line::apply_fixit): Handle newlines.
10325         (edited_line::get_effective_line_count): New function.
10326         (edited_line::print_content): New function.
10327         (edited_line::print_diff_lines): New function.
10328         (selftest::test_applying_fixits_insert_containing_newline): New
10329         test.
10330         (selftest::test_applying_fixits_replace_containing_newline): New
10331         test.
10332         (selftest::insert_line): New function.
10333         (selftest::test_applying_fixits_multiple_lines): Add example of
10334         inserting a line.
10335         (selftest::edit_context_c_tests): Call the new tests.
10337 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10339         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
10340         parameter cand.  Update dump information.
10341         (get_computation_cost): Update uses.
10343 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10345         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
10346         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
10347         (get_computation_at, rewrite_use_address): Update use of
10348         get_computation_aff.
10350 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10352         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
10353         (get_computation): Delete.
10354         (get_computation_cost): Implement like get_computation_cost_at.
10355         Use get_computation_at.
10356         (get_computation_cost_at): Delete.
10357         (rewrite_use_nonlinear_expr): Use get_computation_at.
10358         (rewrite_use_compare, remove_unused_ivs): Ditto.
10360 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10362         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
10364 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10366         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
10367         (ivopts_global_cost_for_size): Rename parameter and update uses.
10368         (iv_ca_recount_cost): Update uses.
10369         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
10370         candidates seperately in n_invs and n_cands.
10371         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
10373 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10375         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
10376         (find_inv_vars_cb): New.
10377         (find_depends): Renamed to ...
10378         (find_inv_vars): ... this.
10379         (add_candidate_1, force_var_cost): Call find_inv_vars.
10380         (split_address_cost, determine_group_iv_cost_cond): Ditto.
10382 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10384         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
10385         inv_vars.  Add inv_exprs.
10386         (struct iv_cand): Rename depends_on to inv_vars.
10387         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
10388         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
10389         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
10390         (dump_cand): Dump inv_vars.
10391         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
10392         (record_invariant, find_depends, add_candidate_1): Ditto.
10393         (set_group_iv_cost, force_var_cost): Ditto.
10394         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
10395         (get_computation_cost_at, get_computation_cost): Ditto.
10396         (determine_group_iv_cost_generic): Ditto.
10397         (determine_group_iv_cost_address): Ditto.
10398         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
10399         (determine_group_iv_costs): Ditto.
10400         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
10401         (iv_ca_set_remove_invariants): Renamed to ...
10402         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
10403         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
10404         (iv_ca_set_add_invariants):  Renamed to ...
10405         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
10406         (iv_ca_set_cp): Use iv_ca_set_add_invs.
10407         (iv_ca_has_deps): Support inv_vars and inv_exprs.
10408         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
10409         (create_new_ivs): Remove useless dump.
10411 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10413         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
10414         iv_cand code.
10415         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
10416         (iv_ca_set_no_cp, create_new_iv): Ditto.
10418 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
10420         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
10422 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
10424         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
10425         function tree_check2.
10427 2017-05-02  Martin Liska  <mliska@suse.cz>
10429         * doc/gcov.texi: Add missing preposition.
10430         * gcov.c (function_info::function_info): Properly fill up
10431         all member variables.
10433 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
10435         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
10437 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
10439         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
10441 2017-05-02  Martin Liska  <mliska@suse.cz>
10443         PR lto/77954.
10444         * lto-streamer-in.c (lto_read_tree_1): Remove
10445         LTO_STREAMER_DEBUG.
10446         * lto-streamer.c (struct tree_hash_entry): Likewise.
10447         (struct tree_entry_hasher): Likewise.
10448         (tree_entry_hasher::hash): Likewise.
10449         (tree_entry_hasher::equal): Likewise.
10450         (lto_streamer_init): Likewise.
10451         (lto_orig_address_map): Likewise.
10452         (lto_orig_address_get): Likewise.
10453         (lto_orig_address_remove): Likewise.
10454         * lto-streamer.h: Likewise.
10455         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
10456         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10458 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
10460         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
10461         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
10462         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
10463         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
10464         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
10465         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
10466         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
10467         (mm_maskz_sub_ss): New intrinsics.
10468         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
10469         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
10470         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
10471         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
10472         (__builtin_ia32_subss_mask_round): New builtins.
10473         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
10474         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
10475         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
10476         Renamed to ...
10477         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
10478         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
10479         Changed to ...
10480         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
10481         ... this.
10483 2017-05-02  Martin Jambor  <mjambor@suse.cz>
10485         PR tree-optimization/78687
10486         * tree-sra.c (access): New field parent.
10487         (process_subtree_disqualification): New function.
10488         (disqualify_candidate): Call it.
10489         (build_accesses_from_assign): Reset write flag if creating an
10490         assighnment link.
10491         (build_access_subtree): Fill in parent field and also prpagate
10492         down grp_write flag.
10493         (create_artificial_child_access): New parameter set_grp_write, set
10494         grp_write to its value.
10495         (propagate_subaccesses_across_link): Also propagate grp_write flag
10496         values.
10497         (propagate_all_subaccesses): Push the closest parent back to work
10498         queue if add_access_to_work_queue returned true.
10500 2017-05-02  Richard Biener  <rguenther@suse.de>
10502         * common.opt (fstrict-overflow): Alias negative to fwrapv.
10503         * doc/invoke.texi (fstrict-overflow): Remove all traces of
10504         -fstrict-overflow documentation.
10505         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
10506         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
10507         flag_strict_overflow.
10508         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
10509         * lto-opts.c (lto_write_options): Do not stream it.
10510         * lto-wrapper.c (merge_and_complain): Do not handle it.
10511         * opts.c (default_options_table): Do not set -fstrict-overflow.
10512         (finish_options): Likewise do not clear it when sanitizing.
10513         * simplify-rtx.c (simplify_const_relational_operation): Do not
10514         test flag_strict_overflow.
10516 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
10518         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
10519         using enabled attribute.
10520         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
10521         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
10522         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
10523         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
10524         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
10525         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
10526         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
10527         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
10528         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
10529         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
10531 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
10533         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
10535 2017-05-02  Richard Biener  <rguenther@suse.de>
10537         PR tree-optimization/80591
10538         Revert
10539         2017-04-10  Richard Biener  <rguenther@suse.de>
10541         * tree-ssa-structalias.c (find_func_aliases): Properly handle
10542         asm inputs.
10544 2017-05-02  Richard Biener  <rguenther@suse.de>
10546         PR tree-optimization/80549
10547         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
10548         (cleanup_tree_cfg_noloop): Create forwarders to known loop
10549         headers if they do not have a preheader.
10551 2017-05-02  Martin Liska  <mliska@suse.cz>
10553         PR other/80589
10554         * common.opt: Fix typo.
10555         * doc/invoke.texi: Likewise.
10557 2017-05-01  Jan Beulich  <jbeulich@suse.com>
10559         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
10560         swapping, add (x,x,m,x,n) alternative.
10562 2017-05-01  Nathan Sidwell  <nathan@acm.org>
10564         * calls.c (combine_pending_stack_adjustment_and_call): Remove
10565         unnecessary unadjusted_alignment check.
10567 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
10569         PR c++/80038
10570         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
10571         operations here.
10572         * gimplify.c (gimplify_cilk_detach): New function.
10573         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
10574         * tree-core.h: Document EXPR_CILK_SPAWN.
10575         * tree.h (EXPR_CILK_SPAWN): Define.
10577 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
10579         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
10580         to use new fixit_hint representation, using the "replace" logic.
10581         (get_line_span_for_fixit_hint): Likewise.
10582         (layout::print_any_fixits): Likewise.
10583         (selftest::test_one_liner_many_fixits): Rename to...
10584         (selftest::test_one_liner_many_fixits_1): ...this, and update
10585         comment and expected output to reflect that the multiple fix-it
10586         hints are now consolidated into one insertion.
10587         (selftest::test_one_liner_many_fixits_2): New test.
10588         (selftest::test_diagnostic_show_locus_one_liner): Update for
10589         above.
10590         (selftest::test_fixit_consolidation): Update for fix-it API
10591         change.
10592         * diagnostic.c (print_parseable_fixits): Likewise.
10593         * edit-context.c (edited_line::m_line_events): Convert from
10594         auto_vec <line_event *> to auto_vec <line_event>.
10595         (class line_event): Convert from abstract base class to a concrete
10596         class, taking over the role of replace_event.
10597         (class insert_event): Delete.
10598         (class replace_event): Rename to class line_event.  Convert to
10599         half-open range.
10600         (edit_context::add_fixits): Reimplement.
10601         (edit_context::apply_insert): Delete.
10602         (edit_context::apply_replace): Rename to...
10603         (edit_context::apply_fixit): ...this.  Convert to half-open range.
10604         (edited_file::apply_insert): Delete.
10605         (edited_file::apply_replace): Rename to...
10606         (edited_file::apply_fixit): ...this.
10607         (edited_line::~edited_line): Drop deletion of events.
10608         (edited_line::apply_insert): Delete.
10609         (edited_line::apply_replace): Rename to...
10610         (edited_line::apply_fixit): ...this.  Convert to half-open range.
10611         Update for change to type of m_line_events.
10612         * edit-context.h (edit_context::apply_insert): Delete.
10613         (edit_context::apply_replace): Rename to...
10614         (edit_context::apply_fixit): ...this.
10616 2017-05-01  Martin Sebor  <msebor@redhat.com>
10618         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
10619         known.
10621 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
10623         PR target/68491
10624         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
10625         __get_cpuid_max returns 0.
10626         (__get_cpuid_count): Ditto.
10628 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
10630         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
10631         replacement expression is another instance of one of its arguments.
10633 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
10635         PR target/79430
10636         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
10637         check for stack push/pop autoinc.
10638         * config/i386/i386.c (ix86_agi_dependent): Return false
10639         if the only reason why modified_in_p returned true is that
10640         addr is SP based and set_insn is a push or pop.
10642 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
10644         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
10645         overflow check.
10647 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
10649         PR ipa/79224
10650         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
10651         (account_size_time): Use two predicates - exec_pred and
10652         nonconst_pred_ptr.
10653         (evaluate_conditions_for_known_args): Compute both clause and
10654         nonspec_clause.
10655         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
10656         (inline_summary_t::duplicate): Update.
10657         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
10658         separately.
10659         (compute_inline_parameters): Likewise.
10660         (estimate_edge_size_and_time): Update caluclation of time.
10661         (estimate_node_size_and_time): Compute both time and nonspecialized
10662         time.
10663         (estimate_ipcp_clone_size_and_time): Update.
10664         (inline_merge_summary): Update.
10665         (do_estimate_edge_time): Update.
10666         (do_estimate_edge_size): Update.
10667         (do_estimate_edge_hints): Update.
10668         (inline_read_section, inline_write_summary): Stream both new predicates.
10669         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
10670         as argument.
10671         (compute_inlined_call_time): Cleanup.
10672         (big_speedup_p): Update.
10673         (edge_badness): Update.
10674         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
10675         (size_time_entry): Replace predicate by exec_predicate and
10676         nonconst_predicate.
10677         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
10678         (estimate_edge_time): Return also nonspec_time.
10679         (reset_edge_growth_cache): Update.
10681 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
10683         PR rtl-optimization/80491
10684         * ifcvt.c (noce_process_if_block): When looking for x setter
10685         with missing else_bb, don't check only the insn right before
10686         cond_earliest, but look for the last insn that x is modified in
10687         within the same bb.
10689         PR rtl-optimization/80491
10690         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
10692 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
10694         PR tree-optimization/80487
10695         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
10697 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10699         PR tree-optimization/79697
10700         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
10701         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
10702         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
10703         BUILT_IN_STRNDUP.
10704         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
10705         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
10707 2017-04-28  Martin Sebor  <msebor@redhat.com>
10709         PR tree-optimization/80523
10710         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
10711         (init_target_to_host_charmap, target_to_host, target_strtol10): New
10712         functions.
10713         (maybe_warn, format_directive, parse_directive): Use new functions.
10714         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
10716 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
10718         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
10720 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10722         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
10723         target_header_dir): Set correctly.
10724         * configure: Regenerated.
10725         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
10726         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
10727         instead of SYSTEM_HEADER_DIR.
10729 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
10731         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
10732         (estimate_local_effects): Likewise.
10733         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
10734         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
10735         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
10736         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
10737         do_estimate_edge_time, estimate_edge_time): Likewise.
10738         * ipa-inline-analysis.c (estimate_node_size_and_time,
10739         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
10740         (estimate_time_after_inlining): Remove.
10742 2017-04-28  Martin Liska  <mliska@suse.cz>
10744         * doc/gcov.texi: Enhance documentation of gcov.
10746 2017-04-28  Martin Liska  <mliska@suse.cz>
10748         * doc/gcov.texi: Sort options in alphabetic order.
10749         * doc/gcov-dump.texi: Likewise.
10750         * doc/gcov-tool.texi: Likewise.
10751         * gcov.c (print_usage): Likewise.
10752         * gcov-dump.c (print_usage): Likewise.
10753         * gcov-tool.c (print_merge_usage_message): Likewise.
10754         (print_rewrite_usage_message): Likewise.
10755         (print_overlap_usage_message): Likewise.
10757 2017-04-28  Martin Liska  <mliska@suse.cz>
10759         PR gcov-profile/53915
10760         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
10762 2017-04-28  Martin Liska  <mliska@suse.cz>
10764         PR gcov-profile/79891
10765         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
10766         is marked by compiler as living on a line.
10767         (get_cycles_count): Remove usage of the union.
10768         (output_intermediate_file): Likewise.
10769         (find_source): Fix GNU coding style.
10770         (accumulate_line_counts): Remove old non-all block mode.
10771         (output_lines): Remove usage of the union.
10772         * profile.c (output_location): Include all BBs, even if
10773         belonging to a same line (and file) as a previous BB.
10775 2017-04-28  Martin Liska  <mliska@suse.cz>
10777         * gcov.c (process_args): Handle new argument 'w'.
10778         (read_graph_file): Assign ID to BBs.
10779         (output_branch_count): Display BB # if verbose flag is set.
10780         (output_lines): Likewise for arcs.
10781         (print_usage): Add '--verbose' option help.
10782         * doc/gcov.texi: Document --verbose (-w) option.
10784 2017-04-28  Martin Liska  <mliska@suse.cz>
10786         * gcov.c (struct block_location_info): New struct.
10787         (process_file): Fill up the new structure.
10788         (read_graph_file): Replace usage of encoding by the newly added
10789         struct.
10790         (add_line_counts): Likewise.
10791         (accumulate_line_counts): Remove usage of the union.
10792         (function_info::function_info): New function.
10793         (function_info::~function_info): Likewise.
10794         (process_file): Call delete instead of release_function.
10795         (release_function): Release the function.
10796         (release_structures): Call delete instead of release_function.
10797         (solve_flow_graph): Replace usage of num_blocks.
10798         (find_exception_blocks): Likewise.
10799         (output_lines): Fix GNU coding style.
10801 2017-04-28  Martin Liska  <mliska@suse.cz>
10803         PR driver/56469
10804         * coverage.c (coverage_remove_note_file): New function.
10805         * coverage.h: Declare the function.
10806         * toplev.c (finalize): Clean if an error has been seen.
10808 2017-04-28  Martin Liska  <mliska@suse.cz>
10810         PR gcov-profile/80031
10811         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
10812         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
10813         * gcov.c (read_graph_file): Read just number of blocks.
10814         * profile.c (branch_prob): Do not stream 0 flags per a basic
10815         block.
10817 2017-04-28  Martin Liska  <mliska@suse.cz>
10819         * gcov-dump.c (tag_*): Add new argument to declarations.
10820         (dump_gcov_file): Likewise.
10821         (tag_blocks): Add and use new argument depth.
10822         (tag_arcs): Likewise.
10823         (tag_lines): Likewise.
10824         (tag_counters): Likewise.
10825         (tag_summary): Likewise.
10826         (dump_working_sets): Use depth to do a proper indentation.
10828 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
10830         PR bootstrap/80531
10831         * cgraph.h (symtab_node::debug_symtab): No longer inline.
10832         * symtab.c (symtab_node::debug_symtab): Move definition here.
10834 2017-04-28  Richard Biener  <rguenther@suse.de>
10836         * lto-streamer.h (LTO_major_version): Bump to 7.
10838 2017-04-28  Richard Biener  <rguenther@suse.de>
10840         * tree-vrp.c (assert_info): New struct.
10841         (add_assert_info): New helper.
10842         (register_edge_assert_for_2): Refactor to add asserts to a vector
10843         of assert_info.
10844         (register_edge_assert_for_1): Likewise.
10845         (register_edge_assert_for): Likewise.
10846         (finish_register_edge_assert_for): New helper actually registering
10847         asserts where live on edge.
10848         (find_conditional_asserts): Adjust.
10849         (find_switch_asserts): Likewise.
10850         (evrp_dom_walker::try_find_new_range): Generalize.
10851         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
10853 2017-04-27  Marek Polacek  <polacek@redhat.com>
10855         PR sanitizer/80349
10856         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
10857         arg10 and arg11 to itype.
10859 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
10861         * doc/extend.texi (Object Size Checking): Improve grammar.
10863 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
10865         PR target/80530
10866         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
10867         that the logic for permitting reciprocal estimates matches that
10868         in use_rsqrt_p.
10870 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
10872         PR c++/80534
10873         * tree.c (type_cache_hasher::equal): Only compare
10874         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
10875         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
10876         non-aggregate element types.
10877         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
10878         about the flag on ARRAY_TYPEs in the comment, formatting fix.
10880 2017-04-27  Richard Biener  <rguenther@suse.de>
10882         PR middle-end/80533
10883         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
10884         stripping ARRAY_REFs from MEM_EXPR make sure we're not
10885         keeping a reference to a trailing array.
10887 2017-04-27  Richard Biener  <rguenther@suse.de>
10889         PR middle-end/80539
10890         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
10891         being in loop-closed SSA form conservatively.
10892         (chrec_fold_multiply_poly_poly): Likewise.
10894 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
10896         PR middle-end/79665
10897         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
10898         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
10900 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
10902         PR target/77728
10903         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
10904         (aarch64_function_arg_alignment): Return unsigned int again, but still
10905         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
10906         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
10907         Don't emit -Wpsabi note.
10908         (aarch64_function_arg_boundary): Likewise.
10909         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
10910         caller.
10912 2017-04-26  Nathan Sidwell  <nathan@acm.org>
10914         * tree.h (crc32_unsigned_n): Declare.
10915         (crc32_unsigned, crc32_unsigned): Make inline.
10916         * tree.c (crc32_unsigned_bits): Replace with ...
10917         (crc32_unsigned_n): ... this.
10918         (crc32_unsigned, crc32_byte): Remove.
10919         (crc32_string): Remove unnecessary braces.
10921 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
10923         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
10924         * ipa-inline-analysis.c (MAX_TIME): Remove.
10925         (account_size_time): Use sreal for time.
10926         (dump_inline_summary): Update.
10927         (estimate_function_body_sizes): Update.
10928         (estimate_edge_size_and_time): Update.
10929         (estimate_calls_size_and_time): Update.
10930         (estimate_node_size_and_time): Update.
10931         (inline_merge_summary): Update.
10932         (inline_update_overall_summary): Update.
10933         (estimate_time_after_inlining): Update.
10934         (inline_read_section): Update.
10935         (inline_write_summary): Update.
10936         * ipa-inline.c (compute_uninlined_call_time): Update.
10937         (compute_inlined_call_time): Update.
10938         (recursive_inlining): Update.
10939         (inline_small_functions): Update.
10940         (dump_overall_stats): Update.
10941         * ipa-inline.h: Include sreal.h.
10942         (size_time_entry): Turn time to sreal.
10943         (inline_summary): Turn self_time nad time to sreal.
10945 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
10947         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
10948         data-streamer.h
10949         (sreal::stream_out, sreal::stream_in): New.
10950         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
10952 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
10954         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
10955         environment.
10957 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
10959         PR target/70799
10960         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
10961         Handle ASHIFTRT.
10962         (dimode_scalar_chain::compute_convert_gain): Ditto.
10963         (dimode_scalar_chain::make_vector_copies): Ditto.
10964         (dimode_scalar_chain::convert_reg): Ditto.
10965         (dimode_scalar_chain::convert_insn): Ditto.
10966         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
10967         (VI248_AVX512BW_1): New mode iterator.
10968         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
10969         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
10970         mode iterator.
10972 2017-04-25  Martin Sebor  <msebor@redhat.com>
10974         PR tree-optimization/80497
10975         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
10976         constants are representable in HOST_WIDE_INT.
10977         (parse_directive): Ditto.
10979 2017-04-25  Martin Sebor  <msebor@redhat.com>
10981         PR bootstrap/80486
10982         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
10983         (new_zero_array): Adjust signature.
10984         (dom_info::dom_init): Used unsigned rather that size_t.
10985         (dom_info::dom_info): Same.
10987 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10988             Jakub Jelinek  <jakub@redhat.com>
10990         PR target/77728
10991         * config/arm/arm.c: Include gimple.h.
10992         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
10993         returns negative, increment ncrn only if it returned positive.
10994         (arm_needs_doubleword_align): Return int instead of bool,
10995         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
10996         members, but if there is any such non-FIELD_DECL
10997         > PARM_BOUNDARY aligned decl, return -1 instead of false.
10998         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
10999         returns negative, increment nregs only if it returned positive.
11000         (arm_setup_incoming_varargs): Likewise.
11001         (arm_function_arg_boundary): Emit -Wpsabi note if
11002         arm_needs_doubleword_align returns negative, return
11003         DOUBLEWORD_ALIGNMENT only if it returned positive.
11005 2017-04-25  Marek Polacek  <polacek@redhat.com>
11007         PR sanitizer/80349
11008         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
11009         first argument to type.
11011 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11013         PR target/80482
11014         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
11015         type checks to test for compatibility instead of equality.
11017 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11018             Jakub Jelinek  <jakub@redhat.com>
11020         PR target/77728
11021         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
11022         type.
11023         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
11024         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
11025         the alignment computation, but return their maximum in warn_alignment.
11026         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
11027         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
11028         is smaller.
11029         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
11030         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
11031         caller.
11033 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11035         * config/arc/simdext.md (dmpyh): Fix typo.
11037 2017-04-25  Richard Biener  <rguenther@suse.de>
11039         PR tree-optimization/80492
11040         * alias.c (compare_base_decls): Handle registers with asm
11041         specification conservatively.
11042         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
11043         compare_base_decls returning dont-know properly.
11045 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11047         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
11048         (legitimate_offset_address_p): New function.
11049         (arc_legitimate_address_p): Use above function.
11051 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11053         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
11055 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11057         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
11058         ACCH registers whenever they are available.
11060 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11062         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
11063         double regs fix when not used.
11065 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11067         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
11068         core registers.
11069         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
11070         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
11072 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11074         * config/arc/arc.c (arc_output_addsi): Check for h-register class
11075         when emitting short ADD instructions.
11077 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
11079         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
11080         constraint.
11081         (cmpsi_cc_c_insn): Likewise.
11082         (cbranchsi4_scratch): Compute proper instruction length using
11083         compact_hreg_operand.
11084         * config/arc/predicates.md (compact_hreg_operand): New predicate.
11086 2017-04-25  Richard Biener  <rguenther@suse.de>
11088         PR middle-end/80509
11089         * passes.c (pass_manager::pass_manager): Initialize
11090         m_name_to_pass_map.
11092 2017-04-25  Richard Biener  <rguenther@suse.de>
11094         PR tree-optimization/79201
11095         * tree-ssa-sink.c (statement_sink_location): Handle calls.
11097 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11099         PR target/80464
11100         * config/s390/vector.md: Split MEM->GPR vector moves for
11101         non-s_operand addresses.
11103 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11105         PR target/79895
11106         * config/s390/predicates.md (reload_const_wide_int_operand): New
11107         predicate.
11108         * config/s390/s390.md ("movti"): Remove d/P alternative.
11109         ("movti_bigconst"): New pattern definition.
11111 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11113         PR target/80080
11114         * s390-protos.h (s390_expand_cs_hqi): Removed.
11115         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
11116         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
11117         modes as well as CCZ1mode and CCZmode.
11118         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
11119         signature of s390_emit_compare_and_swap.
11120         (s390_expand_cs_hqi): Likewise, make static.
11121         (s390_expand_cs_tdsi): Generate an explicit compare before trying
11122         compare-and-swap, in some cases.
11123         (s390_expand_cs): Wrapper function.
11124         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
11125         atomic_exchange.
11126         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
11127         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
11128         patterns for small and large integers.  Forbid symref memory operands.
11129         Move expander to s390.c.  Require cc register.
11130         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
11131         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
11132         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
11133         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
11134         symref memory operands.  Remove CC mode and call s390_match_ccmode
11135         instead.
11136         ("atomic_exchange<mode>"): Allow and implement all integer modes.
11138 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11140         * config/s390/s390.md (define_peephole2): New peephole to help
11141         combining the load-and-test pattern with volatile memory.
11143 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11145         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
11146         with CCZmode for TARGET_Z196.
11148 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
11150         PR rtl-optimization/80501
11151         * combine.c (make_compound_operation_int): Set subreg_code to SET
11152         even for AND with mask of the sign bit of mode.
11154         PR rtl-optimization/80500
11155         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
11156         sum's initial value.
11158 2017-04-25  Julian Brown  <julian@codesourcery.com>
11159             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
11161         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
11163 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
11165         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
11167 2017-04-25  Julian Brown  <julian@codesourcery.com>
11168             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
11170         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
11171         (thunderx2t99_sha): New Reservation.
11173 2017-04-25  Julian Brown  <julian@codesourcery.com>
11174             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
11176         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
11177         type for 1-element load.
11179 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
11181         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
11183 2017-04-24  Martin Jambor  <mjambor@suse.cz>
11185         PR tree-optimization/80293
11186         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
11187         char arrays not totally scalarizable if it is false.
11188         (analyze_all_variable_accesses): Pass correct value in the new
11189         parameter.  Add a statistics counter.
11191 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
11193         PR middle-end/79931
11194         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
11196 2017-04-24  Richard Biener  <rguenther@suse.de>
11198         PR tree-optimization/80494
11199         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
11200         out for complex types.
11202 2017-04-24  Richard Biener  <rguenther@suse.de>
11204         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
11205         * tree-ssa-sccvn.c (print_scc): Print SCC size.
11206         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
11207         (DFS): Adjust and never fail.
11208         (sccvn_dom_walker::fail): Remove.
11209         (sccvn_dom_walker::before_dom_children): Adjust.
11210         (run_scc_vn): Likewise and never fail.
11211         * tree-ssa-pre.c (pass_pre::execute): Adjust.
11212         (pass_fre::execute): Likewise.
11214 2017-04-24  Richard Biener  <rguenther@suse.de>
11216         PR tree-optimization/79725
11217         * tree-ssa-sink.c (statement_sink_location): Return whether
11218         failure reason was zero uses.  Move that check later.
11219         (sink_code_in_bb): Deal with zero uses by removing the stmt
11220         if possible.
11222 2017-04-24  Richard Biener  <rguenther@suse.de>
11224         PR c++/2972
11225         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
11226         pointer-based references.
11228 2017-04-24  Richard Biener  <rguenther@suse.de>
11230         PR bootstrap/79814
11231         * pass_manager.h (pass_manager::operator new): Remove.
11232         (pass_manager::operator delete): Likewise.
11233         * passes.c (pass_manager::operator new): Remove.
11234         (pass_manager::operator delete): Likewise.
11235         (pass_manager::pass_manager): Zero individual pass members.
11237 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
11239         PR target/70799
11240         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
11241         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
11242         Check "XEXP (src, 1)" operand here.
11243         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
11244         Check "XEXP (src, 1)" operand here.
11245         (dimode_scalar_chain::make_vector_copies): Detect count register
11246         of a shift instruction.  Zero extend count register from QImode
11247         to DImode to satisfy vector shift pattern count operand predicate.
11248         Substitute vector shift count operand with a DImode copy.
11249         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
11250         vector register.
11252 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
11254         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
11255         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
11256         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
11257         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
11258         (UNSPEC_NOREX_MEM): Remove definition.
11260 2017-04-21  Richard Biener  <rguenther@suse.de>
11262         PR tree-optimization/79547
11263         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11264         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
11265         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
11266         without any constraints.
11268 2017-04-21  Richard Biener  <rguenther@suse.de>
11270         PR tree-optimization/78847
11271         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
11273 2017-04-21  Richard Biener  <rguenther@suse.de>
11275         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
11276         (build_distinct_type_copy): Likewise.
11277         (build_variant_type_copy): Likewise.
11278         * tree.c (build_qualified_type): Pass down mem-stat info.
11279         (build_distinct_type_copy): Likewise.
11280         (build_variant_type_copy): Likewise.
11282 2017-04-21  Richard Biener  <rguenther@suse.de>
11284         PR tree-optimization/80237
11285         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
11286         defaulted to NULL.
11287         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
11288         for a simplified result.
11290 2016-04-21  Richard Biener  <rguenther@suse.de>
11292         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
11293         sth as strict as a simple_iv but a chrec without symbols and an
11294         operand defined in the loop we are peeling (and not some subloop).
11295         (propagate_constants_for_unrolling): Propagate all constants.
11297 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
11299         PR target/79804
11300         * config/i386/i386.c (print_reg): Remove assert for disalowed
11301         regno values, call output_operand_lossage instead.
11303 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
11305         PR target/78090
11306         * config/i386/constraints.md (Yc): New register constraint.
11307         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
11308         Use Yc constraint for alternative 2 of operand 0.  Remove
11309         preferred_for_speed attribute.
11311 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11313         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
11314         lastprivate clauses in SIMT case.
11316 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
11318         * doc/invoke.texi (-Wextra-semi): Document new warning option.
11320 2017-04-20  Richard Biener  <rguenther@suse.de>
11322         PR tree-optimization/57796
11323         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
11324         as N scalar stores.
11325         (vect_model_load_cost): Cost gathers as N scalar loads.
11327 2017-04-20  Richard Biener  <rguenther@suse.de>
11329         * ggc-page.c (ggc_allocated_p): Rename to ...
11330         (safe_lookup_page_table_entry): ... this and return the lookup
11331         result.
11332         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
11334 2017-04-20  Richard Biener  <rguenther@suse.de>
11336         PR tree-optimization/80453
11337         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
11338         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
11339         from the conditions.
11340         (vn_phi_eq): Pass them down.
11341         (vn_phi_lookup): Record them.
11342         (vn_phi_insert): Likewise.
11344 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
11346         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
11347         uninitialized variable warning to avoid buffer overrun.
11349 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11351         PR other/71250
11352         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
11353         is suppressed for '{ 0 }' in C.
11355 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
11357         * BASE-VER: Set to 8.0.0.
11359 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11361         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
11362         priority .init_array and .fini_array section with SECTION_NOTYPE
11363         flag.
11365 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
11367         PR middle-end/80423
11368         * tree.h (build_array_type): Add typeless_storage default argument.
11369         * tree.c (type_cache_hasher::equal): Also compare
11370         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
11371         (build_array_type): Add typeless_storage argument, set
11372         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
11373         recursive call.
11374         (build_nonshared_array_type): Adjust build_array_type_1 caller.
11375         (build_array_type): Likewise.  Add typeless_storage argument.
11377 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11378             Jakub Jelinek  <jakub@redhat.com>
11380         PR tree-optimization/80426
11381         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
11382         operation on symbolic operands, also compute the overflow for the
11383         invariant part when the operation degenerates into a negation.
11385 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
11387         PR debug/80461
11388         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
11389         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
11391         PR debug/80436
11392         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
11394 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
11396         PR target/80462
11397         * config/avr/avr.c (tree.h): Include it.
11398         (cgraph.h): Include it.
11399         (avr_encode_section_info): Don't warn for uninitialized progmem
11400         variable if it's just an alias.
11402 2017-04-19  Richard Biener  <rguenther@suse.de>
11404         PR ipa/65972
11405         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
11406         when needed by AutoPGO.
11408 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
11410         PR lto/50345
11411         * doc/lto.texi: Remove an extra 'that'.
11413 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
11415         PR rtl-optimization/80429
11416         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
11417         are only used in debug insns.
11419 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11420             Vladimir Makarov  <vmakarov@redhat.com>
11422         * config/sparc/predicates.md (input_operand): Add comment.  Return
11423         true for any memory operand when LRA is in progress.
11424         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
11426 2017-04-18  Jeff Law  <law@redhat.com>
11428         PR target/74563
11429         * mips.md ({return,simple_return}_internal): Do not overwrite
11430         operands[0].
11432 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
11434         PR tree-optimization/80443
11435         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
11436         instead of adding 1, subtract -1 and similarly instead of subtracting
11437         1 add -1.
11439 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
11441         PR rtl-optimization/80357
11442         * haifa-sched.c (tmp_bitmap): New variable.
11443         (model_recompute): Handle duplicate use records.
11444         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
11445         (free_global_sched_pressure_data): Free it.
11447 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11449         Revert:
11450         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11451         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
11452         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
11453         instead of SYSTEM_HEADER_DIR.
11455 2017-04-18  Jeff Law  <law@redhat.com>
11457         PR middle-end/80422
11458         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
11459         predecessors after walking up the insn chain.
11461 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
11463         PR debug/80263
11464         * dwarf2out.c (modified_type_die): Try harder not to emit internal
11465         sizetype type into debug info.
11467 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11469         PR target/80099
11470         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
11471         unneeded test for TARGET_UPPER_REGS_SF.
11472         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
11474 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
11476         PR sanitizer/80444
11477         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
11478         instead of gsi_after_labels.
11480 2017-04-18  Jeff Law  <law@redhat.com>
11482         * regcprop.c (maybe_mode_change): Avoid creating copies of the
11483         stack pointer.
11485         Revert:
11486         2017-04-13  Jeff Law  <law@redhat.com>
11487         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
11488         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
11490 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
11492         PR target/79453
11493         * config/avr/avr.c (intl.h): Include it.
11494         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
11496 2017-04-18  Martin Liska  <mliska@suse.cz>
11498         PR gcov-profile/78783
11499         * gcov-tool.c (gcov_output_files): Validate that destination
11500         file is either removed by the tool or by a user.
11502 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
11503             Guy Benyei  <guybe@mellanox.com>
11505         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
11506         block, and do not negate it, the stored id is already negative.
11508 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
11510         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
11512 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11514         PR target/80098
11515         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
11516         masks of options that should be turned off if the VSX vector
11517         options are turned off.
11518         (OTHER_P8_VECTOR_MASKS): Likewise.
11519         (OTHER_VSX_VECTOR_MASKS): Likewise.
11520         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
11521         rs6000_disable_incompatible_switches to validate no type switches
11522         like -mvsx.
11523         (rs6000_incompatible_switch): New function to disallow turning on
11524         other vector options if -mno-vsx, -mno-power8-vector, or
11525         -mno-power9-vector are specified.
11527 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
11529         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
11531 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
11533         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
11534         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
11535         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
11536         (ARG_POINTER_CFA_OFFSET): Likewise.
11538 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
11540         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
11541         conditions to take advantage of various optimizations.
11543 2017-04-13  Jeff Law  <law@redhat.com>
11545         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
11546         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
11547         (zero_extendsidi2_dext): Likewise.
11549 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11551         PR sanitizer/80403
11552         * fold-const.c (fold_ternary_loc): Revert
11553         use op0 instead of fold_convert_loc (loc, type, arg0) part of
11554         2017-04-12 change.
11556 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
11558         PR rtl-optimization/80343
11559         * lra-remat.c (update_scratch_ops): Assign original hard reg to
11560         new scratch pseudo.
11562 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
11564         PR sanitizer/80414
11565         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
11566         to ubsan_encode_value.
11568 2017-04-13  Jeff Law  <law@redhat.com>
11570         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
11571         appearing in DEBUG_INSNs.
11573 2017-04-13  Martin Liska  <mliska@suse.cz>
11575         PR gcov-profile/80413
11576         * gcov-io.c (gcov_write_string): Copy to buffer just when
11577         allocated size is greater than zero.
11579 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11581         PR debug/80321
11582         * dwarf2out.c (decls_for_scope): Ignore declarations of
11583         current_function_decl in BLOCK_NONLOCALIZED_VARS.
11585 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
11587         PR lto/69953
11588         * ipa-visibility.c (non_local_p): Fix typos.
11589         (localize_node): When localizing symbol in same comdat group,
11590         dissolve the group only when we know external symbols are going
11591         to be privatized.
11592         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
11594 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
11596         PR tree-optimization/79390
11597         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
11598         order does not result in usable sequence, retry with reversed operand
11599         order.
11601         PR sanitizer/80403
11602         PR sanitizer/80404
11603         PR sanitizer/80405
11604         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
11605         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
11606         op0 instead of fold_convert_loc (loc, type, arg0).
11608 2017-04-12  Jeff Law  <law@redhat.com>
11610         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
11611         has a delay slot in the generated code.
11613         * config/cris/cris.md (cris_preferred_reload_class): Return
11614         GENNONACR_REGS rather than GENERAL_REGS.
11616 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
11618         PR c/80163
11619         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
11620         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
11621         signedness of the result type.
11623 2017-04-12  Richard Biener  <rguenther@suse.de>
11624             Jeff Law  <law@redhat.com>
11626         PR tree-optimization/80359
11627         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
11628         trim stores to TARGET_MEM_REFs.
11630 2017-04-12  Richard Biener  <rguenther@suse.de>
11632         PR tree-optimization/79390
11633         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
11634         threading case even more.
11636 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
11638         PR target/80382
11639         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
11640         for quad_address_p for TImode, instead of just not indexed_address.
11642 2017-04-12  Richard Biener  <rguenther@suse.de>
11643             Bernd Edlinger  <bernd.edlinger@hotmail.de>
11645         PR middle-end/79671
11646         * alias.c (component_uses_parent_alias_set_from): Handle
11647         TYPE_TYPELESS_STORAGE.
11648         (get_alias_set): Likewise.
11649         * tree-core.h (tree_type_common): Add typeless_storage flag.
11650         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
11651         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
11652         for types containing members with TYPE_TYPELESS_STORAGE.
11653         (place_field): Likewise.
11654         (layout_type): Likewise for ARRAY_TYPE.
11655         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
11656         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
11657         TYPE_TYPELESS_STORAGE.
11658         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
11660 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
11662         PR sanitizer/80349
11663         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
11664         first argument to type.
11666 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11668         PR target/80376
11669         PR target/80315
11670         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11671         CONST0_RTX (mode) rather than const0_rtx where appropriate.
11672         (rs6000_expand_binop_builtin): Likewise.
11673         (rs6000_expand_ternop_builtin): Likewise; also add missing
11674         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
11675         vshasigma built-ins.
11676         * doc/extend.texi: Document that vec_xxpermdi's third argument
11677         must be a constant.
11679 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
11681         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
11682         Use shift_const cost parameter when calculating gain of STV shifts.
11684 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
11686         PR rtl-optimization/70478
11687         * lra-constraints.c (process_alt_operands): Check memory for
11688         disfavoring memory insn operand.
11690 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11692         PR middle-end/80100
11693         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
11694         left shift in unsigned HOST_WIDE_INT type.
11696         PR rtl-optimization/80385
11697         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
11698         (not (neg X)) into (plus X -1) for complex or non-integral modes.
11700         PR libgomp/80394
11701         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
11702         if they have any depend clauses.
11704 2017-04-11  Martin Liska  <mliska@suse.cz>
11706         PR ipa/80212
11707         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
11708         * ipa-split.c (split_function): Create a local comdat symbol
11709         if caller is in a comdat group.
11711 2017-04-11  Martin Liska  <mliska@suse.cz>
11713         PR ipa/80212
11714         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
11715         flags.
11717 2017-04-11  Martin Sebor  <msebor@redhat.com>
11719         PR middle-end/80364
11720         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
11721         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
11722         for INTEGER_TYPE.
11723         (directive::set_width, directive::set_precision, format_character):
11724         Adjust.
11725         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
11726         INTEGER_TYPE.
11728 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
11730         PR target/80389
11731         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
11732         conflict, set target->arch_name instead of target->cpu_name.
11734 2017-04-11  Richard Biener  <rguenther@suse.de>
11736         PR tree-optimization/80374
11737         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
11738         build_zero_cst, remove fold_convertible_p check again.
11740 2017-04-11  Martin Liska  <mliska@suse.cz>
11742         PR sanitizer/70878
11743         * ubsan.c (instrument_object_size): Do not instrument register
11744         variables.
11746 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11748         PR target/80381
11749         * config/i386/i386-builtin-types.def
11750         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
11751         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
11752         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
11753         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
11754         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
11755         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
11756         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
11757         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
11758         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
11759         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
11760         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
11761         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
11762         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
11763         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
11764         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
11765         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
11766         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
11767         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
11768         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
11769         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
11770         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
11771         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
11772         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
11773         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
11774         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
11775         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
11776         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
11777         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
11778         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
11779         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
11780         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
11781         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
11782         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
11783         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
11784         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
11785         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
11786         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
11787         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
11788         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
11789         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
11790         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
11791         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
11792         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
11793         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
11794         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
11795         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
11796         aliases.
11797         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
11798         flag to second_arg_count, handle 4 argument function type _COUNT
11799         aliases, handle second_arg_count on second argument rather than last.
11801 2017-04-10  Jeff Law  <law@redhat.com>
11803         PR tree-optimization/80374
11804         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
11805         record anything if we can not convert integer_zero_node to the
11806         desired type.
11808 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11810         PR target/80108
11811         * config/rs6000/rs6000.c (rs6000_option_override_internal):
11812         Enhance special handling given to the TARGET_P9_MINMAX option in
11813         relation to certain other options.
11815 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
11817         PR tree-optimization/80153
11818         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
11819         remove POINTER_PLUS_EXPR's base part directly, rather than through
11820         aff_tree.
11822 2017-04-10  Richard Biener  <rguenther@suse.de>
11823             Bin Cheng  <bin.cheng@arm.com>
11825         PR tree-optimization/80153
11826         * tree-affine.c (aff_combination_to_tree): Get base pointer from
11827         the first element of pointer type aff_tree.  Build result expr in
11828         aff_tree's type.
11829         (add_elt_to_tree): Convert to type unconditionally.  Remove other
11830         fold_convert calls.
11831         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
11832         (rewrite_use_nonlinear_expr): Check invariant using iv information.
11834 2017-04-10  Richard Biener  <rguenther@suse.de>
11836         * tree-ssa-structalias.c (find_func_aliases): Properly handle
11837         asm inputs.
11839 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
11841         PR rtl-optimization/70478
11842         * lra-constraints.c (curr_small_class_check): New.
11843         (update_and_check_small_class_inputs): New.
11844         (process_alt_operands): Update curr_small_class_check.  Disfavor
11845         alternative insn memory operands.  Check available regs for small
11846         class operands.
11848 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
11850         PR target/80057
11851         * config/mips/mips.opt (-mvirt): Update description.
11852         * doc/invoke.texi (-mvirt): Likewise.
11854 2017-04-10  Richard Biener  <rguenther@suse.de>
11856         PR middle-end/80362
11857         * fold-const.c (fold_binary_loc): Look at unstripped ops when
11858         looking for NEGATE_EXPR in -A / -B to A / B folding.
11860 2017-04-10  Martin Liska  <mliska@suse.cz>
11862         PR gcov-profile/80224
11863         * gcov.c (print_usage): Fix usage string.
11864         (get_gcov_intermediate_filename): Remove.
11865         (output_gcov_file): Use both for normal and intermediate format.
11866         (generate_results): Do not initialize special file for
11867         intermediate format.
11869 2017-04-10  Richard Biener  <rguenther@suse.de>
11871         PR tree-optimization/80304
11872         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
11873         for safelen.
11875 2017-04-10  Nathan Sidwell  <nathan@acm.org>
11877         PR target/79905
11878         * config/rs6000/rs6000.c (rs6000_vector_type): New.
11879         (rs6000_init_builtins): Use it.
11881 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11883         * config/arm/arm.md (<mrc>): Add mode to SET source.
11884         (<mrrc>): Likewise.
11886 2017-04-10  Richard Biener  <rguenther@suse.de>
11888         PR middle-end/80344
11889         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
11891 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
11893         PR target/80324
11894         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
11895         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
11896         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
11897         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
11898         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
11899         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
11900         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
11901         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
11902         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
11903         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
11904         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
11905         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
11906         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
11907         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
11908         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
11909         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
11910         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
11911         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
11912         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
11913         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
11914         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
11915         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
11916         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
11918 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
11920         PR rtl-optimization/70478
11921         * lra-constraints.c: Reverse the last patch.
11923 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
11925         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
11926         Add comment for WCHAR_T.
11928 2017-04-08  Martin Liska  <mliska@suse.cz>
11930         Revert:
11931         2017-04-07  Martin Liska  <mliska@suse.cz>
11933         PR ipa/80212
11934         * ipa-split.c (split_function): Add function part to a same comdat
11935         group.
11937 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11939         PR target/80358
11940         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
11942 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
11944         * rs6000/rs6000.c (vec_load_pendulum): Rename...
11945         (vec_pairing): ...to this.
11946         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
11947         (rs6000_sched_init): Adjust for name change.
11948         (struct rs6000_sched_context): Likewise.
11949         (rs6000_init_sched_context): Likewise.
11950         (rs6000_set_sched_context): Likewise.
11952 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
11954         PR target/80322
11955         PR target/80323
11956         PR target/80325
11957         PR target/80326
11958         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
11959         intrinsics.
11960         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
11961         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
11962         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
11964 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
11966         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
11968 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
11970         PR rtl-optimization/70703
11971         * ira-color.c (update_conflict_hard_regno_costs): Use
11972         int64_t instead of HOST_WIDE_INT.
11974 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
11976         PR rtl-optimization/70478
11977         * lra-constraints.c (process_alt_operands): Disfavor alternative
11978         insn memory operands.
11980 2017-04-07  Jeff Law  <law@redhat.com>
11982         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
11983         CALL and NOTE_INSN_CALL_ARG_LOCATION.
11985 2017-04-07  Martin Liska  <mliska@suse.cz>
11987         PR target/79889
11988         * config/aarch64/aarch64.c (aarch64_process_target_attr):
11989         Show error message instead of an ICE.
11991 2017-04-07  Martin Liska  <mliska@suse.cz>
11993         PR ipa/80212
11994         * ipa-split.c (split_function): Add function part to a same comdat
11995         group.
11997 2017-04-07  Richard Biener  <rguenther@suse.de>
11999         PR middle-end/80341
12000         * tree.c (get_unwidened): Also handle ! for_type case for
12001         INTEGER_CSTs.
12002         * convert.c (do_narrow): Split out from ...
12003         (convert_to_integer_1): ... here.  Do not pass final truncation
12004         type to get_unwidened for TRUNC_DIV_EXPR.
12006 2017-04-07  Richard Biener  <rguenther@suse.de>
12008         * tree-affine.c (wide_int_ext_for_comb): Take type rather
12009         than aff_tree.
12010         (aff_combination_const): Adjust.
12011         (aff_combination_scale): Likewise.
12012         (aff_combination_add_elt): Likewise.
12013         (aff_combination_add_cst): Likewise.
12014         (aff_combination_convert): Likewise.
12015         (add_elt_to_tree): Likewise.  Remove unused argument.
12016         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
12018 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12020         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
12021         definition.
12022         * config/arm/arm.c (arm_default_short_enums): Use
12023         ARM_DEFAULT_SHORT_ENUMS.
12024         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
12026 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
12028         PR debug/80234
12029         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
12030         members with redundant out-of-class redeclaration.
12032 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
12034         PR target/80286
12035         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
12036         * config/i386/i386.md (*zero_extendsidi2):
12037         Add (?*x,*x) and (?*v,*v) alternatives.
12039 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
12041         PR target/79733
12042         * config/i386/i386.c (ix86_expand_builtin)
12043         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
12044         mode from insn data. Convert operands to insn operand mode.
12045         Copy operands that don't satisfy insn predicate to a register.
12047 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
12049         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
12050         Update comments.
12052 2017-04-06  Richard Biener  <rguenther@suse.de>
12054         PR tree-optimization/80334
12055         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
12056         preserve alignment of accesses.
12058 2017-04-06  Richard Biener  <rguenther@suse.de>
12060         PR tree-optimization/80262
12061         * tree-sra.c (build_ref_for_offset): Preserve address-space
12062         information.
12063         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12064         Drop useless address-space information on MEM_REF offsets.
12066 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
12068         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
12070 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
12072         PR rtl-optimization/70703
12073         * ira-color.c (update_conflict_hard_regno_costs): Use
12074         HOST_WIDE_INT instead of long.
12076 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
12078         PR target/80298
12079         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
12080         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
12081         is not defined.
12082         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
12083         for x86_64 target.  Handle -m3dnowa option.
12085 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
12087         PR rtl-optimization/70703
12088         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
12089         (update_conflict_hard_regno_costs): Use long instead of unsigned
12090         arithmetic for cost calculation.
12092 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
12093             Bernd Edlinger  <bernd.edlinger@hotmail.de>
12095         PR sanitizer/80308
12096         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
12097         for big endian.
12099 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
12101         PR target/78002
12102         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
12103         ptr_mode with Pmode throughout.
12104         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
12105         into probe_stack_range and use DImode.
12107 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12109         PR target/79890
12110         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
12111         call_eh_return is true.
12113 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12115         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
12116         Initialize last_match_fntype_index.
12118 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
12120         PR target/80310
12121         * tree-nvr.c: Include internal-fn.h.
12122         (pass_return_slot::execute): Ignore internal calls without
12123         direct optab.
12125 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12126             Richard Biener  <rguenther@suse.de>
12128         PR c++/80297
12129         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
12130         captures used multiple times, except for the last use.
12131         * generic-match-head.c: Include gimplify.h.
12133 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12135         PR tree-optimization/79390
12136         * target.h (struct noce_if_info): Declare.
12137         * targhooks.h (default_noce_conversion_profitable_p): Declare.
12138         * target.def (noce_conversion_profitable_p): New target hook.
12139         * ifcvt.h (struct noce_if_info): New type, moved from ...
12140         * ifcvt.c (struct noce_if_info): ... here.
12141         (noce_conversion_profitable_p): Renamed to ...
12142         (default_noce_conversion_profitable_p): ... this.  No longer
12143         static nor inline.
12144         (noce_try_store_flag_constants, noce_try_addcc,
12145         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
12146         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
12147         instead of noce_conversion_profitable_p.
12148         * config/i386/i386.c: Include ifcvt.h.
12149         (ix86_option_override_internal): Don't override
12150         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
12151         (ix86_noce_conversion_profitable_p): New function.
12152         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
12153         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
12154         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
12155         * doc/tm.texi: Regenerated.
12157 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12159         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
12160         correction.
12162 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12164         PR target/80307
12165         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
12166         instructions for small multiply cores.
12168 2017-04-04  Jeff Law  <law@redhat.com>
12170         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
12171         added member.
12172         (mips_expand_vec_perm_const): Initialize elements in orig_perm
12173         that are not set by the loop over the elements.
12175 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12177         PR target/80286
12178         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
12179         int mode, convert_modes it to mode as unsigned, otherwise use
12180         lowpart_subreg to mode rather than SImode.
12181         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
12182         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
12183         Use DImode instead of SImode for the shift count operand.
12184         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
12185         Likewise.
12187 2017-04-04  Richard Biener  <rguenther@suse.de>
12189         PR middle-end/80281
12190         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
12191         arithmetic done for the negate or the plus.  Simplify.
12192         (A - (-B) -> A + B): Likewise.
12193         * fold-const.c (split_tree): Make sure to not negate pointers.
12195 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
12197         PR rtl-optimization/60818
12198         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
12199         a compare of comparisons with the thing compared if this results
12200         in a different machine mode.
12202 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
12204         * alias.c (base_alias_check): Fix typo in comment.
12205         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
12206         * cgraphunit.c (symbol_table::compile): Likewise.
12207         * collect2.c (maybe_run_lto_and_relink): Likewise.
12208         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
12209         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
12210         * config/avr/avr.c (avr_map_op_t): Likewise.
12211         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
12212         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
12213         * config/epiphany/epiphany.md (movcc): Likewise.
12214         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
12215         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
12216         Likewise.
12217         * config/mips/mips.c (mips_save_restore_reg): Likewise.
12218         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
12219         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
12220         * config/sh/sh.c (sh_rtx_costs): Likewise.
12221         * fold-const.c (fold_truth_andor): Likewise.
12222         * genautomata.c (collapse_flag): Likewise.
12223         * gengtype.h (struct type::u::s): Likewise.
12224         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
12225         * input.c (FORMAT_AMOUNT): Likewise.
12226         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
12227         (known_aggs_to_agg_replacement_list): Likewise.
12228         * ipa-inline-analysis.c: Likewise.
12229         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
12230         * ipa-polymorphic-call.c
12231         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
12232         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
12233         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
12234         Likewise.
12235         * modulo-sched.c (apply_reg_moves): Likewise.
12236         * omp-expand.c (build_omp_regions_1): Likewise.
12237         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
12238         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
12239         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
12240         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
12241         * value-prof.c: Likewise.
12242         * var-tracking.c (val_reset): Likewise.
12244 2017-04-03  Richard Biener  <rguenther@suse.de>
12246         PR tree-optimization/80275
12247         * fold-const.c (split_address_to_core_and_offset): Handle
12248         POINTER_PLUS_EXPR.
12250 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
12252         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
12253         descriptors is at least equal to that of functions.
12255 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
12257         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
12259 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
12261         PR target/80250
12262         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
12263         (mov<IMOD4:mode>): New expander.
12264         (*mov<IMOD4:mode>_internal): New insn and split pattern.
12266 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
12268         PR rtl-optimization/79405
12269         * fwprop.c (propagations_left): New variable.
12270         (forward_propagate_into): Decrement it.
12271         (fwprop_init): Initialize it.
12272         (fw_prop): If the variable has reached zero, stop propagating.
12273         (fwprop_addr): Ditto.
12275 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
12277         PR debug/79255
12278         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
12279         a FUNCTION_DECL, pass it as decl instead of origin to
12280         process_scope_var.
12282 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
12284         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
12285         string.
12287 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
12289         PR target/80107
12290         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
12291         TARGET_VSX_SMALL_INTEGER.
12293 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12295         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
12296         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
12298 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
12300         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
12301         extraction from odd-numbered MSA register.
12303 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
12305         PR middle-end/80173
12306         * expmed.c (store_bit_field_1): Don't attempt to create
12307         a word subreg out of hard registers wider than word if they
12308         have HARD_REGNO_NREGS of 1 for their mode.
12310         PR middle-end/80163
12311         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
12312         conversions to integer types wider than word and pointer.
12314         PR debug/80025
12315         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
12316         (rtx_equal_for_cselib_p): Pass 0 to it.
12317         * cselib.c (cselib_hasher::equal): Likewise.
12318         (rtx_equal_for_cselib_1): Add depth argument.  If depth
12319         is 128, don't look up VALUE locs and punt.  Increment
12320         depth in recursive calls when walking VALUE locs.
12322 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12324         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
12325         (make_gcov_file_name): Use the canonical path name for generating
12326         the MD5 value.
12327         (read_line): Fix handling of files with ascii null bytes.
12329 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
12331         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
12332         to initialise a vector register instead
12333         of using a const_int.
12335 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12337         PR translation/80189
12338         * gimplify.c (omp_default_clause): Use %qs instead of %s in
12339         diagnostic messages.
12341 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
12343         PR target/80246
12344         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
12345         (dfp_diex_<mode>): Update mode of operand 1.
12346         * doc/extend.texi (dxex, dxexq): Document change to return type.
12347         (diex, diexq): Document change to argument type.
12349 2017-03-30  Martin Jambor  <mjambor@suse.cz>
12351         PR ipa/77333
12352         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
12353         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
12354         it reflects the signature changes performed at the callee side.
12355         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
12356         to cgraph_build_function_type_skip_args.
12357         (build_function_decl_skip_args): Adjust call to the above function.
12359 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12361         PR target/80206
12362         * config/i386/sse.md
12363         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
12364         register as dest whenever it is a MEM not rtx_equal_p to the
12365         corresponding dup operand, and when forcing into reg move the
12366         reg into the memory afterwards.
12367         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
12368         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
12369         for the force_reg mode.
12370         (avx512vl_vextractf128<mode>): Use register as dest either
12371         always when a MEM, or when it is a MEM not rtx_equal_p to the
12372         corresponding dup operand, or even not when it is a CONST_VECTOR
12373         depending on the mode and lo vs. hi.
12374         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
12375         parens.
12376         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
12377         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
12378         Likewise.  Require that operands[2] is even.
12379         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
12380         Remove extraneous parens.  Require that operands[2] is a multiple
12381         of 4.
12382         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
12383         operands[0] is a MEM if <mask_applied>, the predicates/constraints
12384         disallow memory then.
12386 2017-03-30  Richard Biener  <rguenther@suse.de>
12388         PR tree-optimization/77498
12389         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
12390         to non-constants over backedges.
12392 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
12394         PR rtl-optimization/80233
12395         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
12396         as last_combined_insn.  Do not test for BARRIER_P separately.
12398 2017-03-29  Andreas Schwab  <schwab@suse.de>
12400         PR ada/80146
12401         * calls.c (prepare_call_address): Convert funexp to Pmode before
12402         copying to temp reg.
12404 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12406         PR tree-optimization/80158
12407         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
12408         Handle possible future case of more than one alternate
12409         interpretation.
12410         (replace_rhs_if_not_dup): Likewise.
12411         (replace_one_candidate): Likewise.
12413 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12415         PR rtl-optimization/80193
12416         * ira.c (ira): Do not check allocation for LRA.
12418 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
12420         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
12421         (nvptx_output_simt_exit): Declare.
12422         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
12423         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
12424         (init_softstack_frame): Move initialization of crtl->is_leaf to...
12425         (nvptx_declare_function_name): ...here.  Emit declaration of local
12426         memory space buffer for omp_simt_enter insn.
12427         (nvptx_output_unisimt_switch): New.
12428         (nvptx_output_softstack_switch): New.
12429         (nvptx_output_simt_enter): New.
12430         (nvptx_output_simt_exit): New.
12431         * config/nvptx/nvptx.h (struct machine_function): New fields
12432         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
12433         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
12434         (UNSPECV_SIMT_EXIT): Ditto.
12435         (omp_simt_enter_insn): New insn.
12436         (omp_simt_enter): New expansion.
12437         (omp_simt_exit): New insn.
12438         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
12440         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
12441         (expand_GOMP_SIMT_ENTER_ALLOC): New.
12442         (expand_GOMP_SIMT_EXIT): New.
12443         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
12444         (GOMP_SIMT_ENTER_ALLOC): Ditto.
12445         (GOMP_SIMT_EXIT): Ditto.
12446         * target-insns.def (omp_simt_enter): New insn.
12447         (omp_simt_exit): Ditto.
12448         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
12449         simt_dlist.
12450         (lower_rec_simd_input_clauses): Implement SIMT privatization.
12451         (lower_rec_input_clauses): Likewise.
12452         (lower_lastprivate_clauses): Handle SIMT privatization.
12454         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
12455         (ompdevlow_adjust_simt_enter): New.
12456         (find_simtpriv_var_op): New.
12457         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
12458         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
12460         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
12461         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
12462         (copy_decl_for_dup_finish): Ditto.
12464         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
12466 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
12468         PR target/53383
12469         * config/i386/i386.c (ix86_option_override_internal): Always
12470         allow -mpreferred-stack-boundary=3 for 64-bit targets.
12472 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
12474         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
12476 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
12478         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
12479         mark new edge's irreducible flag accordign to it.
12480         (vect_do_peeling): Check loop preheader edge's irreducible flag
12481         and pass it to function slpeel_add_loop_guard.
12483 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
12485         PR tree-optimization/80218
12486         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
12487         Update block frequencies and counts.
12489 2017-03-28  Richard Biener  <rguenther@suse.de>
12491         PR tree-optimization/78644
12492         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
12493         of a simplification result we may not use it at all.
12495 2017-03-28  Richard Biener  <rguenther@suse.de>
12497         PR ipa/80205
12498         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
12499         without arguments, generate default definition of a SSA name.
12501 2017-03-28  Richard Biener  <rguenther@suse.de>
12503         PR middle-end/80222
12504         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
12505         TYPE_REF_CAN_ALIAS_ALL references.
12506         * fold-const.c (fold_indirect_ref_1): Likewise.
12508 2017-03-28  Martin Liska  <mliska@suse.cz>
12510         PR ipa/80104
12511         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
12512         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
12514 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
12515             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
12517         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
12518         (EXTRA_SPECS): Define.
12519         (SUBTARGET_EXTRA_SPECS): Likewise.
12520         (SUBTARGET_CPP_SPEC): Likewise.
12521         * config/arc/elf.h (EXTRA_SPECS): Renamed to
12522         SUBTARGET_EXTRA_SPECS.
12523         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
12525 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
12527         * config/arc/simdext.md (vst64_insn): Update pattern.
12528         (vld32wh_insn): Likewise.
12529         (vld32wl_insn): Likewise.
12530         (vld64_insn): Likewise.
12531         (vld32_insn): Likewise.
12533 2017-03-28  Marek Polacek  <polacek@redhat.com>
12535         PR sanitizer/80067
12536         * fold-const.c (fold_comparison): Use protected_set_expr_location
12537         instead of SET_EXPR_LOCATION.
12539 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
12541         * tree.c (add_expr): Avoid name lookup warning.
12543 2017-03-27  Jeff Law  <law@redhat.com>
12545         PR tree-optimization/80216
12546         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
12547         function name.  Limit recursion depth.
12548         (record_temporary_equivalences): Corresponding changes.
12550 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
12552         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
12553         covered first.
12555 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
12557         PR target/80102
12558         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
12559         notes.
12560         * cfgcleanup.c (reg_note_cfa_p): New array.
12561         (insns_have_identical_cfa_notes): New function.
12562         (old_insns_match_p): Don't cross-jump in between /f
12563         and non-/f instructions.  If both i1 and i2 are frame related,
12564         verify all CFA notes, their order and content.
12566 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12568         PR target/78543
12569         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
12570         HImode and SImode with zero extend to DImode to one insn.
12571         (bswap<mode>2_extenddi): Likewise.
12572         (bswapsi2_extenddi): Likewise.
12573         (bswaphi2_extendsi): Likewise.
12574         (bswaphi2): Combine bswap HImode and SImode into one insn.
12575         Separate memory insns from swapping register.
12576         (bswapsi2): Likewise.
12577         (bswap<mode>2): Likewise.
12578         (bswaphi2_internal): Delete, no longer used.
12579         (bswapsi2_internal): Likewise.
12580         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
12581         store, and gpr<-gpr swap insns.
12582         (bswap<mode>2_store): Likewise.
12583         (bswaphi2_reg): Register only splitter, combine with the splitter.
12584         (bswaphi2 splitter): Likewise.
12585         (bswapsi2_reg): Likewise.
12586         (bswapsi2 splitter): Likewise.
12587         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
12588         the insns into load, store, and register/register insns.
12589         (bswapdi2_ldbrx): Likewise.
12590         (bswapdi2_load): Likewise.
12591         (bswapdi2_store): Likewise.
12592         (bswapdi2_reg): Likewise.
12594 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
12596         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
12597         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
12599 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12601         PR target/80103
12602         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
12603         add comments.
12604         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12605         special handling for target option conflicts between dform
12606         options (-mpower9-dform, -mpower9-dform-vector,
12607         -mpower9-dform-scalar) and -mno-direct-move.
12609 2017-03-27  Richard Biener  <rguenther@suse.de>
12611         PR tree-optimization/80181
12612         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
12614 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
12616         * config/arc/predicates.md (move_double_src_operand): Replace the
12617         call to move_double_src_operand with a call to address_operand.
12619 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
12621         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
12622         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
12623         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
12625 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
12627         * config/arc/predicates.md (long_immediate_loadstore_operand):
12628         Consider scaled addresses cases.
12630 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
12632         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
12633         restored when in interrupt.
12634         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
12635         doesn't have delay slot.
12637 2017-03-27  Richard Biener  <rguenther@suse.de>
12639         PR ipa/79776
12640         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
12641         inlined thunk clones.
12643 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
12645         PR sanitizer/80168
12646         * asan.c (instrument_derefs): Copy over last operand from
12647         original COMPONENT_REF to the new COMPONENT_REF with
12648         DECL_BIT_FIELD_REPRESENTATIVE.
12649         * ubsan.c (instrument_object_size): Likewise.
12651 2017-03-27  Richard Biener  <rguenther@suse.de>
12653         PR tree-optimization/80170
12654         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
12655         sure DR/SCEV didnt fold in constants we do not see when looking
12656         at the reference base alignment.
12658 2017-03-27  Richard Biener  <rguenther@suse.de>
12660         PR middle-end/80171
12661         * gimple-fold.c (fold_ctor_reference): Properly guard against
12662         NULL return value from canonicalize_constructor_val.
12664 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
12666         PR target/80180
12667         * config/i386/i386.c (ix86_expand_builtin)
12668         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
12669         flags reg setting and flags reg using instructions.
12670         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
12671         clobbering instructions to zero extend op2.
12673 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
12675         * doc/install.texi (Configuration) <--with-aix-soname>:
12676         Update link to AIX ld.
12678 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
12680         PR rtl-optimization/80160
12681         PR rtl-optimization/80159
12682         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
12683         reg_alternate_class into account.
12685 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
12687         PR target/80148
12688         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
12689         to consider in curr_insn_transform.
12691 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
12693         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
12694         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
12695         and emit_mode_inner.
12697 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12699         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
12700         argument to the overloaded builtin variants.  Use the new flag to
12701         deprecate certain builtin variants.
12702         * config/s390/s390-builtin-types.def: Add new builtin types.
12703         * config/s390/s390-builtins.h: Support new flags field for
12704         overloaded builtins.
12705         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
12706         (s390_macro_to_expand): Enable vector float data type.
12707         (s390_cpu_cpp_builtins_internal): Indicate support of the new
12708         builtins by incrementing the __VEC__ version number.
12709         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
12710         vec_xst.
12711         (s390_resolve_overloaded_builtin): Emit error messages depending
12712         on the builtin flags.
12713         * config/s390/s390.c (s390_expand_builtin): Support additional
12714         flags argument.  Change error message to match the messages
12715         emitted in s390-c.c.
12716         * config/s390/s390.md: New UNSPEC_* constants.
12717         (op_type): Add new instruction types.
12718         * config/s390/vecintrin.h: Add new builtins and test data class
12719         constants.
12720         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
12721         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
12722         (VEC_INEXACT, VEC_NOINEXACT): New constants.
12723         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
12724         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
12725         ("vec_mergel<mode>"): V_HW -> VEC_HW.
12727         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
12728         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
12729         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
12730         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
12732         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
12733         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
12734         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
12735         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
12737         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
12738         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
12739         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
12740         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
12741         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
12742         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
12743         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
12745         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
12746         ("vec_scatter_element<V_HW_4:mode>_DI")
12747         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
12748         ("vec_fpint<mode>", "vflls")
12749         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
12750         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
12751         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
12752         ("*vec_cmphe<mode>_cc"): ... these.
12754         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
12755         mode constant instead of magic value.
12757 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12759         * config/s390/s390.c (s390_expand_vec_compare): Support other
12760         vector floating point modes than just V2DF.
12761         (s390_expand_vcond): Likewise.
12762         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
12763         (s390_cannot_change_mode_class): Prevent mode changes between TF
12764         and V1TF in vector registers.
12765         * config/s390/s390.md (DF, SF): New mode attributes.
12766         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
12767         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
12768         SFmode support for VRs.
12769         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
12770         vector fp modes.
12771         (VFT, VF_HW): New mode iterators.
12772         (vw, sdx): New mode attributes.
12773         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
12774         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
12775         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
12776         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
12777         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
12778         also the new vector floating point modes.  Renaming to ...
12780         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
12781         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
12782         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
12783         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
12784         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
12785         ("vec_unordered<mode>"): ... these.
12787         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
12788         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
12789         ("*vec_extendv2df"): New insn definitions.
12791 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12793         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
12794         ("mulditi3_2", "*muldi3_sign"): New patterns.
12795         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
12796         rename the pattern definition.
12798 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12800         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
12801         expander.
12802         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
12804 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12806         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
12807         instruction if possible.
12808         * config/s390/vector.md (vec_halfnumelts): New mode
12809         attribute.
12810         ("*vec_vllezlf<mode>"): New pattern.
12812 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12814         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
12815         ("popcountv4si2", "popcountv2di2"): Rename to ...
12816         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
12817         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
12818         condition.
12819         ("popcount<mode>2_vxe"): New pattern.
12821 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12823         * common/config/s390/s390-common.c (processor_flags_table): Add
12824         arch12.
12825         * config.gcc: Add arch12.
12826         * config/s390/driver-native.c (s390_host_detect_local_cpu):
12827         Default to arch12 for unknown CPU model numbers.
12828         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
12829         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
12830         PROCESSOR_max sanity check.
12831         * config/s390/s390-opts.h (enum processor_type): Add
12832         PROCESSOR_ARCH12.
12833         * config/s390/s390.c (processor_table): Add arch12.
12834         (s390_expand_builtin): Add check for B_VXE flag.
12835         (s390_issue_rate): Add PROCESSOR_ARCH12.
12836         (s390_get_sched_attrmask): Likewise.
12837         (s390_get_unit_mask): Likewise.
12838         (s390_sched_score): Enable z13 scheduling for arch12.
12839         (s390_sched_reorder): Likewise.
12840         (s390_sched_variable_issue): Likewise.
12841         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
12842         PF_VXE.
12843         (s390_tune_attr): Use z13 scheduling also for arch12.
12844         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
12845         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
12846         (TARGET_VXE_P): New macros.
12847         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
12848         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
12849         * config/s390/s390.opt: Add arch12 as processor_type.
12851 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12853         * config/s390/s390.md
12854         ("fixuns_truncdddi2", "fixuns_trunctddi2")
12855         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
12856         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
12858         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
12859         Rename expanders to ...
12861         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
12862         ("fixuns_truncdddi2_emu"): ... these.
12864         ("fixuns_trunc<mode>si2_emu"): New expander.
12866         ("*fixuns_truncdfdi2_z13"): Rename to ...
12867         ("*fixuns_truncdfdi2_vx"): ... this.
12869 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12871         * config/s390/2964.md: Remove the single element vector compare
12872         instructions which are no longer used.
12873         * config/s390/s390.c (s390_select_ccmode): Remove handling of
12874         vector CCmodes.
12875         (s390_canonicalize_comparison): Remove handling of DFmode
12876         compares.
12877         (s390_expand_vec_compare_scalar): Remove function.
12878         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
12879         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
12880         pattern.
12881         ("*cmp<mode>_ccs"): Add wfcdb instruction.
12883 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12885         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
12886         FP zero.
12887         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
12888         will anyway by matched by mov<mode>_64dfp.
12890 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12892         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
12893         vlef/vstef.  Add missing operand to vleif.
12895 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12897         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
12898         pair for all vector types with 64 bit elements.
12899         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
12900         * config/s390/vector.md (V_HW_64): ... here.
12901         (V_128_NOSINGLE): New mode iterator.
12902         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
12903         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
12904         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
12905         ("*vec_load_pairv2di"): Change to ...
12906         ("*vec_load_pair<mode>"): ... this one.
12908 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12910         * config/s390/constraints.md: Add comments.
12911         (jKK): Reject element sizes > 8 bytes.
12912         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
12913         s_operands.
12914         * config/s390/s390.md: Add the s_operand checks formerly in
12915         s390_split_ok_p to various splitters where they are still
12916         required.
12917         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
12918         for 128 bit vectors.  Plus two splitters.
12920 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12922         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
12923         the file.
12925 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12927         PR target/79893
12928         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
12929         error if the boundary argument is not constant.
12931 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
12933         PR rtl-optimization/80112
12934         * loop-doloop.c (doloop_condition_get): Don't check condition
12935         if cmp isn't SET with IF_THEN_ELSE src.
12937 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12939         PR tree-optimization/80158
12940         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
12941         replacing a candidate statement, also replace it for the
12942         candidate's alternate interpretation.
12943         (replace_rhs_if_not_dup): Likewise.
12944         (replace_one_candidate): Likewise.
12946 2017-03-24  Richard Biener  <rguenther@suse.de>
12948         PR tree-optimization/80167
12949         * graphite-isl-ast-to-gimple.c
12950         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
12951         properly.
12952         (translate_isl_ast_to_gimple::get_rename): Likewise.
12954 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12956         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
12957         handling of certain combinations of target options, including the
12958         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
12959         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
12961 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12963         PR target/71436
12964         * config/arm/arm.md (*load_multiple): Add reload_completed to
12965         matching condition.
12967 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12968             Richard Biener  <rguenth@suse.de>
12970         PR tree-optimization/79908
12971         PR tree-optimization/80136
12972         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
12973         been cast away, gimplify_and_add suffices.
12975 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
12977         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
12979 2017-03-23  Richard Biener  <rguenther@suse.de>
12981         PR tree-optimization/80032
12982         * gimplify.c (gimple_push_cleanup): Forced unconditional
12983         cleanups still have to go to the conditional_cleanups
12984         sequence.
12986 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
12988         PR tree-optimization/80072
12989         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
12990         to unsigned int.
12991         (next_operand_entry_id): Change type to unsigned int.
12992         (sort_by_operand_rank): Make sure to return the right return value
12993         even if unsigned fields are bigger than INT_MAX.
12994         (struct oecount): Change cnt and id type to unsigned int.
12995         (oecount_hasher::equal): Formatting fix.
12996         (oecount_cmp): Make sure to return the right return value
12997         even if unsigned fields are bigger than INT_MAX.
12998         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
13000         PR c++/80129
13001         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
13002         TREE_READONLY on result if writing it more than once.
13004         PR sanitizer/80110
13005         * doc/invoke.texi (-fsanitize=thread): Document that with
13006         -fnon-call-exceptions atomics are not able to throw
13007         exceptions.
13009         PR sanitizer/80110
13010         * tsan.c: Include tree-eh.h.
13011         (instrument_builtin_call): Call maybe_clean_eh_stmt or
13012         maybe_clean_or_replace_eh_stmt where needed.
13013         (instrument_memory_accesses): Add cfg_changed argument.
13014         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
13015         if it returned true.
13016         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
13018         PR rtl-optimization/63191
13019         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
13020         wrapper function, moved the whole old content into ...
13021         (ix86_delegitimize_address_1): ... this.  New inline function.
13022         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
13023         true as last argument instead of ix86_delegitimize_address.
13025 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
13027         * config/aarch64/aarch64.c (generic_branch_cost): Copy
13028         cortexa57_branch_cost.
13030 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
13032         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
13034 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13036         PR target/80123
13037         * doc/md.texi (Constraints): Document wA constraint.
13038         * config/rs6000/constraints.md (wA): New.
13039         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
13040         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
13041         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
13042         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
13044 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
13046         PR c++/80029
13047         * gimplify.c (is_oacc_declared): New function.
13048         (oacc_default_clause): Use it to set default flags for acc declared
13049         variables inside parallel regions.
13050         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
13051         declared variables.
13052         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
13053         declare attribute to any decl as necessary.
13055 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13057         PR target/80082
13058         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
13059         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
13060         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
13061         (arm_arch_lpae): This.
13062         * config/arm/arm.c (arm_arch7ve): Rename into ...
13063         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
13064         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
13065         arm_arch_lpae.
13067 2017-03-22  Martin Liska  <mliska@suse.cz>
13069         PR target/79906
13070         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
13071         error message instead of an ICE.
13073 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13075         * doc/extend.texi (6.11 Additional Floating Types): Revise.
13077 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13079         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
13080         comments.
13081         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13082         comments.
13084 2017-03-21  Martin Sebor  <msebor@redhat.com>
13086         * doc/extend.texi: Use "cannot" instead of "can't."
13087         * doc/hostconfig.texi: Same.
13088         * doc/install.texi: Same.
13089         * doc/invoke.texi: Same.
13090         * doc/loop.texi: Same.
13091         * doc/md.texi: Same.
13092         * doc/objc.texi: Same.
13093         * doc/rtl.texi: Same.
13094         * doc/tm.texi: Same.
13095         * doc/tm.texi.in: Same.
13096         * doc/trouble.texi: Same.
13098 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
13100         PR debug/63238
13101         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
13102         (collect_checksum_attributes): Set it.
13103         (die_checksum_ordered): Use it.
13105 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13107         PR tree-optimization/79908
13108         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
13109         change: For a VA_ARG whose LHS has been cast away, use
13110         force_gimple_operand to construct the side effects.
13112 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
13114         PR translation/80001
13115         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
13116         more amenable to translation.
13117         (oacc_loop_auto_partitions): Likewise.
13119 2017-03-21  Marek Polacek  <polacek@redhat.com>
13120             Martin Sebor  <msebor@redhat.com>
13122         PR tree-optimization/80109
13123         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
13124         on INTEGRAL_TYPE_P.
13126 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
13127             Segher Boessenkool  <segher@kernel.crashing.org>
13129         PR target/80125
13130         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
13131         check reg_used_between_p between insn and one of succ or succ2
13132         depending on if succ is artificial insn not inserted into insn
13133         stream.
13135 2017-03-21  Martin Liska  <mliska@suse.cz>
13137         PR gcov-profile/80081
13138         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
13139         * doc/gcc.texi: Include gcov-dump stuff.
13140         * doc/gcov-dump.texi: New file.
13142 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
13144         PR rtl-optimization/79150
13145         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
13146         conditional jump, if the jump is the last insn of the loop.
13148 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13149             Richard Biener  <rguenth@suse.de>
13151         PR tree-optimization/79908
13152         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
13153         been cast away, use force_gimple_operand to construct the side
13154         effects.
13156 2017-03-21  Martin Liska  <mliska@suse.cz>
13158         PR libfortran/79956
13159         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
13160         to NULL.
13162 2017-03-21  Brad Spengler <spender@grsecurity.net>
13164         PR plugins/80094
13165         * plugin.c (htab_hash_plugin): New function.
13166         (add_new_plugin): Use it and adjust.
13167         (parse_plugin_arg_opt): Adjust.
13168         (init_one_plugin): Likewise.
13170 2017-03-21  Richard Biener  <rguenther@suse.de>
13172         PR tree-optimization/80032
13173         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
13174         if set force the cleanup to happen unconditionally.
13175         (gimplify_target_expr): Push inserted clobbers with force_uncond
13176         to avoid them being removed by control-dependent DCE.
13178 2017-03-21  Richard Biener  <rguenther@suse.de>
13180         PR tree-optimization/80122
13181         * tree-inline.c (copy_bb): Do not expans va-arg packs or
13182         va_arg_pack_len when the inlined call stmt requires pack
13183         expansion itself.
13184         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
13186 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
13188         PR sanitizer/78158
13189         * tsan.c (instrument_builtin_call): If the memory model argument
13190         is not a constant, assume it is valid.
13192         PR c/67338
13193         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
13194         avoid UB.
13196 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
13198         PR rtl-optimization/79910
13199         * combine.c (can_combine_p): Do not allow combining an I0 or I1
13200         if its dest is used by an insn before I2 (other than the combined
13201         insns themselves, which are properly handled already).
13203 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
13205         Revert:
13206         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
13208         * combine.c (record_used_regs): New static function.
13209         (try_combine): Handle situations where there is an additional
13210         instruction between I2 and I3 which needs to have a LOG_LINK
13211         updated.
13213         Revert:
13214         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
13216         * combine.c (try_combine): Delete redundant i1 test.  Call
13217         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
13219 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13221         PR target/80083
13222         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
13223         alternatives 13/14.
13225 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13227         PR tree-optimization/80054
13228         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
13229         the optimization if a PHI or any of its arguments is not dominated
13230         by the candidate's basis.  Use gphi* rather than gimple* as
13231         appropriate.
13232         (replace_profitable_candidates): Clean up a gimple* variable that
13233         should be a gphi* variable.
13235 2017-03-20  Martin Sebor  <msebor@redhat.com>
13237         PR c++/52477
13238         * doc/extend.texi (attribute constructor): Document present limitation.
13240 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13242         PR target/79963
13243         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
13244         __POWER9_VECTOR__ #ifdef control, change template definition to
13245         use Power9-specific built-in function.
13246         (vec_any_eq): Likewise.
13247         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
13248         to control outcomes from this test.
13249         (vector_ae_<mode>p): For VEC_F modes, likewise.
13251 2017-03-20  Ian Lance Taylor  <iant@google.com>
13253         * config/i386/i386.c (ix86_function_regparm): Save an extra
13254         register for -fsplit-stack with DECL_STATIC_CHAIN.
13256 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
13258         PR target/79912
13259         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
13260         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
13262 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
13264         * config/riscv/riscv.c (riscv_print_operand): Use "fence
13265         iorw,ow".
13266         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
13267         iorw,iorw".
13269 2017-03-20  Marek Polacek  <polacek@redhat.com>
13271         PR sanitizer/80063
13272         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
13274 2017-03-20  Richard Biener  <rguenther@suse.de>
13276         PR tree-optimization/80113
13277         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
13278         allocate extra SSA name for PHI def.
13279         (add_close_phis_to_outer_loops): Likewise.
13280         (add_close_phis_to_merge_points): Likewise.
13281         (copy_loop_close_phi_args): Likewise.
13282         (copy_cond_phi_nodes): Likewise.
13284 2017-03-20  Martin Liska  <mliska@suse.cz>
13286         PR middle-end/79753
13287         * tree-chkp.c (chkp_build_returned_bound): Do not build
13288         returned bounds for a LHS that's not a BOUNDED_P type.
13290 2017-03-20  Martin Liska  <mliska@suse.cz>
13292         PR target/79769
13293         PR target/79770
13294         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
13295         COMPLEX_CST and VECTOR_CST.
13297 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13299         PR target/78857
13300         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
13301         target operand.  A new splitter adds the clobber statement in case
13302         the target operand is dead anyway.
13304 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
13306         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
13307         to age-old versions of binutils and glibc.
13309 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
13311         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
13313 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
13315         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
13317 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
13319         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
13320         requirement for binutils 2.13.
13322 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
13324         * combine.c (try_combine): Delete redundant i1 test.  Call
13325         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
13327 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
13329         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
13330         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
13331         contents.
13332         <riscv64-*-elf>: Re-arrange section
13333         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
13334         <riscv32-*-linux>: Likewise.
13335         <riscv64-*-elf>: Likewise
13336         <riscv64-*-linux>: Likewise.
13338 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
13340         PR target/80052
13341         * aarch64.opt(verbose-cost-dump): Fix typo.
13343 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
13345         PR target/79951
13346         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
13347         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
13349 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
13351         * reload.c (find_reloads): When reloading a nonoffsettable address,
13352         use RELOAD_OTHER for it and its address reloads.
13354         PR rtl-optimization/79910
13355         * combine.c (record_used_regs): New static function.
13356         (try_combine): Handle situations where there is an additional
13357         instruction between I2 and I3 which needs to have a LOG_LINK
13358         updated.
13360 2017-03-17  Jeff Law  <law@redhat.com>
13362         PR tree-optimization/71437
13363         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
13364         conditional in the hash table first.
13365         (vrp_dom_walker::before_dom_children): Extract condition from
13366         ASSERT_EXPR.  Record condition, its inverion and any implied
13367         conditions as well.
13369 2017-03-17  Marek Polacek  <polacek@redhat.com>
13370             Markus Trippelsdorf  <markus@trippelsdorf.de>
13372         PR tree-optimization/80079
13373         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
13374         m_stores_head.
13376 2017-03-17  Richard Biener  <rguenther@suse.de>
13378         PR middle-end/80075
13379         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
13380         Properly verify the LHS before the RHS possibly claims to be
13381         handled.
13382         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
13383         do not throw.
13385 2017-03-17  Martin Jambor  <mjambor@suse.cz>
13387         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
13388         (List of -O2 options): Likewise.
13389         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
13390         (-fipa-vrp) New.
13392 2017-03-17  Tom de Vries  <tom@codesourcery.com>
13394         * gcov-dump.c (print_usage): Print bug_report_url.
13396 2017-03-17  Richard Biener  <rguenther@suse.de>
13398         PR middle-end/80050
13399         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
13400         (parser::peek): Likewise.
13402 2017-03-17  Richard Biener  <rguenther@suse.de>
13404         PR tree-optimization/80048
13405         * sese.c (free_sese_info): Properly release rename_map and
13406         copied_bb_map elements.
13408 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
13410         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
13411         Add linked-list forward and backlinks.  Insert on
13412         construction, remove on destruction.
13413         (class pass_store_merging): Add m_stores_head field.
13414         (pass_store_merging::terminate_and_process_all_chains):
13415         Iterate over m_stores_head list.
13416         (pass_store_merging::terminate_all_aliasing_chains):
13417         Likewise.
13418         (pass_store_merging::execute): Check for debug stmts first.
13419         Push new chains onto the m_stores_head stack.
13421 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
13423         PR target/71294
13424         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
13425         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
13426         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
13428 2017-03-16  Jeff Law  <law@redhat.com>
13430         PR tree-optimization/71437
13431         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
13432         member function.  Implementation moved into after_dom_children
13433         member function and into the threader's thread_outgoing_edges
13434         function.
13435         (dom_opt_dom_walker::after_dom_children): Simplify by moving
13436         some code into new thread_outgoing_edges.
13437         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
13438         definition.  Simplify marker handling (do it here).   Assume we always
13439         have the available expression and the const/copies tables.
13440         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
13441         and tree-vrp.c
13442         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
13443         * tree-vrp.c (equiv_stack): No longer file scoped.
13444         (vrp_dom_walker): New class.
13445         (vrp_dom_walker::before_dom_children): New member function.
13446         (vrp_dom_walker::after_dom_children): Likewise.
13447         (identify_jump_threads):  Setup domwalker.  Use it rather than
13448         walking edges in a random order by hand.  Simplify setup/finalization.
13449         (finalize_jump_threads): Remove.
13450         (vrp_finalize): Do not call identify_jump_threads here.
13451         (execute_vrp): Do it here instead and call thread_through_all_blocks
13452         here too.
13454         PR tree-optimization/71437
13455         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
13456         callers changed.
13457         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
13458         callers changed.
13459         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
13460         (dom_opt_dom_walker::thread_across_edge): Remove
13461         handle_dominating_asserts argument.  All callers changed.
13462         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
13463         changes.  Remove calls to lhs_of_dominating_assert.  Other
13464         uses of handle_dominating_asserts turn into unconditional code
13465         (simplify_control_stmt_condition_1): Likewise.
13466         (simplify_control_stmt_condition): Likewise.
13467         (thread_through_normal_block, thread_across_edge): Likewise.
13468         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
13469         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
13470         object if it is not an SSA_NAME.
13471         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
13472         before calling into the VRP specific simplifiers.
13473         (identify_jump_threads): Remove handle_dominating_asserts
13474         argument.
13476 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
13478         PR fortran/79886
13479         * tree-diagnostic.c (default_tree_printer): No longer static.
13480         * tree-diagnostic.h (default_tree_printer): New prototype.
13482 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
13484         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
13485         Change ins into fmov.
13487 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13489         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
13490         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
13491         Use h_con constraint for operand 1.
13492         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13493         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
13495 2017-03-15  Jeff Law  <law@redhat.com>
13497         PR tree-optimization/71437
13498         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
13499         (record_temporary_equivalences): Use it.
13501         PR tree-optimization/71437
13502         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
13503         tree-ssa-scopedtables.
13504         (lookup_avail_expr, build_and_record_new_cond): Likewise.
13505         (record_conditions, record_cond, vuse_eq): Likewise.
13506         (record_edge_info): Adjust to API tweak of record_conditions.
13507         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
13508         (record_temporary_equivalences, optimize_stmt): Likewise.
13509         (eliminate_redundant_computations): Likewise.
13510         (record_equivalences_from_stmt): Likewise.
13511         * tree-ssa-scopedtables.c: Include options.h and params.h.
13512         (vuse_eq): New function, moved from tree-ssa-dom.c
13513         (build_and_record_new_cond): Likewise.
13514         (record_conditions): Likewise.  Accept vector of conditions rather
13515         than edge_equivalence structure for first argument.
13516         for the first argument.
13517         (avail_exprs_stack::lookup_avail_expr): New member function, moved
13518         from tree-ssa-dom.c.
13519         (avail_exprs_stack::record_cond): Likewise.
13520         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
13521         from tree-ssa-dom.c.
13522         (avail_exprs_stack): Add new member functions lookup_avail_expr
13523         and record_cond.
13524         (record_conditions): Declare.
13526 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
13528         PR target/80017
13529         * lra-constraints.c (process_alt_operands): Increase reject for
13530         reloading an input/output operand.
13532 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
13534         PR target/79038
13535         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
13536         insns to convert from signed/unsigned char/short to IEEE 128-bit
13537         floating point.
13538         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
13540 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
13542         PR target/80019
13543         * config/i386/i386.c (ix86_vector_duplicate_value): Create
13544         subreg of inner mode for values already in registers.
13546 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
13548         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
13549         iteration reg is used after the loop.
13551 2017-03-14  Martin Sebor  <msebor@redhat.com>
13553         PR tree-optimization/79800
13554         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
13555         precision in negative-positive range.
13556         (format_floating): Call non-const overload with adjusted precision.
13558 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13560         PR target/79947
13561         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
13562         -mpowerpc-gfxopt.
13564 2017-03-14  Martin Sebor  <msebor@redhat.com>
13566         PR middle-end/80020
13567         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
13568         * builtins.def (aligned_alloc): Use it.
13570         PR c/79936
13571         * Makefile.in (GTFILES): Add calls.c.
13572         * calls.c: Include "gt-calls.h".
13574 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
13576         PR rtl-optimization/79728
13577         * regs.h (struct target_regs): New field
13578         x_contains_allocatable_regs_of_mode.
13579         (contains_allocatable_regs_of_mode): New macro.
13580         * reginfo.c (init_reg_sets_1): Initialize it, and change
13581         contains_reg_of_mode so it includes global regs as well.
13582         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
13583         rather than contains_regs_of_mode.
13585 2017-03-14  Martin Liska  <mliska@suse.cz>
13587         * doc/invoke.texi: Document options that can't be combined with
13588         -fcheck-pointer-bounds.
13590 2017-03-14  Martin Liska  <mliska@suse.cz>
13592         PR middle-end/79831
13593         * doc/invoke.texi (-Wchkp): Document the option.
13595 2017-03-14  Martin Liska  <mliska@suse.cz>
13597         * Makefile.in: Install gcov-dump.
13599 2017-03-14  Martin Liska  <mliska@suse.cz>
13601         * multiple_target.c (expand_target_clones): Bail out for
13602         an invalid attribute.
13604 2017-03-14  Richard Biener  <rguenther@suse.de>
13606         * alias.c (struct alias_set_entry): Pack properly.
13607         * cfgloop.h (struct loop): Likewise.
13608         * cse.c (struct set): Likewise.
13609         * ipa-utils.c (struct searchc_env): Likewise.
13610         * loop-invariant.c (struct invariant): Likewise.
13611         * lra-remat.c (struct cand): Likewise.
13612         * recog.c (struct change_t): Likewise.
13613         * rtl.h (struct address_info): Likewise.
13614         * symbol-summary.h (function_summary): Likewise.
13615         * tree-loop-distribution.c (struct partition): Likewise.
13616         * tree-object-size.c (struct object_size_info): Likewise.
13617         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
13618         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
13619         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
13620         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
13621         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
13622         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
13623         (struct _stmt_vec_info): Likewise.
13625 2017-03-14  Martin Liska  <mliska@suse.cz>
13627         PR target/79892
13628         * multiple_target.c (create_dispatcher_calls): Check that
13629         a target can create a function dispatcher.
13631 2017-03-14  Martin Liska  <mliska@suse.cz>
13633         PR lto/66295
13634         * multiple_target.c (expand_target_clones): Drop local.local
13635         flag for default implementation.
13637 2017-03-14  Richard Biener  <rguenther@suse.de>
13639         PR tree-optimization/80030
13640         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
13642 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
13644         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
13645         gcc_fallthrough() instead of __attribute__((fallthrough));
13647 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
13649         * doc/gcc.texi: Remove "up" link to (DIR).
13650         * doc/gccint.texi: Ditto.
13652 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
13654         * doc/install.texi (Specific) <avr>: Remove reference to
13655         binutils 2.13.
13657 2017-03-13  Jeff Law  <law@redhat.com>
13659         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
13660         attribute rather than comments.
13662         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
13663         match_scratch operand is highest.
13665 2017-03-13  Martin Liska  <mliska@suse.cz>
13667         PR middle-end/78339
13668         * ipa-pure-const.c (warn_function_noreturn): If the declarations
13669         is a CHKP clone, use original declaration.
13671 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
13673         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
13674         (arc_conditional_register_usage): Use a different allocation order
13675         when optimizing for size.
13676         * common/config/arc/arc-common.c (arc_option_optimization_table):
13677         Section anchors default on when optimizing for size.
13679 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
13681         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
13683 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
13685         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
13686         * config/arc/arc.md (cpu_facility): Add cd variant.
13687         (*movqi_insn): Add code density variant.
13688         (*movhi_insn): Likewise.
13689         (*movqi_insn): Likewise.
13690         (*addsi3_mixed): Likewise.
13691         (subsi3_insn): Likewise.
13693 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
13695         * config/arc/arc.md (movsi_cond_exec): Update constraint.
13697 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
13699         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
13700         expressions with MINUS and UNARY ops.
13702 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13704         PR target/79911
13705         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
13706         Rename to...
13707         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
13708         between vec_select and vector argument.
13709         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
13710         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
13711         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
13712         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
13713         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
13714         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
13716 2017-03-13  Richard Biener  <rguenther@suse.de>
13718         PR other/79991
13719         * params.def (vect-max-peeling-for-alignment): Fix typo.
13721 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
13723         * doc/install.texi (Specific) <mips-*-*>: Remove description of
13724         issue that only occurred with binutils below 2.18.
13726 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
13728         * doc/install.texi (Specific) <cris-axis-elf>: No longer
13729         refer to binutils 2.11/2.12 minimum.
13731 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
13733         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
13734         ftp.kernel.org and simplify binutils requirement.
13736 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
13738         * doc/invoke.texi (Warning Options): Fix spelling of link-time
13739         optimization.
13740         (Optimize Options): Ditto.  Also remove redundancy.
13742 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
13744         PR translation/79848
13745         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
13746         "%qs".
13747         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
13748         to G_ to avoid double translation.
13750 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
13752         PR translation/79923
13753         * auto-profile.c (get_combined_location): Convert leading
13754         character of diagnostics to lower case and remove trailing period.
13755         (read_profile): Likewise for various diagnostics.
13756         * config/arm/arm.c (arm_option_override): Remove trailing period
13757         from various diagnostics.
13758         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
13759         (msp430_expand_delay_cycles): Likewise.
13761 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
13763         PR target/79925
13764         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
13765         full command-line argument, rather than just "str".
13766         (aarch64_validate_march): Likewise.
13767         (aarch64_validate_mtune): Likewise.
13769 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
13771         PR rtl-optimization/78911
13772         * lra-assigns.c (must_not_spill_p): New function.
13773         (spill_for): Use it.
13775 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
13777         PR tree-optimization/79981
13778         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
13779         ATOMIC_COMPARE_EXCHANGE ifn result.
13780         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
13781         IFN_ATOMIC_COMPARE_EXCHANGE.
13783 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
13785         PR driver/79875
13786         * opts.c (parse_sanitizer_options): Add missing question mark to
13787         "did you mean" message.
13789 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13791         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
13792         built-in.
13793         (VMULEUH_UNS): Likewise.
13794         (VMULOUB_UNS): Likewise.
13795         (VMULOUH_UNS): Likewise.
13796         * config/rs6000/rs6000.c (builtin_function_type): Remove
13797         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
13799 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
13801         PR bootstrap/79952
13802         * read-rtl-function.c (function_reader::read_rtx_operand): Update
13803         x with result of extra_parsing_for_operand_code_0.
13804         (function_reader::extra_parsing_for_operand_code_0): Convert
13805         return type from void to rtx, returning x.  When reading
13806         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
13807         larger size containing struct block_symbol.
13809 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
13811         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
13812         -mfloat128-hardware without -m64.
13814 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
13816         PR target/79941
13817         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
13818         entries to the case statement that marks unsigned arguments to
13819         overloaded functions.
13821 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13823         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
13824         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
13826 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
13828         PR target/79907
13829         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
13830         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
13832 2017-03-10  Martin Liska  <mliska@suse.cz>
13834         PR target/65705
13835         PR target/69804
13836         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
13837         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
13838         FIELD != NULL.
13840 2017-03-10  Olivier Hainque  <hainque@adacore.com>
13842         * tree-switch-conversion (array_value_type): Start by resetting
13843         candidate type to it's main variant.
13845 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
13847         PR rtl-optimization/79909
13848         * combine.c (try_combine): Use simplify_replace_rtx on individual
13849         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
13850         of the whole CALL_INSN_FUNCTION_USAGE.
13852         PR tree-optimization/79972
13853         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
13854         get_range_info on SSA_NAMEs.  Formatting fixes.
13856 2017-03-10  Richard Biener  <rguenther@suse.de>
13857             Jakub Jelinek  <jakub@redhat.com>
13859         PR tree-optimization/77975
13860         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
13861         edge to be constant.
13862         (get_val_for): For constant x return it.  Formatting fix.
13863         (loop_niter_by_eval): Avoid pointless looping if the next iteration
13864         would use the same bases as the current one.
13866 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13868         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
13869         instead of vec_select for V1TImode.
13870         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
13871         longer needed.
13872         (VSX_LE_128): Add V1TI to this mode iterator.
13873         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
13874         (*vsx_le_perm_store_<mode>): Likewise.
13875         (pre-reload splitter for VSX stores): Likewise.
13876         (post-reload splitter for VSX stores): Likewise.
13877         (*vsx_xxpermdi2_le_<mode>): Likewise.
13878         (*vsx_lxvd2x2_le_<mode>): Likewise.
13879         (*vsx_stxvd2x2_le_<mode>): Likewise.
13881 2017-03-09  Michael Eager  <eager@eagercon.com>
13883         Correct failures with --enable-checking=yes,rtl.
13885         * config/microblaze/microblaze.c (microblaze_expand_shift):
13886         Replace GET_CODE test with CONST_INT_P and INTVAL test with
13887         test for const0_rtx.
13888         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
13889         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
13891 2017-03-09  Richard Biener  <rguenther@suse.de>
13893         PR tree-optimization/79977
13894         * graphite-scop-detection.c (scop_detection::merge_sese):
13895         Handle the case of extra exits to blocks dominating the entry.
13897 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
13899         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
13900         Document rdynamic.
13902 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
13904         PR rtl-optimization/79949
13905         * lra-constraints.c (process_alt_operands): Check memory when
13906         trying to predict a cycle.  Print about the overall increase.
13908 2017-03-09  Richard Biener  <rguenther@suse.de>
13910         PR middle-end/79971
13911         * gimple-expr.c (useless_type_conversion_p): Preserve
13912         TYPE_SATURATING for fixed-point types.
13914 2017-03-09  Richard Biener  <rguenther@suse.de>
13916         PR ipa/79970
13917         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
13918         alignment of BLKmode params.
13920 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13922         PR target/79913
13923         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
13924         (VALL_NO_V2Q): Likewise.
13925         (VDQF_DF): Delete.
13926         * config/aarch64/aarch64-simd.md
13927         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
13928         iterator.
13929         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
13930         VALL_NO_V2Q mode iterator.
13931         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
13933 2017-03-09  Martin Liska  <mliska@suse.cz>
13935         PR tree-optimization/79631
13936         * tree-chkp-opt.c (chkp_is_constant_addr): Call
13937         tree_int_cst_sign_bit just for INTEGER constants.
13939 2017-03-09  Martin Liska  <mliska@suse.cz>
13941         PR target/65705
13942         PR target/69804
13943         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
13944         sanitizers.
13946 2017-03-09  Marek Polacek  <polacek@redhat.com>
13948         PR c++/79672
13949         * tree.c (inchash::add_expr): Handle TREE_VEC.
13951 2017-03-09  Martin Liska  <mliska@suse.cz>
13953         PR ipa/79764
13954         (chkp_narrow_size_and_offset): New function.
13955         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
13956         (void chkp_parse_bit_field_ref): New function.
13957         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
13958         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
13960 2017-03-09  Martin Liska  <mliska@suse.cz>
13962         PR ipa/79761
13963         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
13964         (chkp_find_bounds_1): Remove gcc_unreachable.
13966 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
13968         PR sanitizer/79944
13969         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
13970         BUILT_IN_SYNC*, determine the access type from the size suffix and
13971         always build a MEM_REF with that type.  Handle forgotten
13972         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
13974         PR target/79932
13975         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
13976         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
13977         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
13978         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
13979         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
13980         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
13981         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
13982         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
13983         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
13984         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
13985         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
13986         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
13987         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
13988         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
13989         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
13990         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
13991         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
13992         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
13993         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
13994         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
13995         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
13996         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
13997         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
13998         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
13999         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
14000         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
14001         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
14002         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
14003         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
14004         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
14005         definitions outside of __OPTIMIZE__ guarded section.
14007         PR target/79932
14008         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
14009         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
14010         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
14011         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
14012         guarded section.
14014 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14016         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
14017         ("vfenez<mode>"): Add missing constraints.
14019 2017-03-08  Martin Sebor  <msebor@redhat.com>
14021         PR target/79928
14022         * config/nds32/nds32.c (nds32_option_override):
14023         Fix misspelled diagnostic.
14025 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
14027         PR c/79940
14028         * gimplify.c (gimplify_omp_for): Replace index var in outer
14029         taskloop statement with an artificial variable and add
14030         OMP_CLAUSE_PRIVATE clause for it.
14032 2017-03-08  Richard Biener  <rguenther@suse.de>
14034         PR tree-optimization/79955
14035         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
14036         for accesses that are completely outside of the variable.
14038 2017-03-08  Andrew Haley  <aph@redhat.com>
14040         PR tree-optimization/79943
14041         * tree-ssa-loop-split.c (compute_new_first_bound): When
14042         calculating the new upper bound, (END-BEG) should be added, not
14043         subtracted.
14045 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
14047         * config/avr/avr.md (setmemhi): Make sure match_dup
14048         operand number comes before match_scratch.
14050 2017-03-08  Richard Biener  <rguenther@suse.de>
14052         PR tree-optimization/79920
14053         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
14054         with ncopies == 1 to ...
14055         (vect_transform_slp_perm_load): ... here.  Properly compute
14056         all element loads by iterating VF times over the group.  Do
14057         not handle ncopies (computed in a broken way) in
14058         vect_create_mask_and_perm.
14060 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
14062         PR sanitizer/79904
14063         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
14064         is a uniform vector, use uniform_vector_p return value instead of
14065         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
14067 2017-03-07  Marek Polacek  <polacek@redhat.com>
14069         PR middle-end/79809
14070         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
14071         (alloca_call_type): Likewise.
14073 2017-03-07  Martin Liska  <mliska@suse.cz>
14075         * gcov.c (process_args): Put comment to correct location.
14077 2017-03-07  Martin Liska  <mliska@suse.cz>
14079         PR middle-end/68270
14080         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
14081         Use array_at_struct_end_p instead of DECL_CHAIN (field).
14082         (chkp_narrow_bounds_for_field): Likewise.
14083         (chkp_parse_array_and_component_ref): Pass one more argument to
14084         call.
14086 2017-03-07  Richard Biener  <rguenther@suse.de>
14088         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
14089         preheaders.
14091 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
14093         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
14094         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
14096 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14098         PR c/79855
14099         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
14100         to end of description.
14101         (PARAM_MAX_STORES_TO_MERGE): Likewise.
14103 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
14105         PR rtl-optimization/79901
14106         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
14107         ...
14108         (*avx512f_<code><mode>3<mask_name>): ... this.
14109         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
14110         iterator instead of VI8_AVX2_AVX512BW.
14112         PR rtl-optimization/79901
14113         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
14114         min/max expander, expand it using expand_vec_cond_expr.
14116         PR sanitizer/79897
14117         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
14118         temporary.
14120 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
14122         PR c++/79821
14123         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
14124         to void * for PCH reasons.
14125         * dwarf2out.c (output_loc_operands, output_die): Cast
14126         v.val_vec.array to unsigned char *.
14128 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
14130         PR target/77850
14131         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
14132         vector types.
14134 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
14136         PR rtl-optimization/79571
14137         * lra-constraints.c (process_alt_operands): Calculate static
14138         reject and subtract it from overall when only addresses will be
14139         reloaded.
14141 2017-03-06  Julia Koval  <julia.koval@intel.com>
14143         PR target/79793
14144         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
14145         incoming stack boundary to 128 for 64-bit targets.
14147 2017-03-06  Richard Biener  <rguenther@suse.de>
14149         PR tree-optimization/79894
14150         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
14151         to NULL after folding it.
14153 2017-03-06  Richard Biener  <rguenther@suse.de>
14155         PR tree-optimization/79824
14156         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
14157         check disabling peeling for gaps.
14159 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
14161         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
14162         attributes): Document gettimeofday.
14164 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
14166         * config/s390/s390.c (s390_option_override_internal): Set
14167         PARAM_MIN_VECT_LOOP_BOUND
14169 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
14171         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
14172         * config/s390/s390.md: Likewise.
14174 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
14176         PR target/79812
14177         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
14178         (<avx2_avx512>_perm<mode>): Rename to ...
14179         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
14180         of VI8F_256_512.
14181         (<avx512>_perm<mode>_mask): Rename to ...
14182         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
14183         of VI8F_256_512.
14184         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
14185         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
14186         instead of VI8F_256_512.
14187         (avx512f_perm<mode>): New define_expand.
14188         (avx512f_perm<mode>_mask): Likewise.
14189         (avx512f_perm<mode>_1<mask_name>): New define_insn.
14190         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
14192 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
14194         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
14195         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
14196         if_then_else.
14197         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
14199 2017-03-06  Martin Liska  <mliska@suse.cz>
14201         PR sanitize/79783
14202         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
14203         when having a SSA NAME w/o VAR_DECL assigned to it.
14205 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
14207         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
14208         msa_dpsub_<su>_d): Fix MODE for vec_select.
14210 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
14212         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
14213         argument.
14214         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
14216 2017-03-06  Richard Biener  <rguenther@suse.de>
14218         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
14219         * plugin.c (register_plugin_info): Likewise.
14220         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
14222 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
14224         * config/i386/sse.md (sse_storehps, sse_storelps,
14225         avx_<castmode><avxsizesuffix>_<castmode>,
14226         avx512f_<castmode><avxsizesuffix>_<castmode>,
14227         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
14228         in condition that at least one operand is not a MEM.
14230 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
14232         PR middle-end/79805
14233         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
14234         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
14235         ECF_NOTHROW.
14236         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
14237         gimple_call_nothrow_p flag based on whether original builtin can throw.
14238         If it can, emit following stmts on the fallthrough edge.
14239         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
14240         don't create new bb if inserting just debug stmts on the edge, try to
14241         insert them on the fallthru bb or just reset debug stmts.
14243 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
14245         PR target/43763
14246         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
14247         restore recog_data (including the operand rtxes inside it) around
14248         the call to get_insn_template.
14250 2017-03-03  Martin Sebor  <msebor@redhat.com>
14252         PR tree-optimization/79699
14253         * context.c (context::~context): Free MPFR caches to avoid
14254         a memory leak on program exit.
14256 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14258         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
14259         Use wide_int::ulow () instead of .elt (0).
14261 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
14263         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
14264         (*pushxf): Limit oF constraint to 32bit targets and add oC
14265         constraint for 64bit targets.
14266         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
14267         (*pushdf): Change rmF constraint to rmC.
14269 2017-03-03  Martin Liska  <mliska@suse.cz>
14271         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
14272         Remove unused variable.
14274 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
14276         PR target/79807
14277         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
14278         is a memory operand, increase num_memory.
14279         (ix86_expand_args_builtin): Likewise.
14281 2017-03-03  Jan Hubicka  <jh@suse.cz>
14283         PR lto/79760
14284         * ipa-devirt.c (maybe_record_node): Properly handle
14285         __cxa_pure_virtual visibility.
14287 2017-03-03  Martin Liska  <mliska@suse.cz>
14289         PR tree-optimization/79803
14290         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
14291         assert.
14292         (pass_loop_prefetch::execute): Disabled optimization if an
14293         assumption about L1 cache size is not met.
14295 2017-03-03  Martin Liska  <mliska@suse.cz>
14297         PR rtl-optimization/79574
14298         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
14299         (hash_scan_set): Likewise.
14300         (dump_hash_table): Likewise.
14301         (hoist_code): Likewise.
14303 2017-03-03  Richard Biener  <rguenther@suse.de>
14305         * fixed-value.c (fixed_from_string): Restore use of elt (1)
14306         in place of uhigh ().
14307         (fixed_convert_from_real): Likewise.
14309 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
14311         PR target/79514
14312         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
14314 2017-03-03  Richard Biener  <rguenther@suse.de>
14316         PR middle-end/79818
14317         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
14318         TYPE_OVERFLOW_UNDEFINED check.
14320 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14322         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
14323         numbers.
14324         (vector_ae_<mode>_p): Likewise.
14325         (vector_nez_<mode>_p): Likewise.
14326         (vector_ne_v2di_p): Likewise.
14327         (vector_ae_v2di_p): Likewise.
14328         (vector_ne_<mode>_p): Likewise.
14329         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
14330         numbers.
14331         (vsx_tsqrt<mode>2_fe): Likewise.
14333 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
14335         PR target/79514
14336         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
14338 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
14340         PR rtl-optimization/79780
14341         * cprop.c (one_cprop_pass): When second and further conditional trap
14342         in a single basic block is turned into an unconditional trap, turn it
14343         into a deleted note to avoid RTL verification failures.
14345 2017-03-02  Richard Biener  <rguenther@suse.de>
14347         * fold-const.c (const_binop): Use ulow () instead of elt (0).
14349 2017-03-02  Richard Biener  <rguenther@suse.de>
14351         PR tree-optimization/79345
14352         PR c++/42000
14353         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
14354         param and abort the walk, returning -1 if it is hit.
14355         (walk_aliased_vdefs): Take a limit param and pass it on.
14356         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
14357         defaulting to 0 and return a signed int.
14358         * tree-ssa-uninit.c (struct check_defs_data): New struct.
14359         (check_defs): New helper.
14360         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
14361         about uninitialized memory.
14362         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
14363         bogus uninitialized warning.
14364         (fixed_convert_from_real): Likewise.
14366 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
14368         PR tree-optimization/66768
14369         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
14370         iv_use if base object can't be determined.
14372 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
14374         PR tree-optimization/79345
14375         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
14376         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
14377         (get_pattern_stats): Initialize it.
14378         * genemit.c (gen_expand): Verify match_scratch numbers come after
14379         match_operand/match_dup numbers.
14380         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
14381         match_scratch numbers.
14382         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
14383         Likewise.
14384         * config/s390/s390.md (trunctdsd2): Likewise.
14386 2017-03-02  Richard Biener  <rguenther@suse.de>
14388         * wide-int.h (wide_int_storage::operator=): Implement in terms
14389         of wi::copy.
14391 2017-03-02  Richard Biener  <rguenther@suse.de>
14393         PR tree-optimization/79777
14394         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
14395         the to insert expression to sth existing.
14397 2017-03-01  Martin Sebor  <msebor@redhat.com>
14399         PR middle-end/79692
14400         * gimple-ssa-sprintf.c
14401         (directive::known_width_and_precision): New function.
14402         (format_integer): Use it.
14403         (get_mpfr_format_length): Consider the full range of precision
14404         when computing %g output with the # flag.  Set the likely byte
14405         count to 3 rather than 1 when precision is indeterminate.
14406         (format_floating): Correct the lower bound of precision.
14408 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14410         * doc/invoke.texi: Document default code model for 64-bit Linux.
14412 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
14414         PR target/79752
14415         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
14416         udiv rather than div since input pattern is unsigned.
14418 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
14420         * config/i386/i386.c (print_reg): Warn for values of
14421         unsupported size in integer register.
14423 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14425         PR target/79439
14426         * config/rs6000/predicates.md (current_file_function_operand): Do
14427         not allow self calls to be local if the function is replaceable.
14429 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14431         PR target/79395
14432         * config/rs6000/altivec.h (vec_ctz and others): Change the
14433         preprocessor macro that controls conditional compilation from
14434         _ARCH_PWR9 to __POWER9_VECTOR__.
14435         (vec_all_ne): Change parameterization of __altivec_scalar_pred
14436         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
14437         control (instead of _ARCH_PWR9 control) so that template
14438         definition uses power9-specific function.
14439         (vec_any_eq): Likewise.
14440         (vec_all_ne): Change macro definition to use a power9-specific
14441         expansion under #ifdef __POWER9_VECTOR__ control (instead of
14442         _ARCH_PWR9 control).
14443         (vec_any_eq) Likewise.
14444         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
14445         expansion for CMPNEF to remove support for xvcmpnesp instruction.
14446         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
14447         support for xvcmpnedp instruction.
14448         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
14449         macro expansion so that Power9 implementation of vec_all_ne does
14450         not use the AltiVec predicate framework.
14451         (VCMPNEH_P): Likewise.
14452         (VCMPNEW_P): Likewise.
14453         (VCMPNED_P): Likewise.
14454         (VCMPNEFP_P): Likewise.
14455         (VCMPNEDP_P): Likewise.
14456         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
14457         implementation of vec_any_eq to not use AltiVec predicate
14458         framework.
14459         (VCMPAEH_P): Likewise.
14460         (VCMPAEW_P): Likewise.
14461         (VCMPAED_P): Likewise.
14462         (VCMPAEFP_P): Likewise.
14463         (VCMPAEDP_P): Likewise.
14464         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
14465         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
14466         not use the AltiVec predicate framework.
14467         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
14468         of vec_any_eq to not use AltiVec predicate framework.
14469         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
14470         support for predefined __POWER9_VECTOR__ macro to indicate that
14471         Power9 instruction selection is enabled.
14472         (altivec_overloaded_builtins): Remove extraneous
14473         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
14474         function argument types RS6000_BTI_bool_V16QI and
14475         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
14476         entry for overloaded function argument types RS6000_BTI_bool_V4SI
14477         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
14478         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
14479         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
14480         Power9 for implementations of vec_cmpne.  Change the signature for
14481         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
14482         (representing vec_all_ne) to remove the previously described first
14483         argument of type RS6000_BTI_INTSI, as this was an artifact of
14484         reliance on the AltiVec predicate framework, which is no longer
14485         used in the implementation of these functions.  Add
14486         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
14487         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
14488         since, unlike the AltiVec predicate framework implementation, we
14489         do not share function descriptors between vec_alle and vec_anyeq.
14490         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
14491         set of modes that receive special treatment even when
14492         TARGET_P9_VECTOR is true.  The special treatment emits code that
14493         does not depend on Power9 instructions.
14494         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
14495         define_expand to not rely on AltiVec predicate framework.
14496         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
14497         function.
14498         (vector_ne_v2di_p): Change this define_expand to not rely on
14499         AltiVec predicate framework.
14500         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
14501         function.
14502         (vector_ne_<mode>_p): Change this define_expand to not rely on
14503         AltiVec predicate framework.
14504         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
14505         function.
14506         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
14507         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
14508         define_insn pattern.
14509         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
14510         define_insn pattern because the xvcmpne<VSs>. instruction is not
14511         supported.
14512         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
14513         instruction is not supported.
14515 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
14517         * config/nvptx/nvptx.c: Include intl.h.
14519 2017-03-01  Martin Jambor  <mjambor@suse.cz>
14521         PR lto/78140
14522         * ipa-prop.h (ipa_bits): Removed field known.
14523         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
14524         to pointers.  Adjusted their comments to warn about their sharing.
14525         (ipcp_transformation_summary): Change bits to a vector of pointers.
14526         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
14527         (ipa_get_ipa_bits_for_value): Declare.
14528         * tree-vrp.h (value_range): Mark as GTY((for_user)).
14529         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
14530         (ipa_bits_hash_table): Likewise.
14531         (ipa_vr_ggc_hash_traits): Likewise.
14532         (ipa_vr_hash_table): Likewise.
14533         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
14534         being pointers and vr_known being removed.
14535         (ipa_set_jf_unknown): Likewise.
14536         (ipa_get_ipa_bits_for_value): New function.
14537         (ipa_set_jfunc_bits): Likewise.
14538         (ipa_get_value_range): New overloaded functions.
14539         (ipa_set_jfunc_vr): Likewise.
14540         (ipa_compute_jump_functions_for_edge): Use the above functions to
14541         construct bits and vr parts of jump functions.
14542         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
14543         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
14544         exist.
14545         (ipcp_grow_transformations_if_necessary): Also allocate
14546         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
14547         exist.
14548         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
14549         them.  Fix too long lines.
14550         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
14551         vr_known being removed.
14552         (ipa_read_jump_function): Use new setter functions to construct bits
14553         and vr parts of jump functions or set them to NULL.
14554         (write_ipcp_transformation_info): Adjust for bits being pointers.
14555         (read_ipcp_transformation_info): Likewise.
14556         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
14557         space.
14558         Include gt-ipa-prop.h.
14559         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
14560         being pointers.
14561         (ipcp_store_bits_results): Likewise.
14562         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
14563         Do not write to existing jump functions but use a temporary instead.
14565 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
14567         PR c++/79681
14568         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
14569         attempt to use its first operand as BIT_FIELD_REF base.
14571 2017-03-01  Richard Biener  <rguenther@suse.de>
14573         PR middle-end/79721
14574         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
14575         interpolating formula in wrapping arithmetic.
14576         (chrec_apply): Convert chrec_evaluate return value to wanted type.
14578 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
14580         PR tree-optimization/79734
14581         * tree-vect-generic.c (expand_vector_condition): Optimize
14582         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
14583         Handle VEC_COND_EXPR where comparison has different inner width from
14584         type's inner width.
14586 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
14588         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
14589         markup, and similar issues.  Remove @opindex entries for things
14590         that aren't options.  Add missing -mmpy-option entries.
14592 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
14594         PR tree-optimization/79737
14595         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
14596         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
14597         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
14598         instead of byte_size.  Formatting fix.
14599         (shift_bytes_in_array_right): Formatting fix.
14601 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
14603         PR target/79749
14604         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
14605         condition on optimize for the leaf function test.
14607 2017-02-28  Martin Liska  <mliska@suse.cz>
14609         PR lto/79625
14610         * read-rtl-function.c (function_reader::handle_unknown_directive):
14611         Bail out when one uses -flto.
14613 2017-02-28  Martin Liska  <mliska@suse.cz>
14615         * common.opt: Replace space with tabular for options of <number>
14616         type.
14617         * config/i386/i386.opt: Show <number> value for
14618         -mlarge-data-threshold.
14619         * opts.c (print_filtered_help): Do not display number in hexadecimal
14620         format.
14622 2017-02-28  Martin Liska  <mliska@suse.cz>
14624         * common.opt: Fix --help=option -Q for options which are of
14625         an enum type.
14627 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
14629         * config/i386/i386.c (print_reg): Error out for values
14630         of 8-bit size in invalid integer register.
14632 2017-02-28  Martin Sebor  <msebor@redhat.com>
14634         PR tree-optimization/79691
14635         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
14637 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
14639         PR target/79729
14640         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
14641         gcc_unreachable with output_operand_lossage.
14643 2017-02-28  Richard Biener  <rguenther@suse.de>
14645         PR tree-optimization/79740
14646         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
14647         inserts.
14648         (visit_nary_op): Insert the nary into the hashtable if we
14649         pattern-matched sth.
14650         * tree-ssa-pre.c (eliminate_insert): Robustify.
14652 2017-02-28  Richard Biener  <rguenther@suse.de>
14654         PR middle-end/79731
14655         * fold-const.c (decode_field_reference): Reject out-of-bound
14656         accesses.
14658 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
14660         * config/i386/i386.c: Include intl.h.
14661         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
14662         instead of just cond ? "..." : "...".
14663         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
14664         * coverage.c (read_counts_file): Likewise.
14665         * omp-offload.c: Include intl.h.
14666         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
14667         of just cond ? "..." : "...".
14668         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
14669         of just cond ? "..." : "...".
14671 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
14673         PR target/79742
14674         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
14675         entry, if present.
14676         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
14677         'tune for' CPU name.
14678         * config/arm/arm-cpu-data.h: Regenerated.
14680 2017-02-28  Richard Biener  <rguenther@suse.de>
14682         PR tree-optimization/79732
14683         * tree-inline.c (expand_call_inline): Do not shadow var.
14685 2017-02-28  Richard Biener  <rguenther@suse.de>
14687         PR tree-optimization/79723
14688         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
14689         address-space properly.
14691 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
14693         * doc/optinfo.texi (Optimization groups): Fix option used for
14694         OPTGROUP_ALL.
14695         * doc/invoke.texi (-fopt-info): Document "omp".
14696         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
14697         (OPTGROUP_ALL): Add OPTGROUP_OMP.
14698         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
14699         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
14700         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
14702         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
14703         all users.
14704         * dumpfile.c (optgroup_options): Instead of "openmp", associate
14705         OPTGROUP_OMP with "omp".
14707 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
14709         PR target/79544
14710         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
14711         for arithmetic shift of unsigned V2DI.
14713 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
14715         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
14716         arc/linux.h headers.
14717         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
14718         (LINK_SPEC): Likewise.
14719         (ARC_TLS_EXTRA_START_SPEC): Likewise.
14720         (EXTRA_SPECS): Likewise.
14721         (STARTFILE_SPEC): Likewise.
14722         (ENDFILE_SPEC): Likewise.
14723         (LIB_SPEC): Likewise.
14724         (TARGET_SDATA_DEFAULT): Likewise.
14725         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
14726         (MULTILIB_DEFAULTS): Likewise.
14727         (DWARF2_UNWIND_INFO): Likewise.
14728         * config/arc/big.h: New file.
14729         * config/arc/elf.h: Likewise.
14730         * config/arc/linux.h: Likewise.
14731         * config/arc/t-uClibc: Remove.
14733 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
14735         PR tree-optimization/77536
14736         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
14737         (tree_transform_and_unroll_loop): Use above function to compute the
14738         estimated niter of unrolled loop and use it when scaling profile.
14739         Also use count info rather than frequency if it's non-zero.
14740         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
14741         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
14742         (vect_transform_loop): Call above function.
14744 2017-02-27  Richard Biener  <rguenther@suse.de>
14746         PR tree-optimization/45397
14747         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
14748         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
14749         (visit_nary_op): Add pattern matching for CSEing sign-changed
14750         or truncated operations with wider ones.
14752 2017-02-27  Richard Biener  <rguenther@suse.de>
14754         PR tree-optimization/79690
14755         * tree-vect-stmts.c (vectorizable_store): Use vector type
14756         built from the DR with address-space.
14758 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
14760         * doc/invoke.texi (Optimize Options): Refine the description
14761         of asan-use-after-return.
14763 2017-02-25  Alan Modra  <amodra@gmail.com>
14765         PR rtl-optimization/79584
14766         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
14767         base, not ad->base_term, the reg within base.  Remove assertion
14768         that ad->base == ad->base_term.  Replace gen_int_mode using
14769         bogus mode with const0_rtx.
14771 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
14773         PR middle-end/79396
14774         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
14775         FMA_EXPR like tcc_binary or tcc_unary.
14777         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
14779         PR debug/77589
14780         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
14781         bitfield.
14782         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
14783         (output_loc_operands): Handle DW_OP_call_ref and
14784         DW_OP_GNU_variable_value.
14785         (struct variable_value_struct): New type.
14786         (struct variable_value_hasher): Likewise.
14787         (variable_value_hash): New variable.
14788         (string_types): Remove.
14789         (copy_loc_descr): New function.
14790         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
14791         (prepend_loc_descr_to_each): New function.
14792         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
14793         instead of add_loc_descr_to_each if the first argument is single
14794         location list and the second has multiple.
14795         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
14796         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
14797         when looking for variable value which doesn't have other location info.
14798         (loc_list_from_tree): Formatting fix.
14799         (gen_array_type_die): Simplify DW_AT_string_length handling.
14800         (adjust_string_types): Remove.
14801         (gen_subprogram_die): Don't call adjust_string_types nor test/set
14802         string_types.  Call resolve_variable_values.
14803         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
14804         (resolve_addr_in_expr): Likewise.  Add A argument.
14805         (copy_deref_exprloc): Remove deref argument.  Adjust for the
14806         original expression being DW_OP_GNU_variable_value with optionally
14807         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
14808         optionally after it.
14809         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
14810         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
14811         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
14812         (variable_value_hasher::hash, variable_value_hasher::equal): New
14813         methods.
14814         (resolve_variable_value_in_expr, resolve_variable_value,
14815         resolve_variable_values, note_variable_value_in_expr,
14816         note_variable_value): New functions.
14817         (dwarf2out_early_finish): Call note_variable_value on all toplevel
14818         DIEs.
14820 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
14822         PR c/79677
14823         * opts.h (handle_generated_option): Add GENERATED_P argument.
14824         * opts-common.c (handle_option): Adjust function comment.
14825         (handle_generated_option): Add GENERATED_P argument, pass it to
14826         handle_option.
14827         (control_warning_option): Pass false to handle_generated_option
14828         GENERATED_P.
14829         * opts.c (maybe_default_option): Pass true to handle_generated_option
14830         GENERATED_P.
14831         * optc-gen.awk: Likewise.
14833 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
14835         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
14836         a REG, look at the REG it is a SUBREG of.
14837         (splitter for cmpeqsi_t): Ditto.
14839 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
14841         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
14842         the special USEs with the pattern of the insn, not the insn itself.
14844 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
14846         PR target/79473
14847         * doc/invoke.texi: Document -mload-store-pairs.
14849 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
14850             Sandra Loosemore  <sandra@codesourcery.com>
14852         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
14853         argument isn't a CONST_INT.
14854         (nios2_alternate_compare_const): Assert op is a CONST_INT.
14855         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
14856         (nios2_validate_compare): Bypass alternate compare logic if *op2
14857         is not a CONST_INT.
14858         (ldstwm_operation_p): Return false if first_base is not a REG or
14859         if first_offset is not a CONST_INT.
14861 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
14863         * config/cris/cris.md: Use correct operand in a define_peephole2.
14865 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
14867         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
14869 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
14871         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
14872         this_insn if it is an INSN or JUMP_INSN.
14873         (force_offsettable): Look at base, not at addr.
14874         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
14875         on things that aren't necessarily CONST_INTs.
14877 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
14879         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
14880         -mfpmath=sse is the default also for x86-32 targets with SSE2
14881         instruction set when @option{-ffast-math} is enabled
14883 2017-02-24  Jeff Law  <law@redhat.com>
14885         PR rtl-optimizatoin/79286
14886         * ira.c (update_equiv_regs): Drop may_trap_p exception to
14887         dominance test.
14889 2017-02-24  Richard Biener  <rguenther@suse.de>
14891         PR tree-optimization/79389
14892         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
14893         debug insns.
14895 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
14897         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
14898         function comment to reflect reality.
14899         (loop_exits_before_overflow): Fix typo in function description.
14901 2017-02-24  Richard Biener  <rguenther@suse.de>
14903         PR tree-optimization/79389
14904         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
14905         properly that a threading opportunity exists.  Detect conditional
14906         copy/constant propagation opportunities.
14908 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
14910         * config/visium/visium.md (type): Add trap.
14911         (b): New mode attribute.
14912         (*btst): Rename into...
14913         (*btst<mode>): ...this and adjust.
14914         (*cbranchsi4_btst_insn): Rename into...
14915         (*cbranch<mode>4_btst_insn): ...this and adjust.
14916         (trap): New define_insn.
14918 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
14920         PR tree-optimization/79389
14921         * ifcvt.c (struct noce_if_info): Add rev_cond field.
14922         (noce_reversed_cond_code): New function.
14923         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
14924         reversed_comparison_code.  Formatting fix.
14925         (noce_try_store_flag): Test rev_cond != NULL in addition to
14926         reversed_comparison_code.
14927         (noce_try_store_flag_constants): Likewise.
14928         (noce_try_store_flag_mask): Likewise.
14929         (noce_try_addcc): Use rev_cond if non-NULL instead of
14930         reversed_comparison_code.
14931         (noce_try_cmove_arith): Likewise.  Formatting fixes.
14932         (noce_try_minmax, noce_try_abs): Clear rev_cond.
14933         (noce_find_if_block): Initialize rev_cond.
14934         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
14935         instead of false as last argument never attempt to reverse it
14936         afterwards.
14938 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
14940         PR tree-optimization/79663
14941         * tree-predcom.c (combine_chains): Process refs in reverse order
14942         only for ZERO length chains, and add explaining comment.
14944 2017-02-23  Jeff Law  <law@redhat.com>
14946         PR tree-optimization/79578
14947         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
14948         in call to operand_equal_p.
14950 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
14952         PR target/71017
14953         * config/i386/cpuid.h: Fix another undefined behavior.
14955 2017-02-23  Richard Biener  <rguenther@suse.de>
14957         PR tree-optimization/79683
14958         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
14959         vector types for data-refs.
14961 2017-02-23  Martin Liska  <mliska@suse.cz>
14963         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
14965 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
14967         PR middle-end/79665
14968         * internal-fn.c (get_range_pos_neg): Moved to ...
14969         * tree.c (get_range_pos_neg): ... here.  No longer static.
14970         * tree.h (get_range_pos_neg): New prototype.
14971         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
14972         are known to be in between 0 and signed maximum inclusive, try to
14973         expand both unsigned and signed divmod and use the cheaper one from
14974         those.
14976 2017-02-22  Jeff Law  <law@redhat.com>
14978         PR tree-optimization/79578
14979         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
14980         to compare base operands.
14982 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
14984         PR target/79211
14985         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
14986         gpc_reg_operand instead of fpr_reg_operand.
14988 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
14990         * config/mips/mips.c (mips_return_in_memory): Force FP
14991         vector types to be returned in memory for o32 ABI.
14993 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
14995         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
14996         instead of DW_TAG_member for static data member declarations and don't
14997         set no_linkage_name for static inline data members.
14998         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
14999         to DW_TAG_member.
15001 2017-02-22  Martin Liska  <mliska@suse.cz>
15003         * doc/invoke.texi: Replace inequality signs with square brackets
15004         for -Wnormalized.
15006 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15008         PR tree-optimization/68644
15009         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
15011 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
15013         PR target/78660
15014         * lra-constraints.c (simplify_operand_subreg): Handle
15015         WORD_REGISTER_OPERATIONS targets.
15017 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
15019         PR target/70465
15020         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
15021         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
15022         elimination by swapping fld*.
15024 2017-02-22  Richard Biener  <rguenther@suse.de>
15026         PR tree-optimization/79673
15027         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
15028         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
15029         irrelevant address-space qualifiers and avoiding a
15030         ADDR_SPACE_CONVERT_EXPR from fold_convert.
15032 2017-02-22  Richard Biener  <rguenther@suse.de>
15034         PR tree-optimization/79666
15035         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
15036         to not symbolically negate if that may introduce undefined
15037         overflow.
15039 2017-02-22  Martin Liska  <mliska@suse.cz>
15041         PR lto/79587
15042         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
15043         * data-streamer-out.c (streamer_write_gcov_count_stream):
15044         Likewise.
15045         * value-prof.c (stream_out_histogram_value): Make assert more
15046         precise based on type of counter.
15048 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
15050         PR target/79593
15051         * config/i386/i386.md (standard_x87sse_constant_load splitter):
15052         Use nonimmediate_operand instead of memory_operand for operand 1.
15053         (float-extend standard_x87sse_constant_load splitter): Ditto.
15055 2017-02-21  Jeff Law  <law@redhat.com>
15057         PR tree-optimization/79621
15058         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
15059         blocks with edges to themselves.
15061 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
15063         PR target/79633
15064         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
15065         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
15066         Use gimple_call_builtin_p.
15068         PR target/79570
15069         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
15070         on temporarily removed DEBUG_INSNs.
15072         PR tree-optimization/79649
15073         * tree-loop-distribution.c (classify_partition): Give up on
15074         non-generic address space loads/stores.
15076 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
15078         * doc/loop.texi (Loop manipulation): Remove nonexistent
15079         tree_ssa_loop_version from the documentation.
15080         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
15082 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
15084         PR target/79494
15085         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
15086         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
15087         * config/rs6000/rs6000.c: Include except.h.
15088         (rs6000_expand_split_stack_prologue): Call
15089         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
15091 2017-02-21  Martin Jambor  <mjambor@suse.cz>
15093         PR lto/79579
15094         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
15095         have been analyzed.
15097 2017-02-21  Martin Jambor  <mjambor@suse.cz>
15099         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
15100         for backward compatibility only.
15101         * doc/invoke.texi (Option Summary): Remove all references to
15102         -fipa-cp-alignment.
15104 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
15106         PR target/78660
15107         Revert:
15108         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
15110         * lra-constraints.c (curr_insn_transform): Handle
15111         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
15113 2017-02-21  Martin Liska  <mliska@suse.cz>
15115         * config/i386/i386.opt: Replace -masm-dialect with -masm.
15117 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
15119         PR translation/79638
15120         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
15122 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
15124         PR ada/67205
15125         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
15126         (arm_function_ok_for_sibcall): Return false for an indirect call by
15127         descriptor if all the argument registers are used.
15128         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
15129         alignment of the function.
15131 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
15133         PR tree-optimization/61441
15134         * simplify-rtx.c (simplify_const_unary_operation): For
15135         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
15136         the sNaN unmodified.
15138 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15140         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
15141         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
15142         instead of SYSTEM_HEADER_DIR.
15144 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
15145             Martin LiÅ¡ka  <mliska@suse.cz>
15147         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
15148         Fix typos and grammar, use active voice, and clarify.
15150 2017-02-20  Marek Polacek  <polacek@redhat.com>
15152         PR middle-end/79537
15153         * gimplify.c (gimplify_expr): Handle unused *&&L;.
15155         PR sanitizer/79558
15156         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
15158 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
15160         PR target/79568
15161         * config/i386/i386.c (ix86_expand_builtin): Handle
15162         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
15163         ix86_builtins_isa[fcode].isa as a requirement of those
15164         flags and any other flag in the bitmask.
15165         (ix86_init_mmx_sse_builtins): Use 0 instead of
15166         ~OPTION_MASK_ISA_64BIT as mask.
15167         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
15168         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
15169         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
15170         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
15172 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
15174         PR target/78012
15175         * lra-constraints.c (split_reg): Check requested split mode
15176         is supported by the register.
15178 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
15180         * lra-constraints.c (simplify_operand_subreg): Remove early
15181         return false.
15183 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
15185         PR target/78660
15186         * lra-constraints.c (curr_insn_transform): Tighten condition
15187         for converting SUBREG reloads from OP_OUT to OP_INOUT.
15189 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
15191         PR target/78660
15192         * lra-constraints.c (curr_insn_transform): Handle
15193         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
15195 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
15197         Revert:
15198         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
15200         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
15202 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
15204         PR c++/69523
15205         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
15206         description.
15208 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15210         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
15211         for FMA_EXPR.
15213 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
15215         * final.c (last_columnnum, override_columnnum): New variables.
15216         (final_start_function): Set last_columnnum, pass it to begin_prologue
15217         hook and pass 0 to dwarf2out_begin_prologue.
15218         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
15219         to source_line debug hook.
15220         (notice_source_line): Compute last_columnnum and for debug_column_info
15221         return true on column changes.
15222         * debug.h (struct gcc_debug_hooks): Add column argument to
15223         source_line and begin_prologue hooks.
15224         (debug_nothing_int_charstar_int_bool): Remove prototype.
15225         (debug_nothing_int_int_charstar,
15226         debug_nothing_int_int_charstar_int_bool): New prototypes.
15227         (dwarf2out_begin_prologue): Add column argument.
15228         * debug.c (do_nothing_debug_hooks): Adjust source_line and
15229         begin_prologue hooks.
15230         (debug_nothing_int_charstar_int_bool): Remove.
15231         (debug_nothing_int_int_charstar,
15232         debug_nothing_int_int_charstar_int_bool): New functions.
15233         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
15234         through to dwarf2out_source_line.
15235         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
15236         (dwarf2out_source_line): Add column argument, emit it if requested.
15237         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
15238         arguments.
15239         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
15240         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
15241         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
15242         through to dwarf2out_begin_prologue.
15243         (vmsdbgout_source_line): Add column argument, pass it through to
15244         dwarf2out_source_line.
15245         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
15246         dbxout_source_line caller.
15247         (dbxout_source_line): Add column argument.
15249         * common.opt (gno-column-info, gcolumn-info): New options.
15250         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
15251         (check_die): Also test for multiple DW_AT_decl_column attributes.
15252         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
15253         DW_AT_decl_column if requested.
15254         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
15255         if requested.
15256         (gen_variable_die): Likewise.
15257         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
15258         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
15260         PR target/79569
15261         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
15262         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
15263         (ix86_handle_option): Handle OPT_m3dnowa.
15264         * doc/invoke.texi (-m3dnowa): Document.
15265         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
15266         -m3dnowa instead of -m3dnow -march=athlon.
15268         PR target/79559
15269         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
15270         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
15272 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15274         PR target/79261
15275         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
15276         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
15277         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
15278         generator for vsx_xxpermdi_<mode>_be.
15279         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
15280         force big-endian semantics.
15281         (vsx_xxpermdi_<mode>_be): New define_expand with same
15282         implementation as previous version of vsx_xxpermdi_<mode>.
15284 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
15286         PR tree-optimization/79327
15287         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
15288         variable, its initialization and use.
15290 2017-02-17  Julia Koval  <julia.koval@intel.com>
15292         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
15293         (OPTION_MASK_ISA_PKU_UNSET): New.
15294         (ix86_handle_option): Handle -mrdpid.
15295         * config/i386/cpuid.h (bit_RDPID): New.
15296         * config/i386/driver-i386.c (host_detect_local_cpu):
15297         Detect RDPID feature.
15298         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
15299         * config/i386/i386-c.c (ix86_target_macros_internal):
15300         Handle RDPID flag.
15301         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
15302         (ix86_valid_target_attribute_inner_p): Add "rdpid".
15303         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
15304         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
15305         * config/i386/i386.md (define_insn "rdpid"): New.
15306         * config/i386/i386.opt Add -mrdpid.
15307         * config/i386/immintrin.h (_rdpid_u32): New.
15309 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
15311         PR rtl-optimization/79541
15312         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
15313         instead of transforming it into USE.
15315 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
15317         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
15318         If HONOR_SNANS (SFmode) force the input to a register.
15319         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
15320         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
15321         an frsp or similar insn.
15323 2017-02-17  Martin Liska  <mliska@suse.cz>
15325         PR rtl-optimization/79577
15326         * params.def (selsched-max-sched-times): Increase minimum to 1.
15328 2017-02-17  Martin Liska  <mliska@suse.cz>
15330         PR rtl-optimization/79574
15331         * gcse.c (want_to_gcse_p): Prevent integer overflow.
15333 2017-02-17  Martin Liska  <mliska@suse.cz>
15335         PR tree-optimization/79529
15336         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
15337         ssa_defined_default_def_p to handle cases which are implicitly
15338         defined.
15339         * tree-ssa.c (ssa_defined_default_def_p): New function.
15340         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
15341         which are implicitly defined.
15342         * tree-ssa.h (ssa_defined_default_def_p): Declare.
15344 2017-02-17  Richard Biener  <rguenther@suse.de>
15346         PR middle-end/79576
15347         * params.def (max-ssa-name-query-depth): Limit to 10.
15349 2017-02-17  Richard Biener  <rguenther@suse.de>
15351         PR tree-optimization/79552
15352         * tree-ssa-structalias.c (visit_loadstore): Properly verify
15353         default defs.
15355 2017-02-17  Richard Biener  <rguenther@suse.de>
15357         PR bootstrap/79567
15358         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
15360 2017-02-17  Marek Polacek  <polacek@redhat.com>
15362         PR middle-end/79536
15363         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
15364         (fold_negate_expr): New wrapper.
15366 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
15368         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
15369         Correct terminology and de-emphasize pre-standard behavior.
15371 2017-02-16  Alan Modra  <amodra@gmail.com>
15373         PR rtl-optimization/79286
15374         * ira.c (def_dominates_uses): New function.
15375         (update_equiv_regs): Don't create an equivalence for insns that
15376         may trap where the register def does not dominate the use.
15378 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
15380         PR rtl-optimization/78127
15381         * lra.c (lra): Call lra_eliminate before finish the loop after
15382         lra_constraint.
15384 2017-02-16  Richard Biener  <rguenther@suse.de>
15386         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
15387         isl/isl_val.h.
15388         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
15389         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
15390         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
15391         (isl_val_int_from_wi): New function.
15392         (extract_affine_gmp): Rename to ...
15393         (extract_affine_wi): ... this, take a widest_int.
15394         (extract_affine_int): Just wrap extract_affine_wi.
15395         (add_param_constraints): Use isl_val_int_from_wi.
15396         (add_loop_constraints): Likewise, and extract_affine_wi.
15398 2017-02-15  Jeff Law  <law@redhat.com>
15400         PR middle-end/79521
15401         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
15402         ira_init_register_move_cost_if_necessary.
15404 2017-02-15  Martin Sebor  <msebor@redhat.com>
15406         PR middle-end/32003
15407         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
15408         removed in a prior commit.
15410 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
15412         PR tree-optimization/79347
15413         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
15414         counters during peeling.
15416 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
15418         * Makefile.in (site.exp): Remove "set ISLVER".
15420 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
15422         PR target/79487
15423         * real.c (real_from_integer): Call real_convert even for decimal.
15425 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15427         PR target/79421
15428         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
15430 2017-02-14  Andrew Pinski  <apinski@cavium.com>
15432         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
15433         cores and change the partno/implementer to be correct.
15434         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
15435         the 'B" as the implementer.
15436         * config/aarch64/aarch64-tune.md: Regenerate.
15438 2017-02-14  Carl Love  <cel@us.ibm.com>
15440         * config/rs6000/rs6000.c: Add case statement entry to make the
15441         xvcvuxdsp built-in argument unsigned.
15442         * config/rs6000/vsx.md: Fix the source and return operand types so they
15443         match the instruction definitions from the ISA document.  Fix typo
15444         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
15445         statement.
15447 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
15449         PR target/79282
15450         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
15451         member early_clobber_alts.
15452         * lra-lives.c (reg_early_clobber_p): New.
15453         (process_bb_lives): Use it.
15454         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
15455         (debug_operand_data): Initialize early_clobber_alts.
15456         (setup_operand_alternative): Set up early_clobber_alts.
15457         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
15458         alternatives to new_insn_reg.
15459         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
15460         it.
15461         (lra_update_insn_regno_info): Pass the new arg.
15463 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
15465         PR middle-end/79505
15466         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
15467         (new_oacc_loop_raw): Don't clear already cleared fields.
15469         PR target/79481
15470         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
15471         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
15472         _mm512_prefetch_i64gather_ps): New inline functions and macros.
15474 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
15476         PR target/79495
15477         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
15479 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
15481         PR target/79498
15482         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
15483         the extra instruction to the right place to store 128-bit constant
15484         when needed.
15486 2017-02-14  Martin Sebor  <msebor@redhat.com>
15488         PR middle-end/79448
15489         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
15490           warning for strings of unknown length.
15492 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
15494         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
15496 2017-02-14  Jeff Law  <law@redhat.com>
15498         PR target/79404
15499         * ira-costs.c (scan_one_insn): Initialize register move costs
15500         for pseudos seen in USE/CLOBBER insns.
15502         PR tree-optimization/79095
15503         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
15504         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
15505         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
15506         if the operands are known to be not equal, then the resulting range
15507         is ~[0,0].
15508         (intersect_ranges): If the new range is ~[0,0] and the old range is
15509         wide, then prefer ~[0,0].
15510         * tree-vrp.c (overflow_comparison_p_1): New function.
15511         (overflow_comparison_p): New function.
15512         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
15513         if NAME is used in an overflow test.
15514         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
15515         overflow check that can be expressed as an equality test, then adjust
15516         ops to be that equality test.
15518 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15520         * config/s390/s390-builtin-types.def: Remove flags argument.
15521         * config/s390/s390.c (s390_init_builtins): Likewise.
15523 2017-02-14  Martin Liska  <mliska@suse.cz>
15525         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
15526         vector.  Fix trailing white spaces.
15528 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
15530         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
15531         HFmode.
15533 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15535         PR rtl-optimization/68664
15536         * config/arm/arm.c (arm_sched_can_speculate_insn):
15537         New function.  Declare prototype.
15538         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
15540 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15542         PR rtl-optimization/68664
15543         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
15544         New function.
15545         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
15547 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
15549         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
15550         max skip bytes for function, loop and jump.
15552 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15554         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
15555         ABS_EXPR for gimple dump.
15557 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
15559         PR target/79462
15560         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
15562         PR tree-optimization/79408
15563         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
15564         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
15565         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
15566         also if rhs1 is INTEGER_CST.
15568 2017-02-14  Richard Biener  <rguenther@suse.de>
15570         PR middle-end/79432
15571         * tree-into-ssa.c (insert_phi_nodes): When the function can
15572         have abnormal edges rewrite SSA names with broken use-def
15573         dominance out of SSA and register them for PHI insertion.
15575 2017-02-13  Martin Sebor  <msebor@redhat.com>
15577         PR middle-end/79496
15578         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
15579         clearing info.nowrite flag when snprintf size argument is a range.
15581 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
15583         * cprop.c (cprop_jump): Add missing space in string literal.
15584         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
15585         (get_constraint_for_component_ref): Likewise.
15586         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15587         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
15588         * lra-constraints.c (process_alt_operands): Likewise.
15589         * ipa-inline.c (inline_small_functions): Likewise.
15590         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
15591         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
15592         * trans-mem.c (diagnose_tm_1_op): Likewise.
15593         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
15594         (grid_parallel_clauses_gridifiable): Likewise.
15596         * config/nvptx/mkoffload.c (process): Add space in between
15597         , and %d.
15599         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
15600         "MOD4_SSE_REGS" and "ALL_REGS".
15602         * spellcheck.c (test_data): Add , in between "foo" and "food".
15604 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15606         PR target/79449
15607         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
15608         boundary crossing check and subsequent code generation agree.
15610 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15612         * config/aarch64/aarch64.c (has_memory_op): Delete.
15613         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
15614         has_memory_op.
15616 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
15618         PR rtl-optimization/79388
15619         PR rtl-optimization/79450
15620         * combine.c (distribute_notes): When removing TEM_INSN for which
15621         corresponding dest has last value recorded, invalidate that last
15622         value.
15624 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15626         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
15627         of explicit '@'.  Add missing assembly comment marker on branch costs
15628         printout.
15630 2017-02-13  Nathan Sidwell  <nathan@acm.org>
15632         * gengtype-lex.l (<in_struct>): Add '/'.
15634 2017-02-13  Martin Liska  <mliska@suse.cz>
15636         PR c/79471
15637         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
15639 2017-02-13  Richard Biener  <rguenther@suse.de>
15641         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
15642         Remove.
15643         * configure: Re-generate.
15644         * config.in: Likewise.
15645         * graphite-dependences.c: Simplify as if
15646         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
15647         * graphite-isl-ast-to-gimple.c: Likewise.
15648         * graphite-optimize-isl.c: Likewise.
15649         * graphite-poly.c: Likewise.
15650         * graphite-sese-to-poly.c: Likewise.
15651         * graphite.h: Likewise.
15652         * toplev.c: Include isl/version.h and use isl_version () for
15653         printing the ISL version.
15654         * doc/install.texi: Update ISL requirement.
15656 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
15658         * doc/standards.texi (Standards): Update reference to
15659         Objective-C 2.0.
15661 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
15663         * doc/extend.texi (Named Address Spaces): sourceware.org now
15664         defaults to https.
15665         * doc/install.texi (Binaries): Ditto.
15666         (Specific): Ditto.
15668 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
15670         * doc/cpp.texi: Replace "stringify"/"stringification" with C
15671         standard terminology "stringize"/"stringizing" throughout.
15672         * doc/cppinternals.texi: Likewise.
15674 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
15676         * doc/extend.texi: Fix some spelling mistakes and typos.
15677         * doc/invoke.texi: Likewise.
15679 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
15681         PR ipa/79224
15682         * params.def (inline-min-speedup) Change from 10 to 8.
15684 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
15686         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
15687         4.5.
15689 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
15691         PR ipa/79224
15692         * ipa-inline-analysis.c (get_minimal_bb): New function.
15693         (record_modified): Use it.
15694         (remap_edge_change_prob): Handle also ancestor functions.
15696 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
15698         * doc/contrib.texi (Contributors): Remove broken link into
15699         the Mauve CVS repository.
15701 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
15703         PR middle-end/79454
15704         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
15705         result computation whenever lhs doesn't have vector mode, not
15706         just when it has BLKmode.
15708 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
15710         * doc/makefile.texi (profiledbootstrap): Refer to the
15711         installation instructions only in textual form.
15713 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15715         PR target/79295
15716         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
15718 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
15720         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
15721         (Specific): Update mingw-w64 reference.
15722         (Binaries): Ditto.
15723         (Specific): Remove broken link to Renesas RX processor.
15725 2017-02-10  Richard Biener  <rguenther@suse.de>
15727         * toplev.c (process_options): Do not mention obsolete graphite
15728         options when printing sorry message about missing graphite support.
15729         Mention -floop-nest-optimize.
15731 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
15733         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
15734         (vtst_p16): Likewise.
15735         (vtstq_p8): Likewise.
15736         (vtstq_p16): Likewise.
15737         (vtst_p64): New.
15738         (vtstq_p64): Likewise.
15739         * config/arm/arm_neon.h (vgetq_lane_p64): New.
15740         (vset_lane_p64): New.
15741         (vsetq_lane_p64): New.
15743 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
15745         PR tree-optimization/79411
15746         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
15747         stmt operands are SSA_NAMEs used in abnormal phis.
15748         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
15749         phis.
15751 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
15753         PR ipa/70795
15754         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
15755         flag if needed.
15757 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
15759         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
15761 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
15763         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
15764         to avoid warning.
15766         PR c/79413
15767         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
15768         not arbitrary TREE_CONSTANT.
15770         PR c/79431
15771         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
15772         "omp declare target link" attribute unless is_global_var.
15773         * omp-offload.c (find_link_var_op): Likewise.
15775 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
15776             Chung-Lin Tang  <cltang@codesourcery.com>
15778         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
15779         OMP_CLAUSE_TILE.
15780         (gimplify_adjust_omp_clauses): Don't delete TILE.
15781         (gimplify_omp_for): Deal with TILE.
15782         * internal-fn.c (expand_GOACC_TILE): New function.
15783         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
15784         (GOACC_TILE): New.
15785         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
15786         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
15787         element fields.
15788         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
15789         avoid DIV for outermost collapse var.
15790         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
15791         Remove out of date comments, fix whitespace.
15792         * omp-general.c (omp_extract_for_data): Deal with tiling.
15793         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
15794         adjust OLF_DIM_BASE value.
15795         (struct omp_for_data): Add tiling field.
15796         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
15797         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
15798         for auto loops.  Remove default auto determining, moved to
15799         oacc_loop_fixed_partitions.
15800         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
15801         stmts, add e_mask field.
15802         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
15803         (oacc_thread_numbers): Use oacc_dim_call.
15804         (oacc_xform_tile): New.
15805         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
15806         (finish_oacc_loop): Adjust for ifns vector.
15807         (oacc_loop_discover_walk): Append loop abstraction sites to list,
15808         add case for GOACC_TILE fns.
15809         (oacc_loop_xform_loop): Delete.
15810         (oacc_loop_process): Iterate over call list directly, and add
15811         handling for GOACC_TILE fns.
15812         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
15813         dump partitioning.
15814         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
15815         vector partitioning to outer loops.  Assign 2 partitions to loops
15816         when available. Add TILE handling.
15817         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
15818         (execite_oacc_device_lower): Process GOACC_TILE fns,
15819         ignore unknown specs.
15820         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
15821         * tree.c (omp_clause_num_ops): Adjust TILE ops.
15822         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
15824 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
15826         * configure.ac (ACX_BUGURL): Update.
15827         * configure: Regenerate.
15829 2017-02-09  Richard Biener  <rguenther@suse.de>
15831         PR tree-optimization/69823
15832         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15833         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
15835 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
15837         * config/arc/arc-c.def: Add __NPS400__ definition.
15838         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
15839         (TARGET_NPS400): Define.
15841 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
15843         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
15844         file.
15845         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
15846         pointer, arch_info.
15847         (arc_cpu_types): Fill the arch_info field with a pointer into the
15848         arc_arch_types table.
15849         (arc_selected_cpu): Declare.
15850         * config/arc/arc.c (arc_selected_cpu): Make global.
15851         (arc_selected_arch): Delete.
15852         (arc_base_cpu): Delete.
15853         (arc_override_options): Remove references to deleted variables,
15854         update access to arch information.
15855         (ARC_OPT): Update access to arch information.
15856         (ARC_OPTX): Likewise.
15857         * config/arc/arc.h (arc_base_cpu): Remove declaration.
15858         (TARGET_ARC600): Update access to arch information.
15859         (TARGET_ARC601): Likewise.
15860         (TARGET_ARC700): Likewise.
15861         (TARGET_EM): Likewise.
15862         (TARGET_HS): Likewise.
15863         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
15864         information.
15866 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
15868         PR target/78604
15869         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
15870         condition/operands for integer GE/LE/GEU/LEU operations.
15872 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
15874         PR translation/79397
15875         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
15876         of AltiVec.
15878 2017-02-08  Martin Jambor  <mjambor@suse.cz>
15880         PR ipa/79375
15881         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
15882         whether allocation happened.
15883         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
15884         nothing was allocated.
15886 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
15888         PR tree-optimization/79408
15889         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
15890         constant, but SSA_NAME with a known integer range, use the minimum
15891         of that range instead of op1 to determine if modulo can be replaced
15892         with its first operand.
15894 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15896         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
15898 2017-02-08  Richard Biener  <rguenther@suse.de>
15900         PR tree-optimization/71824
15901         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
15902         Check all loops contained in the merged region.
15904 2017-02-07  Andrew Pinski  <apinski@cavium.com>
15906         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
15908 2017-02-07  Andrew Pinski  <apinski@cavium.com>
15910         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
15911         (thunderxt88): Likewise.
15912         (thunderxt81): Disable LSE and change v8.1 to v8.
15913         (thunderxt83): Likewise.
15915 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
15916             Richard Biener  <rguenther@suse.de>
15918         PR middle-end/79399
15919         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
15920         type from int to size_t.
15921         * ira-costs.c (struct_costs_size): Change type from int to size_t.
15923 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
15925         PR rtl-optimization/79386
15926         * cprop.c (bypass_conditional_jumps): Initialize
15927         bypass_last_basic_block already before splitting bbs after
15928         unconditional traps...
15929         (bypass_conditional_jumps): ... rather than here.
15931         PR target/79299
15932         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
15933         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
15934         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
15935         fix -masm=intel patterns.
15937 2017-02-07  Richard Biener  <rguenther@suse.de>
15939         PR tree-optimization/79256
15940         PR middle-end/79278
15941         * builtins.c (get_object_alignment_2): Use min_align_of_type
15942         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
15943         and ADJUST_FIELD_ALIGN.
15945         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
15946         type parameter.
15947         * doc/tm.texi: Regenerate.
15948         * stor-layout.c (layout_decl): Adjust.
15949         (update_alignment_for_field): Likewise.
15950         (place_field): Likewise.
15951         (min_align_of_type): Likewise.
15952         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
15953         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
15954         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
15955         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
15956         * config/frv/frv.c (frv_adjust_field_align): Likewise.
15957         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
15958         * config/i386/i386.c (x86_field_alignment): Likewise.
15959         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
15960         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
15961         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15962         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15963         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
15964         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
15965          Likewise.
15967         Revert
15968         2017-01-30  Richard Biener  <rguenther@suse.de>
15970         PR tree-optimization/79256
15971         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
15972         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
15973         alignment on TYPE.
15975 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
15977         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
15978         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
15979         builtins to SImode and emit a zero-extend, if necessary.
15981 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
15983         * docs/invoke.texi (RISC-V Options): Alphabetize.
15985 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
15987         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
15988         options.
15990 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
15992         * config/riscv/riscv.c: New file.
15993         * common/config/riscv/riscv-common.c: Likewise.
15994         * config.gcc: Likewise.
15995         * config/riscv/constraints.md: Likewise.
15996         * config/riscv/elf.h: Likewise.
15997         * config/riscv/generic.md: Likewise.
15998         * config/riscv/linux.h: Likewise.
15999         * config/riscv/multilib-generator: Likewise.
16000         * config/riscv/peephole.md: Likewise.
16001         * config/riscv/pic.md: Likewise.
16002         * config/riscv/predicates.md: Likewise.
16003         * config/riscv/riscv-builtins.c: Likewise.
16004         * config/riscv/riscv-c.c: Likewise.
16005         * config/riscv/riscv-ftypes.def: Likewise.
16006         * config/riscv/riscv-modes.def: Likewise.
16007         * config/riscv/riscv-opts.h: Likewise.
16008         * config/riscv/riscv-protos.h: Likewise.
16009         * config/riscv/riscv.h: Likewise.
16010         * config/riscv/riscv.md: Likewise.
16011         * config/riscv/riscv.opt: Likewise.
16012         * config/riscv/sync.md: Likewise.
16013         * config/riscv/t-elf-multilib: Likewise.
16014         * config/riscv/t-linux: Likewise.
16015         * config/riscv/t-linux-multilib: Likewise.
16016         * config/riscv/t-riscv: Likewise.
16017         * configure.ac: Likewise.
16018         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
16019         Waterman as RISC-V maintainers.
16020         * doc/install.texi: Add RISC-V entries.
16021         * doc/invoke.texi: Add RISC-V options section.
16022         * doc/md.texi: Add RISC-V constraints section.
16023         * configure: Regenerated.
16025 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16027         PR target/66144
16028         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
16029         false values to be constant vectors with all 0 or all 1 bits set.
16030         (vcondu<mode><mode>): Likewise.
16031         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
16032         predicate.
16033         (fpmask_comparison_operator): Update comment.
16034         (vecint_comparison_operator): New predicate.
16035         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
16036         vector conditionals when the true and false values are constant
16037         vectors with all 0 bits or all 1 bits set.
16039 2017-02-06  Martin Sebor  <msebor@redhat.com>
16041         PR  tree-optimization/79376
16042         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
16044 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
16046         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
16047         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
16048         to simplify split condition.
16050 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
16052         * omp-expand.c (oxpand_omp_atomic_fetch_op,
16053         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
16054         false.
16056 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
16058         PR rtl-optimization/68664
16059         * target.def (can_speculate_insn): New hook.
16060         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
16061         * doc/tm.texi: Regenerate.
16062         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
16063         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
16064         (rs6000_sched_can_speculate_insn): New function.
16066 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
16068         PR tree-optimization/79284
16069         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
16070         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
16071         vectorizable_mask_load_store, vectorizable_operation,
16072         vect_is_simple_cond, get_same_sized_vectype): Use it instead
16073         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
16074         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
16075         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
16076         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
16077         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
16078         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
16079         is_gimple_assign (stmt).  Replace another such test with
16080         is_gimple_assign (stmt).
16082 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
16084         PR target/78883
16085         * config/avr/avr.c (rtl-iter.h): Include it.
16086         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
16087         (avr_legitimate_combined_insn): ...and implementation.
16089 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16091         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
16092         * config/s390/s390.c (s390_const_operand_ok)
16093         (s390_canonicalize_comparison, s390_extract_part)
16094         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
16095         (s390_contiguous_bitmask_p, s390_rtx_costs)
16096         (legitimize_pic_address): Likewise.
16097         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
16098         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
16099         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
16100         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
16101         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
16103 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
16105         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
16106         REGNO($0) == REGNO($1).
16108 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16110         * config/s390/linux.h(SIZE_TYPE): Add comment.
16112 2017-02-06  Julian Brown  <julian@codesourcery.com>
16113             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
16114             Virendra Pathak  <virendra.pathak@broadcom.com>
16116         * config/aarch64/aarch64-cores.def: Change the scheduler
16117         to Thunderx2t99.
16118         * config/aarch64/aarch64.md: Include thunderx2t99.md.
16119         * config/aarch64/thunderx2t99.md: New file.
16121 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
16123         * doc/standards.texi (Go Language): Update link to language
16124         standard.
16126 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
16128         * tree-eh.c (lower_resx): Sanitize profile.
16129         (cleanup_empty_eh_move_lp): Likewise.
16131 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
16133         PR tree-ssa/79347
16134         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
16135         ELSE_PROB.
16136         * cfgloopmanip.h (loop_version): Update prototype.
16137         * modulo-sched.c (sms_schedule): Update call of loop_version.
16138         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
16139         * tree-parloops.c (gen_parallel_loop): Likewise.
16140         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
16141         * tree-ssa-loop-split.c (split_loop): Likewise.
16142         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
16143         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
16145 2017-02-05  Martin Liska  <mliska@suse.cz>
16147         PR bootstrap/78985
16148         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
16149         variable to NULL.
16150         (print_operand_address): Initialize a struct to zero.
16152 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
16154         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
16155         garbage collector only in textual form.
16157 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
16159         * doc/extend.texi (x86 specific memory model extensions for
16160         transactional memory): Simplify a phrase.
16162 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
16164         PR target/79353
16165         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
16166         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
16167         (atomic_storedi_1): Likewise.
16169 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
16171         PR tree-optimization/79338
16172         * tree-parloops.c (gather_scalar_reductions): Don't call
16173         vect_analyze_loop_form for loop->inner before destroying loop's
16174         loop_vinfo.
16176 2017-02-03  Martin Sebor  <msebor@redhat.com>
16178         PR tree-optimization/79327
16179         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
16180         when precision has resulted in leading zeros.
16181         (format_integer): Adjust the likely counter to assume an unknown
16182         argument that may be zero is non-zero.
16184 2017-02-03  Jason Merrill  <jason@redhat.com>
16186         PR c++/78689
16187         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
16188         avoid copying non-taken branch.
16190 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
16192         PR tree-optimization/79340
16193         * tree-vect-loop.c (vectorizable_reduction): Release
16194         vec_defs elements after safe_splicing them into other vectors.
16195         Formatting fixes.
16197         PR tree-optimization/79327
16198         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
16199         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
16200         dirtype.
16201         (format_integer): Use wide_int_to_tree instead of build_int_cst
16202         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
16203         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
16204         of shortest and longest sequence.
16206 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
16208         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
16209         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
16211 2017-02-03  Walter Lee  <walt@tilera.com>
16213         PR target/78862
16214         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
16215         after initial stackframe link reg save.
16216         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
16218 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
16220         PR target/79354
16221         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
16222         wu for stxssp alternative.
16224 2017-02-03  Martin Sebor  <msebor@redhat.com>
16226         PR tree-optimization/79352
16227         * gimple-fold.c (get_range_strlen): Add argument.
16228         (get_range_strlen): Change return type to bool.
16229         (get_maxval_strlen): Pass in a dummy argument.
16230         * gimple-fold.h (get_range_strlen): Change return type to bool.
16231         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
16232         * tree.h (array_at_struct_end_p): Add argument.
16233         * tree.c (array_at_struct_end_p): Handle it.
16235 2017-02-03  Martin Liska  <mliska@suse.cz>
16237         PR lto/66295
16238         * multiple_target.c (create_dispatcher_calls): Redirect edge
16239         from a caller of a dispatcher.
16240         (expand_target_clones): Make the clones local.
16241         (ipa_target_clone): Do both target clones and resolvers.
16242         (ipa_dispatcher_calls): Remove the pass.
16243         (pass_dispatcher_calls::gate): Likewise.
16244         (make_pass_dispatcher_calls): Likewise.
16245         * passes.def (pass_target_clone): Put as very first IPA early
16246         pass.
16248 2017-02-03  Martin Liska  <mliska@suse.cz>
16250         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
16251         in case of a function with ifunc attribute.
16253 2017-02-03  Martin Liska  <mliska@suse.cz>
16255         * cgraph.c (cgraph_node::dump): Dump function version info.
16256         * symtab.c (symtab_node::dump_base): Add missing new line.
16258 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
16260         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
16261         (ifcombine_ifandif): Use it.
16263 2017-02-03  Martin Liska  <mliska@suse.cz>
16265         * doc/invoke.texi: Document default value for
16266         use-after-scope-direct-emission-threshold.
16268 2017-02-03  Martin Liska  <mliska@suse.cz>
16270         PR tree-optimization/79339
16271         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
16272         (format_floating): Likewise.
16274 2017-02-03  Martin Liska  <mliska@suse.cz>
16276         PR ipa/79337
16277         * ipa-prop.c (ipa_node_params_t::insert): Remove current
16278         implementation.
16279         (ipa_node_params_t::remove): Likewise.
16280         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
16281         initialization from removed ipa_node_params_t::insert.
16282         (ipa_node_params::~ipa_node_params): Move from removed
16283         ipa_node_params_t::release.
16284         * symbol-summary.h (symbol_summary::m_released): New member.
16285         Do not release a summary twice.  Do not allow to call finalizer
16286         for types of a summary that live in GGC memory.
16288 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
16290         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
16291         cmp_branch fusion.
16293 2017-02-02  Martin Sebor  <msebor@redhat.com>
16295         PR middle-end/79275
16296         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
16297         (format_string): Tighten up the range of output for non-constant
16298         strings and correct the expected range for wide non-constant strings.
16300 2017-02-02  Martin Sebor  <msebor@redhat.com>
16302         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
16304         PR middle-end/32003
16305         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
16306         index.
16307         (-fdump-tree-@var): Add to index and document how to come up
16308         with pass-specific option and dump file names.
16309         (-fdump-passes): Clarify where to look for output.
16311 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
16313         PR middle-end/77445
16314         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
16315         statistics of the analyzed path; allow threading for speed when
16316         any of BBs along the path are optimized for speed.
16318 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
16320         PR middle-end/78468
16321         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
16322         settings of the virtual registers.
16324         Revert again
16325         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16327         * explow.c (get_dynamic_stack_size): Take known alignment of stack
16328         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
16329         needed.
16331 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16333         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
16334         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
16336 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16338         * config/s390/s390.md: Add missing comments with the expanded
16339         mnemonics.
16340         * config/s390/vector.md: Likewise.
16341         * config/s390/vx-builtins.md: Likewise.
16343 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
16345         PR target/79197
16346         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
16347         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
16348         conditions on a single line.
16350 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16352         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
16353         __S390_VX__ to __VX__.
16355 2017-02-01  Andrew Pinski  <apinski@cavium.com>
16357         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
16358         stmt_info to record_stmt_cost.
16359         (vect_get_known_peeling_cost): Pass stmt_info if known to
16360         record_stmt_cost.
16361         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
16362         cpu_vector_cost field into
16363         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
16364         field into vec_int_stmt_cost and vec_fp_stmt_cost.
16365         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
16366         splitting of scalar_stmt_cost and vec_stmt_cost.
16367         (thunderx_vector_cost): Likewise.
16368         (cortexa57_vector_cost): LIkewise.
16369         (exynosm1_vector_cost): Likewise.
16370         (xgene1_vector_cost): Likewise.
16371         (thunderx2t99_vector_cost): Improve after the splitting of the two
16372         fields.
16373         (aarch64_builtin_vectorization_cost): Update for the splitting of
16374         scalar_stmt_cost and vec_stmt_cost.
16376 2017-02-01  Torvald Riegel  <triegel@redhat.com>
16377             Richard Henderson  <rth@redhat.com>
16379         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
16380         conditional on existance of a fast atomic load.
16381         * optabs-query.c (can_atomic_load_p): New function.
16382         * optabs-query.h (can_atomic_load_p): Declare it.
16383         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
16384         no fast atomic load is available for the particular size of access.
16385         (expand_atomic_compare_and_swap): Likewise.
16386         (expand_atomic_load): Likewise.
16387         (expand_atomic_store): Likewise.
16388         (expand_atomic_fetch_op): Likewise.
16389         * testsuite/lib/target-supports.exp
16390         (check_effective_target_sync_int_128): Remove x86 because it provides
16391         no fast atomic load.
16392         (check_effective_target_sync_int_128_runtime): Likewise.
16394 2017-02-01  Richard Biener  <rguenther@suse.de>
16396         * graphite.c: Include tree-vectorizer.h for find_loop_location.
16397         (graphite_transform_loops): Provide opt-info for optimized nests.
16398         * tree-parloop.c (parallelize_loops): Provide opt-info for
16399         parallelized loops.
16401 2017-02-01  Richard Biener  <rguenther@suse.de>
16403         PR middle-end/79315
16404         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
16405         was not set before.
16407 2017-02-01  Richard Biener  <rguenther@suse.de>
16409         PR tree-optimization/71824
16410         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
16411         Verify the loops are valid in the merged SESE region.
16412         (scop_detection::can_represent_loop_1): Check analyzing the
16413         evolution of the number of iterations in the region succeeds.
16415 2017-01-31  Ian Lance Taylor  <iant@golang.org>
16417         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
16418         REG_ARGS_SIZE note to 32-bit push insns and call insn.
16420 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
16422         PR preprocessor/79210
16423         * input.c (get_substring_ranges_for_loc): Replace line_width
16424         assertion with error-handling.
16426 2017-01-31  Richard Biener  <rguenther@suse.de>
16428         PR tree-optimization/77318
16429         * graphite-sese-to-poly.c (extract_affine): Fix assert.
16430         (create_pw_aff_from_tree): Take loop parameter.
16431         (add_condition_to_pbb): Pass loop of the condition to
16432         create_pw_aff_from_tree.
16434 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
16436         * config/s390/s390.c (s390_asan_shadow_offset): New function.
16437         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
16439 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
16441         PR target/78597
16442         PR target/79038
16443         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
16444         no longer used.
16445         (convert_int_to_float128): Likewise.
16446         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
16447         (convert_int_to_float128): Likewise.
16448         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
16449         (UNSPEC_IEEE128_CONVERT): Likewise.
16450         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
16451         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
16452         Use local variables for IBM extended format.
16453         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
16454         (fix_trunc<mode>si2_fprs): Likewise.
16455         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
16456         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
16457         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
16458         to know that we can now have integers of all sizes in vector
16459         registers.
16460         (fix<uns>_<mode>di2_hw): Likewise.
16461         (float<uns>_<mode>si2_hw): Likewise.
16462         (fix_<mode>si2_hw): Likewise.
16463         (fixuns_<mode>si2_hw): Likewise.
16464         (float<uns>_<mode>di2_hw): Likewise.
16465         (float_<mode>di2_hw): Likewise.
16466         (float_<mode>si2_hw): Likewise.
16467         (floatuns_<mode>di2_hw): Likewise.
16468         (floatuns_<mode>si2_hw): Likewise.
16469         (xscvqp<su>wz_<mode>): Delete, no longer used.
16470         (xscvqp<su>dz_<mode>): Likewise.
16471         (xscv<su>dqp_<mode>): Likewise.
16472         (ieee128_mfvsrd_64bit): Likewise.
16473         (ieee128_mfvsrd_32bit): Likewise.
16474         (ieee128_mfvsrwz): Likewise.
16475         (ieee128_mtvsrw): Likewise.
16476         (ieee128_mtvsrd_64bit): Likewise.
16477         (ieee128_mtvsrd_32bit): Likewise.
16479 2017-01-31  Martin Liska  <mliska@suse.cz>
16481         PR ipa/79285
16482         * ipa-prop.c (ipa_free_all_node_params): Call release method
16483         instead of ~sumbol_summary to not to trigger double times
16484         dtor of hash_map.
16486 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
16488         PR tree-optimization/71691
16489         * bitmap.h (class auto_bitmap): New.
16490         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
16491         is_maybe_undefined instead of ssa_undefined_value_p.
16493 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16495         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
16496         __S390_ARCH_LEVEL__ to __ARCH__.
16498 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
16500         PR tree-optimization/79267
16501         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
16502         if should_remove_lhs_p is true.
16504 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
16506         PR debug/63238
16507         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
16508         (add_alignment_attribute): New.
16509         (base_type_die): Add alignment attribute.
16510         (subrange_type_die): Likewise.
16511         (modified_type_die): Likewise.
16512         (gen_array_type_die): Likewise.
16513         (gen_descr_array_type_die: Likewise.
16514         (gen_enumeration_type_die): Likewise.
16515         (gen_subprogram_die): Likewise.
16516         (gen_variable_die): Likewise.
16517         (gen_field_die): Likewise.
16518         (gen_ptr_to_mbr_type_die): Likewise.
16519         (gen_struct_or_union_type_die): Likewise.
16520         (gen_subroutine_type_die): Likewise.
16521         (gen_typedef_die): Likewise.
16522         (base_type_cmp): Compare alignment attribute.
16524 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
16526         PR target/79170
16527         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
16528         (setb_unsigned) New pattern for setb with CCUNS.
16529         * config/rs6000/rs6000.c (expand_block_compare): Use a different
16530         subfc./subfe sequence to avoid overflow problems.  Generate a
16531         shorter sequence with cmpld/setb for power9.
16532         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
16533         for generating subfc. instruction.
16534         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
16535         now uses this instruction.
16537 2017-01-30  Ian Lance Taylor  <iant@google.com>
16539         PR debug/79289
16540         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
16541         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
16543 2017-01-30  Martin Sebor  <msebor@redhat.com>
16545         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
16546         Move constant to the right of a relational operator.
16547         (get_mpfr_format_length, format_character, format_string): Ditto.
16548         (should_warn_p, maybe_warn): Same.
16550         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
16552 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
16554         PR lto/79061
16555         * asan.c (get_translation_unit_decl): Remove function.
16556         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
16558 2017-01-30  Martin Liska  <mliska@suse.cz>
16560         PR gcov-profile/79259
16561         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
16562         -fprofile-generate.
16564 2017-01-30  Martin Liska  <mliska@suse.cz>
16566         PR bootstrap/78985
16567         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
16568         Initialize variables with NULL value.
16570 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
16572         PR target/79260
16573         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
16574         tm_p_file.
16575         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
16577 2017-01-30  Richard Biener  <rguenther@suse.de>
16579         PR tree-optimization/79276
16580         * tree-vrp.c (process_assert_insertions): Properly adjust common
16581         when removing a duplicate.
16583         * gcc.dg/torture/pr79276.c: New testcase.
16585 2017-01-30  Richard Biener  <rguenther@suse.de>
16587         PR tree-optimization/79256
16588         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
16589         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
16590         alignment on TYPE.
16591         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
16593 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16595         PR target/79240
16596         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
16597         ("*r<noxa>sbg_<mode>_sll_bitmask")
16598         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
16599         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
16600         Use contiguous_bitmask_nowrap_operand.
16602 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16604         PR target/79268
16605         * config/rs6000/altivec.h (vec_xl): Revise #define.
16606         (vec_xst): Likewise.
16608 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
16610         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
16612 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
16614         PR rtl-optimization/79194
16615         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
16616         traps before call to bypass_conditional_jumps.
16618 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
16620         PR tree-optimization/71374
16621         * lra-constraints.c (check_conflict_input_operands): New.
16622         (match_reload): Use it.
16624 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
16626         PR target/79131
16627         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
16628         account to calculate conflict_set.
16630 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
16632         PR rtl-optimization/78559
16633         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
16634         other_insn in combine.
16636 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
16638         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
16639         uint16_type_node for BT_UINT16.
16641 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
16643         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
16644         "RTL Tests" to menu.
16645         (GIMPLE Tests): New node.
16646         (RTL Tests): New node.
16648 2017-01-27  Richard Biener  <rguenther@suse.de>
16650         PR tree-optimization/79245
16651         * tree-loop-distribution.c (distribute_loop): Apply cost
16652         modeling also to detected patterns.
16654 2017-01-27  Richard Biener  <rguenther@suse.de>
16656         PR tree-optimization/71433
16657         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
16658         (compare_assert_loc): New function.
16659         (process_assert_insertions): Sort and optimize assert locations
16660         to remove duplicates and push down identical assertions on
16661         edges to their destination block.
16663 2017-01-27  Richard Biener  <rguenther@suse.de>
16665         PR tree-optimization/79244
16666         * tree-vrp.c (remove_range_assertions): Forcefully propagate
16667         out SSA names even if abnormal.
16669 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
16671         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
16672         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
16673         instead of MPFR_RNDN.
16675 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
16677         PR target/79239
16678         * arm.c (arm_option_override): Don't call build_target_option_node
16679         until after doing all option overrides.
16680         (arm_valid_target_attribute_tree): Likewise.
16682 2017-01-27  Martin Liska  <mliska@suse.cz>
16684         * doc/invoke.texi (-fprofile-arcs): Document profiling support
16685         for {cd}tors and C++ {cd}tors.
16687 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16689         * config/s390/s390.md ("*setmem_long_and")
16690         ("*setmem_long_and_31z"): Use zero_extend instead of and.
16692 2017-01-26  Martin Sebor  <msebor@redhat.com>
16694         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
16695         of precision.
16697 2017-01-26  Martin Sebor  <msebor@redhat.com>
16699         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
16700         HAVE_DFmode before using XFmode or DFmode.
16701         (parse_directive): Avoid using the z length modifier to avoid
16702         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
16704         PR middle-end/78703
16705         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
16706         to accept adjustment as an array.
16707         (get_int_range): New function.
16708         (struct directive): Make width and prec arrays.
16709         (directive::set_width, directive::set_precision): Call get_int_range.
16710         (format_integer, format_floating): Handle width and precision ranges.
16711         (format_string, parse_directive): Same.
16713 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
16715         PR debug/79129
16716         * dwarf2out.c (generate_skeleton_bottom_up): For children with
16717         comdat_type_p set, just clone them, but keep the children in the
16718         original DIE.
16720         PR debug/78835
16721         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
16722         which have direct callers with -fvar-tracking-assignments enabled
16723         in the current TU.
16724         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
16725         inside of type units.
16727 2017-01-26  Martin Sebor  <msebor@redhat.com>
16729         PR middle-end/78703
16730         * gimple-ssa-sprintf.c (struct result_range): Add likely and
16731         unlikely counters.
16732         (struct format_result): Replace number_chars, number_chars_min,
16733         and number_chars_max with a single member of struct result_range.
16734         Remove bounded.
16735         (format_result::operator+=): Adjust.
16736         (struct fmtresult): Remove bounded.  Handle likely and unlikely
16737         counters.
16738         (fmtresult::adjust_for_width_or_precision): New function.
16739         (fmtresult:type_max_digits): New function.
16740         (bytes_remaining): Handle likely and unlikely counters.
16741         (min_bytes_remaining): Remove.
16742         (format_percent): Simplify.
16743         (format_integer, format_floating): Set likely and unlikely counters.
16744         (get_string_length, format_character, format_string): Same.
16745         (format_plain, should_warn_p): New function.
16746         (maybe_warn): Call should_warn_p.  Update diagnostic messages
16747         and handle those for all directives, including plain strings.
16748         (format_directive): Handle likely and unlikely counters.
16749         Remove unnecessary quoting from diagnostics.  Add an informational
16750         note.
16751         (add_bytes): Remove.
16752         (pass_sprintf_length::compute_format_length): Simplify.
16753         (try_substitute_return_value): Handle likely and unlikely counters.
16755 2017-01-26  Carl Love  <cel@us.ibm.com>
16757         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
16758         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
16760 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
16762         PR target/79131
16763         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
16764         endianess for subregs into account.
16765         * lra-constraints.c (lra_constraints): Do risky transformations
16766         always on the first iteration.
16767         * lra-lives.c (check_pseudos_live_through_calls): Add arg
16768         last_call_used_reg_set.
16769         (process_bb_lives): Define and use last_call_used_reg_set.
16770         * lra.c (lra): Always continue after lra_constraints on the first
16771         iteration.
16773 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
16775         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
16776         constant.
16777         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
16779 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
16781         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
16782         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
16783         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
16784         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
16785         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
16786         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
16787         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
16788         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
16789         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
16791 2017-01-26  Marek Polacek  <polacek@redhat.com>
16793         PR c/79199
16794         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
16795         for the third operand.
16797 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
16799         PR middle-end/79236
16800         * omp-low.c (struct omp_context): Add simt_stmt field.
16801         (scan_omp_for): Return omp_context *.
16802         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
16803         context to the _simt_ SIMD stmt.
16804         (lower_omp_for): For combined SIMD with sibling _simt_
16805         SIMD, make sure to use the same decls in _looptemp_
16806         clauses as in the sibling.
16808 2017-01-26  David Sherwood  <david.sherwood@arm.com>
16810         PR middle-end/79212
16811         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
16812         all contexts.
16814 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
16816         PR target/70465
16817         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
16818         emit fld b; fld a; if possible.
16820         * brig-builtins.def: Update copyright years.
16821         * config/arm/arm_acle_builtins.def: Update copyright years.
16823 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16825         PR target/79179
16826         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
16827         constraint instead of o for the stxsd instruction.
16829 2017-01-25  Carl Love  <cel@us.ibm.com>
16831         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
16832         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
16834 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
16836         * doc/invoke.texi (C++ Dialect Options): Fix typo.
16838 2017-01-25  Richard Biener  <rguenther@suse.de>
16840         PR tree-optimization/69264
16841         * target.def (vector_alignment_reachable): Improve documentation.
16842         * doc/tm.texi: Regenerate.
16843         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
16844         and add a comment.
16845         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
16846         earlier changes with respect to TYPE_USER_ALIGN.
16847         (vector_alignment_reachable_p): Likewise.  Improve dumping.
16849 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16851         PR target/79145
16852         * config/arm/arm.md (xordi3): Force constant operand into a register
16853         for TARGET_IWMMXT.
16855 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16857         * doc/invoke.texi (-fstore-merging): Correct default optimization
16858         levels at which it is enabled.
16859         (-O): Move -fstore-merging from list to...
16860         (-O2): ... Here.
16862 2017-01-25  Richard Biener  <rguenther@suse.de>
16864         PR debug/78363
16865         * omp-expand.c: Include debug.h.
16866         (expand_omp_taskreg): Make sure to generate early debug before
16867         outlining anything from a function.
16868         (expand_omp_target): Likewise.
16869         (grid_expand_target_grid_body): Likewise.
16871 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
16873         PR lto/79061
16874         * asan.c (get_translation_unit_decl): New function.
16875         (asan_add_global): Extract modules file name from globals
16876         TRANSLATION_UNIT_DECL name.
16878 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
16880         PR target/77439
16881         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
16882         for long calls with APCS frame and VFP.
16884 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
16886         * cfg.c (original_copy_tables_initialized_p): New function.
16887         * cfg.h (original_copy_tables_initialized_p): New decl.
16888         * cfgrtl.c (relink_block_chain): Guard the call to
16889         free_original_copy_tables with a call to
16890         original_copy_tables_initialized_p.
16891         * cgraph.h (symtab_node::native_rtl_p): New decl.
16892         * cgraphunit.c (symtab_node::native_rtl_p): New function.
16893         (symtab_node::needed_p): Don't assert for early assembly output
16894         for __RTL functions.
16895         (cgraph_node::finalize_function): Set "force_output" for __RTL
16896         functions.
16897         (cgraph_node::analyze): Bail out early for __RTL functions.
16898         (analyze_functions): Update assertion to support __RTL functions.
16899         (cgraph_node::expand): Bail out early for __RTL functions.
16900         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
16901         __RTL functions.
16902         * function.h (struct function): Update comment for field
16903         "pass_startwith".
16904         * gimple-expr.c: Include "tree-pass.h".
16905         (gimple_has_body_p): Return false for __RTL functions.
16906         * Makefile.in (OBJS): Add run-rtl-passes.o.
16907         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
16908         accessor.
16909         (gcc::pass_manager::get_clean_slate): New accessor.
16910         * passes.c: Include "insn-addr.h".
16911         (should_skip_pass_p): Add logging.  Update logic for running
16912         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
16913         property-provider override so it is only done for gimple passes.
16914         Don't skip dfinit.
16915         (skip_pass): New function.
16916         (execute_one_pass): Call skip_pass when skipping passes.
16917         * read-md.c (md_reader::read_char): Support filtering
16918         the input to a subset of line numbers.
16919         (md_reader::md_reader): Initialize fields
16920         m_first_line and m_last_line.
16921         (md_reader::read_file_fragment): New function.
16922         * read-md.h (md_reader::read_file_fragment): New decl.
16923         (md_reader::m_first_line): New field.
16924         (md_reader::m_last_line): New field.
16925         * read-rtl-function.c (function_reader::create_function): Only
16926         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
16927         curr_properties.  Set DECL_INITIAL to a dummy block.
16928         (read_rtl_function_body_from_file_range): New function.
16929         * read-rtl-function.h (read_rtl_function_body_from_file_range):
16930         New decl.
16931         * run-rtl-passes.c: New file.
16932         * run-rtl-passes.h: New file.
16934 2017-01-24  Jeff Law  <law@redhat.com>
16936         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
16937         buffer size.
16939 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
16941         PR tree-optimization/79159
16942         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
16943         (record_nonwrapping_iv): Improve boundary using above function if no
16944         value range information.
16946 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
16947             Martin Jambor  <mjambor@suse.cz>
16949         * brig-builtins.def: New file.
16950         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
16951         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
16952         (DEF_HSAIL_SAT_BUILTIN): Likewise.
16953         (DEF_HSAIL_INTR_BUILTIN): Likewise.
16954         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
16955         * builtin-types.def (BT_INT8): New.
16956         (BT_INT16): Likewise.
16957         (BT_UINT8): Likewise.
16958         (BT_UINT16): Likewise.
16959         (BT_FN_ULONG): Likewise.
16960         (BT_FN_UINT_INT): Likewise.
16961         (BT_FN_UINT_ULONG): Likewise.
16962         (BT_FN_UINT_LONG): Likewise.
16963         (BT_FN_UINT_PTR): Likewise.
16964         (BT_FN_ULONG_PTR): Likewise.
16965         (BT_FN_INT8_FLOAT): Likewise.
16966         (BT_FN_INT16_FLOAT): Likewise.
16967         (BT_FN_UINT32_FLOAT): Likewise.
16968         (BT_FN_UINT16_FLOAT): Likewise.
16969         (BT_FN_UINT8_FLOAT): Likewise.
16970         (BT_FN_UINT64_FLOAT): Likewise.
16971         (BT_FN_UINT16_UINT32): Likewise.
16972         (BT_FN_UINT32_UINT16): Likewise.
16973         (BT_FN_UINT16_UINT16_UINT16): Likewise.
16974         (BT_FN_INT_PTR_INT): Likewise.
16975         (BT_FN_UINT_PTR_UINT): Likewise.
16976         (BT_FN_LONG_PTR_LONG): Likewise.
16977         (BT_FN_ULONG_PTR_ULONG): Likewise.
16978         (BT_FN_VOID_UINT64_UINT64): Likewise.
16979         (BT_FN_UINT8_UINT8_UINT8): Likewise.
16980         (BT_FN_INT8_INT8_INT8): Likewise.
16981         (BT_FN_INT16_INT16_INT16): Likewise.
16982         (BT_FN_INT_INT_INT): Likewise.
16983         (BT_FN_UINT_FLOAT_UINT): Likewise.
16984         (BT_FN_FLOAT_UINT_UINT): Likewise.
16985         (BT_FN_ULONG_UINT_UINT): Likewise.
16986         (BT_FN_ULONG_UINT_PTR): Likewise.
16987         (BT_FN_ULONG_ULONG_ULONG): Likewise.
16988         (BT_FN_UINT_UINT_UINT): Likewise.
16989         (BT_FN_VOID_UINT_PTR): Likewise.
16990         (BT_FN_UINT_UINT_PTR: Likewise.
16991         (BT_FN_UINT32_UINT64_PTR): Likewise.
16992         (BT_FN_INT_INT_UINT_UINT): Likewise.
16993         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
16994         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
16995         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
16996         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
16997         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
16998         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
16999         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
17000         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
17001         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
17002         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
17003         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
17004         * doc/frontends.texi: List BRIG FE.
17005         * doc/install.texi (Testing): Add BRIG tesring requirements.
17006         * doc/invoke.texi (Overall Options): Mention BRIG.
17007         * doc/standards.texi (Standards): Doucment BRIG HSA version.
17009 2017-01-24  Richard Biener  <rguenther@suse.de>
17011         PR translation/79208
17012         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
17014 2017-01-24  Martin Jambor  <mjambor@suse.cz>
17016         PR bootstrap/79198
17017         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
17018         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
17019         and known_contexts.
17021 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
17023         PR middle-end/79123
17024         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
17025         casts from signed to unsigned really don't have a range.
17027 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
17029         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
17030         GMP_RNDx for compatiblity.
17032 2017-01-24  Martin Liska  <mliska@suse.cz>
17034         PR bootstrap/79132
17035         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
17036         that would prevent us to call alloca with -1 as argument.
17038 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
17040         * dwarf2out.c (output_compilation_unit_header, output_file_names):
17041         Avoid -Wformat-security warning.
17043 2017-01-23  Andrew Pinski  <apinski@cavium.com>
17045         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
17046         cost table.
17048 2017-01-23  Martin Sebor  <msebor@redhat.com>
17050         PR middle-end/78703
17051         * gimple-ssa-sprintf.c (warn_level): New global.
17052         (format_integer): Use it here and throughout the rest of the file.
17053         Use the same switch to compute sign as base.
17054         (maybe_warn): New function.
17055         (format_directive): Factor out warnings into maybe_warn.
17056         Add debugging output.  Use warn_level.
17057         (add_bytes): Use warn_level.
17058         (pass_sprintf_length::compute_format_length): Add debugging output.
17059         (try_substitute_return_value): Same.
17060         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
17062         PR middle-end/78703
17063         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
17064         (struct fmtresult, format_integer, format_floating): Adjust.
17065         (fmtresult::fmtresult): Set max correctly in two argument ctor.
17066         (get_string_length, format_string,format_directive): Same.
17067         (pass_sprintf_length::compute_format_length): Same.
17068         (try_substitute_return_value): Simplify slightly.
17070         PR middle-end/78703
17071         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
17072         (fmtresult::operator+=): Outlined.
17073         (struct fmtresult): Add ctors.
17074         (struct conversion_spec): Rename...
17075         (struct directive): ...to this.  Add and remove data members.
17076         (directive::set_width, directive::set_precision): New functions.
17077         (format_percent): Use fmtresult ctor.
17078         (get_width_and_precision): Remove.
17079         (format_integer): Make naming changes.  Avoid computing width and
17080         precision.
17081         (format_floating): Same.  Adjust indentation.
17082         (format_character, format_none): New functions.
17083         (format_string): Moved character handling to format_character.
17084         (format_directive): Remove arguments, change return type.
17085         (parse_directive): New function.
17086         (pass_sprintf_length::compute_format_length): Move directive
17087         parsing to parse_directive.
17089 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
17091         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
17092         (assign_assembler_name_if_needed): ... this.
17093         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
17094         (assign_assembler_name_if_needed): ... this.
17095         (free_lang_data_in_cgraph): Adjust callers.
17096         * cgraphunit.c (cgraph_node::analyze): Likewise.
17097         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
17098         Likewise.
17100 2017-01-23  Richard Biener  <rguenther@suse.de>
17102         PR tree-optimization/79088
17103         PR tree-optimization/79188
17104         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
17105         resetting loop bounds after last path deletion.  Reset loop
17106         bounds of the target loop, make code match the comments.
17107         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
17108         Make sure loops need no fixups.
17110 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17112         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
17113         exponent support with double type for first argument.
17114         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
17115         type returned by __builtin_vec_extract_sig,
17116         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
17117         functions from "vector int" to "vector unsigned int" or from
17118         "vector long long int" to "vector unsigned long long int".
17119         Changed type returned by __builtin_vec_extract_exp,
17120         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
17121         functions from "vector int" to "vector unsigned int" or from
17122         "vector long long int" to "vector unsigned long long int".
17123         Changed return type of __builtin_vec_test_data_class,
17124         __builtin_vec_test_data_class_sp, and
17125         __builtin_vec_test_data_class_dp from "vector int" to
17126         "vector bool int" or from "vector long long int" to "vector bool
17127         long long int" and changed second argument type from "unsigned
17128         int" to "int".  Added new overloaded function forms "vector float
17129         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
17130         "vector float __builtin_vec_insert_exp_sp (vector float, vector
17131         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
17132         double, vector unsigned long long int)" and "vector double
17133         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
17134         long int)".  Changed return type of
17135         __builtin_scalar_test_data_class and
17136         __builtin_scalar_test_data_class_sp and
17137         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
17138         int" and changed second argument from "unsigned int" to "int".
17139         Changed type returned by __builtin_scalar_test_neg,
17140         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
17141         from "int" to "bool int".  Added new overloaded function form
17142         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
17143         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
17144         exponent double-precision with floating point first argument.
17145         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
17146         documentation of scalar_test_data_class, scalar_test_neg,
17147         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
17148         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
17149         vec_test_data_class built-in functions to reflect refinements in
17150         their type signatures.
17152 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
17154         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
17155         size of buf.
17156         (aarch64_elf_asm_destructor): Likewise.
17158 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
17160         PR rtl-optimization/78634
17161         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
17162         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
17163         * ifcvt.c (noce_try_cmove): Add missing cost check.
17165         PR rtl-optimization/71724
17166         * combine.c (if_then_else_cond): Look for situations where it is
17167         beneficial to undo the work of one of the recursive calls.
17169 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
17171         PR tree-optimization/70754
17172         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
17173         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
17174         combined stmt before it if not NULL.
17175         (combine_chains): Process refs reversely and compute dominance point
17176         for root ref.
17178 2017-01-23  Martin Liska  <mliska@suse.cz>
17180         PR tree-optimization/79196
17181         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
17182         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
17183         instead of memcmp.
17184         (strlen_optimize_stmt): Call the renamed function.
17186 2017-01-23  Michael Matz  <matz@suse.de>
17188         PR tree-optimization/78384
17189         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
17191 2017-01-23  Richard Biener  <rguenther@suse.de>
17193         PR tree-optimization/79186
17194         * tree-vrp.c (register_new_assert_for): Make sure we've seen
17195         both incoming edges before moving an assert.
17197 2017-01-23  Martin Jambor  <mjambor@suse.cz>
17199         * ipa-prop.c (load_from_param_1): Removed.
17200         (load_from_unmodified_param): Bits from load_from_param_1 put back
17201         here.
17202         (load_from_param): Removed.
17203         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
17204         with stmt.  Reverted back to use of load_from_unmodified_param.
17206 2017-01-23  Martin Jambor  <mjambor@suse.cz>
17208         PR ipa/79108
17209         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
17210         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
17211         field a pointer to garbage collected vector, mark lattices and
17212         ipcp_orig_node with GTY((skip)).
17213         (ipa_get_param_count): Adjust to descriptors being a pointer.
17214         (ipa_get_param): Likewise.
17215         (ipa_get_type): Likewise.
17216         (ipa_get_param_move_cost): Likewise.
17217         (ipa_set_param_used): Likewise.
17218         (ipa_get_controlled_uses): Likewise.
17219         (ipa_set_controlled_uses): Likewise.
17220         (ipa_is_param_used): Likewise.
17221         (ipa_node_params_t): Move into garbage collector.  New methods insert
17222         and remove.
17223         (ipa_node_params_sum): Annotate wth GTY(()).
17224         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
17225         garbage collected.
17226         (ipa_load_from_parm_agg): Adjust declaration.
17227         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
17228         * ipa-profile.c (ipa_profile): Likewise.
17229         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
17230         (ipa_populate_param_decls): Make descriptors parameter garbage
17231         collected.
17232         (ipa_dump_param): Adjust to descriptors being a pointer.
17233         (ipa_alloc_node_params): Likewise.
17234         (ipa_initialize_node_params): Likewise.
17235         (load_from_param_1): Make descriptors parameter garbage collected.
17236         (load_from_unmodified_param): Likewise.
17237         (load_from_param): Likewise.
17238         (ipa_load_from_parm_agg): Likewise.
17239         (ipa_node_params::~ipa_node_params): Removed.
17240         (ipa_free_all_node_params): Remove call to delete operator.
17241         (ipa_node_params_t::insert): New.
17242         (ipa_node_params_t::remove): Likewise.
17243         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
17244         copy known_csts and known_contexts vectors.
17245         (ipa_read_node_info): Adjust to descriptors being a pointer.
17246         (ipcp_modif_dom_walker): Make m_descriptors field garbage
17247         collected.
17248         (ipcp_transform_function): Make descriptors variable garbage
17249         collected.
17251 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
17253         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
17254         * config/i386/avx512dqintrin.h: Ditto.
17255         * config/i386/avx512fintrin.h: Ditto.
17256         * config/i386/i386.c: Handle new builtins.
17257         * config/i386/i386-builtin.def: Add new builtins.
17258         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
17259         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
17261 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
17262             Martin Liska  <mliska@suse.cz>
17264         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
17265         * asan.c (asan_expand_poison_ifn): Support stores and use
17266         appropriate ASAN report function.
17267         * internal-fn.c (expand_ASAN_POISON_USE): New function.
17268         * internal-fn.def (ASAN_POISON_USE): Declare.
17269         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
17270         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
17271         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
17272         ASAN_POISON calls w/o LHS.
17273         * tree-ssa.c (execute_update_addresses_taken): Create clobber
17274         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
17275         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
17276         * gimplify.c (asan_poison_variables): Add attribute
17277         use_after_scope_memory to variables that really needs to live
17278         in memory.
17279         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
17280         having the attribute.
17282 2017-01-23  Martin Liska  <mliska@suse.cz>
17284         * asan.c (create_asan_shadow_var): New function.
17285         (asan_expand_poison_ifn): Likewise.
17286         * asan.h (asan_expand_poison_ifn): New declaration.
17287         * internal-fn.c (expand_ASAN_POISON): Likewise.
17288         * internal-fn.def (ASAN_POISON): New builtin.
17289         * sanopt.c (pass_sanopt::execute): Expand
17290         asan_expand_poison_ifn.
17291         * tree-inline.c (copy_decl_for_dup_finish): Make function
17292         external.
17293         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
17294         * tree-ssa.c (is_asan_mark_p): New function.
17295         (execute_update_addresses_taken): Rewrite local variables
17296         (identified just by use-after-scope as addressable) into SSA.
17298 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
17300         * doc/install.texi (Specific): opensource.apple.com uses https
17301         now. Remove trailing slash.
17303 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
17305         * README.Portability: Remove note on an Irix compatibility issue.
17307 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
17309         * gcov.c (INCLUDE_ALGORITHM): Define.
17310         (INCLUDE_VECTOR): Define.
17311         No longer include <vector> and <algorithm> directly.
17313 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
17315         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
17316         to https.
17317         * doc/invoke.texi (Code Gen Options): Ditto.
17319 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
17321         PR lto/78407
17322         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
17324 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
17326         rtl-optimization/79125
17327         * cprop.c (local_cprop_pass): Handle cases where we make an
17328         unconditional trap.
17330 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
17332         PR target/61729
17333         PR target/77850
17334         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
17335         read from, for big endian.
17337 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
17339         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
17340         register pauth builtins for LP64 only.
17342 2017-01-20  Marek Polacek  <polacek@redhat.com>
17344         PR c/79152
17345         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
17346         non-case labels.
17348 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
17350         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
17351         of safelen status.
17352         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
17353         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
17354         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
17356 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17358         PR target/71270
17359         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
17360         in big-endian mode when they are not a single duplicated value.
17362 2017-01-20  Richard Biener  <rguenther@suse.de>
17364         * BASE-VER: Bump to 7.0.1.
17366 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
17368         * omp-low.c (omplow_simd_context): New struct.  Use it...
17369         (lower_rec_simd_input_clauses): ...here and...
17370         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
17371         references to idx, lane, max_vf, is_simt.
17373 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
17375         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
17376         mcpu=nps400.
17378 2017-01-20  Martin Jambor  <mjambor@suse.cz>
17380         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
17381         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
17382         gt-hsa-common.h.
17383         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
17384         (GTFILES): Rename hsa.c to hsa-common.c.
17385         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
17386         * hsa-dump.c: Likewise.
17387         * hsa-gen.c: Likewise.
17388         * hsa-regalloc.c: Likewise.
17389         * ipa-hsa.c: Likewise.
17390         * omp-expand.c: Likewise.
17391         * omp-low.c: Likewise.
17392         * toplev.c: Likewise.
17394 2017-01-20  Marek Polacek  <polacek@redhat.com>
17396         PR c/64279
17397         * doc/invoke.texi: Document -Wduplicated-branches.
17398         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
17399         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
17400         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
17401         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
17402         return 0 only when not OEP_LEXICOGRAPHIC.
17403         (fold_build_cleanup_point_expr): Use the expression
17404         location when building CLEANUP_POINT_EXPR.
17405         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
17406         * tree.c (add_expr): Handle error_mark_node.
17408 2017-01-20  Martin Liska  <mliska@suse.cz>
17410         PR lto/69188
17411         * tree-profile.c (init_ic_make_global_vars): Do not call
17412         finalize_decl.
17413         (gimple_init_gcov_profiler): Likewise.
17415 2017-01-20  Martin Liska  <mliska@suse.cz>
17417         PR ipa/71190
17418         * cgraph.h (maybe_create_reference): Remove argument and
17419         update comment.
17420         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
17421         argument.
17422         * ipa-cp.c (create_specialized_node): Likewise.
17423         * symtab.c (symtab_node::maybe_create_reference): Handle
17424         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
17426 2017-01-20  Martin Liska  <mliska@suse.cz>
17428         * read-rtl-function.c (function_reader::create_function): Use
17429         build_decl instread of build_decl_stat.
17431 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
17433         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
17434         * config/i386/avx512dqintrin.h: Ditto.
17435         * config/i386/avx512fintrin.h: Ditto.
17436         * config/i386/i386-builtin-types.def: Add new types.
17437         * config/i386/i386.c: Handle new types.
17438         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
17439         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
17440         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
17441         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
17442         (__builtin_ia32_kshiftridi): New.
17443         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
17445 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
17447         PR target/78875
17448         PR target/79140
17449         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
17450         define to rs6000_init_stack_protect_guard.
17451         (rs6000_init_stack_protect_guard): New function.
17453 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
17454             Yunqiang Su  <yunqiang.su@imgtec.com>
17456         * config.gcc (supported_defaults): Add madd4.
17457         (with_madd4): Add validation.
17458         (all_defaults): Add madd4.
17459         * config/mips/mips.opt (mmadd4): New option.
17460         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
17461         mmadd4.
17462         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
17463         __mips_no_madd4.
17464         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
17465         (ISA_HAS_FUSED_MADD4): Likewise.
17466         * doc/invoke.texi (-mmadd4): Document the new option.
17467         * doc/install.texi (--with-madd4): Document the new option.
17469 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
17471         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
17472         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
17473         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
17474         (aarch64_init_pauth_hint_builtins): New.
17475         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
17476         (aarch64_expand_builtin): Expand new builtins.
17478 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
17480         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
17481         * combine-stack-adj.c (no_unhandled_cfa): Handle
17482         REG_CFA_TOGGLE_RA_MANGLE.
17483         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
17484         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
17485         info for return address signing.
17486         (aarch64_expand_epilogue): Likewise.
17488 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
17490         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
17491         * config/aarch64/aarch64-protos.h
17492         (aarch64_return_address_signing_enabled): New declaration.
17493         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
17494         New function.
17495         (aarch64_expand_prologue): Sign return address before it's pushed onto
17496         stack.
17497         (aarch64_expand_epilogue): Authenticate return address fetched from
17498         stack.
17499         (aarch64_override_options): Sanity check for ILP32 and ISA level.
17500         (aarch64_attributes): New function attributes for "sign-return-address".
17501         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
17502         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
17503         ("*do_return"): Generate combined instructions according to key index.
17504         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
17505         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
17506         iterators.
17507         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
17508         * config/aarch64/aarch64.opt (msign-return-address=): New.
17509         * doc/extend.texi (AArch64 Function Attributes): Documents
17510         "sign-return-address=".
17511         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
17513 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
17515         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
17516         overall option summary.
17518 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
17520         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
17521         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
17522         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
17523         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
17525 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17527         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
17528         -mpower9-minmax by default for -mcpu=power9.
17529         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
17530         128-bit floating point.
17532 2017-01-20  Alan Modra  <amodra@gmail.com>
17534         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
17535         optimizing for size.
17537 2017-01-20  Alan Modra  <amodra@gmail.com>
17539         PR target/79144
17540         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
17541         for strcmp and strncmp from corresponding builtin decl.
17543 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
17545         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
17546         instead of i386/rtems-64.h.
17547         * config/i386/rtems-64.h: Remove.
17549 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
17551         PR target/78478
17552         Revert:
17553         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
17555         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
17557 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
17559         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
17560         Change int to HOST_WIDE_INT.
17561         * config/aarch64/aarch64-protos.h
17562         (aarch64_simd_gen_const_vector_dup): Likewise.
17563         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
17565 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
17567         * langhooks-def.h (lhd_type_for_size): New decl.
17568         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
17569         * langhooks.c (lhd_type_for_size): New function, taken from
17570         lto_type_for_size.
17572 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
17574         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
17575         define_bypass for CR latency.
17576         (power9-cracked-alu): Update bypass latency and remove power9-branch.
17577         (power9-alu2): Add define_bypass for CR latency.
17578         (power9-cmp): New.
17579         (power9-mul): Update insn latency.
17580         (power9-mul-compare): Update insn latency, bypass latency and remove
17581         power9-branch.
17583 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17585         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
17586         Delete.
17587         * config/aarch64/aarch64.md
17588         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
17589         aarch64_nopcrelative_literal_loads.
17590         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
17592 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
17594         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
17595         TARGET_LOONGSON_3A.
17596         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
17598 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
17600         PR target/78176
17601         * config.gcc (supported_defaults): Add lxc1-sxc1.
17602         (with_lxc1_sxc1): Add validation.
17603         (all_defaults): Add lxc1-sxc1.
17604         * config/mips/mips.opt (mlxc1-sxc1): New option.
17605         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
17606         mlxc1-sxc1.
17607         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
17608         __mips_no_lxc1_sxc1.
17609         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
17610         * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
17611         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
17613 2017-01-19  Richard Biener  <rguenther@suse.de>
17615         PR tree-optimization/72488
17616         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
17617         sure to restore SSA info.
17618         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
17620 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
17622         PR rtl-optimization/79121
17623         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
17624         of the inner type when shifting an extended value.
17626 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
17628         PR lto/78407
17629         * symtab.c (symtab_node::equal_address_to): Fix comparing of
17630         interposable aliases.
17632 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
17634         PR target/78516
17635         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
17636         Use the evmergelohi instruction.
17637         (mov_si<mode>_e500_subreg4_2_le): Likewise.
17638         (mov_sitf_e500_subreg8_2_be): Likewise.
17639         (mov_sitf_e500_subreg12_2_le): Likewise.
17640         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
17641         (mov_si<mode>_e500_subreg4_2_be): Likewise.
17642         (mov_sitf_e500_subreg8_2_le): Likewise.
17643         (mov_sitf_e500_subreg12_2_be): Likewise.
17645 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17647         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
17648         attribute from vecsimple to vecperm.
17649         (altivec_vbpermq2): Likewise.
17651 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17653         PR target/79040
17654         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
17656 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
17657         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
17658         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
17659         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
17660         case where N arg is SIZE_MAX.
17661         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
17662         (cmpstrsi): Add pattern.
17664 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
17666         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17667         __builtin_vec_revb builtins.
17668         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
17669         built-in functions to support generation of the ISA 3.0 XXBR<x>
17670         vector byte reverse instructions.
17671         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
17672         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
17673         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
17674         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
17675         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
17676         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
17677         (P9V_BUILTIN_VEC_REVB): Likewise.
17678         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
17679         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
17680         (p9_xxbrq_v16qi): Likewise.
17681         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
17682         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
17683         (p9_xxbrh_v8hi): Likewise.
17684         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
17685         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
17686         vec_revb built-in functions.
17688 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
17690         PR rtl-optimization/78952
17691         * config/i386/i386.md (any_extract): New code iterator.
17692         (*insvqi_2): Use any_extract for source operand.
17693         (*insvqi_3): Use any_shiftrt for source operand.
17695 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
17697         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
17698         New function.
17699         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
17701 2017-01-18  Matthias Klose  <doko@ubuntu.com>
17703         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
17705 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17707         * config/rs6000/altivec.h (vec_bperm): Change #define.
17708         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
17709         (altivec_vbpermq2): New define_insn.
17710         (altivec_vbpermd): Likewise.
17711         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
17712         function interface.
17713         (VBPERMD): Likewise.
17714         (VBPERM): New polymorphic function interface.
17715         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
17716         Add entries for P9V_BUILTIN_VEC_VBPERM.
17717         * doc/extend.texi: Add interfaces for vec_bperm.
17719 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17721         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
17722         first letter of error messages.
17723         (s390_resolve_overloaded_builtin): Likewise.
17724         * config/s390/s390.c (s390_expand_builtin): Likewise.
17725         (s390_invalid_arg_for_unprototyped_fn): Likewise.
17726         (s390_valid_target_attribute_inner_p): Likewise.
17727         * config/s390/s390.md ("tabort"): Likewise.
17729 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
17731         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
17732         (ISA_AVOID_DIV_HILO): New macro.
17733         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
17734         (ISA_HAS_DDIV): Likewise.
17736 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17738         * doc/invoke.texi (fabi-version): Correct number of occurrences.
17740 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17742         * doc/invoke.texi (fabi-version): Spelling fix.
17744 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17746         PR c++/70182
17747         * doc/invoke.texi (fabi-version): Mention mangling fix for
17748         operator names.
17750 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17752         PR c++/77489
17753         * doc/invoke.texi (fabi-version): Document discriminator mangling.
17755 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
17757         PR target/78875
17758         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
17759         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
17760         the new options.
17761         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
17762         flexible settings.
17763         (stack_protect_test): Ditto.
17764         * config/rs6000/rs6000.opt (mstack-protector-guard=,
17765         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
17766         options.
17767         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
17768         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
17769         -mstack-protector-guard-offset=.
17770         (RS/6000 and PowerPC Options): Ditto.
17772 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
17774         * config/i386/i386.h (MASK_CLASS_P): New define.
17775         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
17776         there are no registers from different register sets also when
17777         mask registers are used.  Update function comment.
17778         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
17779         to (*k/*r) and (*k/*km) alternatives.
17781 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
17783         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
17784         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
17785         (EH_RETURN_HANDLER_RTX): New define.
17786         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
17787         Force frame pointer in EH return functions.
17788         (aarch64_expand_epilogue): Add barrier for eh_return.
17789         (aarch64_final_eh_return_addr): Remove.
17790         (aarch64_eh_return_handler_rtx): New function.
17791         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
17792         Remove.
17793         (aarch64_eh_return_handler_rtx): New prototype.
17795 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17797         * config/rs6000/altivec.h (vec_rlmi): New #define.
17798         (vec_vrlnm): Likewise.
17799         (vec_rlnm): Likewise.
17800         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
17801         (UNSPEC_VRLNM): Likewise.
17802         (VIlong): New mode iterator.
17803         (altivec_vrl<VI_char>mi): New define_insn.
17804         (altivec_vrl<VI_char>nm): Likewise.
17805         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
17806         function entry.
17807         (VRLDNM): Likewise.
17808         (RLNM): New polymorphic function entry.
17809         (VRLWMI): New monomorphic function entry.
17810         (VRLDMI): Likewise.
17811         (RLMI): New polymorphic function entry.
17812         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
17813         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
17814         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
17815         vec_vrlnm.
17817 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
17819         PR debug/78839
17820         * dwarf2out.c (field_byte_offset): Restore the
17821         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
17822         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
17823         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
17824         of build2 + fold.
17826 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
17828         PR ada/67205
17829         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
17831 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
17833         PR debug/71669
17834         * dwarf2out.c (add_data_member_location_attribute): For constant
17835         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
17836         instead of DW_AT_data_member_location, DW_AT_bit_offset and
17837         DW_AT_byte_size attributes.
17839 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
17841         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
17842         after forcing to constant memory when the code model is medium.
17844 2017-01-17  Julia Koval  <julia.koval@intel.com>
17846         PR target/76731
17847         * config/i386/avx512fintrin.h
17848         (_mm512_i32gather_ps): Change __addr type to void const*.
17849         (_mm512_mask_i32gather_ps): Ditto.
17850         (_mm512_i32gather_pd): Ditto.
17851         (_mm512_mask_i32gather_pd): Ditto.
17852         (_mm512_i64gather_ps): Ditto.
17853         (_mm512_mask_i64gather_ps): Ditto.
17854         (_mm512_i64gather_pd): Ditto.
17855         (_mm512_mask_i64gather_pd): Ditto.
17856         (_mm512_i32gather_epi32): Ditto.
17857         (_mm512_mask_i32gather_epi32): Ditto.
17858         (_mm512_i32gather_epi64): Ditto.
17859         (_mm512_mask_i32gather_epi64): Ditto.
17860         (_mm512_i64gather_epi32): Ditto.
17861         (_mm512_mask_i64gather_epi32): Ditto.
17862         (_mm512_i64gather_epi64): Ditto.
17863         (_mm512_mask_i64gather_epi64): Ditto.
17864         (_mm512_i32scatter_ps): Change __addr type to void*.
17865         (_mm512_mask_i32scatter_ps): Ditto.
17866         (_mm512_i32scatter_pd): Ditto.
17867         (_mm512_mask_i32scatter_pd): Ditto.
17868         (_mm512_i64scatter_ps): Ditto.
17869         (_mm512_mask_i64scatter_ps): Ditto.
17870         (_mm512_i64scatter_pd): Ditto.
17871         (_mm512_mask_i64scatter_pd): Ditto.
17872         (_mm512_i32scatter_epi32): Ditto.
17873         (_mm512_mask_i32scatter_epi32): Ditto.
17874         (_mm512_i32scatter_epi64): Ditto.
17875         (_mm512_mask_i32scatter_epi64): Ditto.
17876         (_mm512_i64scatter_epi32): Ditto.
17877         (_mm512_mask_i64scatter_epi32): Ditto.
17878         (_mm512_i64scatter_epi64): Ditto.
17879         (_mm512_mask_i64scatter_epi64): Ditto.
17880         * config/i386/avx512pfintrin.h
17881         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
17882         (_mm512_mask_prefetch_i32gather_ps): Ditto.
17883         (_mm512_mask_prefetch_i64gather_pd): Ditto.
17884         (_mm512_mask_prefetch_i64gather_ps): Ditto.
17885         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
17886         (_mm512_prefetch_i32scatter_ps): Ditto.
17887         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
17888         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
17889         (_mm512_prefetch_i64scatter_pd): Ditto.
17890         (_mm512_prefetch_i64scatter_ps): Ditto.
17891         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
17892         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
17893         * config/i386/avx512vlintrin.h
17894         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
17895         (_mm_mmask_i32gather_ps): Ditto.
17896         (_mm256_mmask_i32gather_pd): Ditto.
17897         (_mm_mmask_i32gather_pd): Ditto.
17898         (_mm256_mmask_i64gather_ps): Ditto.
17899         (_mm_mmask_i64gather_ps): Ditto.
17900         (_mm256_mmask_i64gather_pd): Ditto.
17901         (_mm_mmask_i64gather_pd): Ditto.
17902         (_mm256_mmask_i32gather_epi32): Ditto.
17903         (_mm_mmask_i32gather_epi32): Ditto.
17904         (_mm256_mmask_i32gather_epi64): Ditto.
17905         (_mm_mmask_i32gather_epi64): Ditto.
17906         (_mm256_mmask_i64gather_epi32): Ditto.
17907         (_mm_mmask_i64gather_epi32): Ditto.
17908         (_mm256_mmask_i64gather_epi64): Ditto.
17909         (_mm_mmask_i64gather_epi64): Ditto.
17910         (_mm256_i32scatter_ps): Change __addr type to void*.
17911         (_mm256_mask_i32scatter_ps): Ditto.
17912         (_mm_i32scatter_ps): Ditto.
17913         (_mm_mask_i32scatter_ps): Ditto.
17914         (_mm256_i32scatter_pd): Ditto.
17915         (_mm256_mask_i32scatter_pd): Ditto.
17916         (_mm_i32scatter_pd): Ditto.
17917         (_mm_mask_i32scatter_pd): Ditto.
17918         (_mm256_i64scatter_ps): Ditto.
17919         (_mm256_mask_i64scatter_ps): Ditto.
17920         (_mm_i64scatter_ps): Ditto.
17921         (_mm_mask_i64scatter_ps): Ditto.
17922         (_mm256_i64scatter_pd): Ditto.
17923         (_mm256_mask_i64scatter_pd): Ditto.
17924         (_mm_i64scatter_pd): Ditto.
17925         (_mm_mask_i64scatter_pd): Ditto.
17926         (_mm256_i32scatter_epi32): Ditto.
17927         (_mm256_mask_i32scatter_epi32): Ditto.
17928         (_mm_i32scatter_epi32): Ditto.
17929         (_mm_mask_i32scatter_epi32): Ditto.
17930         (_mm256_i32scatter_epi64): Ditto.
17931         (_mm256_mask_i32scatter_epi64): Ditto.
17932         (_mm_i32scatter_epi64): Ditto.
17933         (_mm_mask_i32scatter_epi64): Ditto.
17934         (_mm256_i64scatter_epi32): Ditto.
17935         (_mm256_mask_i64scatter_epi32): Ditto.
17936         (_mm_i64scatter_epi32): Ditto.
17937         (_mm_mask_i64scatter_epi32): Ditto.
17938         (_mm256_i64scatter_epi64): Ditto.
17939         (_mm256_mask_i64scatter_epi64): Ditto.
17940         (_mm_i64scatter_epi64): Ditto.
17941         (_mm_mask_i64scatter_epi64): Ditto.
17942         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
17943         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
17944         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
17945         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
17946         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
17947         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
17948         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
17949         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
17950         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
17951         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
17952         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
17953         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
17954         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
17955         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
17956         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
17957         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
17958         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
17959         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
17960         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
17961         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
17962         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
17963         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
17964         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
17965         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
17966         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
17967         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
17968         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
17969         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
17970         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
17971         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
17972         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
17973         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
17974         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
17975         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
17976         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
17977         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
17978         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
17979         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
17980         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
17981         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
17982         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
17983         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
17984         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
17985         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
17986         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
17987         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
17988         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
17989         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
17990         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
17991         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
17992         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
17993         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
17994         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
17995         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
17996         definitions accordingly.
17998 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
17999             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
18001         PR target/79079
18002         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
18003         gen_lowpart.
18005 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
18007         PR target/79058
18008         * ira-conflicts.c (ira_build_conflicts): Update total conflict
18009         hard regs for inner regno.
18011 2017-01-17  Martin Liska  <mliska@suse.cz>
18013         PR ipa/71207
18014         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
18015         assumption and add comment.
18017 2017-01-17  Nathan Sidwell  <nathan@acm.org>
18019         * ipa-visibility.c (localize_node): New function, broken out of ...
18020         (function_and_variable_visibility): ... here. Call it.
18022 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
18024         PR middle-end/77445
18025         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
18026         correctly set frequency of oudgoing edge.
18027         (duplicate_thread_path): Fix profile updating.
18029 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
18031         PR other/79046
18032         * configure.ac: Add GCC_BASE_VER.
18033         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
18034         version from BASE-VER file.
18035         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
18036         (gcc.o): Depend on $(BASEVER).
18037         * common.opt (dumpfullversion): New option.
18038         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
18039         * doc/invoke.texi: Document -dumpfullversion.
18040         * doc/install.texi: Document --with-gcc-major-version-only.
18041         * configure: Regenerated.
18043 2017-01-17  Richard Biener  <rguenther@suse.de>
18045         PR tree-optimization/71433
18046         * tree-vrp.c (register_new_assert_for): Merge same asserts
18047         on all incoming edges.
18048         (process_assert_insertions_for): Handle insertions at the
18049         beginning of BBs.
18051 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
18053         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
18054         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
18056 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
18058         PR target/78633
18059         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
18060         RTL sharing.
18062 2017-01-17  Alan Modra  <amodra@gmail.com>
18064         PR target/79066
18065         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
18066         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
18067         symbolic stack limit when pic.
18069 2017-01-16  Martin Sebor  <msebor@redhat.com>
18071         PR tree-optimization/78608
18072         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
18074 2017-01-16  Jeff Law  <law@redhat.com>
18076         Revert:
18077         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
18078         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
18079         for several include directories that may be relative to sysroot.
18080         * config/i386/x-mingw32 (gplus_includedir): Define.
18081         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
18082         (native_system_includedir): Likewise.
18083         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
18084         override if TARGET_SYSTEM_ROOT is defined.
18085         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
18087         PR tree-optimization/79090
18088         PR tree-optimization/33562
18089         PR tree-optimization/61912
18090         PR tree-optimization/77485
18091         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
18092         and computed trims into the dump file.
18094 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
18096         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
18098 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
18100         PR c/79089
18101         * gimplify.c (gimplify_init_constructor): If want_value and
18102         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
18103         fix.
18105         PR target/79080
18106         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
18107         sequence.  Formatting fixes.
18108         (doloop_optimize): Formatting fixes.
18110         PR driver/49726
18111         * gcc.c (debug_level_greater_than_spec_func): New function.
18112         (static_spec_functions): Add debug-level-gt spec function.
18113         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
18114         !g0.
18115         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
18116         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
18117         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
18118         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
18119         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
18120         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
18122 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
18124         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
18125         QImode fixups to general and mask registers only.
18127 2017-01-16  Carl Love  <cel@us.ibm.com>
18129         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
18130         for built-in functions
18131         vector signed char vec_nabs (vector signed char)
18132         vector signed short vec_nabs (vector signed short)
18133         vector signed int vec_nabs (vector signed int)
18134         vector signed long long vec_nabs (vector signed long long)
18135         vector float vec_nabs (vector float)
18136         vector double vec_nabs (vector double)
18137         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
18138         and NABS overload.
18139         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
18140         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
18141         * doc/extend.texi: Update the documentation file for the new built-in
18142         functions.
18144 2017-01-16  Martin Sebor  <msebor@redhat.com>
18146         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
18147         message.
18149 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18151         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
18152         UNSPEC_VSX__XXSPLTD to require special splat handling.
18154 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
18156         PR bootstrap/78616
18157         * system.h: Poison strndup.
18159 2017-01-16  Alan Modra  <amodra@gmail.com>
18161         PR target/79098
18162         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
18163         use a switch.
18165 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
18167         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
18169 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
18171         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
18172         call recog here.  Assert that INSN_CODE (insn) is non-negative.
18174 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
18176         PR target/72749
18177         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
18178         fallthrough.
18179         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
18180         in the currently scheduled RTL fragment.
18182 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
18184         PR rtl-optimization/78751
18185         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
18186         give up.
18188 2017-01-14  Jeff Law  <law@redhat.com>
18190         PR tree-optimization/79090
18191         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
18192         variable length stores.
18193         (compute_trims): Delete dead assignment to *trim_tail.
18194         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
18195         zero length.
18197 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
18199         PR rtl-optimization/78626
18200         PR rtl-optimization/78727
18201         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
18202         of a block, and split such blocks after everything else is finished.
18204 2017-01-14  Alan Modra  <amodra@gmail.com>
18206         PR target/72749
18207         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
18208         target legitimate_combined_insn.
18209         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
18210         (rs6000_legitimate_combined_insn): New function.
18211         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
18212         all uses.
18213         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
18214         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
18215         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
18217 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
18219         * doc/frontends.texi (G++ and GCC): Remove references to Java.
18221 2017-01-13  Jeff Law  <law@redhat.com>
18223         PR tree-optimization/33562
18224         PR tree-optimization/61912
18225         PR tree-optimization/77485
18226         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
18227         a statement.
18228         (delete_dead_assignment): Likewise.
18229         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
18230         statement to delete_dead_call and delete_dead_assignment.
18232 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
18234         PR c/78304
18235         * substring-locations.c (format_warning_va): Strengthen case 1 so
18236         that both endpoints of the substring must be within the format
18237         range for just the substring to be printed.
18239 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
18241         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
18242         * config/i386/i386.c (ix86_target_string): Add missing options
18243         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
18244         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
18245         flags_other and ix86_target_other to flags2_other.  Display unknown
18246         isa2 options.
18247         (ix86_valid_target_attribute_inner_p): Add missing options and
18248         reorder options by implied ISAs, as in ix86_target_string.
18250 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18252         * hash-table.h (hash_table::too_empty_p): New function.
18253         (hash_table::expand): Use it.
18254         (hash_table::traverse): Likewise.
18255         (hash_table::empty_slot): Use sizeof (value_type) instead of
18256         sizeof (PTR) to convert bytes to elements.  Shrink the table
18257         if the current size is excessive for the current number of
18258         elements.
18260 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18262         * ira-costs.c (record_reg_classes): Break from the inner loop
18263         early once alt_fail is known to be true.  Update outer loop
18264         handling accordingly.
18266 2017-01-13  Jeff Law  <law@redhat.com>
18268         * tree-ssa-dse.c (decrement_count): New function.
18269         (increment_start_addr, maybe_trim_memstar_call): Likewise.
18270         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
18271         when we know the partially dead statement is a mem* function.
18273         PR tree-optimization/61912
18274         PR tree-optimization/77485
18275         * tree-ssa-dse.c: Include expr.h.
18276         (maybe_trim_constructor_store): New function.
18277         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
18279         PR tree-optimization/33562
18280         PR tree-optimization/61912
18281         PR tree-optimization/77485
18282         * doc/invoke.texi: Document new dse-max-object-size param.
18283         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
18284         * tree-ssa-dse.c: Include params.h.
18285         (dse_store_status): New enum.
18286         (initialize_ao_ref_for_dse): New, partially extracted from
18287         dse_optimize_stmt.
18288         (valid_ao_ref_for_dse, normalize_ref): New.
18289         (setup_live_bytes_from_ref, compute_trims): Likewise.
18290         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
18291         (maybe_trim_partially_dead_store): Likewise.
18292         (maybe_trim_complex_store): Likewise.
18293         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
18294         Track what bytes live from the original store.  Return tri-state
18295         for dead, partially dead or live.
18296         (dse_dom_walker): Add constructor, destructor and new private members.
18297         (delete_dead_call, delete_dead_assignment): New extracted from
18298         dse_optimize_stmt.
18299         (dse_optimize_stmt): Make a member of dse_dom_walker.
18300         Use initialize_ao_ref_for_dse.
18302         PR tree-optimization/33562
18303         PR tree-optimization/61912
18304         PR tree-optimization/77485
18305         * sbitmap.h (bitmap_count_bits): Prototype.
18306         (bitmap_clear_range, bitmap_set_range): Likewise.
18307         * sbitmap.c (bitmap_clear_range): New function.
18308         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
18310 2017-01-13  Martin Liska  <mliska@suse.cz>
18312         PR ipa/79043
18313         * function.c (set_cfun): Add new argument force.
18314         * function.h (set_cfun): Likewise.
18315         * ipa-inline-transform.c (inline_call): Use the function when
18316         strict alising from is dropped for function we inline to.
18318 2017-01-13  Richard Biener  <rguenther@suse.de>
18320         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
18321         for dumping GIMPLE INTEGER_CSTs.
18323 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18325         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
18326         to 201112L since C++17.
18328 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
18330         PR sanitizer/78887
18331         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
18332         if -fsanitize=kernel-address is present.
18334 2017-01-13  Richard Biener  <rguenther@suse.de>
18336         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
18337         as _Literal ( type ) number in case usual suffixes do not
18338         preserve all information.
18340 2017-01-13  Richard Biener  <rguenther@suse.de>
18342         PR tree-optimization/77283
18343         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
18344         and ssa-iterators.h.
18345         (is_feasible_trace): Implement a cost model based on joiner
18346         PHI node uses.
18348 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18350         PR target/79004
18351         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
18352         char or short to __float128/_Float128 directly.
18354 2017-01-12  Martin Sebor  <msebor@redhat.com>
18356         to -Wformat-overflow.
18357         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
18358         (min_bytes_remaining): Same.
18359         (get_string_length): Same.
18360         (format_string): Same.
18361         (format_directive): Same.
18362         (add_bytes): Same.
18363         (pass_sprintf_length::handle_gimple_call): Same.
18365 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
18367         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
18368         info.nowrite calls with no lhs that can't throw.  Return bool
18369         whether gsi_remove has been called or not.
18370         (pass_sprintf_length::handle_gimple_call): Return bool whether
18371         try_substitute_return_value called gsi_remove.  Formatting fix.
18372         (pass_sprintf_length::execute): Don't use gsi_remove if
18373         handle_gimple_call returned true.
18375         PR bootstrap/79069
18376         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
18377         be removed due to side-effects, don't remove following barrier nor
18378         turn the successor edge into fallthru edge.
18380 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18382         PR target/79044
18383         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
18384         element-reversing loads and stores as not swappable.
18386 2017-01-12  Nathan Sidwell  <nathan@acm.org>
18387             Nicolai Stange  <nicstange@gmail.com>
18389         * combine.c (try_combine): Don't ignore result of overlap checking
18390         loop.  Combine overlap & asm check into single loop.
18392 2017-01-12  Richard Biener  <rguenther@suse.de>
18394         * tree-pretty-print.c (dump_generic_node): Provide -gimple
18395         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
18397 2017-01-12  Richard Biener  <rguenther@suse.de>
18399         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
18400         and TS_TARGET_OPTION directly derive from TS_BASE.
18401         * tree-core.h (tree_optimization_option): Derive from tree_base.
18402         (tree_target_option): Likewise.
18404 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
18406         * config/i386/i386.c (memory_address_length): Increase len
18407         only when rip_relative_addr_p returns false.
18409 2017-01-11  Julia Koval  <julia.koval@intel.com>
18411         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
18412         (OPTION_MASK_ISA_SGX_SET): New.
18413         (ix86_handle_option): Handle OPT_msgx.
18414         * config.gcc: Added sgxintrin.h.
18415         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
18416         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
18417         * config/i386/i386.c (ix86_target_string): Add -msgx.
18418         (PTA_SGX): New.
18419         (ix86_option_override_internal): Handle new options.
18420         (ix86_valid_target_attribute_inner_p): Add sgx.
18421         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
18422         * config/i386/i386.opt: Add msgx.
18423         * config/i386/sgxintrin.h: New file.
18424         * config/i386/x86intrin.h: Add sgxintrin.h.
18426 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
18428         PR c++/71537
18429         * fold-const.c (maybe_nonzero_address): Return 1 for function
18430         local objects.
18431         (tree_single_nonzero_warnv_p): Don't handle function local objects
18432         here.
18434         PR c++/72813
18435         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
18436         of c-header.
18438 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
18440         PR driver/78877
18441         * opts.c: Include "spellcheck.h"
18442         (struct string_fragment): New struct.
18443         (struct edit_distance_traits<const string_fragment &>): New
18444         struct.
18445         (get_closest_sanitizer_option): New function.
18446         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
18448 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
18450         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
18451         by 12.
18452         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
18453         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
18454         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
18455         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
18456         for initial die_offset if dwarf_split_debug_info.
18457         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
18458         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
18459         fields.
18460         (output_skeleton_debug_sections): Formatting fix.  Use
18461         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
18462         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
18464 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
18466         * config/arm/cortex-a53.md: Add bypasses for
18467         cortex_a53_r2f_cvt.
18468         (cortex_a53_r2f): Only use for transfers.
18469         (cortex_a53_f2r): Likewise.
18470         (cortex_a53_r2f_cvt): Add reservation for conversions.
18471         (cortex_a53_f2r_cvt): Likewise.
18473 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
18475         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
18476         to all inlined functions, change static to extern.
18478 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
18480         PR target/78253
18481         * config/arm/arm.c (legitimize_pic_address): Handle reference to
18482         weak symbol.
18483         (arm_assemble_integer): Likewise.
18485 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
18487         * config.gcc: Use new awk script to check CPU, FPU and architecture
18488         parameters for --with-... options.
18489         * config/arm/parsecpu.awk: New file
18490         * config/arm/arm-cpus.in: New file.
18491         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
18492         files.
18493         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
18494         files.
18495         * config/arm/t-arm: Update dependency rules.
18496         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
18497         of processing .def files.
18498         * config/arm/genopt.sh: Deleted.
18499         * config/arm/gentune.sh: Deleted.
18500         * config/arm/arm-cores.def: Deleted.
18501         * config/arm/arm-arches.def: Deleted.
18502         * config/arm/arm-fpus.def: Deleted.
18503         * config/arm/arm-tune.md: Regenerated.
18504         * config/arm/arm-tables.opt: Regenerated.
18505         * config/arm/arm-cpu.h: New generated file.
18506         * config/arm/arm-cpu-data.h: New generated file.
18507         * config/arm/arm-cpu-cdata.h: New generated file.
18509 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
18511         PR lto/79042
18512         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
18513         bit.
18514         (input_varpool_node): Unpack dynamically_initialized bit.
18516 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
18518         PR rtl-optimization/79032
18519         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
18520         the alignment of the adjusted memory reference against that of MODE,
18521         instead of the alignment of the original memory reference.
18523 2017-01-11  Martin Jambor  <mjambor@suse.cz>
18525         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
18526         test.
18527         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
18528         decorated functions.
18530 2017-01-11  Richard Biener  <rguenther@suse.de>
18532         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
18533         set range/nonnull info for PHI results.  Do not set it on
18534         stmts marked for removal.
18536 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
18538         * expr.c (store_field): In the bitfield case, fetch the return value
18539         from the registers before applying a single big-endian adjustment.
18540         Always do a final load for a BLKmode value not larger than a word.
18542 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
18544         PR c++/77949
18545         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
18546         that we correctly handle column numbers greater than
18547         LINE_MAP_MAX_COLUMN_NUMBER.
18549 2017-01-10  Martin Sebor  <msebor@redhat.com>
18551         PR middle-end/78245
18552         * gimple-ssa-sprintf.c (get_destination_size): Call
18553         {init,fini}object_sizes.
18554         * tree-object-size.c (addr_object_size): Adjust.
18555         (pass_through_call): Adjust.
18556         (pass_object_sizes::execute): Adjust.
18557         * tree-object-size.h (fini_object_sizes): Declare.
18559 2017-01-10  Martin Sebor  <msebor@redhat.com>
18561         PR tree-optimization/78775
18562         * builtins.c (get_size_range): Move...
18563         * calls.c: ...to here.
18564         (alloc_max_size): Accept zero argument.
18565         (operand_signed_p): Remove.
18566         (maybe_warn_alloc_args_overflow): Call get_size_range.
18567         * calls.h (get_size_range): Declare.
18569 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
18571         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
18572         from TI's devices.csv file as of September 2016.
18573         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
18575 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
18577         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
18578         * doc/invoke.texi: Likewise.
18579         * doc/md.texi: Likewise.
18580         * doc/objc.texi: Likewise.
18582 2017-01-10  Joshua Conner  <joshconner@google.com>
18584         * config/arm/fuchsia-elf.h: New file.
18585         * config/fuchsia.h: New file.
18586         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
18587         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
18588         targets.
18589         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
18591 2016-01-10  Richard Biener  <rguenther@suse.de>
18593         PR tree-optimization/79034
18594         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
18595         Propagate out degenerate PHIs in the joiner.
18597 2017-01-10  Martin Liska  <mliska@suse.cz>
18599         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
18600         (sort_congruence_classes_by_decl_uid): Likewise.
18601         (sort_congruence_class_groups_by_decl_uid): Likewise.
18602         (sem_item_optimizer::merge_classes): Sort class, groups in these
18603         classes and members in the groups by DECL_UID of declarations.
18604         This would make merge operations stable.
18606 2017-01-10  Martin Liska  <mliska@suse.cz>
18608         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
18609         usage of m_classes_vec.
18610         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
18611         (sem_item_optimizer::get_group_by_hash): Likewise.
18612         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
18613         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
18614         (sem_item_optimizer::verify_classes): Likewise.
18615         (sem_item_optimizer::process_cong_reduction): Likewise.
18616         (sem_item_optimizer::dump_cong_classes): Likewise.
18617         (sem_item_optimizer::merge_classes): Likewise.
18618         * ipa-icf.h (congruence_class_hash): Rename from
18619         congruence_class_group_hash.  Remove declaration of m_classes_vec.
18621 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
18623         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
18624         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
18625         * config.gcc: Add avx512vpopcntdqintrin.h.
18626         * config/i386/avx512vpopcntdqintrin.h: New.
18627         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
18628         * config/i386/i386-builtin-types.def: Add new types.
18629         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
18630         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
18631         __builtin_ia32_vpopcountq_v8di_mask): New.
18632         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18633         __AVX512VPOPCNTDQ__.
18634         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
18635         (PTA_AVX512VPOPCNTDQ): Define.
18636         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
18637         TARGET_AVX512VPOPCNTDQ_P): Define.
18638         * config/i386/i386.opt: Add mavx512vpopcntdq.
18639         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
18640         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
18642 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
18644         PR middle-end/77484
18645         * predict.def (PRED_CALL): Set to 67.
18647 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
18649         * expr.c (store_field): In the bitfield case, if the value comes from
18650         a function call and is of an aggregate type returned in registers, do
18651         not modify the field mode; extract the value in all cases if the mode
18652         is BLKmode and the size is not larger than a word.
18654 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
18656         PR target/71017
18657         * config/i386/cpuid.h: Fix undefined behavior.
18659 2017-01-04  Jeff Law  <law@redhat.com>
18661         PR tree-optimization/79007
18662         PR tree-optimization/67955
18663         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
18664         conservative for pt.null when flag_non_call_exceptions is on.
18666 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
18668         PR translation/79019
18669         PR translation/79020
18670         * params.def (PARAM_INLINE_MIN_SPEEDUP,
18671         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
18672         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
18673         in descriptions.
18674         * config/avr/avr.opt (maccumulate-args): Likewise.
18675         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
18676         * common.opt (freport-bug): Likewise.
18677         * cif-code.def (CIF_FINAL_ERROR): Likewise.
18678         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
18679         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
18680         translatable string.
18681         * config/i386/i386.c (function_value_32): Likewise.
18682         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
18683         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
18684         Likewise.
18685         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
18686         * common/config/msp430/msp430-common.c (msp430_handle_option):
18687         Likewise.
18688         * symtab.c (symtab_node::verify_base): Likewise.
18689         * opts.c (set_debug_level): Likewise.
18690         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
18691         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18692         missing whitespace to translatable strings.
18693         * config/avr/avr.md (bswapsi2): Fix typo in comment.
18694         * config/sh/superh.h: Likewise.
18695         * config/i386/xopintrin.h: Likewise.
18696         * config/i386/znver1.md: Likewise.
18697         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
18698         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
18699         * double-int.h (struct double_int): Likewise.
18700         * double-int.c (div_and_round_double): Likewise.
18701         * wide-int.cc: Likewise.
18702         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18703         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
18704         * cfgcleanup.c (crossjumps_occured): Renamed to ...
18705         (crossjumps_occurred): ... this.
18706         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
18707         Adjust all uses.
18709         PR tree-optimization/78899
18710         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
18711         returning bool return struct loop *, NULL for failure and the new
18712         loop on success.
18713         (versionable_outer_loop_p): Don't version outer loop if it has
18714         dont_vectorized bit set.
18715         (tree_if_conversion): When versioning outer loop, ensure
18716         tree_if_conversion is performed also on the inner loop of the
18717         non-vectorizable outer loop copy.
18718         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
18719         LOOP_VECTORIZED in inner loop of the scalar outer loop and
18720         prevent vectorization of it.
18721         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
18722         the outer loop vectorization of the non-scalar version is attempted
18723         before vectorization of the inner loop in scalar version.  If
18724         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
18725         vectorization of its inner loop.
18726         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
18727         has 2 inner loops, rename also on edges from bb whose single pred
18728         is outer_loop->header.  Fix typo in function comment.
18730 2017-01-09  Martin Sebor  <msebor@redhat.com>
18732         PR bootstrap/79033
18733         * asan.c (asan_emit_stack_protection): Increase local buffer size
18734         to avoid snprintf truncation warning.
18736 2017-01-09  Andrew Pinski  <apinski@cavium.com>
18738         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
18739         to reference thunderx2t99 for the tuning structure
18740         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
18741         Rename to ...
18742         (thunderx2t99_extra_costs): This.
18743         * config/aarch64/aarch64-tune.md: Regenerate.
18744         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
18745         (vulcan_addrcost_table): This.
18746         (vulcan_regmove_cost): Rename to ...
18747         (thunderx2t99_regmove_cost): This.
18748         (vulcan_vector_cost): Rename to ...
18749         (thunderx2t99_vector_cost): this.
18750         (vulcan_branch_cost): Rename to ...
18751         (thunderx2t99_branch_cost): This.
18752         (vulcan_tunings): Rename to ...
18753         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
18754         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
18756 2017-01-09  Martin Jambor  <mjambor@suse.cz>
18758         PR ipa/78365
18759         PR ipa/78599
18760         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
18761         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
18762         (propagate_vr_accross_jump_function): Use the above function for all
18763         value range computations for pass-through jump functions and type
18764         converasion from explicit value range values.
18765         (ipcp_propagate_stage): Do not attempt to deduce types of formal
18766         parameters from TYPE_ARG_TYPES.
18767         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
18768         (ipa_write_node_info): Stream type of the actual argument.
18769         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
18771 2017-01-09  Martin Liska  <mliska@suse.cz>
18773         PR pch/78970
18774         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
18775         (lookup_compiler): Do not show error message with have_E.
18777 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
18779         PR tree-optimization/78938
18780         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
18781         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
18782         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
18783         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
18784         fixes.
18786 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18788         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
18789         is const0_rtx.
18791 2017-01-09  Richard Biener  <rguenther@suse.de>
18793         PR tree-optimization/78997
18794         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
18795         name condition properly.
18797 2017-01-09  Richard Biener  <rguenther@suse.de>
18799         PR debug/79000
18800         * dwarf2out.c (is_cxx): New overload with context.
18801         (is_naming_typedef_decl): Use it.
18803 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
18805         * invoke.texi (Option Summary): Correct spacing in option lists
18806         and add line breaks to fix over-long lines.
18808 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
18810         PR middle-end/17660
18812         * extend.texi (Common Variable Attributes): Add xref to GCC
18813         Internals manual to explain mode attribute keywords.
18815 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
18817         PR other/16519
18818         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
18819         and Preprocessor Options.
18820         (Options for Linking): Document -pthread here....
18821         (RS/6000 and PowerPC Options): ...not here.
18822         (Solaris 2 Options): ...or here.
18823         * doc/cppopts.texi: Document -pthread.
18825 2017-01-08  Martin Sebor  <msebor@redhat.com>
18827         PR middle-end/77708
18828         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
18829         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
18830         New member functions.
18831         (format_directive): Used them.
18832         (add_bytes): Same.
18833         (pass_sprintf_length::handle_gimple_call): Same.
18834         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
18835         to avoid truncation for any argument.
18836         (extract_affine_mul): Same.
18837         * tree.c (get_file_function_name): Same.
18839 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
18841         PR middle-end/77484
18842         * predict.def (PRED_INDIR_CALL): Set to 86.
18844 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18846         PR preprocessor/54124
18847         * doc/cppopts.texi: Reformat -d subtable to list the full name
18848         of the options.  Add cross-reference to the docs for the general
18849         compiler -d options.
18850         * doc/invoke.texi (Developer Options): Add cross-reference to the
18851         preprocessor-specific -d option documentation.
18853 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18855         PR preprocessor/13498
18856         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
18857         redudant material, and reflect new command-line options.
18858         (System Headers): Likewise.
18860 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18862         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
18863         -isystem, and -idirafter.  Copy-edit.
18864         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
18865         default for -ftrack-macro-expansion.  Delete obsolete and
18866         badly-formatted implementation details about -fdebug-cpp output.
18867         * doc/cppwarnopts.texi: Copy-edit.
18869 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
18871         PR c++/72803
18872         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
18873         that the transition from a max line width >= 1<<10 to narrower
18874         lines works correctly.
18876 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
18878         * doc/options.texi (PerFunction): New.
18879         * opt-functions.awk (switch_flags): Map both Optimization and
18880         PerFunction to CL_OPTIMIZATION.
18881         * opth-gen.awk: Test for PerFunction flag along with
18882         Optimization.
18883         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
18884         it only when the latter is present.  Skip those that don't in
18885         the hash function generator.
18886         * common.opt (fvar-tracking): Mark as PerFunction instead of
18887         Optimization.
18888         (fvar-tracking-assignments): Likewise.
18889         (fvar-tracking-assignments-toggle): Likewise.
18890         (fvar-tracking-uninit): Likewise.
18892 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
18894         PR translation/79018
18895         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
18896         the and store.
18898 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
18900         PR target/57583
18901         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
18902         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
18903         TARGET_LONG_JUMP_TABLE_OFFSETS.
18904         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18905         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18906         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
18907         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
18908         * config/m68k/m68k.md (tablejump expander): Likewise.
18909         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
18910         TARGET_LONG_JUMP_TABLE_OFFSETS.
18911         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
18912         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
18914 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18915             David Holsgrove <david.holsgrove@xilinx.com>
18917         * common/config/microblaze/microblaze-common.c
18918         (TARGET_EXCEPT_UNWIND_INFO): Remove.
18919         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
18920         New prototype.
18921         * config/microblaze/microblaze.c (microblaze_must_save_register)
18922         (microblaze_expand_epilogue, microblaze_return_addr): Handle
18923         calls_eh_return.
18924         (microblaze_eh_return): New function.
18925         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
18926         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
18927         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
18928         * config/microblaze/microblaze.md (eh_return): New pattern.
18930 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
18932         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
18933         GCC_DIAGNOSTIC_STRINGIFY): Define.
18935         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
18937 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
18939         * config/arm/arm.md (<mcrr>): New.
18940         (<mrrc>): New.
18941         * config/arm/arm.c (arm_arch5te): New.
18942         (arm_option_override): Set arm_arch5te.
18943         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
18944         and mrrc2.
18945         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
18946         (arm_mcrr_qualifiers): ... this. New.
18947         (MRRC_QUALIFIERS): Define to...
18948         (arm_mrrc_qualifiers): ... this. New.
18949         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
18950         __arm_mrrc2): New.
18951         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
18952         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
18953         (MRRCI, mrrc, MRRC): New.
18954         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
18955         VUNSPEC_MRRC2): New.
18957 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
18959         * config/arm/arm.md (<mcr>): New.
18960         (<mrc>): New.
18961         * config/arm/arm.c (arm_coproc_builtin_available): Add
18962         support for mcr, mrc, mcr2 and mrc2.
18963         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
18964         (arm_mcr_qualifiers): ... this. New.
18965         (MRC_QUALIFIERS): Define to ...
18966         (arm_mrc_qualifiers): ... this. New.
18967         (MCR_QUALIFIERS): Define to ...
18968         (arm_mcr_qualifiers): ... this. New.
18969         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
18970         __arm_mrc2): New.
18971         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
18972         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
18973         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
18974         VUNSPEC_MRC2): New.
18976 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
18978         * config/arm/arm.md (*ldc): New.
18979         (*stc): New.
18980         (<ldc>): New.
18981         (<stc>): New.
18982         * config/arm/arm.c (arm_coproc_builtin_available): Add
18983         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
18984         (arm_coproc_ldc_stc_legitimate_address): New.
18985         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
18986         'qualifier_const_pointer'.
18987         (LDC_QUALIFIERS): Define to...
18988         (arm_ldc_qualifiers): ... this. New.
18989         (STC_QUALIFIERS): Define to...
18990         (arm_stc_qualifiers): ... this. New.
18991         * config/arm/arm-protos.h
18992         (arm_coproc_ldc_stc_legitimate_address): New.
18993         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
18994         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
18995         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
18996         stc2, stcl, stc2l): New.
18997         * config/arm/constraints.md (Uz): New.
18998         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
18999         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
19000         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
19001         VUNSPEC_STC2L): New.
19003 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19005         * config/arm/arm.md (<cdp>): New.
19006         * config/arm/arm.c (neon_const_bounds): Rename this ...
19007         (arm_const_bounds): ... this.
19008         (arm_coproc_builtin_available): New.
19009         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
19010         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
19011         (CDP_QUALIFIERS): Define to...
19012         (arm_cdp_qualifiers): ... this. New.
19013         (void_UP): Define.
19014         (arm_expand_builtin_args): Add case for 6 arguments.
19015         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
19016         (arm_const_bounds): ... this.
19017         (arm_coproc_builtin_available): New.
19018         * config/arm/arm_acle.h (__arm_cdp): New.
19019         (__arm_cdp2): New.
19020         * config/arm/arm_acle_builtins.def (cdp): New.
19021         (cdp2): New.
19022         * config/arm/iterators.md (CDPI,CDP,cdp): New.
19023         * config/arm/neon.md: Rename all 'neon_const_bounds' to
19024         'arm_const_bounds'.
19025         * config/arm/types.md (coproc): New.
19026         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
19027         * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
19028         * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
19029         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
19031 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19033         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
19034         (UBINOP_QUALIFIERS): New.
19035         (si_UP): Define.
19036         (acle_builtin_data): New. Change comment.
19037         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
19038         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
19039         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
19040         arm_acle_builtins.def.
19041         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
19042         (arm_init_acle_builtins): New.
19043         (CRC32_BUILTIN): Remove.
19044         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
19045         crc32cb, crc32ch and crc32cw.
19046         (arm_init_crc32_builtins): Remove.
19047         (arm_init_builtins): Use arm_init_acle_builtins rather
19048         than arm_init_crc32_builtins.
19049         (arm_expand_acle_builtin): New.
19050         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
19051         * config/arm/arm_acle_builtins.def: New.
19053 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19055         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
19056         (arm_builtin_datum): ... this.
19057         (arm_init_neon_builtin): Rename to ...
19058         (arm_init_builtin): ... this. Add a new parameters PREFIX
19059         and USE_SIG_IN_NAME.
19060         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
19061         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
19062         'arm_builtin_datum'.
19063         (arm_init_vfp_builtins): Likewise.
19064         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
19065         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
19066         (arm_expand_neon_args): Rename to ...
19067         (arm_expand_builtin_args): ... this. Rename builtin_arg
19068         enum values and differentiate between ARG_BUILTIN_MEMORY
19069         and ARG_BUILTIN_NEON_MEMORY.
19070         (arm_expand_neon_builtin_1): Rename to ...
19071         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
19072         values, arm_expand_builtin_args and add bool parameter NEON.
19073         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
19074         (arm_expand_vfp_builtin): Likewise.
19075         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
19077 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
19079         PR middle-end/77484
19080         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
19081         * predict.c (tree_estimate_probability_bb): Reverse direction of
19082         polymorphic call predictor.
19084 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
19086         * passes.c (execute_one_pass): Split out pass-skipping logic into...
19087         (determine_pass_name_match): ...this new function and...
19088         (should_skip_pass_p): ...this new function.
19090 2017-01-06  Nathan Sidwell  <nathan@acm.org>
19092         * ipa-visibility.c (function_and_variable_visibility): Reformat
19093         comments and long lines.  Remove extrneous if.
19094         * symtab.c (symtab_node::make_decl_local): Fix code format.
19095         (symtab_node::set_section_for_node): Fix comment typo.
19097 2017-01-06  Martin Liska  <mliska@suse.cz>
19099         PR bootstrap/79003
19100         * lra-constraints.c: Rename invariant to lra_invariant.
19101         * predict.c (set_even_probabilities): Initialize e to NULL.
19103 2017-01-05  Martin Sebor  <msebor@redhat.com>
19105         PR tree-optimization/78910
19106         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
19107         (format_integer): Correct off-by-one error in the handling
19108         of precision with negative numbers in signed conversions..
19110 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19112         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
19114 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
19116         PR tree-optimization/71016
19117         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
19118         factor_out_conditional_conversion.  Formatting fix.
19119         (factor_out_conditional_conversion): Add cond_stmt argument.
19120         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
19121         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
19122         Formatting fix.
19124 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
19126         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
19127         read-rtl-function.o, and selftest-rtl.o.
19128         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
19129         (selftest::aarch64_test_loading_full_dump): New function.
19130         (selftest::aarch64_run_selftests): New function.
19131         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
19132         selftest::aarch64_run_selftests.
19133         * config/i386/i386.c
19134         (selftest::ix86_test_loading_dump_fragment_1): New function.
19135         (selftest::ix86_test_loading_call_insn): New function.
19136         (selftest::ix86_test_loading_full_dump): New function.
19137         (selftest::ix86_test_loading_unspec): New function.
19138         (selftest::ix86_run_selftests): Call the new functions.
19139         * emit-rtl.c (maybe_set_max_label_num): New function.
19140         * emit-rtl.h (maybe_set_max_label_num): New decl.
19141         * function.c (instantiate_decls): Guard call to
19142         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
19143         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
19144         "static".
19145         * gensupport.c (gen_reader::gen_reader): Pass "false"
19146         for new "compact" param of rtx_reader.
19147         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
19148         rather than an empty string for NULL strings.
19149         * read-md.c: Potentially include config.h rather than bconfig.h.
19150         Wrap include of errors.h with #ifdef GENERATOR_FILE.
19151         (have_error): New global, copied from errors.c.
19152         (md_reader::read_name): Rename to...
19153         (md_reader::read_name_1): ...this, adding "out_loc" param,
19154         and converting "missing name or number" to returning false, rather
19155         than failing.
19156         (md_reader::read_name): Reimplement in terms of read_name_1.
19157         (md_reader::read_name_or_nil): New function.
19158         (md_reader::read_string): Handle "(nil)" by returning NULL.
19159         (md_reader::md_reader): Add new param "compact".
19160         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
19161         (md_reader::read_file): New method.
19162         * read-md.h (md_reader::md_reader): Add new param "compact".
19163         (md_reader::read_file): New method.
19164         (md_reader::is_compact): New accessor.
19165         (md_reader::read_name): Convert return type from void to file_location.
19166         (md_reader::read_name_or_nil): New decl.
19167         (md_reader::read_name_1): New decl.
19168         (md_reader::m_compact): New field.
19169         (noop_reader::noop_reader): Pass "false" for new "compact" param
19170         of rtx_reader.
19171         (rtx_reader::rtx_reader): Add new "compact" param.
19172         (rtx_reader::read_rtx_operand): Make virtual and convert return
19173         type from void to rtx.
19174         (rtx_reader::read_until): New decl.
19175         (rtx_reader::handle_any_trailing_information): New virtual function.
19176         (rtx_reader::postprocess): New virtual function.
19177         (rtx_reader::finalize_string): New virtual function.
19178         (rtx_reader::m_in_call_function_usage): New field.
19179         (rtx_reader::m_reuse_rtx_by_id): New field.
19180         * read-rtl-function.c: New file.
19181         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
19182         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
19183         (selftest::verify_three_block_rtl_cfg): New decl.
19184         * read-rtl-function.h: New file.
19185         * read-rtl.c: Potentially include config.h rather than bconfig.h.
19186         For host, include function.h, memmodel.h, and emit-rtl.h.
19187         (one_time_initialization): New function.
19188         (struct compact_insn_name): New struct.
19189         (compact_insn_names): New array.
19190         (find_code): Handle insn codes in compact dumps.
19191         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
19192         (bind_subst_iter_and_attr): Likewise.
19193         (add_condition_to_string): Likewise.
19194         (add_condition_to_rtx): Likewise.
19195         (apply_attribute_uses): Likewise.
19196         (add_current_iterators): Likewise.
19197         (apply_iterators): Likewise.
19198         (initialize_iterators): Guard usage of apply_subst_iterator with
19199         #ifdef GENERATOR_FILE.
19200         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
19201         (md_reader::read_mapping): Likewise.
19202         (add_define_attr_for_define_subst): Likewise.
19203         (add_define_subst_attr): Likewise.
19204         (read_subst_mapping): Likewise.
19205         (check_code_iterator): Likewise.
19206         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
19207         logic to...
19208         (one_time_initialization): New function.
19209         (rtx_reader::read_until): New method.
19210         (read_flags): New function.
19211         (parse_reg_note_name): New function.
19212         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
19213         Handle reuse_rtx ids.
19214         Wrap iterator lookup within #ifdef GENERATOR_FILE.
19215         Add parsing support for RTL dumps, mirroring the special-cases in
19216         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
19217         values, and calling handle_any_trailing_information.
19218         (rtx_reader::read_rtx_operand): Convert return type from void
19219         to rtx, returning return_rtx.  Handle case 'e'.  Call
19220         finalize_string on XSTR and XTMPL fields.
19221         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
19222          "(nil)" values were omitted.  Call the postprocess vfunc on the
19223         return_rtx.
19224         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
19225         class ctor.  Initialize m_in_call_function_usage.  Call
19226         one_time_initialization.
19227         * rtl-tests.c (selftest::test_uncond_jump): Call
19228         set_new_first_and_last_insn.
19229         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
19230         * selftest-rtl.c: New file.
19231         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
19232         (selftest::get_insn_by_uid): New decl.
19233         * selftest-run-tests.c (selftest::run_tests): Call
19234         read_rtl_function_c_tests.
19235         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
19236         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
19237         dumps.
19239 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
19241         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
19242         operands in a special way.  Assert that pos+len <= mode precision.
19244 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
19246         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
19247         3 argument Alias with unlimited for the negative form.
19248         (fno-vect-cost-model): Removed.
19250 2017-01-05  Martin Liska  <mliska@suse.cz>
19252         * hsa-gen.c (gen_hsa_divmod): New function.
19253         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
19255 2017-01-05  Martin Liska  <mliska@suse.cz>
19257         PR pch/78970
19258         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
19259         header.
19261 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19263         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
19264         small constant length operands.
19266 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19268         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
19269         between loop iterations.
19271 2017-01-05  Martin Liska  <mliska@suse.cz>
19273         PR sanitizer/78815
19274         * gimplify.c (gimplify_decl_expr): Compare to
19275         asan_poisoned_variables instread of checking flags.
19276         (gimplify_target_expr): Likewise.
19277         (gimplify_expr): Likewise.
19278         (gimplify_function_tree): Conditionally initialize
19279         asan_poisoned_variables.
19281 2017-01-04  Jeff Law  <law@redhat.com>
19283         PR tree-optimizatin/78812
19284         * rtl.h (contains_mem_rtx_p): Prototype.
19285         * ifcvt.c (containts_mem_rtx_p): Move from here to...
19286         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
19287         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
19288         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
19289         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
19291 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
19293         * input.c (assert_char_at_range): Default-initialize actual_range.
19295 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
19297         * df-scan.c (df_ref_create_structure): Make regno unsigned,
19298         to match the caller.
19300 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
19302         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
19303         insns after final jump in test to emit dummy move.
19305 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
19307         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
19308         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
19310 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
19312         * multiple_target.c (create_dispatcher_calls): Init e_next.
19313         * tree-ssa-loop-split.c (split_loop): Init border.
19314         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
19315         scalar_type.
19317 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
19319         PR target/71977
19320         PR target/70568
19321         PR target/78823
19322         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
19323         (altivec_register_operand): Do not return true if the operand
19324         contains a SUBREG mixing SImode and SFmode.
19325         (vsx_register_operand): Likewise.
19326         (vsx_reg_sfsubreg_ok): New predicate.
19327         (vfloat_operand): Do not return true if the operand contains a
19328         SUBREG mixing SImode and SFmode.
19329         (vint_operand): Likewise.
19330         (vlogical_operand): Likewise.
19331         (gpc_reg_operand): Likewise.
19332         (int_reg_operand): Likewise.
19333         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
19334         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
19335         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
19336         SImode and SFmode.
19337         (rs6000_emit_move_si_sf_subreg): New helper function.
19338         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
19339         fixup SUBREGs involving SImode and SFmode.
19340         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
19341         numbers for the new peephole2 optimization.
19342         (peephole2 for SFmode unions): New peephole2 to optimize cases in
19343         the GLIBC math library that do AND/IOR/XOR operations on single
19344         precision floating point.
19345         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
19346         target macros to say whether we need to avoid SUBREGs mixing
19347         SImode and SFmode.
19348         (TARGET_ALLOW_SF_SUBREG): Likewise.
19349         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
19350         (UNSPEC_SI_FROM_SF): Likewise.
19351         (iorxor): Change spacing.
19352         (and_ior_xor): New iterator for AND, IOR, and XOR.
19353         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
19354         (movdi_from_sf_zero_ext): Likewise.
19355         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
19356         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
19357         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
19358         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
19359         (fms<mode>4): Likewise.
19360         (fnma<mode>4): Likewise.
19361         (fnms<mode>4): Likewise.
19362         (nfma<mode>4): Likewise.
19363         (nfms<mode>4): Likewise.
19365 2017-01-04  Marek Polacek  <polacek@redhat.com>
19367         PR c++/64767
19368         * doc/invoke.texi: Document -Wpointer-compare.
19370 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
19372         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
19373         RejectNegative.
19375         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
19376         descriptions for -gdwarf-5 and emit them as uleb128 instead of
19377         2-byte data.
19379 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19381         PR target/78056
19382         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
19383         documentation of the powerpc_popcntb_ok attribute.
19384         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19385         code to issue warning messages if a requested CPU configuration is
19386         not supported by the binary (assembler and loader) toolchain.
19387         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
19388         made to define a built-in function that has been disabled.
19389         (paired_init_builtins): Add assertion to prevent ICE if attempt is
19390         made to define a built-in function that has been disabled.
19391         (altivec_init_builtins): Add comment explaining why definition
19392         of the DST built-in functions is not preceded by an assertion
19393         check.  Add assertions to prevent ICE if attempts are made to
19394         define an altivec predicate or an abs* built-in function that has
19395         been disabled.
19396         (htm_init_builtins): Add comment explaining why definition of the
19397         htm built-in functions is not preceded by an assertion check.
19399 2017-01-04  Jeff Law  <law@redhat.com>
19401         PR tree-optimizatin/67955
19402         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
19403         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
19404         the points-to solution does not include pt_null.  Use DECL_PT_UID
19405         unconditionally.
19407 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
19409         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
19410         Use gen_int_mode instead of gen_lopwart for const_int operands.
19412 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
19414         PR tree-optimization/71563
19415         * match.pd: Simplify X << Y into X if Y is known to be 0 or
19416         out of range value - has low bits known to be zero.
19418 2017-01-04  Alan Modra  <amodra@gmail.com>
19420         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
19421         * configure: Regenerate.
19422         * config.in: Regenerate.
19424 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
19426         PR bootstrap/77569
19427         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
19428         a substring of the message, but strcmp with the whole message.  Ifdef
19429         ENABLE_NLS, translate the message first using dgettext.
19431 2017-01-03  Jeff Law  <law@redhat.com>
19433         PR tree-optimizatin/78856
19434         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
19435         (mark_threaded_blocks): Remove code to truncate thread paths that
19436         cross multiple loop headers.  Instead invalidate the cached loop
19437         iteration information and handle case of a thread path walking
19438         into an irreducible region.
19440 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19442         PR target/78900
19443         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
19444         assertions.  Add support for doing the signbit if the IEEE 128-bit
19445         floating point value is in a GPR.
19446         * config/rs6000/rs6000.md (Fsignbit): Delete.
19447         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
19448         Update the length attribute if the value is in a GPR.
19449         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
19450         the sign or zero extension instruction, since the value is always 0/1.
19451         (signbit<mode>2_dm2): Delete using <Fsignbit>.
19453         PR target/78953
19454         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
19455         extracting SImode to a GPR register so that we can generate a
19456         store, limit the vector to be in a traditional Altivec register
19457         for the vextuwrx instruction.
19459 2017-01-03  Ian Lance Taylor  <iant@google.com>
19461         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
19463 2017-01-03  Martin Sebor  <msebor@redhat.com>
19465         PR tree-optimization/78696
19466         * gimple-ssa-sprintf.c (format_floating): Correct handling of
19467         precision.  Use MPFR for %f for greater fidelity.  Correct handling
19468         of %g.
19469         (pass_sprintf_length::compute_format_length): Set width and precision
19470         specified by asrerisk to void_node for vararg functions.
19471         (try_substitute_return_value): Adjust dump output.
19473 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
19475         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
19477 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19479         * doc/invoke.texi (SPARC options): Document -mlra as the default.
19480         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
19481         -mlra/-mno-lra was passed to the compiler.
19483 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
19485         PR rtl-optimization/65618
19486         * emit-rtl.c (try_split): Move initialization of "before" and
19487         "after" to just before the call to emit_insn_after_setloc.
19489 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
19491         * doc/md.texi (Standard Names): Remove reference to Java frontend.
19493 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
19495         * dwarf2out.c (gen_enumeration_type_die): When
19496         -gno-strict-dwarf, add a DW_AT_encoding attribute.
19498 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
19500         PR tree-optimization/78965
19501         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
19502         Change first argument from const call_info & to call_info &.  For %n
19503         set info.nowrite to false.
19505         PR middle-end/78901
19506         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
19507         possibly throwing calls.
19509         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
19510         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
19511         and fns handling, rather than in a separate case SSA_NAME.
19513 2017-01-02  Jeff Law  <law@redhat.com>
19515         * config/darwin-driver.c (darwin_driver_init): Const-correctness
19516         fixes for first_period and second_period variables.
19518 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
19520         PR target/78967
19521         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
19522         (*insvqi_1): New insn pattern.
19523         (*insvqi_1_mem_rex64): Ditto.
19524         (*insvqi_2): Ditto.
19525         (*insvqi_3): Rename from *insvqi.
19527         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
19529 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
19531         * doc/cfg.texi (Edges): Remove reference to Java.
19532         (Maintaining the CFG): Ditto.
19534 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
19536         PR middle-end/77674
19537         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
19538         transparent aliases.
19540 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
19542         PR middle-end/77484
19543         * predict.def (PRED_CALL): Update hitrate.
19544         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
19545         * predict.c (tree_estimate_probability_bb): Split CALL predictor
19546         into direct/indirect/polymorphic variants.
19548 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
19550         Update copyright years.
19552         * gcc.c (process_command): Update copyright notice dates.
19553         * gcov-dump.c (print_version): Ditto.
19554         * gcov.c (print_version): Ditto.
19555         * gcov-tool.c (print_version): Ditto.
19556         * gengtype.c (create_file): Ditto.
19557         * doc/cpp.texi: Bump @copying's copyright year.
19558         * doc/cppinternals.texi: Ditto.
19559         * doc/gcc.texi: Ditto.
19560         * doc/gccint.texi: Ditto.
19561         * doc/gcov.texi: Ditto.
19562         * doc/install.texi: Ditto.
19563         * doc/invoke.texi: Ditto.
19565 Copyright (C) 2017 Free Software Foundation, Inc.
19567 Copying and distribution of this file, with or without modification,
19568 are permitted in any medium without royalty provided the copyright
19569 notice and this notice are preserved.