PR target/80324
[official-gcc.git] / gcc / ChangeLog
blob1f7f645aead3bed588eb2d9fb52764da25a60ae3
1 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
3         PR target/80324
4         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
5         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
6         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
7         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
8         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
9         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
10         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
11         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
12         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
13         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
14         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
15         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
16         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
17         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
18         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
19         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
20         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
21         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
22         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
23         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
24         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
25         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
26         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
28 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
30         PR rtl-optimization/70478
31         * lra-constraints.c: Reverse the last patch.
33 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
35         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
36         Add comment for WCHAR_T.
38 2017-04-08  Martin Liska  <mliska@suse.cz>
40         Revert:
41         2017-04-07  Martin Liska  <mliska@suse.cz>
43         PR ipa/80212
44         * ipa-split.c (split_function): Add function part to a same comdat
45         group.
47 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
49         PR target/80358
50         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
52 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
54         * rs6000/rs6000.c (vec_load_pendulum): Rename...
55         (vec_pairing): ...to this.
56         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
57         (rs6000_sched_init): Adjust for name change.
58         (struct rs6000_sched_context): Likewise.
59         (rs6000_init_sched_context): Likewise.
60         (rs6000_set_sched_context): Likewise.
62 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
64         PR target/80322
65         PR target/80323
66         PR target/80325
67         PR target/80326
68         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
69         intrinsics.
70         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
71         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
72         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
74 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
76         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
78 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
80         PR rtl-optimization/70703
81         * ira-color.c (update_conflict_hard_regno_costs): Use
82         int64_t instead of HOST_WIDE_INT.
84 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
86         PR rtl-optimization/70478
87         * lra-constraints.c (process_alt_operands): Disfavor alternative
88         insn memory operands.
90 2017-04-07  Jeff Law  <law@redhat.com>
92         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
93         CALL and NOTE_INSN_CALL_ARG_LOCATION.
95 2017-04-07  Martin Liska  <mliska@suse.cz>
97         PR target/79889
98         * config/aarch64/aarch64.c (aarch64_process_target_attr):
99         Show error message instead of an ICE.
101 2017-04-07  Martin Liska  <mliska@suse.cz>
103         PR ipa/80212
104         * ipa-split.c (split_function): Add function part to a same comdat
105         group.
107 2017-04-07  Richard Biener  <rguenther@suse.de>
109         PR middle-end/80341
110         * tree.c (get_unwidened): Also handle ! for_type case for
111         INTEGER_CSTs.
112         * convert.c (do_narrow): Split out from ...
113         (convert_to_integer_1): ... here.  Do not pass final truncation
114         type to get_unwidened for TRUNC_DIV_EXPR.
116 2017-04-07  Richard Biener  <rguenther@suse.de>
118         * tree-affine.c (wide_int_ext_for_comb): Take type rather
119         than aff_tree.
120         (aff_combination_const): Adjust.
121         (aff_combination_scale): Likewise.
122         (aff_combination_add_elt): Likewise.
123         (aff_combination_add_cst): Likewise.
124         (aff_combination_convert): Likewise.
125         (add_elt_to_tree): Likewise.  Remove unused argument.
126         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
128 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
130         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
131         definition.
132         * config/arm/arm.c (arm_default_short_enums): Use
133         ARM_DEFAULT_SHORT_ENUMS.
134         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
136 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
138         PR debug/80234
139         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
140         members with redundant out-of-class redeclaration.
142 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
144         PR target/80286
145         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
146         * config/i386/i386.md (*zero_extendsidi2):
147         Add (?*x,*x) and (?*v,*v) alternatives.
149 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
151         PR target/79733
152         * config/i386/i386.c (ix86_expand_builtin)
153         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
154         mode from insn data. Convert operands to insn operand mode.
155         Copy operands that don't satisfy insn predicate to a register.
157 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
159         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
160         Update comments.
162 2017-04-06  Richard Biener  <rguenther@suse.de>
164         PR tree-optimization/80334
165         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
166         preserve alignment of accesses.
168 2017-04-06  Richard Biener  <rguenther@suse.de>
170         PR tree-optimization/80262
171         * tree-sra.c (build_ref_for_offset): Preserve address-space
172         information.
173         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
174         Drop useless address-space information on MEM_REF offsets.
176 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
178         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
180 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
182         PR rtl-optimization/70703
183         * ira-color.c (update_conflict_hard_regno_costs): Use
184         HOST_WIDE_INT instead of long.
186 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
188         PR target/80298
189         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
190         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
191         is not defined.
192         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
193         for x86_64 target.  Handle -m3dnowa option.
195 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
197         PR rtl-optimization/70703
198         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
199         (update_conflict_hard_regno_costs): Use long instead of unsigned
200         arithmetic for cost calculation.
202 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
203             Bernd Edlinger  <bernd.edlinger@hotmail.de>
205         PR sanitizer/80308
206         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
207         for big endian.
209 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
211         PR target/78002
212         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
213         ptr_mode with Pmode throughout.
214         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
215         into probe_stack_range and use DImode.
217 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
219         PR target/79890
220         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
221         call_eh_return is true.
223 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
225         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
226         Initialize last_match_fntype_index.
228 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
230         PR target/80310
231         * tree-nvr.c: Include internal-fn.h.
232         (pass_return_slot::execute): Ignore internal calls without
233         direct optab.
235 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
236             Richard Biener  <rguenther@suse.de>
238         PR c++/80297
239         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
240         captures used multiple times, except for the last use.
241         * generic-match-head.c: Include gimplify.h.
243 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
245         PR tree-optimization/79390
246         * target.h (struct noce_if_info): Declare.
247         * targhooks.h (default_noce_conversion_profitable_p): Declare.
248         * target.def (noce_conversion_profitable_p): New target hook.
249         * ifcvt.h (struct noce_if_info): New type, moved from ...
250         * ifcvt.c (struct noce_if_info): ... here.
251         (noce_conversion_profitable_p): Renamed to ...
252         (default_noce_conversion_profitable_p): ... this.  No longer
253         static nor inline.
254         (noce_try_store_flag_constants, noce_try_addcc,
255         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
256         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
257         instead of noce_conversion_profitable_p.
258         * config/i386/i386.c: Include ifcvt.h.
259         (ix86_option_override_internal): Don't override
260         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
261         (ix86_noce_conversion_profitable_p): New function.
262         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
263         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
264         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
265         * doc/tm.texi: Regenerated.
267 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
269         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
270         correction.
272 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
274         PR target/80307
275         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
276         instructions for small multiply cores.
278 2017-04-04  Jeff Law  <law@redhat.com>
280         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
281         added member.
282         (mips_expand_vec_perm_const): Initialize elements in orig_perm
283         that are not set by the loop over the elements.
285 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
287         PR target/80286
288         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
289         int mode, convert_modes it to mode as unsigned, otherwise use
290         lowpart_subreg to mode rather than SImode.
291         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
292         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
293         Use DImode instead of SImode for the shift count operand.
294         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
295         Likewise.
297 2017-04-04  Richard Biener  <rguenther@suse.de>
299         PR middle-end/80281
300         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
301         arithmetic done for the negate or the plus.  Simplify.
302         (A - (-B) -> A + B): Likewise.
303         * fold-const.c (split_tree): Make sure to not negate pointers.
305 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
307         PR rtl-optimization/60818
308         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
309         a compare of comparisons with the thing compared if this results
310         in a different machine mode.
312 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
314         * alias.c (base_alias_check): Fix typo in comment.
315         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
316         * cgraphunit.c (symbol_table::compile): Likewise.
317         * collect2.c (maybe_run_lto_and_relink): Likewise.
318         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
319         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
320         * config/avr/avr.c (avr_map_op_t): Likewise.
321         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
322         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
323         * config/epiphany/epiphany.md (movcc): Likewise.
324         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
325         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
326         Likewise.
327         * config/mips/mips.c (mips_save_restore_reg): Likewise.
328         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
329         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
330         * config/sh/sh.c (sh_rtx_costs): Likewise.
331         * fold-const.c (fold_truth_andor): Likewise.
332         * genautomata.c (collapse_flag): Likewise.
333         * gengtype.h (struct type::u::s): Likewise.
334         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
335         * input.c (FORMAT_AMOUNT): Likewise.
336         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
337         (known_aggs_to_agg_replacement_list): Likewise.
338         * ipa-inline-analysis.c: Likewise.
339         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
340         * ipa-polymorphic-call.c
341         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
342         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
343         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
344         Likewise.
345         * modulo-sched.c (apply_reg_moves): Likewise.
346         * omp-expand.c (build_omp_regions_1): Likewise.
347         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
348         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
349         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
350         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
351         * value-prof.c: Likewise.
352         * var-tracking.c (val_reset): Likewise.
354 2017-04-03  Richard Biener  <rguenther@suse.de>
356         PR tree-optimization/80275
357         * fold-const.c (split_address_to_core_and_offset): Handle
358         POINTER_PLUS_EXPR.
360 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
362         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
363         descriptors is at least equal to that of functions.
365 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
367         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
369 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
371         PR target/80250
372         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
373         (mov<IMOD4:mode>): New expander.
374         (*mov<IMOD4:mode>_internal): New insn and split pattern.
376 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
378         PR rtl-optimization/79405
379         * fwprop.c (propagations_left): New variable.
380         (forward_propagate_into): Decrement it.
381         (fwprop_init): Initialize it.
382         (fw_prop): If the variable has reached zero, stop propagating.
383         (fwprop_addr): Ditto.
385 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
387         PR debug/79255
388         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
389         a FUNCTION_DECL, pass it as decl instead of origin to
390         process_scope_var.
392 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
394         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
395         string.
397 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
399         PR target/80107
400         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
401         TARGET_VSX_SMALL_INTEGER.
403 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
405         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
406         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
408 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
410         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
411         extraction from odd-numbered MSA register.
413 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
415         PR middle-end/80173
416         * expmed.c (store_bit_field_1): Don't attempt to create
417         a word subreg out of hard registers wider than word if they
418         have HARD_REGNO_NREGS of 1 for their mode.
420         PR middle-end/80163
421         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
422         conversions to integer types wider than word and pointer.
424         PR debug/80025
425         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
426         (rtx_equal_for_cselib_p): Pass 0 to it.
427         * cselib.c (cselib_hasher::equal): Likewise.
428         (rtx_equal_for_cselib_1): Add depth argument.  If depth
429         is 128, don't look up VALUE locs and punt.  Increment
430         depth in recursive calls when walking VALUE locs.
432 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
434         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
435         (make_gcov_file_name): Use the canonical path name for generating
436         the MD5 value.
437         (read_line): Fix handling of files with ascii null bytes.
439 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
441         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
442         to initialise a vector register instead
443         of using a const_int.
445 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
447         PR translation/80189
448         * gimplify.c (omp_default_clause): Use %qs instead of %s in
449         diagnostic messages.
451 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
453         PR target/80246
454         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
455         (dfp_diex_<mode>): Update mode of operand 1.
456         * doc/extend.texi (dxex, dxexq): Document change to return type.
457         (diex, diexq): Document change to argument type.
459 2017-03-30  Martin Jambor  <mjambor@suse.cz>
461         PR ipa/77333
462         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
463         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
464         it reflects the signature changes performed at the callee side.
465         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
466         to cgraph_build_function_type_skip_args.
467         (build_function_decl_skip_args): Adjust call to the above function.
469 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
471         PR target/80206
472         * config/i386/sse.md
473         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
474         register as dest whenever it is a MEM not rtx_equal_p to the
475         corresponding dup operand, and when forcing into reg move the
476         reg into the memory afterwards.
477         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
478         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
479         for the force_reg mode.
480         (avx512vl_vextractf128<mode>): Use register as dest either
481         always when a MEM, or when it is a MEM not rtx_equal_p to the
482         corresponding dup operand, or even not when it is a CONST_VECTOR
483         depending on the mode and lo vs. hi.
484         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
485         parens.
486         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
487         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
488         Likewise.  Require that operands[2] is even.
489         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
490         Remove extraneous parens.  Require that operands[2] is a multiple
491         of 4.
492         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
493         operands[0] is a MEM if <mask_applied>, the predicates/constraints
494         disallow memory then.
496 2017-03-30  Richard Biener  <rguenther@suse.de>
498         PR tree-optimization/77498
499         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
500         to non-constants over backedges.
502 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
504         PR rtl-optimization/80233
505         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
506         as last_combined_insn.  Do not test for BARRIER_P separately.
508 2017-03-29  Andreas Schwab  <schwab@suse.de>
510         PR ada/80146
511         * calls.c (prepare_call_address): Convert funexp to Pmode before
512         copying to temp reg.
514 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
516         PR tree-optimization/80158
517         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
518         Handle possible future case of more than one alternate
519         interpretation.
520         (replace_rhs_if_not_dup): Likewise.
521         (replace_one_candidate): Likewise.
523 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
525         PR rtl-optimization/80193
526         * ira.c (ira): Do not check allocation for LRA.
528 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
530         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
531         (nvptx_output_simt_exit): Declare.
532         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
533         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
534         (init_softstack_frame): Move initialization of crtl->is_leaf to...
535         (nvptx_declare_function_name): ...here.  Emit declaration of local
536         memory space buffer for omp_simt_enter insn.
537         (nvptx_output_unisimt_switch): New.
538         (nvptx_output_softstack_switch): New.
539         (nvptx_output_simt_enter): New.
540         (nvptx_output_simt_exit): New.
541         * config/nvptx/nvptx.h (struct machine_function): New fields
542         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
543         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
544         (UNSPECV_SIMT_EXIT): Ditto.
545         (omp_simt_enter_insn): New insn.
546         (omp_simt_enter): New expansion.
547         (omp_simt_exit): New insn.
548         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
550         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
551         (expand_GOMP_SIMT_ENTER_ALLOC): New.
552         (expand_GOMP_SIMT_EXIT): New.
553         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
554         (GOMP_SIMT_ENTER_ALLOC): Ditto.
555         (GOMP_SIMT_EXIT): Ditto.
556         * target-insns.def (omp_simt_enter): New insn.
557         (omp_simt_exit): Ditto.
558         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
559         simt_dlist.
560         (lower_rec_simd_input_clauses): Implement SIMT privatization.
561         (lower_rec_input_clauses): Likewise.
562         (lower_lastprivate_clauses): Handle SIMT privatization.
564         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
565         (ompdevlow_adjust_simt_enter): New.
566         (find_simtpriv_var_op): New.
567         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
568         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
570         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
571         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
572         (copy_decl_for_dup_finish): Ditto.
574         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
576 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
578         PR target/53383
579         * config/i386/i386.c (ix86_option_override_internal): Always
580         allow -mpreferred-stack-boundary=3 for 64-bit targets.
582 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
584         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
586 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
588         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
589         mark new edge's irreducible flag accordign to it.
590         (vect_do_peeling): Check loop preheader edge's irreducible flag
591         and pass it to function slpeel_add_loop_guard.
593 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
595         PR tree-optimization/80218
596         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
597         Update block frequencies and counts.
599 2017-03-28  Richard Biener  <rguenther@suse.de>
601         PR tree-optimization/78644
602         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
603         of a simplification result we may not use it at all.
605 2017-03-28  Richard Biener  <rguenther@suse.de>
607         PR ipa/80205
608         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
609         without arguments, generate default definition of a SSA name.
611 2017-03-28  Richard Biener  <rguenther@suse.de>
613         PR middle-end/80222
614         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
615         TYPE_REF_CAN_ALIAS_ALL references.
616         * fold-const.c (fold_indirect_ref_1): Likewise.
618 2017-03-28  Martin Liska  <mliska@suse.cz>
620         PR ipa/80104
621         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
622         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
624 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
625             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
627         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
628         (EXTRA_SPECS): Define.
629         (SUBTARGET_EXTRA_SPECS): Likewise.
630         (SUBTARGET_CPP_SPEC): Likewise.
631         * config/arc/elf.h (EXTRA_SPECS): Renamed to
632         SUBTARGET_EXTRA_SPECS.
633         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
635 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
637         * config/arc/simdext.md (vst64_insn): Update pattern.
638         (vld32wh_insn): Likewise.
639         (vld32wl_insn): Likewise.
640         (vld64_insn): Likewise.
641         (vld32_insn): Likewise.
643 2017-03-28  Marek Polacek  <polacek@redhat.com>
645         PR sanitizer/80067
646         * fold-const.c (fold_comparison): Use protected_set_expr_location
647         instead of SET_EXPR_LOCATION.
649 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
651         * tree.c (add_expr): Avoid name lookup warning.
653 2017-03-27  Jeff Law  <law@redhat.com>
655         PR tree-optimization/80216
656         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
657         function name.  Limit recursion depth.
658         (record_temporary_equivalences): Corresponding changes.
660 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
662         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
663         covered first.
665 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
667         PR target/80102
668         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
669         notes.
670         * cfgcleanup.c (reg_note_cfa_p): New array.
671         (insns_have_identical_cfa_notes): New function.
672         (old_insns_match_p): Don't cross-jump in between /f
673         and non-/f instructions.  If both i1 and i2 are frame related,
674         verify all CFA notes, their order and content.
676 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
678         PR target/78543
679         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
680         HImode and SImode with zero extend to DImode to one insn.
681         (bswap<mode>2_extenddi): Likewise.
682         (bswapsi2_extenddi): Likewise.
683         (bswaphi2_extendsi): Likewise.
684         (bswaphi2): Combine bswap HImode and SImode into one insn.
685         Separate memory insns from swapping register.
686         (bswapsi2): Likewise.
687         (bswap<mode>2): Likewise.
688         (bswaphi2_internal): Delete, no longer used.
689         (bswapsi2_internal): Likewise.
690         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
691         store, and gpr<-gpr swap insns.
692         (bswap<mode>2_store): Likewise.
693         (bswaphi2_reg): Register only splitter, combine with the splitter.
694         (bswaphi2 splitter): Likewise.
695         (bswapsi2_reg): Likewise.
696         (bswapsi2 splitter): Likewise.
697         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
698         the insns into load, store, and register/register insns.
699         (bswapdi2_ldbrx): Likewise.
700         (bswapdi2_load): Likewise.
701         (bswapdi2_store): Likewise.
702         (bswapdi2_reg): Likewise.
704 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
706         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
707         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
709 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
711         PR target/80103
712         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
713         add comments.
714         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
715         special handling for target option conflicts between dform
716         options (-mpower9-dform, -mpower9-dform-vector,
717         -mpower9-dform-scalar) and -mno-direct-move.
719 2017-03-27  Richard Biener  <rguenther@suse.de>
721         PR tree-optimization/80181
722         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
724 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
726         * config/arc/predicates.md (move_double_src_operand): Replace the
727         call to move_double_src_operand with a call to address_operand.
729 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
731         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
732         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
733         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
735 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
737         * config/arc/predicates.md (long_immediate_loadstore_operand):
738         Consider scaled addresses cases.
740 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
742         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
743         restored when in interrupt.
744         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
745         doesn't have delay slot.
747 2017-03-27  Richard Biener  <rguenther@suse.de>
749         PR ipa/79776
750         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
751         inlined thunk clones.
753 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
755         PR sanitizer/80168
756         * asan.c (instrument_derefs): Copy over last operand from
757         original COMPONENT_REF to the new COMPONENT_REF with
758         DECL_BIT_FIELD_REPRESENTATIVE.
759         * ubsan.c (instrument_object_size): Likewise.
761 2017-03-27  Richard Biener  <rguenther@suse.de>
763         PR tree-optimization/80170
764         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
765         sure DR/SCEV didnt fold in constants we do not see when looking
766         at the reference base alignment.
768 2017-03-27  Richard Biener  <rguenther@suse.de>
770         PR middle-end/80171
771         * gimple-fold.c (fold_ctor_reference): Properly guard against
772         NULL return value from canonicalize_constructor_val.
774 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
776         PR target/80180
777         * config/i386/i386.c (ix86_expand_builtin)
778         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
779         flags reg setting and flags reg using instructions.
780         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
781         clobbering instructions to zero extend op2.
783 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
785         * doc/install.texi (Configuration) <--with-aix-soname>:
786         Update link to AIX ld.
788 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
790         PR rtl-optimization/80160
791         PR rtl-optimization/80159
792         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
793         reg_alternate_class into account.
795 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
797         PR target/80148
798         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
799         to consider in curr_insn_transform.
801 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
803         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
804         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
805         and emit_mode_inner.
807 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
809         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
810         argument to the overloaded builtin variants.  Use the new flag to
811         deprecate certain builtin variants.
812         * config/s390/s390-builtin-types.def: Add new builtin types.
813         * config/s390/s390-builtins.h: Support new flags field for
814         overloaded builtins.
815         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
816         (s390_macro_to_expand): Enable vector float data type.
817         (s390_cpu_cpp_builtins_internal): Indicate support of the new
818         builtins by incrementing the __VEC__ version number.
819         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
820         vec_xst.
821         (s390_resolve_overloaded_builtin): Emit error messages depending
822         on the builtin flags.
823         * config/s390/s390.c (s390_expand_builtin): Support additional
824         flags argument.  Change error message to match the messages
825         emitted in s390-c.c.
826         * config/s390/s390.md: New UNSPEC_* constants.
827         (op_type): Add new instruction types.
828         * config/s390/vecintrin.h: Add new builtins and test data class
829         constants.
830         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
831         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
832         (VEC_INEXACT, VEC_NOINEXACT): New constants.
833         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
834         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
835         ("vec_mergel<mode>"): V_HW -> VEC_HW.
837         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
838         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
839         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
840         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
842         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
843         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
844         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
845         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
847         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
848         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
849         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
850         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
851         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
852         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
853         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
855         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
856         ("vec_scatter_element<V_HW_4:mode>_DI")
857         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
858         ("vec_fpint<mode>", "vflls")
859         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
860         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
861         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
862         ("*vec_cmphe<mode>_cc"): ... these.
864         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
865         mode constant instead of magic value.
867 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
869         * config/s390/s390.c (s390_expand_vec_compare): Support other
870         vector floating point modes than just V2DF.
871         (s390_expand_vcond): Likewise.
872         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
873         (s390_cannot_change_mode_class): Prevent mode changes between TF
874         and V1TF in vector registers.
875         * config/s390/s390.md (DF, SF): New mode attributes.
876         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
877         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
878         SFmode support for VRs.
879         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
880         vector fp modes.
881         (VFT, VF_HW): New mode iterators.
882         (vw, sdx): New mode attributes.
883         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
884         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
885         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
886         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
887         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
888         also the new vector floating point modes.  Renaming to ...
890         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
891         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
892         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
893         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
894         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
895         ("vec_unordered<mode>"): ... these.
897         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
898         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
899         ("*vec_extendv2df"): New insn definitions.
901 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
903         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
904         ("mulditi3_2", "*muldi3_sign"): New patterns.
905         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
906         rename the pattern definition.
908 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
910         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
911         expander.
912         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
914 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
916         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
917         instruction if possible.
918         * config/s390/vector.md (vec_halfnumelts): New mode
919         attribute.
920         ("*vec_vllezlf<mode>"): New pattern.
922 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
924         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
925         ("popcountv4si2", "popcountv2di2"): Rename to ...
926         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
927         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
928         condition.
929         ("popcount<mode>2_vxe"): New pattern.
931 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
933         * common/config/s390/s390-common.c (processor_flags_table): Add
934         arch12.
935         * config.gcc: Add arch12.
936         * config/s390/driver-native.c (s390_host_detect_local_cpu):
937         Default to arch12 for unknown CPU model numbers.
938         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
939         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
940         PROCESSOR_max sanity check.
941         * config/s390/s390-opts.h (enum processor_type): Add
942         PROCESSOR_ARCH12.
943         * config/s390/s390.c (processor_table): Add arch12.
944         (s390_expand_builtin): Add check for B_VXE flag.
945         (s390_issue_rate): Add PROCESSOR_ARCH12.
946         (s390_get_sched_attrmask): Likewise.
947         (s390_get_unit_mask): Likewise.
948         (s390_sched_score): Enable z13 scheduling for arch12.
949         (s390_sched_reorder): Likewise.
950         (s390_sched_variable_issue): Likewise.
951         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
952         PF_VXE.
953         (s390_tune_attr): Use z13 scheduling also for arch12.
954         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
955         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
956         (TARGET_VXE_P): New macros.
957         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
958         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
959         * config/s390/s390.opt: Add arch12 as processor_type.
961 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
963         * config/s390/s390.md
964         ("fixuns_truncdddi2", "fixuns_trunctddi2")
965         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
966         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
968         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
969         Rename expanders to ...
971         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
972         ("fixuns_truncdddi2_emu"): ... these.
974         ("fixuns_trunc<mode>si2_emu"): New expander.
976         ("*fixuns_truncdfdi2_z13"): Rename to ...
977         ("*fixuns_truncdfdi2_vx"): ... this.
979 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
981         * config/s390/2964.md: Remove the single element vector compare
982         instructions which are no longer used.
983         * config/s390/s390.c (s390_select_ccmode): Remove handling of
984         vector CCmodes.
985         (s390_canonicalize_comparison): Remove handling of DFmode
986         compares.
987         (s390_expand_vec_compare_scalar): Remove function.
988         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
989         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
990         pattern.
991         ("*cmp<mode>_ccs"): Add wfcdb instruction.
993 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
995         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
996         FP zero.
997         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
998         will anyway by matched by mov<mode>_64dfp.
1000 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1002         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1003         vlef/vstef.  Add missing operand to vleif.
1005 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1007         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1008         pair for all vector types with 64 bit elements.
1009         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1010         * config/s390/vector.md (V_HW_64): ... here.
1011         (V_128_NOSINGLE): New mode iterator.
1012         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1013         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1014         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1015         ("*vec_load_pairv2di"): Change to ...
1016         ("*vec_load_pair<mode>"): ... this one.
1018 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1020         * config/s390/constraints.md: Add comments.
1021         (jKK): Reject element sizes > 8 bytes.
1022         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1023         s_operands.
1024         * config/s390/s390.md: Add the s_operand checks formerly in
1025         s390_split_ok_p to various splitters where they are still
1026         required.
1027         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1028         for 128 bit vectors.  Plus two splitters.
1030 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1032         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1033         the file.
1035 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1037         PR target/79893
1038         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1039         error if the boundary argument is not constant.
1041 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
1043         PR rtl-optimization/80112
1044         * loop-doloop.c (doloop_condition_get): Don't check condition
1045         if cmp isn't SET with IF_THEN_ELSE src.
1047 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1049         PR tree-optimization/80158
1050         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1051         replacing a candidate statement, also replace it for the
1052         candidate's alternate interpretation.
1053         (replace_rhs_if_not_dup): Likewise.
1054         (replace_one_candidate): Likewise.
1056 2017-03-24  Richard Biener  <rguenther@suse.de>
1058         PR tree-optimization/80167
1059         * graphite-isl-ast-to-gimple.c
1060         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1061         properly.
1062         (translate_isl_ast_to_gimple::get_rename): Likewise.
1064 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1066         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1067         handling of certain combinations of target options, including the
1068         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1069         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1071 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1073         PR target/71436
1074         * config/arm/arm.md (*load_multiple): Add reload_completed to
1075         matching condition.
1077 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1078             Richard Biener  <rguenth@suse.de>
1080         PR tree-optimization/79908
1081         PR tree-optimization/80136
1082         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1083         been cast away, gimplify_and_add suffices.
1085 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de> 
1087         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1089 2017-03-23  Richard Biener  <rguenther@suse.de>
1091         PR tree-optimization/80032
1092         * gimplify.c (gimple_push_cleanup): Forced unconditional
1093         cleanups still have to go to the conditional_cleanups
1094         sequence.
1096 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
1098         PR tree-optimization/80072
1099         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1100         to unsigned int.
1101         (next_operand_entry_id): Change type to unsigned int.
1102         (sort_by_operand_rank): Make sure to return the right return value
1103         even if unsigned fields are bigger than INT_MAX.
1104         (struct oecount): Change cnt and id type to unsigned int.
1105         (oecount_hasher::equal): Formatting fix.
1106         (oecount_cmp): Make sure to return the right return value
1107         even if unsigned fields are bigger than INT_MAX.
1108         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1110         PR c++/80129
1111         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1112         TREE_READONLY on result if writing it more than once.
1114         PR sanitizer/80110
1115         * doc/invoke.texi (-fsanitize=thread): Document that with
1116         -fnon-call-exceptions atomics are not able to throw
1117         exceptions.
1119         PR sanitizer/80110
1120         * tsan.c: Include tree-eh.h.
1121         (instrument_builtin_call): Call maybe_clean_eh_stmt or
1122         maybe_clean_or_replace_eh_stmt where needed.
1123         (instrument_memory_accesses): Add cfg_changed argument.
1124         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1125         if it returned true.
1126         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
1128         PR rtl-optimization/63191
1129         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1130         wrapper function, moved the whole old content into ...
1131         (ix86_delegitimize_address_1): ... this.  New inline function.
1132         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1133         true as last argument instead of ix86_delegitimize_address.
1135 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
1137         * config/aarch64/aarch64.c (generic_branch_cost): Copy
1138         cortexa57_branch_cost.
1140 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
1142         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1144 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1146         PR target/80123
1147         * doc/md.texi (Constraints): Document wA constraint.
1148         * config/rs6000/constraints.md (wA): New.
1149         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1150         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1151         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1152         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1154 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
1156         PR c++/80029
1157         * gimplify.c (is_oacc_declared): New function.
1158         (oacc_default_clause): Use it to set default flags for acc declared
1159         variables inside parallel regions.
1160         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1161         declared variables.
1162         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
1163         declare attribute to any decl as necessary.
1165 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1167         PR target/80082
1168         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1169         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1170         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1171         (arm_arch_lpae): This.
1172         * config/arm/arm.c (arm_arch7ve): Rename into ...
1173         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
1174         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1175         arm_arch_lpae.
1177 2017-03-22  Martin Liska  <mliska@suse.cz>
1179         PR target/79906
1180         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1181         error message instead of an ICE.
1183 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1185         * doc/extend.texi (6.11 Additional Floating Types): Revise.
1187 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1189         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1190         comments.
1191         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1192         comments.
1194 2017-03-21  Martin Sebor  <msebor@redhat.com>
1196         * doc/extend.texi: Use "cannot" instead of "can't."
1197         * doc/hostconfig.texi: Same.
1198         * doc/install.texi: Same.
1199         * doc/invoke.texi: Same.
1200         * doc/loop.texi: Same.
1201         * doc/md.texi: Same.
1202         * doc/objc.texi: Same.
1203         * doc/rtl.texi: Same.
1204         * doc/tm.texi: Same.
1205         * doc/tm.texi.in: Same.
1206         * doc/trouble.texi: Same.
1208 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
1210         PR debug/63238
1211         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1212         (collect_checksum_attributes): Set it.
1213         (die_checksum_ordered): Use it.
1215 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1217         PR tree-optimization/79908
1218         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1219         change: For a VA_ARG whose LHS has been cast away, use
1220         force_gimple_operand to construct the side effects.
1222 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
1224         PR translation/80001
1225         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1226         more amenable to translation.
1227         (oacc_loop_auto_partitions): Likewise.
1229 2017-03-21  Marek Polacek  <polacek@redhat.com>
1230             Martin Sebor  <msebor@redhat.com>
1232         PR tree-optimization/80109
1233         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1234         on INTEGRAL_TYPE_P.
1236 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
1237             Segher Boessenkool  <segher@kernel.crashing.org>
1239         PR target/80125
1240         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1241         check reg_used_between_p between insn and one of succ or succ2
1242         depending on if succ is artificial insn not inserted into insn
1243         stream.
1245 2017-03-21  Martin Liska  <mliska@suse.cz>
1247         PR gcov-profile/80081
1248         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1249         * doc/gcc.texi: Include gcov-dump stuff.
1250         * doc/gcov-dump.texi: New file.
1252 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
1254         PR rtl-optimization/79150
1255         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1256         conditional jump, if the jump is the last insn of the loop.
1258 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1259             Richard Biener  <rguenth@suse.de>
1261         PR tree-optimization/79908
1262         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1263         been cast away, use force_gimple_operand to construct the side
1264         effects.
1266 2017-03-21  Martin Liska  <mliska@suse.cz>
1268         PR libfortran/79956
1269         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1270         to NULL.
1272 2017-03-21  Brad Spengler <spender@grsecurity.net>
1274         PR plugins/80094
1275         * plugin.c (htab_hash_plugin): New function.
1276         (add_new_plugin): Use it and adjust.
1277         (parse_plugin_arg_opt): Adjust.
1278         (init_one_plugin): Likewise.
1280 2017-03-21  Richard Biener  <rguenther@suse.de>
1282         PR tree-optimization/80032
1283         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1284         if set force the cleanup to happen unconditionally.
1285         (gimplify_target_expr): Push inserted clobbers with force_uncond
1286         to avoid them being removed by control-dependent DCE.
1288 2017-03-21  Richard Biener  <rguenther@suse.de>
1290         PR tree-optimization/80122
1291         * tree-inline.c (copy_bb): Do not expans va-arg packs or
1292         va_arg_pack_len when the inlined call stmt requires pack
1293         expansion itself.
1294         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1296 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
1298         PR sanitizer/78158
1299         * tsan.c (instrument_builtin_call): If the memory model argument
1300         is not a constant, assume it is valid.
1302         PR c/67338
1303         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1304         avoid UB.
1306 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
1308         PR rtl-optimization/79910
1309         * combine.c (can_combine_p): Do not allow combining an I0 or I1
1310         if its dest is used by an insn before I2 (other than the combined
1311         insns themselves, which are properly handled already).
1313 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
1315         Revert:
1316         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
1318         * combine.c (record_used_regs): New static function.
1319         (try_combine): Handle situations where there is an additional
1320         instruction between I2 and I3 which needs to have a LOG_LINK
1321         updated.
1323         Revert:
1324         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
1326         * combine.c (try_combine): Delete redundant i1 test.  Call
1327         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1329 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1331         PR target/80083
1332         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1333         alternatives 13/14.
1335 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1337         PR tree-optimization/80054
1338         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1339         the optimization if a PHI or any of its arguments is not dominated
1340         by the candidate's basis.  Use gphi* rather than gimple* as
1341         appropriate.
1342         (replace_profitable_candidates): Clean up a gimple* variable that
1343         should be a gphi* variable.
1345 2017-03-20  Martin Sebor  <msebor@redhat.com>
1347         PR c++/52477
1348         * doc/extend.texi (attribute constructor): Document present limitation.
1350 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1352         PR target/79963
1353         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1354         __POWER9_VECTOR__ #ifdef control, change template definition to
1355         use Power9-specific built-in function.
1356         (vec_any_eq): Likewise.
1357         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1358         to control outcomes from this test.
1359         (vector_ae_<mode>p): For VEC_F modes, likewise.
1361 2017-03-20  Ian Lance Taylor  <iant@google.com>
1363         * config/i386/i386.c (ix86_function_regparm): Save an extra
1364         register for -fsplit-stack with DECL_STATIC_CHAIN.
1366 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
1368         PR target/79912
1369         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1370         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1372 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
1374         * config/riscv/riscv.c (riscv_print_operand): Use "fence
1375         iorw,ow".
1376         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1377         iorw,iorw".
1379 2017-03-20  Marek Polacek  <polacek@redhat.com>
1381         PR sanitizer/80063
1382         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1384 2017-03-20  Richard Biener  <rguenther@suse.de>
1386         PR tree-optimization/80113
1387         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1388         allocate extra SSA name for PHI def.
1389         (add_close_phis_to_outer_loops): Likewise.
1390         (add_close_phis_to_merge_points): Likewise.
1391         (copy_loop_close_phi_args): Likewise.
1392         (copy_cond_phi_nodes): Likewise.
1394 2017-03-20  Martin Liska  <mliska@suse.cz>
1396         PR middle-end/79753
1397         * tree-chkp.c (chkp_build_returned_bound): Do not build
1398         returned bounds for a LHS that's not a BOUNDED_P type.
1400 2017-03-20  Martin Liska  <mliska@suse.cz>
1402         PR target/79769
1403         PR target/79770
1404         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1405         COMPLEX_CST and VECTOR_CST.
1407 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1409         PR target/78857
1410         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1411         target operand.  A new splitter adds the clobber statement in case
1412         the target operand is dead anyway.
1414 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
1416         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer 
1417         to age-old versions of binutils and glibc.
1419 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
1421         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1423 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
1425         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1427 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
1428         
1429         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1430         requirement for binutils 2.13.
1432 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
1434         * combine.c (try_combine): Delete redundant i1 test.  Call
1435         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1437 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
1439         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1440         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1441         contents.
1442         <riscv64-*-elf>: Re-arrange section
1443         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1444         <riscv32-*-linux>: Likewise.
1445         <riscv64-*-elf>: Likewise
1446         <riscv64-*-linux>: Likewise.
1448 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
1450         PR target/80052
1451         * aarch64.opt(verbose-cost-dump): Fix typo.
1453 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
1455         PR target/79951
1456         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1457         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1459 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
1461         * reload.c (find_reloads): When reloading a nonoffsettable address,
1462         use RELOAD_OTHER for it and its address reloads.
1464         PR rtl-optimization/79910
1465         * combine.c (record_used_regs): New static function.
1466         (try_combine): Handle situations where there is an additional
1467         instruction between I2 and I3 which needs to have a LOG_LINK
1468         updated.
1470 2017-03-17  Jeff Law  <law@redhat.com>
1472         PR tree-optimization/71437
1473         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1474         conditional in the hash table first.
1475         (vrp_dom_walker::before_dom_children): Extract condition from
1476         ASSERT_EXPR.  Record condition, its inverion and any implied
1477         conditions as well.
1479 2017-03-17  Marek Polacek  <polacek@redhat.com>
1480             Markus Trippelsdorf  <markus@trippelsdorf.de>
1482         PR tree-optimization/80079
1483         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1484         m_stores_head.
1486 2017-03-17  Richard Biener  <rguenther@suse.de>
1488         PR middle-end/80075
1489         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1490         Properly verify the LHS before the RHS possibly claims to be
1491         handled.
1492         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
1493         do not throw.
1495 2017-03-17  Martin Jambor  <mjambor@suse.cz>
1497         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1498         (List of -O2 options): Likewise.
1499         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1500         (-fipa-vrp) New.
1502 2017-03-17  Tom de Vries  <tom@codesourcery.com>
1504         * gcov-dump.c (print_usage): Print bug_report_url.
1506 2017-03-17  Richard Biener  <rguenther@suse.de>
1508         PR middle-end/80050
1509         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
1510         (parser::peek): Likewise.
1512 2017-03-17  Richard Biener  <rguenther@suse.de>
1514         PR tree-optimization/80048
1515         * sese.c (free_sese_info): Properly release rename_map and
1516         copied_bb_map elements.
1518 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
1520         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
1521         Add linked-list forward and backlinks.  Insert on
1522         construction, remove on destruction.
1523         (class pass_store_merging): Add m_stores_head field.
1524         (pass_store_merging::terminate_and_process_all_chains):
1525         Iterate over m_stores_head list.
1526         (pass_store_merging::terminate_all_aliasing_chains):
1527         Likewise.
1528         (pass_store_merging::execute): Check for debug stmts first.
1529         Push new chains onto the m_stores_head stack.
1531 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
1533         PR target/71294
1534         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1535         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1536         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1538 2017-03-16  Jeff Law  <law@redhat.com>
1540         PR tree-optimization/71437
1541         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
1542         member function.  Implementation moved into after_dom_children
1543         member function and into the threader's thread_outgoing_edges
1544         function.
1545         (dom_opt_dom_walker::after_dom_children): Simplify by moving
1546         some code into new thread_outgoing_edges.
1547         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
1548         definition.  Simplify marker handling (do it here).   Assume we always
1549         have the available expression and the const/copies tables.
1550         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
1551         and tree-vrp.c
1552         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
1553         * tree-vrp.c (equiv_stack): No longer file scoped.
1554         (vrp_dom_walker): New class.
1555         (vrp_dom_walker::before_dom_children): New member function.
1556         (vrp_dom_walker::after_dom_children): Likewise.
1557         (identify_jump_threads):  Setup domwalker.  Use it rather than
1558         walking edges in a random order by hand.  Simplify setup/finalization.
1559         (finalize_jump_threads): Remove.
1560         (vrp_finalize): Do not call identify_jump_threads here.
1561         (execute_vrp): Do it here instead and call thread_through_all_blocks
1562         here too.
1564         PR tree-optimization/71437
1565         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
1566         callers changed.
1567         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
1568         callers changed.
1569         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
1570         (dom_opt_dom_walker::thread_across_edge): Remove
1571         handle_dominating_asserts argument.  All callers changed.
1572         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
1573         changes.  Remove calls to lhs_of_dominating_assert.  Other
1574         uses of handle_dominating_asserts turn into unconditional code
1575         (simplify_control_stmt_condition_1): Likewise.
1576         (simplify_control_stmt_condition): Likewise.
1577         (thread_through_normal_block, thread_across_edge): Likewise.
1578         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
1579         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
1580         object if it is not an SSA_NAME.
1581         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
1582         before calling into the VRP specific simplifiers.
1583         (identify_jump_threads): Remove handle_dominating_asserts
1584         argument.
1586 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
1588         PR fortran/79886
1589         * tree-diagnostic.c (default_tree_printer): No longer static.
1590         * tree-diagnostic.h (default_tree_printer): New prototype.
1592 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
1594         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
1595         Change ins into fmov.
1597 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1599         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
1600         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
1601         Use h_con constraint for operand 1.
1602         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1603         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
1605 2017-03-15  Jeff Law  <law@redhat.com>
1607         PR tree-optimization/71437
1608         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
1609         (record_temporary_equivalences): Use it.
1611         PR tree-optimization/71437
1612         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
1613         tree-ssa-scopedtables.
1614         (lookup_avail_expr, build_and_record_new_cond): Likewise.
1615         (record_conditions, record_cond, vuse_eq): Likewise.
1616         (record_edge_info): Adjust to API tweak of record_conditions.
1617         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
1618         (record_temporary_equivalences, optimize_stmt): Likewise.
1619         (eliminate_redundant_computations): Likewise.
1620         (record_equivalences_from_stmt): Likewise.
1621         * tree-ssa-scopedtables.c: Include options.h and params.h.
1622         (vuse_eq): New function, moved from tree-ssa-dom.c
1623         (build_and_record_new_cond): Likewise.
1624         (record_conditions): Likewise.  Accept vector of conditions rather
1625         than edge_equivalence structure for first argument.
1626         for the first argument.
1627         (avail_exprs_stack::lookup_avail_expr): New member function, moved
1628         from tree-ssa-dom.c.
1629         (avail_exprs_stack::record_cond): Likewise.
1630         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
1631         from tree-ssa-dom.c.
1632         (avail_exprs_stack): Add new member functions lookup_avail_expr
1633         and record_cond.
1634         (record_conditions): Declare.
1636 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
1638         PR target/80017
1639         * lra-constraints.c (process_alt_operands): Increase reject for
1640         reloading an input/output operand.
1642 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1644         PR target/79038
1645         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
1646         insns to convert from signed/unsigned char/short to IEEE 128-bit
1647         floating point.
1648         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
1650 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
1652         PR target/80019
1653         * config/i386/i386.c (ix86_vector_duplicate_value): Create
1654         subreg of inner mode for values already in registers.
1656 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
1658         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
1659         iteration reg is used after the loop.
1661 2017-03-14  Martin Sebor  <msebor@redhat.com>
1663         PR tree-optimization/79800
1664         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
1665         precision in negative-positive range.
1666         (format_floating): Call non-const overload with adjusted precision.
1668 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1670         PR target/79947
1671         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
1672         -mpowerpc-gfxopt.
1674 2017-03-14  Martin Sebor  <msebor@redhat.com>
1676         PR middle-end/80020
1677         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
1678         * builtins.def (aligned_alloc): Use it.
1680         PR c/79936
1681         * Makefile.in (GTFILES): Add calls.c.
1682         * calls.c: Include "gt-calls.h".
1684 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
1686         PR rtl-optimization/79728
1687         * regs.h (struct target_regs): New field
1688         x_contains_allocatable_regs_of_mode.
1689         (contains_allocatable_regs_of_mode): New macro.
1690         * reginfo.c (init_reg_sets_1): Initialize it, and change
1691         contains_reg_of_mode so it includes global regs as well.
1692         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
1693         rather than contains_regs_of_mode.
1695 2017-03-14  Martin Liska  <mliska@suse.cz>
1697         * doc/invoke.texi: Document options that can't be combined with
1698         -fcheck-pointer-bounds.
1700 2017-03-14  Martin Liska  <mliska@suse.cz>
1702         PR middle-end/79831
1703         * doc/invoke.texi (-Wchkp): Document the option.
1705 2017-03-14  Martin Liska  <mliska@suse.cz>
1707         * Makefile.in: Install gcov-dump.
1709 2017-03-14  Martin Liska  <mliska@suse.cz>
1711         * multiple_target.c (expand_target_clones): Bail out for
1712         an invalid attribute.
1714 2017-03-14  Richard Biener  <rguenther@suse.de>
1716         * alias.c (struct alias_set_entry): Pack properly.
1717         * cfgloop.h (struct loop): Likewise.
1718         * cse.c (struct set): Likewise.
1719         * ipa-utils.c (struct searchc_env): Likewise.
1720         * loop-invariant.c (struct invariant): Likewise.
1721         * lra-remat.c (struct cand): Likewise.
1722         * recog.c (struct change_t): Likewise.
1723         * rtl.h (struct address_info): Likewise.
1724         * symbol-summary.h (function_summary): Likewise.
1725         * tree-loop-distribution.c (struct partition): Likewise.
1726         * tree-object-size.c (struct object_size_info): Likewise.
1727         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
1728         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
1729         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
1730         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
1731         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
1732         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
1733         (struct _stmt_vec_info): Likewise.
1735 2017-03-14  Martin Liska  <mliska@suse.cz>
1737         PR target/79892
1738         * multiple_target.c (create_dispatcher_calls): Check that
1739         a target can create a function dispatcher.
1741 2017-03-14  Martin Liska  <mliska@suse.cz>
1743         PR lto/66295
1744         * multiple_target.c (expand_target_clones): Drop local.local
1745         flag for default implementation.
1747 2017-03-14  Richard Biener  <rguenther@suse.de>
1749         PR tree-optimization/80030
1750         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
1752 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
1754         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
1755         gcc_fallthrough() instead of __attribute__((fallthrough));
1757 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
1759         * doc/gcc.texi: Remove "up" link to (DIR).
1760         * doc/gccint.texi: Ditto.
1762 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
1763         
1764         * doc/install.texi (Specific) <avr>: Remove reference to
1765         binutils 2.13.
1767 2017-03-13  Jeff Law  <law@redhat.com>
1769         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
1770         attribute rather than comments.
1772         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
1773         match_scratch operand is highest.
1775 2017-03-13  Martin Liska  <mliska@suse.cz>
1777         PR middle-end/78339
1778         * ipa-pure-const.c (warn_function_noreturn): If the declarations
1779         is a CHKP clone, use original declaration.
1781 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
1783         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
1784         (arc_conditional_register_usage): Use a different allocation order
1785         when optimizing for size.
1786         * common/config/arc/arc-common.c (arc_option_optimization_table):
1787         Section anchors default on when optimizing for size.
1789 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
1791         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
1793 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
1795         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
1796         * config/arc/arc.md (cpu_facility): Add cd variant.
1797         (*movqi_insn): Add code density variant.
1798         (*movhi_insn): Likewise.
1799         (*movqi_insn): Likewise.
1800         (*addsi3_mixed): Likewise.
1801         (subsi3_insn): Likewise.
1803 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
1805         * config/arc/arc.md (movsi_cond_exec): Update constraint.
1807 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
1809         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
1810         expressions with MINUS and UNARY ops.
1812 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1814         PR target/79911
1815         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
1816         Rename to...
1817         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
1818         between vec_select and vector argument.
1819         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
1820         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
1821         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
1822         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
1823         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
1824         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
1826 2017-03-13  Richard Biener  <rguenther@suse.de>
1828         PR other/79991
1829         * params.def (vect-max-peeling-for-alignment): Fix typo.
1831 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
1833         * doc/install.texi (Specific) <mips-*-*>: Remove description of
1834         issue that only occurred with binutils below 2.18.
1835         
1836 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
1838         * doc/install.texi (Specific) <cris-axis-elf>: No longer
1839         refer to binutils 2.11/2.12 minimum.
1841 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
1843         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
1844         ftp.kernel.org and simplify binutils requirement.
1846 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
1848         * doc/invoke.texi (Warning Options): Fix spelling of link-time
1849         optimization.
1850         (Optimize Options): Ditto.  Also remove redundancy.
1852 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1854         PR translation/79848
1855         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
1856         "%qs".
1857         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
1858         to G_ to avoid double translation.
1860 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1862         PR translation/79923
1863         * auto-profile.c (get_combined_location): Convert leading
1864         character of diagnostics to lower case and remove trailing period.
1865         (read_profile): Likewise for various diagnostics.
1866         * config/arm/arm.c (arm_option_override): Remove trailing period
1867         from various diagnostics.
1868         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
1869         (msp430_expand_delay_cycles): Likewise.
1871 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1873         PR target/79925
1874         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
1875         full command-line argument, rather than just "str".
1876         (aarch64_validate_march): Likewise.
1877         (aarch64_validate_mtune): Likewise.
1879 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
1881         PR rtl-optimization/78911
1882         * lra-assigns.c (must_not_spill_p): New function.
1883         (spill_for): Use it.
1885 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
1887         PR tree-optimization/79981
1888         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
1889         ATOMIC_COMPARE_EXCHANGE ifn result.
1890         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
1891         IFN_ATOMIC_COMPARE_EXCHANGE.
1893 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1895         PR driver/79875
1896         * opts.c (parse_sanitizer_options): Add missing question mark to
1897         "did you mean" message.
1899 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1901         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
1902         built-in.
1903         (VMULEUH_UNS): Likewise.
1904         (VMULOUB_UNS): Likewise.
1905         (VMULOUH_UNS): Likewise.
1906         * config/rs6000/rs6000.c (builtin_function_type): Remove
1907         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
1909 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
1911         PR bootstrap/79952
1912         * read-rtl-function.c (function_reader::read_rtx_operand): Update
1913         x with result of extra_parsing_for_operand_code_0.
1914         (function_reader::extra_parsing_for_operand_code_0): Convert
1915         return type from void to rtx, returning x.  When reading
1916         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
1917         larger size containing struct block_symbol.
1919 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
1921         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
1922         -mfloat128-hardware without -m64.
1924 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
1926         PR target/79941
1927         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
1928         entries to the case statement that marks unsigned arguments to
1929         overloaded functions.
1931 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1933         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1934         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
1936 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
1938         PR target/79907
1939         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
1940         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
1942 2017-03-10  Martin Liska  <mliska@suse.cz>
1944         PR target/65705
1945         PR target/69804
1946         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
1947         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
1948         FIELD != NULL.
1950 2017-03-10  Olivier Hainque  <hainque@adacore.com>
1952         * tree-switch-conversion (array_value_type): Start by resetting
1953         candidate type to it's main variant.
1955 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
1957         PR rtl-optimization/79909
1958         * combine.c (try_combine): Use simplify_replace_rtx on individual
1959         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
1960         of the whole CALL_INSN_FUNCTION_USAGE.
1962         PR tree-optimization/79972
1963         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
1964         get_range_info on SSA_NAMEs.  Formatting fixes.
1966 2017-03-10  Richard Biener  <rguenther@suse.de>
1967             Jakub Jelinek  <jakub@redhat.com>
1969         PR tree-optimization/77975
1970         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
1971         edge to be constant.
1972         (get_val_for): For constant x return it.  Formatting fix.
1973         (loop_niter_by_eval): Avoid pointless looping if the next iteration
1974         would use the same bases as the current one.
1976 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1978         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
1979         instead of vec_select for V1TImode.
1980         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
1981         longer needed.
1982         (VSX_LE_128): Add V1TI to this mode iterator.
1983         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
1984         (*vsx_le_perm_store_<mode>): Likewise.
1985         (pre-reload splitter for VSX stores): Likewise.
1986         (post-reload splitter for VSX stores): Likewise.
1987         (*vsx_xxpermdi2_le_<mode>): Likewise.
1988         (*vsx_lxvd2x2_le_<mode>): Likewise.
1989         (*vsx_stxvd2x2_le_<mode>): Likewise.
1991 2017-03-09  Michael Eager  <eager@eagercon.com>
1993         Correct failures with --enable-checking=yes,rtl.
1995         * config/microblaze/microblaze.c (microblaze_expand_shift):
1996         Replace GET_CODE test with CONST_INT_P and INTVAL test with
1997         test for const0_rtx.
1998         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
1999         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2001 2017-03-09  Richard Biener  <rguenther@suse.de>
2003         PR tree-optimization/79977
2004         * graphite-scop-detection.c (scop_detection::merge_sese):
2005         Handle the case of extra exits to blocks dominating the entry.
2007 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
2009         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2010         Document rdynamic.
2012 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
2014         PR rtl-optimization/79949
2015         * lra-constraints.c (process_alt_operands): Check memory when
2016         trying to predict a cycle.  Print about the overall increase.
2018 2017-03-09  Richard Biener  <rguenther@suse.de>
2020         PR middle-end/79971
2021         * gimple-expr.c (useless_type_conversion_p): Preserve
2022         TYPE_SATURATING for fixed-point types.
2024 2017-03-09  Richard Biener  <rguenther@suse.de>
2026         PR ipa/79970
2027         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2028         alignment of BLKmode params.
2030 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2032         PR target/79913
2033         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2034         (VALL_NO_V2Q): Likewise.
2035         (VDQF_DF): Delete.
2036         * config/aarch64/aarch64-simd.md
2037         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2038         iterator.
2039         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2040         VALL_NO_V2Q mode iterator.
2041         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2043 2017-03-09  Martin Liska  <mliska@suse.cz>
2045         PR tree-optimization/79631
2046         * tree-chkp-opt.c (chkp_is_constant_addr): Call
2047         tree_int_cst_sign_bit just for INTEGER constants.
2049 2017-03-09  Martin Liska  <mliska@suse.cz>
2051         PR target/65705
2052         PR target/69804
2053         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2054         sanitizers.
2056 2017-03-09  Marek Polacek  <polacek@redhat.com>
2058         PR c++/79672
2059         * tree.c (inchash::add_expr): Handle TREE_VEC.
2061 2017-03-09  Martin Liska  <mliska@suse.cz>
2063         PR ipa/79764
2064         (chkp_narrow_size_and_offset): New function.
2065         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2066         (void chkp_parse_bit_field_ref): New function.
2067         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2068         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2070 2017-03-09  Martin Liska  <mliska@suse.cz>
2072         PR ipa/79761
2073         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2074         (chkp_find_bounds_1): Remove gcc_unreachable.
2076 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
2078         PR sanitizer/79944
2079         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2080         BUILT_IN_SYNC*, determine the access type from the size suffix and
2081         always build a MEM_REF with that type.  Handle forgotten
2082         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2084         PR target/79932
2085         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2086         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2087         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2088         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2089         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2090         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2091         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2092         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2093         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2094         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2095         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2096         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2097         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2098         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2099         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2100         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2101         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2102         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2103         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2104         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2105         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2106         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2107         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2108         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2109         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2110         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2111         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2112         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2113         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2114         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2115         definitions outside of __OPTIMIZE__ guarded section.
2117         PR target/79932
2118         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2119         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2120         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2121         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2122         guarded section.
2124 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2126         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2127         ("vfenez<mode>"): Add missing constraints.
2129 2017-03-08  Martin Sebor  <msebor@redhat.com>
2131         PR target/79928
2132         * config/nds32/nds32.c (nds32_option_override): 
2134 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2136         PR c/79940
2137         * gimplify.c (gimplify_omp_for): Replace index var in outer
2138         taskloop statement with an artificial variable and add
2139         OMP_CLAUSE_PRIVATE clause for it.
2141 2017-03-08  Richard Biener  <rguenther@suse.de>
2143         PR tree-optimization/79955
2144         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2145         for accesses that are completely outside of the variable.
2147 2017-03-08  Andrew Haley  <aph@redhat.com>
2149         PR tree-optimization/79943
2150         * tree-ssa-loop-split.c (compute_new_first_bound): When
2151         calculating the new upper bound, (END-BEG) should be added, not
2152         subtracted.
2154 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2156         * config/avr/avr.md (setmemhi): Make sure match_dup
2157         operand number comes before match_scratch.
2159 2017-03-08  Richard Biener  <rguenther@suse.de>
2161         PR tree-optimization/79920
2162         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2163         with ncopies == 1 to ...
2164         (vect_transform_slp_perm_load): ... here.  Properly compute
2165         all element loads by iterating VF times over the group.  Do
2166         not handle ncopies (computed in a broken way) in
2167         vect_create_mask_and_perm.
2169 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2171         PR sanitizer/79904
2172         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2173         is a uniform vector, use uniform_vector_p return value instead of
2174         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2176 2017-03-07  Marek Polacek  <polacek@redhat.com>
2178         PR middle-end/79809
2179         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2180         (alloca_call_type): Likewise.
2182 2017-03-07  Martin Liska  <mliska@suse.cz>
2184         * gcov.c (process_args): Put comment to correct location.
2186 2017-03-07  Martin Liska  <mliska@suse.cz>
2188         PR middle-end/68270
2189         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2190         Use array_at_struct_end_p instead of DECL_CHAIN (field).
2191         (chkp_narrow_bounds_for_field): Likewise.
2192         (chkp_parse_array_and_component_ref): Pass one more argument to
2193         call.
2195 2017-03-07  Richard Biener  <rguenther@suse.de>
2197         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2198         preheaders.
2200 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
2202         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2203         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2205 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2207         PR c/79855
2208         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2209         to end of description.
2210         (PARAM_MAX_STORES_TO_MERGE): Likewise.
2212 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
2214         PR rtl-optimization/79901
2215         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2216         ...
2217         (*avx512f_<code><mode>3<mask_name>): ... this.
2218         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2219         iterator instead of VI8_AVX2_AVX512BW.
2221         PR rtl-optimization/79901
2222         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2223         min/max expander, expand it using expand_vec_cond_expr.
2225         PR sanitizer/79897
2226         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2227         temporary.
2229 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
2231         PR c++/79821
2232         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2233         to void * for PCH reasons.
2234         * dwarf2out.c (output_loc_operands, output_die): Cast
2235         v.val_vec.array to unsigned char *.
2237 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
2239         PR target/77850
2240         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2241         vector types.
2243 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
2245         PR rtl-optimization/79571
2246         * lra-constraints.c (process_alt_operands): Calculate static
2247         reject and subtract it from overall when only addresses will be
2248         reloaded.
2250 2017-03-06  Julia Koval  <julia.koval@intel.com>
2252         PR target/79793
2253         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2254         incoming stack boundary to 128 for 64-bit targets.
2256 2017-03-06  Richard Biener  <rguenther@suse.de>
2258         PR tree-optimization/79894
2259         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2260         to NULL after folding it.
2262 2017-03-06  Richard Biener  <rguenther@suse.de>
2264         PR tree-optimization/79824
2265         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2266         check disabling peeling for gaps.
2268 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
2270         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2271         attributes): Document gettimeofday.
2273 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2275         * config/s390/s390.c (s390_option_override_internal): Set
2276         PARAM_MIN_VECT_LOOP_BOUND
2278 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2280         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2281         * config/s390/s390.md: Likewise.
2283 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
2285         PR target/79812
2286         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2287         (<avx2_avx512>_perm<mode>): Rename to ...
2288         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
2289         of VI8F_256_512.
2290         (<avx512>_perm<mode>_mask): Rename to ...
2291         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
2292         of VI8F_256_512.
2293         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2294         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
2295         instead of VI8F_256_512.
2296         (avx512f_perm<mode>): New define_expand.
2297         (avx512f_perm<mode>_mask): Likewise.
2298         (avx512f_perm<mode>_1<mask_name>): New define_insn.
2299         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2301 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2303         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2304         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2305         if_then_else.
2306         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2308 2017-03-06  Martin Liska  <mliska@suse.cz>
2310         PR sanitize/79783
2311         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2312         when having a SSA NAME w/o VAR_DECL assigned to it.
2314 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2316         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2317         msa_dpsub_<su>_d): Fix MODE for vec_select.
2319 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2321         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2322         argument.
2323         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2325 2017-03-06  Richard Biener  <rguenther@suse.de>
2327         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2328         * plugin.c (register_plugin_info): Likewise.
2329         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2331 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
2333         * config/i386/sse.md (sse_storehps, sse_storelps,
2334         avx_<castmode><avxsizesuffix>_<castmode>,
2335         avx512f_<castmode><avxsizesuffix>_<castmode>,
2336         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2337         in condition that at least one operand is not a MEM.
2339 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2341         PR middle-end/79805
2342         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2343         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2344         ECF_NOTHROW.
2345         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2346         gimple_call_nothrow_p flag based on whether original builtin can throw.
2347         If it can, emit following stmts on the fallthrough edge.
2348         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2349         don't create new bb if inserting just debug stmts on the edge, try to
2350         insert them on the fallthru bb or just reset debug stmts.
2352 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
2354         PR target/43763
2355         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2356         restore recog_data (including the operand rtxes inside it) around
2357         the call to get_insn_template.
2359 2017-03-03  Martin Sebor  <msebor@redhat.com>
2361         PR tree-optimization/79699
2362         * context.c (context::~context): Free MPFR caches to avoid
2363         a memory leak on program exit.
2365 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2367         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2368         Use wide_int::ulow () instead of .elt (0).
2370 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
2372         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2373         (*pushxf): Limit oF constraint to 32bit targets and add oC
2374         constraint for 64bit targets.
2375         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2376         (*pushdf): Change rmF constraint to rmC.
2378 2017-03-03  Martin Liska  <mliska@suse.cz>
2380         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2381         Remove unused variable.
2383 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2385         PR target/79807
2386         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2387         is a memory operand, increase num_memory.
2388         (ix86_expand_args_builtin): Likewise.
2390 2017-03-03  Jan Hubicka  <jh@suse.cz>
2392         PR lto/79760
2393         * ipa-devirt.c (maybe_record_node): Properly handle
2394         __cxa_pure_virtual visibility.
2396 2017-03-03  Martin Liska  <mliska@suse.cz>
2398         PR tree-optimization/79803
2399         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2400         assert.
2401         (pass_loop_prefetch::execute): Disabled optimization if an
2402         assumption about L1 cache size is not met.
2404 2017-03-03  Martin Liska  <mliska@suse.cz>
2406         PR rtl-optimization/79574
2407         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2408         (hash_scan_set): Likewise.
2409         (dump_hash_table): Likewise.
2410         (hoist_code): Likewise.
2412 2017-03-03  Richard Biener  <rguenther@suse.de>
2414         * fixed-value.c (fixed_from_string): Restore use of elt (1)
2415         in place of uhigh ().
2416         (fixed_convert_from_real): Likewise.
2418 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
2420         PR target/79514
2421         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2423 2017-03-03  Richard Biener  <rguenther@suse.de>
2425         PR middle-end/79818
2426         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2427         TYPE_OVERFLOW_UNDEFINED check.
2429 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2431         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2432         numbers.
2433         (vector_ae_<mode>_p): Likewise.
2434         (vector_nez_<mode>_p): Likewise.
2435         (vector_ne_v2di_p): Likewise.
2436         (vector_ae_v2di_p): Likewise.
2437         (vector_ne_<mode>_p): Likewise.
2438         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2439         numbers.
2440         (vsx_tsqrt<mode>2_fe): Likewise.
2442 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
2444         PR target/79514
2445         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2447 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
2449         PR rtl-optimization/79780
2450         * cprop.c (one_cprop_pass): When second and further conditional trap
2451         in a single basic block is turned into an unconditional trap, turn it
2452         into a deleted note to avoid RTL verification failures.
2454 2017-03-02  Richard Biener  <rguenther@suse.de>
2456         * fold-const.c (const_binop): Use ulow () instead of elt (0).
2458 2017-03-02  Richard Biener  <rguenther@suse.de>
2460         PR tree-optimization/79345
2461         PR c++/42000
2462         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2463         param and abort the walk, returning -1 if it is hit.
2464         (walk_aliased_vdefs): Take a limit param and pass it on.
2465         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2466         defaulting to 0 and return a signed int.
2467         * tree-ssa-uninit.c (struct check_defs_data): New struct.
2468         (check_defs): New helper.
2469         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2470         about uninitialized memory.
2471         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2472         bogus uninitialized warning.
2473         (fixed_convert_from_real): Likewise.
2475 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
2477         PR tree-optimization/66768
2478         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2479         iv_use if base object can't be determined.
2481 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
2483         PR tree-optimization/79345
2484         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2485         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2486         (get_pattern_stats): Initialize it.
2487         * genemit.c (gen_expand): Verify match_scratch numbers come after
2488         match_operand/match_dup numbers.
2489         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2490         match_scratch numbers.
2491         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2492         Likewise.
2493         * config/s390/s390.md (trunctdsd2): Likewise.
2495 2017-03-02  Richard Biener  <rguenther@suse.de>
2497         * wide-int.h (wide_int_storage::operator=): Implement in terms
2498         of wi::copy.
2500 2017-03-02  Richard Biener  <rguenther@suse.de>
2502         PR tree-optimization/79777
2503         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
2504         the to insert expression to sth existing.
2506 2017-03-01  Martin Sebor  <msebor@redhat.com>
2508         PR middle-end/79692
2509         * gimple-ssa-sprintf.c
2510         (directive::known_width_and_precision): New function.
2511         (format_integer): Use it.
2512         (get_mpfr_format_length): Consider the full range of precision
2513         when computing %g output with the # flag.  Set the likely byte
2514         count to 3 rather than 1 when precision is indeterminate.
2515         (format_floating): Correct the lower bound of precision.
2517 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2519         * doc/invoke.texi: Document default code model for 64-bit Linux.
2521 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2523         PR target/79752
2524         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
2525         udiv rather than div since input pattern is unsigned.
2527 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
2529         * config/i386/i386.c (print_reg): Warn for values of
2530         unsupported size in integer register.
2532 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2534         PR target/79439
2535         * config/rs6000/predicates.md (current_file_function_operand): Do
2536         not allow self calls to be local if the function is replaceable.
2538 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2540         PR target/79395
2541         * config/rs6000/altivec.h (vec_ctz and others): Change the
2542         preprocessor macro that controls conditional compilation from
2543         _ARCH_PWR9 to __POWER9_VECTOR__.
2544         (vec_all_ne): Change parameterization of __altivec_scalar_pred
2545         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
2546         control (instead of _ARCH_PWR9 control) so that template
2547         definition uses power9-specific function.
2548         (vec_any_eq): Likewise.
2549         (vec_all_ne): Change macro definition to use a power9-specific
2550         expansion under #ifdef __POWER9_VECTOR__ control (instead of
2551         _ARCH_PWR9 control).
2552         (vec_any_eq) Likewise.
2553         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
2554         expansion for CMPNEF to remove support for xvcmpnesp instruction.
2555         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
2556         support for xvcmpnedp instruction.
2557         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
2558         macro expansion so that Power9 implementation of vec_all_ne does
2559         not use the AltiVec predicate framework.
2560         (VCMPNEH_P): Likewise.
2561         (VCMPNEW_P): Likewise.
2562         (VCMPNED_P): Likewise.
2563         (VCMPNEFP_P): Likewise.
2564         (VCMPNEDP_P): Likewise.
2565         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
2566         implementation of vec_any_eq to not use AltiVec predicate
2567         framework.
2568         (VCMPAEH_P): Likewise.
2569         (VCMPAEW_P): Likewise.
2570         (VCMPAED_P): Likewise.
2571         (VCMPAEFP_P): Likewise.
2572         (VCMPAEDP_P): Likewise.
2573         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
2574         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
2575         not use the AltiVec predicate framework.
2576         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
2577         of vec_any_eq to not use AltiVec predicate framework.
2578         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
2579         support for predefined __POWER9_VECTOR__ macro to indicate that
2580         Power9 instruction selection is enabled.
2581         (altivec_overloaded_builtins): Remove extraneous
2582         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
2583         function argument types RS6000_BTI_bool_V16QI and
2584         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
2585         entry for overloaded function argument types RS6000_BTI_bool_V4SI
2586         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
2587         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
2588         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
2589         Power9 for implementations of vec_cmpne.  Change the signature for
2590         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
2591         (representing vec_all_ne) to remove the previously described first
2592         argument of type RS6000_BTI_INTSI, as this was an artifact of
2593         reliance on the AltiVec predicate framework, which is no longer
2594         used in the implementation of these functions.  Add
2595         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
2596         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
2597         since, unlike the AltiVec predicate framework implementation, we
2598         do not share function descriptors between vec_alle and vec_anyeq.
2599         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
2600         set of modes that receive special treatment even when
2601         TARGET_P9_VECTOR is true.  The special treatment emits code that
2602         does not depend on Power9 instructions.
2603         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
2604         define_expand to not rely on AltiVec predicate framework.
2605         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2606         function.
2607         (vector_ne_v2di_p): Change this define_expand to not rely on
2608         AltiVec predicate framework.
2609         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
2610         function.
2611         (vector_ne_<mode>_p): Change this define_expand to not rely on
2612         AltiVec predicate framework.
2613         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2614         function.
2615         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
2616         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
2617         define_insn pattern.
2618         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
2619         define_insn pattern because the xvcmpne<VSs>. instruction is not
2620         supported.
2621         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
2622         instruction is not supported.
2624 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
2626         * config/nvptx/nvptx.c: Include intl.h.
2628 2017-03-01  Martin Jambor  <mjambor@suse.cz>
2630         PR lto/78140
2631         * ipa-prop.h (ipa_bits): Removed field known.
2632         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
2633         to pointers.  Adjusted their comments to warn about their sharing.
2634         (ipcp_transformation_summary): Change bits to a vector of pointers.
2635         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
2636         (ipa_get_ipa_bits_for_value): Declare.
2637         * tree-vrp.h (value_range): Mark as GTY((for_user)).
2638         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
2639         (ipa_bits_hash_table): Likewise.
2640         (ipa_vr_ggc_hash_traits): Likewise.
2641         (ipa_vr_hash_table): Likewise.
2642         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
2643         being pointers and vr_known being removed.
2644         (ipa_set_jf_unknown): Likewise.
2645         (ipa_get_ipa_bits_for_value): New function.
2646         (ipa_set_jfunc_bits): Likewise.
2647         (ipa_get_value_range): New overloaded functions.
2648         (ipa_set_jfunc_vr): Likewise.
2649         (ipa_compute_jump_functions_for_edge): Use the above functions to
2650         construct bits and vr parts of jump functions.
2651         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
2652         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2653         exist.
2654         (ipcp_grow_transformations_if_necessary): Also allocate
2655         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2656         exist.
2657         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
2658         them.  Fix too long lines.
2659         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
2660         vr_known being removed.
2661         (ipa_read_jump_function): Use new setter functions to construct bits
2662         and vr parts of jump functions or set them to NULL.
2663         (write_ipcp_transformation_info): Adjust for bits being pointers.
2664         (read_ipcp_transformation_info): Likewise.
2665         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
2666         space.
2667         Include gt-ipa-prop.h.
2668         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
2669         being pointers.
2670         (ipcp_store_bits_results): Likewise.
2671         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
2672         Do not write to existing jump functions but use a temporary instead.
2674 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
2676         PR c++/79681
2677         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
2678         attempt to use its first operand as BIT_FIELD_REF base.
2680 2017-03-01  Richard Biener  <rguenther@suse.de>
2682         PR middle-end/79721
2683         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
2684         interpolating formula in wrapping arithmetic.
2685         (chrec_apply): Convert chrec_evaluate return value to wanted type.
2687 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
2689         PR tree-optimization/79734
2690         * tree-vect-generic.c (expand_vector_condition): Optimize
2691         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
2692         Handle VEC_COND_EXPR where comparison has different inner width from
2693         type's inner width.
2695 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
2697         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
2698         markup, and similar issues.  Remove @opindex entries for things
2699         that aren't options.  Add missing -mmpy-option entries.
2701 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
2703         PR tree-optimization/79737
2704         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
2705         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
2706         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
2707         instead of byte_size.  Formatting fix.
2708         (shift_bytes_in_array_right): Formatting fix.
2710 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
2712         PR target/79749
2713         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
2714         condition on optimize for the leaf function test.
2716 2017-02-28  Martin Liska  <mliska@suse.cz>
2718         PR lto/79625
2719         * read-rtl-function.c (function_reader::handle_unknown_directive):
2720         Bail out when one uses -flto.
2722 2017-02-28  Martin Liska  <mliska@suse.cz>
2724         * common.opt: Replace space with tabular for options of <number>
2725         type.
2726         * config/i386/i386.opt: Show <number> value for
2727         -mlarge-data-threshold.
2728         * opts.c (print_filtered_help): Do not display number in hexadecimal
2729         format.
2731 2017-02-28  Martin Liska  <mliska@suse.cz>
2733         * common.opt: Fix --help=option -Q for options which are of
2734         an enum type.
2736 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
2738         * config/i386/i386.c (print_reg): Error out for values
2739         of 8-bit size in invalid integer register.
2741 2017-02-28  Martin Sebor  <msebor@redhat.com>
2743         PR tree-optimization/79691
2744         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
2746 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
2748         PR target/79729
2749         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
2750         gcc_unreachable with output_operand_lossage.
2752 2017-02-28  Richard Biener  <rguenther@suse.de>
2754         PR tree-optimization/79740
2755         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
2756         inserts.
2757         (visit_nary_op): Insert the nary into the hashtable if we
2758         pattern-matched sth.
2759         * tree-ssa-pre.c (eliminate_insert): Robustify.
2761 2017-02-28  Richard Biener  <rguenther@suse.de>
2763         PR middle-end/79731
2764         * fold-const.c (decode_field_reference): Reject out-of-bound
2765         accesses.
2767 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
2769         * config/i386/i386.c: Include intl.h.
2770         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
2771         instead of just cond ? "..." : "...".
2772         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
2773         * coverage.c (read_counts_file): Likewise.
2774         * omp-offload.c: Include intl.h.
2775         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
2776         of just cond ? "..." : "...".
2777         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
2778         of just cond ? "..." : "...".
2780 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
2782         PR target/79742
2783         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
2784         entry, if present.
2785         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
2786         'tune for' CPU name.
2787         * config/arm/arm-cpu-data.h: Regenerated.
2789 2017-02-28  Richard Biener  <rguenther@suse.de>
2791         PR tree-optimization/79732
2792         * tree-inline.c (expand_call_inline): Do not shadow var.
2794 2017-02-28  Richard Biener  <rguenther@suse.de>
2796         PR tree-optimization/79723
2797         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
2798         address-space properly.
2800 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
2802         * doc/optinfo.texi (Optimization groups): Fix option used for
2803         OPTGROUP_ALL.
2804         * doc/invoke.texi (-fopt-info): Document "omp".
2805         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
2806         (OPTGROUP_ALL): Add OPTGROUP_OMP.
2807         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
2808         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
2809         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
2811         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
2812         all users.
2813         * dumpfile.c (optgroup_options): Instead of "openmp", associate
2814         OPTGROUP_OMP with "omp".
2816 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
2818         PR target/79544
2819         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
2820         for arithmetic shift of unsigned V2DI.
2822 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
2824         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
2825         arc/linux.h headers.
2826         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
2827         (LINK_SPEC): Likewise.
2828         (ARC_TLS_EXTRA_START_SPEC): Likewise.
2829         (EXTRA_SPECS): Likewise.
2830         (STARTFILE_SPEC): Likewise.
2831         (ENDFILE_SPEC): Likewise.
2832         (LIB_SPEC): Likewise.
2833         (TARGET_SDATA_DEFAULT): Likewise.
2834         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
2835         (MULTILIB_DEFAULTS): Likewise.
2836         (DWARF2_UNWIND_INFO): Likewise.
2837         * config/arc/big.h: New file.
2838         * config/arc/elf.h: Likewise.
2839         * config/arc/linux.h: Likewise.
2840         * config/arc/t-uClibc: Remove.
2842 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
2844         PR tree-optimization/77536
2845         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
2846         (tree_transform_and_unroll_loop): Use above function to compute the
2847         estimated niter of unrolled loop and use it when scaling profile.
2848         Also use count info rather than frequency if it's non-zero.
2849         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
2850         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
2851         (vect_transform_loop): Call above function.
2853 2017-02-27  Richard Biener  <rguenther@suse.de>
2855         PR tree-optimization/45397
2856         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
2857         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
2858         (visit_nary_op): Add pattern matching for CSEing sign-changed
2859         or truncated operations with wider ones.
2861 2017-02-27  Richard Biener  <rguenther@suse.de>
2863         PR tree-optimization/79690
2864         * tree-vect-stmts.c (vectorizable_store): Use vector type
2865         built from the DR with address-space.
2867 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
2869         * doc/invoke.texi (Optimize Options): Refine the description
2870         of asan-use-after-return.
2872 2017-02-25  Alan Modra  <amodra@gmail.com>
2874         PR rtl-optimization/79584
2875         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
2876         base, not ad->base_term, the reg within base.  Remove assertion
2877         that ad->base == ad->base_term.  Replace gen_int_mode using
2878         bogus mode with const0_rtx.
2880 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
2882         PR middle-end/79396
2883         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
2884         FMA_EXPR like tcc_binary or tcc_unary.
2886         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
2888         PR debug/77589
2889         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
2890         bitfield.
2891         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
2892         (output_loc_operands): Handle DW_OP_call_ref and
2893         DW_OP_GNU_variable_value.
2894         (struct variable_value_struct): New type.
2895         (struct variable_value_hasher): Likewise.
2896         (variable_value_hash): New variable.
2897         (string_types): Remove.
2898         (copy_loc_descr): New function.
2899         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
2900         (prepend_loc_descr_to_each): New function.
2901         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
2902         instead of add_loc_descr_to_each if the first argument is single
2903         location list and the second has multiple.
2904         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
2905         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
2906         when looking for variable value which doesn't have other location info.
2907         (loc_list_from_tree): Formatting fix.
2908         (gen_array_type_die): Simplify DW_AT_string_length handling.
2909         (adjust_string_types): Remove.
2910         (gen_subprogram_die): Don't call adjust_string_types nor test/set
2911         string_types.  Call resolve_variable_values.
2912         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
2913         (resolve_addr_in_expr): Likewise.  Add A argument.
2914         (copy_deref_exprloc): Remove deref argument.  Adjust for the
2915         original expression being DW_OP_GNU_variable_value with optionally
2916         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
2917         optionally after it.
2918         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
2919         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
2920         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
2921         (variable_value_hasher::hash, variable_value_hasher::equal): New
2922         methods.
2923         (resolve_variable_value_in_expr, resolve_variable_value,
2924         resolve_variable_values, note_variable_value_in_expr,
2925         note_variable_value): New functions.
2926         (dwarf2out_early_finish): Call note_variable_value on all toplevel
2927         DIEs.
2929 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
2931         PR c/79677
2932         * opts.h (handle_generated_option): Add GENERATED_P argument.
2933         * opts-common.c (handle_option): Adjust function comment.
2934         (handle_generated_option): Add GENERATED_P argument, pass it to
2935         handle_option.
2936         (control_warning_option): Pass false to handle_generated_option
2937         GENERATED_P.
2938         * opts.c (maybe_default_option): Pass true to handle_generated_option
2939         GENERATED_P.
2940         * optc-gen.awk: Likewise.
2942 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
2944         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
2945         a REG, look at the REG it is a SUBREG of.
2946         (splitter for cmpeqsi_t): Ditto.
2948 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
2950         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
2951         the special USEs with the pattern of the insn, not the insn itself.
2953 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
2955         PR target/79473
2956         * doc/invoke.texi: Document -mload-store-pairs.
2958 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
2959             Sandra Loosemore  <sandra@codesourcery.com>
2961         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
2962         argument isn't a CONST_INT.
2963         (nios2_alternate_compare_const): Assert op is a CONST_INT.
2964         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
2965         (nios2_validate_compare): Bypass alternate compare logic if *op2
2966         is not a CONST_INT.
2967         (ldstwm_operation_p): Return false if first_base is not a REG or
2968         if first_offset is not a CONST_INT.
2970 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
2972         * config/cris/cris.md: Use correct operand in a define_peephole2.
2974 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
2976         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
2978 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
2980         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
2981         this_insn if it is an INSN or JUMP_INSN.
2982         (force_offsettable): Look at base, not at addr.
2983         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
2984         on things that aren't necessarily CONST_INTs.
2986 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
2988         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
2989         -mfpmath=sse is the default also for x86-32 targets with SSE2
2990         instruction set when @option{-ffast-math} is enabled
2992 2017-02-24  Jeff Law  <law@redhat.com>
2994         PR rtl-optimizatoin/79286
2995         * ira.c (update_equiv_regs): Drop may_trap_p exception to
2996         dominance test.
2998 2017-02-24  Richard Biener  <rguenther@suse.de>
3000         PR tree-optimization/79389
3001         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3002         debug insns.
3004 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
3006         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3007         function comment to reflect reality.
3008         (loop_exits_before_overflow): Fix typo in function description.
3010 2017-02-24  Richard Biener  <rguenther@suse.de>
3012         PR tree-optimization/79389
3013         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3014         properly that a threading opportunity exists.  Detect conditional
3015         copy/constant propagation opportunities.
3017 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
3019         * config/visium/visium.md (type): Add trap.
3020         (b): New mode attribute.
3021         (*btst): Rename into...
3022         (*btst<mode>): ...this and adjust.
3023         (*cbranchsi4_btst_insn): Rename into...
3024         (*cbranch<mode>4_btst_insn): ...this and adjust.
3025         (trap): New define_insn.
3027 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
3029         PR tree-optimization/79389
3030         * ifcvt.c (struct noce_if_info): Add rev_cond field.
3031         (noce_reversed_cond_code): New function.
3032         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3033         reversed_comparison_code.  Formatting fix.
3034         (noce_try_store_flag): Test rev_cond != NULL in addition to
3035         reversed_comparison_code.
3036         (noce_try_store_flag_constants): Likewise.
3037         (noce_try_store_flag_mask): Likewise.
3038         (noce_try_addcc): Use rev_cond if non-NULL instead of
3039         reversed_comparison_code.
3040         (noce_try_cmove_arith): Likewise.  Formatting fixes.
3041         (noce_try_minmax, noce_try_abs): Clear rev_cond.
3042         (noce_find_if_block): Initialize rev_cond.
3043         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3044         instead of false as last argument never attempt to reverse it
3045         afterwards.
3047 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
3049         PR tree-optimization/79663
3050         * tree-predcom.c (combine_chains): Process refs in reverse order
3051         only for ZERO length chains, and add explaining comment.
3053 2017-02-23  Jeff Law  <law@redhat.com>
3055         PR tree-optimization/79578
3056         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3057         in call to operand_equal_p.
3059 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
3061         PR target/71017
3062         * config/i386/cpuid.h: Fix another undefined behavior.
3064 2017-02-23  Richard Biener  <rguenther@suse.de>
3066         PR tree-optimization/79683
3067         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3068         vector types for data-refs.
3070 2017-02-23  Martin Liska  <mliska@suse.cz>
3072         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3074 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
3076         PR middle-end/79665
3077         * internal-fn.c (get_range_pos_neg): Moved to ...
3078         * tree.c (get_range_pos_neg): ... here.  No longer static.
3079         * tree.h (get_range_pos_neg): New prototype.
3080         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3081         are known to be in between 0 and signed maximum inclusive, try to
3082         expand both unsigned and signed divmod and use the cheaper one from
3083         those.
3085 2017-02-22  Jeff Law  <law@redhat.com>
3087         PR tree-optimization/79578
3088         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3089         to compare base operands.
3091 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
3093         PR target/79211
3094         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3095         gpc_reg_operand instead of fpr_reg_operand.
3097 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
3099         * config/mips/mips.c (mips_return_in_memory): Force FP
3100         vector types to be returned in memory for o32 ABI.
3102 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
3104         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3105         instead of DW_TAG_member for static data member declarations and don't
3106         set no_linkage_name for static inline data members.
3107         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3108         to DW_TAG_member.
3110 2017-02-22  Martin Liska  <mliska@suse.cz>
3112         * doc/invoke.texi: Replace inequality signs with square brackets
3113         for -Wnormalized.
3115 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3117         PR tree-optimization/68644
3118         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3120 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
3122         PR target/78660
3123         * lra-constraints.c (simplify_operand_subreg): Handle
3124         WORD_REGISTER_OPERATIONS targets.
3126 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
3128         PR target/70465
3129         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3130         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3131         elimination by swapping fld*.
3133 2017-02-22  Richard Biener  <rguenther@suse.de>
3135         PR tree-optimization/79673
3136         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3137         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3138         irrelevant address-space qualifiers and avoiding a
3139         ADDR_SPACE_CONVERT_EXPR from fold_convert.
3141 2017-02-22  Richard Biener  <rguenther@suse.de>
3143         PR tree-optimization/79666
3144         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3145         to not symbolically negate if that may introduce undefined
3146         overflow.
3148 2017-02-22  Martin Liska  <mliska@suse.cz>
3150         PR lto/79587
3151         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3152         * data-streamer-out.c (streamer_write_gcov_count_stream):
3153         Likewise.
3154         * value-prof.c (stream_out_histogram_value): Make assert more
3155         precise based on type of counter.
3157 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
3159         PR target/79593
3160         * config/i386/i386.md (standard_x87sse_constant_load splitter):
3161         Use nonimmediate_operand instead of memory_operand for operand 1.
3162         (float-extend standard_x87sse_constant_load splitter): Ditto.
3164 2017-02-21 Jeff Law  <law@redhat.com>
3166         PR tree-optimization/79621
3167         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3168         blocks with edges to themselves.
3170 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3172         PR target/79633
3173         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3174         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3175         Use gimple_call_builtin_p.
3177         PR target/79570
3178         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3179         on temporarily removed DEBUG_INSNs.
3181         PR tree-optimization/79649
3182         * tree-loop-distribution.c (classify_partition): Give up on
3183         non-generic address space loads/stores.
3185 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
3187         * doc/loop.texi (Loop manipulation): Remove nonexistent
3188         tree_ssa_loop_version from the documentation.
3189         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3191 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3193         PR target/79494
3194         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3195         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3196         * config/rs6000/rs6000.c: Include except.h.
3197         (rs6000_expand_split_stack_prologue): Call
3198         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3200 2017-02-21  Martin Jambor  <mjambor@suse.cz>
3202         PR lto/79579
3203         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3204         have been analyzed.
3206 2017-02-21  Martin Jambor  <mjambor@suse.cz>
3208         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3209         for backward compatibility only.
3210         * doc/invoke.texi (Option Summary): Remove all references to
3211         -fipa-cp-alignment.
3213 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
3215         PR target/78660
3216         Revert:
3217         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3219         * lra-constraints.c (curr_insn_transform): Handle
3220         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3222 2017-02-21  Martin Liska  <mliska@suse.cz>
3224         * config/i386/i386.opt: Replace -masm-dialect with -masm.
3226 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
3228         PR translation/79638
3229         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3231 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
3233         PR ada/67205
3234         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3235         (arm_function_ok_for_sibcall): Return false for an indirect call by
3236         descriptor if all the argument registers are used.
3237         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3238         alignment of the function.
3240 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3242         PR tree-optimization/61441
3243         * simplify-rtx.c (simplify_const_unary_operation): For
3244         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3245         the sNaN unmodified.
3247 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3249         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3250         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3251         instead of SYSTEM_HEADER_DIR.
3253 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
3254             Martin LiÅ¡ka  <mliska@suse.cz>
3256         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3257         Fix typos and grammar, use active voice, and clarify.
3259 2017-02-20  Marek Polacek  <polacek@redhat.com>
3261         PR middle-end/79537
3262         * gimplify.c (gimplify_expr): Handle unused *&&L;.
3264         PR sanitizer/79558
3265         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3267 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
3269         PR target/79568
3270         * config/i386/i386.c (ix86_expand_builtin): Handle
3271         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3272         ix86_builtins_isa[fcode].isa as a requirement of those
3273         flags and any other flag in the bitmask.
3274         (ix86_init_mmx_sse_builtins): Use 0 instead of
3275         ~OPTION_MASK_ISA_64BIT as mask.
3276         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3277         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3278         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3279         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3281 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3283         PR target/78012
3284         * lra-constraints.c (split_reg): Check requested split mode
3285         is supported by the register.
3287 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3289         * lra-constraints.c (simplify_operand_subreg): Remove early
3290         return false.
3292 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3294         PR target/78660
3295         * lra-constraints.c (curr_insn_transform): Tighten condition
3296         for converting SUBREG reloads from OP_OUT to OP_INOUT.
3298 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3300         PR target/78660
3301         * lra-constraints.c (curr_insn_transform): Handle
3302         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3304 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
3306         Revert:
3307         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
3309         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3311 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
3313         PR c++/69523
3314         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3315         description.
3317 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3319         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3320         for FMA_EXPR.
3322 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
3324         * final.c (last_columnnum, override_columnnum): New variables.
3325         (final_start_function): Set last_columnnum, pass it to begin_prologue
3326         hook and pass 0 to dwarf2out_begin_prologue.
3327         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
3328         to source_line debug hook.
3329         (notice_source_line): Compute last_columnnum and for debug_column_info
3330         return true on column changes.
3331         * debug.h (struct gcc_debug_hooks): Add column argument to
3332         source_line and begin_prologue hooks.
3333         (debug_nothing_int_charstar_int_bool): Remove prototype.
3334         (debug_nothing_int_int_charstar,
3335         debug_nothing_int_int_charstar_int_bool): New prototypes.
3336         (dwarf2out_begin_prologue): Add column argument.
3337         * debug.c (do_nothing_debug_hooks): Adjust source_line and
3338         begin_prologue hooks.
3339         (debug_nothing_int_charstar_int_bool): Remove.
3340         (debug_nothing_int_int_charstar,
3341         debug_nothing_int_int_charstar_int_bool): New functions.
3342         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3343         through to dwarf2out_source_line.
3344         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3345         (dwarf2out_source_line): Add column argument, emit it if requested.
3346         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3347         arguments.
3348         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3349         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3350         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3351         through to dwarf2out_begin_prologue.
3352         (vmsdbgout_source_line): Add column argument, pass it through to
3353         dwarf2out_source_line.
3354         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3355         dbxout_source_line caller.
3356         (dbxout_source_line): Add column argument.
3358         * common.opt (gno-column-info, gcolumn-info): New options.
3359         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3360         (check_die): Also test for multiple DW_AT_decl_column attributes.
3361         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3362         DW_AT_decl_column if requested.
3363         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3364         if requested.
3365         (gen_variable_die): Likewise.
3366         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3367         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3369         PR target/79569
3370         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3371         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3372         (ix86_handle_option): Handle OPT_m3dnowa.
3373         * doc/invoke.texi (-m3dnowa): Document.
3374         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3375         -m3dnowa instead of -m3dnow -march=athlon.
3377         PR target/79559
3378         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3379         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
3381 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3383         PR target/79261
3384         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3385         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3386         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3387         generator for vsx_xxpermdi_<mode>_be.
3388         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3389         force big-endian semantics.
3390         (vsx_xxpermdi_<mode>_be): New define_expand with same
3391         implementation as previous version of vsx_xxpermdi_<mode>.
3393 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
3395         PR tree-optimization/79327
3396         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3397         variable, its initialization and use.
3399 2017-02-17  Julia Koval  <julia.koval@intel.com>
3401         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3402         (OPTION_MASK_ISA_PKU_UNSET): New.
3403         (ix86_handle_option): Handle -mrdpid.
3404         * config/i386/cpuid.h (bit_RDPID): New.
3405         * config/i386/driver-i386.c (host_detect_local_cpu):
3406         Detect RDPID feature.
3407         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3408         * config/i386/i386-c.c (ix86_target_macros_internal):
3409         Handle RDPID flag.
3410         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3411         (ix86_valid_target_attribute_inner_p): Add "rdpid".
3412         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3413         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3414         * config/i386/i386.md (define_insn "rdpid"): New.
3415         * config/i386/i386.opt Add -mrdpid.
3416         * config/i386/immintrin.h (_rdpid_u32): New.
3418 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
3420         PR rtl-optimization/79541
3421         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3422         instead of transforming it into USE.
3424 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
3426         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3427         If HONOR_SNANS (SFmode) force the input to a register.
3428         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3429         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3430         an frsp or similar insn.
3432 2017-02-17  Martin Liska  <mliska@suse.cz>
3434         PR rtl-optimization/79577
3435         * params.def (selsched-max-sched-times): Increase minimum to 1.
3437 2017-02-17  Martin Liska  <mliska@suse.cz>
3439         PR rtl-optimization/79574
3440         * gcse.c (want_to_gcse_p): Prevent integer overflow.
3442 2017-02-17  Martin Liska  <mliska@suse.cz>
3444         PR tree-optimization/79529
3445         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3446         ssa_defined_default_def_p to handle cases which are implicitly
3447         defined.
3448         * tree-ssa.c (ssa_defined_default_def_p): New function.
3449         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3450         which are implicitly defined.
3451         * tree-ssa.h (ssa_defined_default_def_p): Declare.
3453 2017-02-17  Richard Biener  <rguenther@suse.de>
3455         PR middle-end/79576
3456         * params.def (max-ssa-name-query-depth): Limit to 10.
3458 2017-02-17  Richard Biener  <rguenther@suse.de>
3460         PR tree-optimization/79552
3461         * tree-ssa-structalias.c (visit_loadstore): Properly verify
3462         default defs.
3464 2017-02-17  Richard Biener  <rguenther@suse.de>
3466         PR bootstrap/79567
3467         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3469 2017-02-17  Marek Polacek  <polacek@redhat.com>
3471         PR middle-end/79536
3472         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3473         (fold_negate_expr): New wrapper.
3475 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
3477         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
3478         Correct terminology and de-emphasize pre-standard behavior.
3480 2017-02-16  Alan Modra  <amodra@gmail.com>
3482         PR rtl-optimization/79286
3483         * ira.c (def_dominates_uses): New function.
3484         (update_equiv_regs): Don't create an equivalence for insns that
3485         may trap where the register def does not dominate the use.
3487 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
3489         PR rtl-optimization/78127
3490         * lra.c (lra): Call lra_eliminate before finish the loop after
3491         lra_constraint.
3493 2017-02-16  Richard Biener  <rguenther@suse.de>
3495         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3496         isl/isl_val.h.
3497         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3498         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3499         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3500         (isl_val_int_from_wi): New function.
3501         (extract_affine_gmp): Rename to ...
3502         (extract_affine_wi): ... this, take a widest_int.
3503         (extract_affine_int): Just wrap extract_affine_wi.
3504         (add_param_constraints): Use isl_val_int_from_wi.
3505         (add_loop_constraints): Likewise, and extract_affine_wi.
3507 2017-02-15 Jeff Law  <law@redhat.com>
3509         PR middle-end/79521
3510         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
3511         ira_init_register_move_cost_if_necessary.
3513 2017-02-15  Martin Sebor  <msebor@redhat.com>
3515         PR middle-end/32003
3516         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
3517         removed in a prior commit.
3519 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
3521         PR tree-optimization/79347
3522         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
3523         counters during peeling.
3525 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
3527         * Makefile.in (site.exp): Remove "set ISLVER".
3529 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
3531         PR target/79487
3532         * real.c (real_from_integer): Call real_convert even for decimal.
3534 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3536         PR target/79421
3537         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3539 2017-02-14  Andrew Pinski  <apinski@cavium.com>
3541         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
3542         cores and change the partno/implementer to be correct.
3543         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
3544         the 'B" as the implementer.
3545         * config/aarch64/aarch64-tune.md: Regenerate.
3547 2017-02-14  Carl Love  <cel@us.ibm.com>
3549         * config/rs6000/rs6000.c: Add case statement entry to make the
3550         xvcvuxdsp built-in argument unsigned.
3551         * config/rs6000/vsx.md: Fix the source and return operand types so they
3552         match the instruction definitions from the ISA document.  Fix typo
3553         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
3554         statement.
3556 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
3558         PR target/79282
3559         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
3560         member early_clobber_alts.
3561         * lra-lives.c (reg_early_clobber_p): New.
3562         (process_bb_lives): Use it.
3563         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
3564         (debug_operand_data): Initialize early_clobber_alts.
3565         (setup_operand_alternative): Set up early_clobber_alts.
3566         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
3567         alternatives to new_insn_reg.
3568         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
3569         it.
3570         (lra_update_insn_regno_info): Pass the new arg.
3572 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
3574         PR middle-end/79505
3575         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
3576         (new_oacc_loop_raw): Don't clear already cleared fields.
3578         PR target/79481
3579         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
3580         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
3581         _mm512_prefetch_i64gather_ps): New inline functions and macros.
3583 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
3585         PR target/79495
3586         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
3588 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
3590         PR target/79498
3591         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
3592         the extra instruction to the right place to store 128-bit constant
3593         when needed.
3595 2017-02-14  Martin Sebor  <msebor@redhat.com>
3597         PR middle-end/79448
3598         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
3599           warning for strings of unknown length.
3601 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
3603         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
3605 2017-02-14 Jeff Law  <law@redhat.com>
3607         PR target/79404
3608         * ira-costs.c (scan_one_insn): Initialize register move costs
3609         for pseudos seen in USE/CLOBBER insns.
3611         PR tree-optimization/79095
3612         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
3613         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
3614         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
3615         if the operands are known to be not equal, then the resulting range
3616         is ~[0,0].
3617         (intersect_ranges): If the new range is ~[0,0] and the old range is
3618         wide, then prefer ~[0,0].
3619         * tree-vrp.c (overflow_comparison_p_1): New function.
3620         (overflow_comparison_p): New function.
3621         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
3622         if NAME is used in an overflow test.
3623         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
3624         overflow check that can be expressed as an equality test, then adjust
3625         ops to be that equality test.
3627 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3629         * config/s390/s390-builtin-types.def: Remove flags argument.
3630         * config/s390/s390.c (s390_init_builtins): Likewise.
3632 2017-02-14  Martin Liska  <mliska@suse.cz>
3634         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
3635         vector.  Fix trailing white spaces.
3637 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
3639         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
3640         HFmode.
3642 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3644         PR rtl-optimization/68664
3645         * config/arm/arm.c (arm_sched_can_speculate_insn):
3646         New function.  Declare prototype.
3647         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3649 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3651         PR rtl-optimization/68664
3652         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
3653         New function.
3654         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3656 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
3658         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
3659         max skip bytes for function, loop and jump.
3661 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3663         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
3664         ABS_EXPR for gimple dump.
3666 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
3668         PR target/79462
3669         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
3671         PR tree-optimization/79408
3672         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
3673         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
3674         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3675         also if rhs1 is INTEGER_CST.
3677 2017-02-14  Richard Biener  <rguenther@suse.de>
3679         PR middle-end/79432
3680         * tree-into-ssa.c (insert_phi_nodes): When the function can
3681         have abnormal edges rewrite SSA names with broken use-def
3682         dominance out of SSA and register them for PHI insertion.
3684 2017-02-13  Martin Sebor  <msebor@redhat.com>
3686         PR middle-end/79496
3687         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
3688         clearing info.nowrite flag when snprintf size argument is a range.
3690 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
3692         * cprop.c (cprop_jump): Add missing space in string literal.
3693         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3694         (get_constraint_for_component_ref): Likewise.
3695         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3696         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
3697         * lra-constraints.c (process_alt_operands): Likewise.
3698         * ipa-inline.c (inline_small_functions): Likewise.
3699         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
3700         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3701         * trans-mem.c (diagnose_tm_1_op): Likewise.
3702         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
3703         (grid_parallel_clauses_gridifiable): Likewise.
3705         * config/nvptx/mkoffload.c (process): Add space in between
3706         , and %d.
3708         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
3709         "MOD4_SSE_REGS" and "ALL_REGS".
3711         * spellcheck.c (test_data): Add , in between "foo" and "food".
3713 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3715         PR target/79449
3716         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
3717         boundary crossing check and subsequent code generation agree.
3719 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3721         * config/aarch64/aarch64.c (has_memory_op): Delete.
3722         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
3723         has_memory_op.
3725 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
3727         PR rtl-optimization/79388
3728         PR rtl-optimization/79450
3729         * combine.c (distribute_notes): When removing TEM_INSN for which
3730         corresponding dest has last value recorded, invalidate that last
3731         value.
3733 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3735         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
3736         of explicit '@'.  Add missing assembly comment marker on branch costs
3737         printout.
3739 2017-02-13  Nathan Sidwell  <nathan@acm.org>
3741         * gengtype-lex.l (<in_struct>): Add '/'.
3743 2017-02-13  Martin Liska  <mliska@suse.cz>
3745         PR c/79471
3746         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
3748 2017-02-13  Richard Biener  <rguenther@suse.de>
3750         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
3751         Remove.
3752         * configure: Re-generate.
3753         * config.in: Likewise.
3754         * graphite-dependences.c: Simplify as if
3755         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
3756         * graphite-isl-ast-to-gimple.c: Likewise.
3757         * graphite-optimize-isl.c: Likewise.
3758         * graphite-poly.c: Likewise.
3759         * graphite-sese-to-poly.c: Likewise.
3760         * graphite.h: Likewise.
3761         * toplev.c: Include isl/version.h and use isl_version () for
3762         printing the ISL version.
3763         * doc/install.texi: Update ISL requirement.
3765 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
3767         * doc/standards.texi (Standards): Update reference to
3768         Objective-C 2.0.
3770 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
3771         
3772         * doc/extend.texi (Named Address Spaces): sourceware.org now
3773         defaults to https.
3774         * doc/install.texi (Binaries): Ditto.
3775         (Specific): Ditto.
3777 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
3779         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
3780         standard terminology "stringize"/"stringizing" throughout.
3781         * doc/cppinternals.texi: Likewise.
3783 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
3785         * doc/extend.texi: Fix some spelling mistakes and typos.
3786         * doc/invoke.texi: Likewise.
3788 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
3790         PR ipa/79224
3791         * params.def (inline-min-speedup) Change from 10 to 8.
3793 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
3795         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
3796         4.5.
3798 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
3800         PR ipa/79224
3801         * ipa-inline-analysis.c (get_minimal_bb): New function.
3802         (record_modified): Use it.
3803         (remap_edge_change_prob): Handle also ancestor functions.
3805 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
3807         * doc/contrib.texi (Contributors): Remove broken link into
3808         the Mauve CVS repository.
3810 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
3812         PR middle-end/79454
3813         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
3814         result computation whenever lhs doesn't have vector mode, not
3815         just when it has BLKmode.
3817 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
3819         * doc/makefile.texi (profiledbootstrap): Refer to the
3820         installation instructions only in textual form.
3822 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3824         PR target/79295
3825         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
3827 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
3829         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
3830         (Specific): Update mingw-w64 reference.
3831         (Binaries): Ditto.
3832         (Specific): Remove broken link to Renesas RX processor.
3834 2017-02-10  Richard Biener  <rguenther@suse.de>
3836         * toplev.c (process_options): Do not mention obsolete graphite
3837         options when printing sorry message about missing graphite support.
3838         Mention -floop-nest-optimize.
3840 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
3842         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
3843         (vtst_p16): Likewise.
3844         (vtstq_p8): Likewise.
3845         (vtstq_p16): Likewise.
3846         (vtst_p64): New.
3847         (vtstq_p64): Likewise.
3848         * config/arm/arm_neon.h (vgetq_lane_p64): New.
3849         (vset_lane_p64): New.
3850         (vsetq_lane_p64): New.
3852 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
3854         PR tree-optimization/79411
3855         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
3856         stmt operands are SSA_NAMEs used in abnormal phis.
3857         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
3858         phis.
3860 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
3862         PR ipa/70795
3863         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
3864         flag if needed.
3866 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
3868         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
3870 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
3872         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
3873         to avoid warning.
3875         PR c/79413
3876         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
3877         not arbitrary TREE_CONSTANT.
3879         PR c/79431
3880         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
3881         "omp declare target link" attribute unless is_global_var.
3882         * omp-offload.c (find_link_var_op): Likewise.
3884 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
3885             Chung-Lin Tang  <cltang@codesourcery.com>
3887         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
3888         OMP_CLAUSE_TILE.
3889         (gimplify_adjust_omp_clauses): Don't delete TILE.
3890         (gimplify_omp_for): Deal with TILE.
3891         * internal-fn.c (expand_GOACC_TILE): New function.
3892         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
3893         (GOACC_TILE): New.
3894         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
3895         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
3896         element fields.
3897         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
3898         avoid DIV for outermost collapse var.
3899         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
3900         Remove out of date comments, fix whitespace.
3901         * omp-general.c (omp_extract_for_data): Deal with tiling.
3902         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
3903         adjust OLF_DIM_BASE value.
3904         (struct omp_for_data): Add tiling field.
3905         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
3906         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
3907         for auto loops.  Remove default auto determining, moved to
3908         oacc_loop_fixed_partitions.
3909         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
3910         stmts, add e_mask field.
3911         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
3912         (oacc_thread_numbers): Use oacc_dim_call.
3913         (oacc_xform_tile): New.
3914         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
3915         (finish_oacc_loop): Adjust for ifns vector.
3916         (oacc_loop_discover_walk): Append loop abstraction sites to list,
3917         add case for GOACC_TILE fns.
3918         (oacc_loop_xform_loop): Delete.
3919         (oacc_loop_process): Iterate over call list directly, and add
3920         handling for GOACC_TILE fns.
3921         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
3922         dump partitioning.
3923         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
3924         vector partitioning to outer loops.  Assign 2 partitions to loops
3925         when available. Add TILE handling.
3926         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
3927         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
3928         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
3929         * tree.c (omp_clause_num_ops): Adjust TILE ops.
3930         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
3932 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
3934         * configure.ac (ACX_BUGURL): Update.
3935         * configure: Regenerate.
3937 2017-02-09  Richard Biener  <rguenther@suse.de>
3939         PR tree-optimization/69823
3940         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
3941         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
3943 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3945         * config/arc/arc-c.def: Add __NPS400__ definition.
3946         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
3947         (TARGET_NPS400): Define.
3949 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3951         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
3952         file.
3953         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
3954         pointer, arch_info.
3955         (arc_cpu_types): Fill the arch_info field with a pointer into the
3956         arc_arch_types table.
3957         (arc_selected_cpu): Declare.
3958         * config/arc/arc.c (arc_selected_cpu): Make global.
3959         (arc_selected_arch): Delete.
3960         (arc_base_cpu): Delete.
3961         (arc_override_options): Remove references to deleted variables,
3962         update access to arch information.
3963         (ARC_OPT): Update access to arch information.
3964         (ARC_OPTX): Likewise.
3965         * config/arc/arc.h (arc_base_cpu): Remove declaration.
3966         (TARGET_ARC600): Update access to arch information.
3967         (TARGET_ARC601): Likewise.
3968         (TARGET_ARC700): Likewise.
3969         (TARGET_EM): Likewise.
3970         (TARGET_HS): Likewise.
3971         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
3972         information.
3974 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
3976         PR target/78604
3977         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
3978         condition/operands for integer GE/LE/GEU/LEU operations.
3980 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
3982         PR translation/79397
3983         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
3984         of AltiVec.
3986 2017-02-08  Martin Jambor  <mjambor@suse.cz>
3988         PR ipa/79375
3989         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
3990         whether allocation happened.
3991         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
3992         nothing was allocated.
3994 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
3996         PR tree-optimization/79408
3997         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
3998         constant, but SSA_NAME with a known integer range, use the minimum
3999         of that range instead of op1 to determine if modulo can be replaced
4000         with its first operand.
4002 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4004         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4006 2017-02-08  Richard Biener  <rguenther@suse.de>
4008         PR tree-optimization/71824
4009         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4010         Check all loops contained in the merged region.
4012 2017-02-07  Andrew Pinski  <apinski@cavium.com>
4014         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4016 2017-02-07  Andrew Pinski  <apinski@cavium.com>
4018         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4019         (thunderxt88): Likewise.
4020         (thunderxt81): Disable LSE and change v8.1 to v8.
4021         (thunderxt83): Likewise.
4023 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
4024             Richard Biener  <rguenther@suse.de>
4026         PR middle-end/79399
4027         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4028         type from int to size_t.
4029         * ira-costs.c (struct_costs_size): Change type from int to size_t.
4031 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
4033         PR rtl-optimization/79386
4034         * cprop.c (bypass_conditional_jumps): Initialize
4035         bypass_last_basic_block already before splitting bbs after
4036         unconditional traps...
4037         (bypass_conditional_jumps): ... rather than here.
4039         PR target/79299
4040         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4041         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4042         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4043         fix -masm=intel patterns.
4045 2017-02-07  Richard Biener  <rguenther@suse.de>
4047         PR tree-optimization/79256
4048         PR middle-end/79278
4049         * builtins.c (get_object_alignment_2): Use min_align_of_type
4050         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4051         and ADJUST_FIELD_ALIGN.
4053         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4054         type parameter.
4055         * doc/tm.texi: Regenerate.
4056         * stor-layout.c (layout_decl): Adjust.
4057         (update_alignment_for_field): Likewise.
4058         (place_field): Likewise.
4059         (min_align_of_type): Likewise.
4060         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4061         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4062         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4063         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4064         * config/frv/frv.c (frv_adjust_field_align): Likewise.
4065         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4066         * config/i386/i386.c (x86_field_alignment): Likewise.
4067         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4068         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4069         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4070         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4071         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4072         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4073          Likewise.
4075         Revert
4076         2017-01-30  Richard Biener  <rguenther@suse.de>
4078         PR tree-optimization/79256
4079         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4080         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4081         alignment on TYPE.
4083 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
4085         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4086         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4087         builtins to SImode and emit a zero-extend, if necessary.
4089 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4091         * docs/invoke.texi (RISC-V Options): Alphabetize.
4093 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4095         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4096         options.
4098 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4100         * config/riscv/riscv.c: New file.
4101         * gcc/common/config/riscv/riscv-common.c: Likewise.
4102         * config.gcc: Likewise.
4103         * config/riscv/constraints.md: Likewise.
4104         * config/riscv/elf.h: Likewise.
4105         * config/riscv/generic.md: Likewise.
4106         * config/riscv/linux.h: Likewise.
4107         * config/riscv/multilib-generator: Likewise.
4108         * config/riscv/peephole.md: Likewise.
4109         * config/riscv/pic.md: Likewise.
4110         * config/riscv/predicates.md: Likewise.
4111         * config/riscv/riscv-builtins.c: Likewise.
4112         * config/riscv/riscv-c.c: Likewise.
4113         * config/riscv/riscv-ftypes.def: Likewise.
4114         * config/riscv/riscv-modes.def: Likewise.
4115         * config/riscv/riscv-opts.h: Likewise.
4116         * config/riscv/riscv-protos.h: Likewise.
4117         * config/riscv/riscv.h: Likewise.
4118         * config/riscv/riscv.md: Likewise.
4119         * config/riscv/riscv.opt: Likewise.
4120         * config/riscv/sync.md: Likewise.
4121         * config/riscv/t-elf-multilib: Likewise.
4122         * config/riscv/t-linux: Likewise.
4123         * config/riscv/t-linux-multilib: Likewise.
4124         * config/riscv/t-riscv: Likewise.
4125         * configure.ac: Likewise.
4126         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4127         Waterman as RISC-V maintainers.
4128         * doc/install.texi: Add RISC-V entries.
4129         * doc/invoke.texi: Add RISC-V options section.
4130         * doc/md.texi: Add RISC-V constraints section.
4131         * configure: Regenerated.
4133 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4135         PR target/66144
4136         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4137         false values to be constant vectors with all 0 or all 1 bits set.
4138         (vcondu<mode><mode>): Likewise.
4139         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4140         predicate.
4141         (fpmask_comparison_operator): Update comment.
4142         (vecint_comparison_operator): New predicate.
4143         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4144         vector conditionals when the true and false values are constant
4145         vectors with all 0 bits or all 1 bits set.
4147 2017-02-06  Martin Sebor  <msebor@redhat.com>
4149         PR  tree-optimization/79376
4150         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4152 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
4154         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4155         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
4156         to simplify split condition.
4158 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
4160         * omp-expand.c (oxpand_omp_atomic_fetch_op,
4161         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4162         false.
4164 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
4166         PR rtl-optimization/68664
4167         * target.def (can_speculate_insn): New hook.
4168         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4169         * doc/tm.texi: Regenerate.
4170         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4171         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4172         (rs6000_sched_can_speculate_insn): New function.
4174 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
4176         PR tree-optimization/79284
4177         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4178         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4179         vectorizable_mask_load_store, vectorizable_operation,
4180         vect_is_simple_cond, get_same_sized_vectype): Use it instead
4181         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4182         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4183         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4184         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4185         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4186         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4187         is_gimple_assign (stmt).  Replace another such test with
4188         is_gimple_assign (stmt).
4190 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
4192         PR target/78883
4193         * config/avr/avr.c (rtl-iter.h): Include it.
4194         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4195         (avr_legitimate_combined_insn): ...and implementation.
4197 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4199         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4200         * config/s390/s390.c (s390_const_operand_ok)
4201         (s390_canonicalize_comparison, s390_extract_part)
4202         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4203         (s390_contiguous_bitmask_p, s390_rtx_costs)
4204         (legitimize_pic_address): Likewise.
4205         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4206         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4207         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4208         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4209         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4211 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
4213         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4214         REGNO($0) == REGNO($1).
4216 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4218         * config/s390/linux.h(SIZE_TYPE): Add comment.
4220 2017-02-06  Julian Brown  <julian@codesourcery.com>
4221             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4222             Virendra Pathak  <virendra.pathak@broadcom.com>
4224         * config/aarch64/aarch64-cores.def: Change the scheduler
4225         to Thunderx2t99.
4226         * config/aarch64/aarch64.md: Include thunderx2t99.md.
4227         * config/aarch64/thunderx2t99.md: New file.
4229 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4231         * doc/standards.texi (Go Language): Update link to language
4232         standard.
4234 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
4236         * tree-eh.c (lower_resx): Sanitize profile.
4237         (cleanup_empty_eh_move_lp): Likewise.
4239 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
4241         PR tree-ssa/79347
4242         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4243         ELSE_PROB.
4244         * cfgloopmanip.h (loop_version): Update prototype.
4245         * modulo-sched.c (sms_schedule): Update call of loop_version.
4246         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4247         * tree-parloops.c (gen_parallel_loop): Likewise.
4248         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4249         * tree-ssa-loop-split.c (split_loop): Likewise.
4250         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4251         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4253 2017-02-05  Martin Liska  <mliska@suse.cz>
4255         PR bootstrap/78985
4256         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4257         variable to NULL.
4258         (print_operand_address): Initialize a struct to zero.
4260 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4262         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4263         garbage collector only in textual form.
4265 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4266         
4267         * doc/extend.texi (x86 specific memory model extensions for
4268         transactional memory): Simplify a phrase.
4270 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
4272         PR target/79353
4273         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4274         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4275         (atomic_storedi_1): Likewise.
4277 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
4279         PR tree-optimization/79338
4280         * tree-parloops.c (gather_scalar_reductions): Don't call
4281         vect_analyze_loop_form for loop->inner before destroying loop's
4282         loop_vinfo.
4284 2017-02-03  Martin Sebor  <msebor@redhat.com>
4286         PR tree-optimization/79327
4287         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4288         when precision has resulted in leading zeros.
4289         (format_integer): Adjust the likely counter to assume an unknown
4290         argument that may be zero is non-zero.
4292 2017-02-03  Jason Merrill  <jason@redhat.com>
4294         PR c++/78689
4295         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4296         avoid copying non-taken branch.
4298 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
4300         PR tree-optimization/79340
4301         * tree-vect-loop.c (vectorizable_reduction): Release
4302         vec_defs elements after safe_splicing them into other vectors.
4303         Formatting fixes.
4305         PR tree-optimization/79327
4306         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4307         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4308         dirtype.
4309         (format_integer): Use wide_int_to_tree instead of build_int_cst
4310         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
4311         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
4312         of shortest and longest sequence.
4314 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
4316         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4317         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4319 2017-02-03  Walter Lee  <walt@tilera.com>
4321         PR target/78862
4322         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4323         after initial stackframe link reg save.
4324         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4326 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
4328         PR target/79354
4329         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4330         wu for stxssp alternative.
4332 2017-02-03  Martin Sebor  <msebor@redhat.com>
4334         PR tree-optimization/79352
4335         * gimple-fold.c (get_range_strlen): Add argument.
4336         (get_range_strlen): Change return type to bool.
4337         (get_maxval_strlen): Pass in a dummy argument.
4338         * gimple-fold.h (get_range_strlen): Change return type to bool.
4339         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4340         * tree.h (array_at_struct_end_p): Add argument.
4341         * tree.c (array_at_struct_end_p): Handle it.
4343 2017-02-03  Martin Liska  <mliska@suse.cz>
4345         PR lto/66295
4346         * multiple_target.c (create_dispatcher_calls): Redirect edge
4347         from a caller of a dispatcher.
4348         (expand_target_clones): Make the clones local.
4349         (ipa_target_clone): Do both target clones and resolvers.
4350         (ipa_dispatcher_calls): Remove the pass.
4351         (pass_dispatcher_calls::gate): Likewise.
4352         (make_pass_dispatcher_calls): Likewise.
4353         * passes.def (pass_target_clone): Put as very first IPA early
4354         pass.
4356 2017-02-03  Martin Liska  <mliska@suse.cz>
4358         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4359         in case of a function with ifunc attribute.
4361 2017-02-03  Martin Liska  <mliska@suse.cz>
4363         * cgraph.c (cgraph_node::dump): Dump function version info.
4364         * symtab.c (symtab_node::dump_base): Add missing new line.
4366 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
4368         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4369         (ifcombine_ifandif): Use it.
4371 2017-02-03  Martin Liska  <mliska@suse.cz>
4373         * doc/invoke.texi: Document default value for
4374         use-after-scope-direct-emission-threshold.
4376 2017-02-03  Martin Liska  <mliska@suse.cz>
4378         PR tree-optimization/79339
4379         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4380         (format_floating): Likewise.
4382 2017-02-03  Martin Liska  <mliska@suse.cz>
4384         PR ipa/79337
4385         * ipa-prop.c (ipa_node_params_t::insert): Remove current
4386         implementation.
4387         (ipa_node_params_t::remove): Likewise.
4388         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4389         initialization from removed ipa_node_params_t::insert.
4390         (ipa_node_params::~ipa_node_params): Move from removed
4391         ipa_node_params_t::release.
4392         * symbol-summary.h (symbol_summary::m_released): New member.
4393         Do not release a summary twice.  Do not allow to call finalizer
4394         for types of a summary that live in GGC memory.
4396 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4398         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4399         cmp_branch fusion.
4401 2017-02-02  Martin Sebor  <msebor@redhat.com>
4403         PR middle-end/79275
4404         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4405         (format_string): Tighten up the range of output for non-constant
4406         strings and correct the expected range for wide non-constant strings.
4408 2017-02-02  Martin Sebor  <msebor@redhat.com>
4410         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4412         PR middle-end/32003
4413         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4414         index.
4415         (-fdump-tree-@var): Add to index and document how to come up
4416         with pass-specific option and dump file names.
4417         (-fdump-passes): Clarify where to look for output.
4419 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
4421         PR middle-end/77445
4422         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4423         statistics of the analyzed path; allow threading for speed when
4424         any of BBs along the path are optimized for speed.
4426 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
4428         PR middle-end/78468
4429         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4430         settings of the virtual registers.
4432         Revert again
4433         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4435         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4436         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4437         needed.
4439 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4441         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4442         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4444 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4446         * config/s390/s390.md: Add missing comments with the expanded
4447         mnemonics.
4448         * config/s390/vector.md: Likewise.
4449         * config/s390/vx-builtins.md: Likewise.
4451 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
4453         PR target/79197
4454         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4455         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
4456         conditions on a single line.
4458 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4460         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4461         __S390_VX__ to __VX__.
4463 2017-02-01  Andrew Pinski  <apinski@cavium.com>
4465         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4466         stmt_info to record_stmt_cost.
4467         (vect_get_known_peeling_cost): Pass stmt_info if known to
4468         record_stmt_cost.
4469         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4470         cpu_vector_cost field into
4471         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
4472         field into vec_int_stmt_cost and vec_fp_stmt_cost.
4473         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4474         splitting of scalar_stmt_cost and vec_stmt_cost.
4475         (thunderx_vector_cost): Likewise.
4476         (cortexa57_vector_cost): LIkewise.
4477         (exynosm1_vector_cost): Likewise.
4478         (xgene1_vector_cost): Likewise.
4479         (thunderx2t99_vector_cost): Improve after the splitting of the two
4480         fields.
4481         (aarch64_builtin_vectorization_cost): Update for the splitting of
4482         scalar_stmt_cost and vec_stmt_cost.
4484 2017-02-01  Torvald Riegel  <triegel@redhat.com>
4485             Richard Henderson  <rth@redhat.com>
4487         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4488         conditional on existance of a fast atomic load.
4489         * optabs-query.c (can_atomic_load_p): New function.
4490         * optabs-query.h (can_atomic_load_p): Declare it.
4491         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4492         no fast atomic load is available for the particular size of access.
4493         (expand_atomic_compare_and_swap): Likewise.
4494         (expand_atomic_load): Likewise.
4495         (expand_atomic_store): Likewise.
4496         (expand_atomic_fetch_op): Likewise.
4497         * testsuite/lib/target-supports.exp
4498         (check_effective_target_sync_int_128): Remove x86 because it provides
4499         no fast atomic load.
4500         (check_effective_target_sync_int_128_runtime): Likewise.
4502 2017-02-01  Richard Biener  <rguenther@suse.de>
4504         * graphite.c: Include tree-vectorizer.h for find_loop_location.
4505         (graphite_transform_loops): Provide opt-info for optimized nests.
4506         * tree-parloop.c (parallelize_loops): Provide opt-info for
4507         parallelized loops.
4509 2017-02-01  Richard Biener  <rguenther@suse.de>
4511         PR middle-end/79315
4512         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
4513         was not set before.
4515 2017-02-01  Richard Biener  <rguenther@suse.de>
4517         PR tree-optimization/71824
4518         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4519         Verify the loops are valid in the merged SESE region.
4520         (scop_detection::can_represent_loop_1): Check analyzing the
4521         evolution of the number of iterations in the region succeeds.
4523 2017-01-31  Ian Lance Taylor  <iant@golang.org>
4525         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
4526         REG_ARGS_SIZE note to 32-bit push insns and call insn.
4528 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
4530         PR preprocessor/79210
4531         * input.c (get_substring_ranges_for_loc): Replace line_width
4532         assertion with error-handling.
4534 2017-01-31  Richard Biener  <rguenther@suse.de>
4536         PR tree-optimization/77318
4537         * graphite-sese-to-poly.c (extract_affine): Fix assert.
4538         (create_pw_aff_from_tree): Take loop parameter.
4539         (add_condition_to_pbb): Pass loop of the condition to
4540         create_pw_aff_from_tree.
4542 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
4544         * config/s390/s390.c (s390_asan_shadow_offset): New function.
4545         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
4547 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
4549         PR target/78597
4550         PR target/79038
4551         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
4552         no longer used.
4553         (convert_int_to_float128): Likewise.
4554         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
4555         (convert_int_to_float128): Likewise.
4556         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
4557         (UNSPEC_IEEE128_CONVERT): Likewise.
4558         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
4559         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
4560         Use local variables for IBM extended format.
4561         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
4562         (fix_trunc<mode>si2_fprs): Likewise.
4563         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4564         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
4565         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
4566         to know that we can now have integers of all sizes in vector
4567         registers.
4568         (fix<uns>_<mode>di2_hw): Likewise.
4569         (float<uns>_<mode>si2_hw): Likewise.
4570         (fix_<mode>si2_hw): Likewise.
4571         (fixuns_<mode>si2_hw): Likewise.
4572         (float<uns>_<mode>di2_hw): Likewise.
4573         (float_<mode>di2_hw): Likewise.
4574         (float_<mode>si2_hw): Likewise.
4575         (floatuns_<mode>di2_hw): Likewise.
4576         (floatuns_<mode>si2_hw): Likewise.
4577         (xscvqp<su>wz_<mode>): Delete, no longer used.
4578         (xscvqp<su>dz_<mode>): Likewise.
4579         (xscv<su>dqp_<mode>): Likewise.
4580         (ieee128_mfvsrd_64bit): Likewise.
4581         (ieee128_mfvsrd_32bit): Likewise.
4582         (ieee128_mfvsrwz): Likewise.
4583         (ieee128_mtvsrw): Likewise.
4584         (ieee128_mtvsrd_64bit): Likewise.
4585         (ieee128_mtvsrd_32bit): Likewise.
4587 2017-01-31  Martin Liska  <mliska@suse.cz>
4589         PR ipa/79285
4590         * ipa-prop.c (ipa_free_all_node_params): Call release method
4591         instead of ~sumbol_summary to not to trigger double times
4592         dtor of hash_map.
4594 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
4596         PR tree-optimization/71691
4597         * bitmap.h (class auto_bitmap): New.
4598         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
4599         is_maybe_undefined instead of ssa_undefined_value_p.
4601 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4603         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4604         __S390_ARCH_LEVEL__ to __ARCH__.
4606 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
4608         PR tree-optimization/79267
4609         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
4610         if should_remove_lhs_p is true.
4612 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
4614         PR debug/63238
4615         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
4616         (add_alignment_attribute): New.
4617         (base_type_die): Add alignment attribute.
4618         (subrange_type_die): Likewise.
4619         (modified_type_die): Likewise.
4620         (gen_array_type_die): Likewise.
4621         (gen_descr_array_type_die: Likewise.
4622         (gen_enumeration_type_die): Likewise.
4623         (gen_subprogram_die): Likewise.
4624         (gen_variable_die): Likewise.
4625         (gen_field_die): Likewise.
4626         (gen_ptr_to_mbr_type_die): Likewise.
4627         (gen_struct_or_union_type_die): Likewise.
4628         (gen_subroutine_type_die): Likewise.
4629         (gen_typedef_die): Likewise.
4630         (base_type_cmp): Compare alignment attribute.
4632 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4634         PR target/79170
4635         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
4636         (setb_unsigned) New pattern for setb with CCUNS.
4637         * config/rs6000/rs6000.c (expand_block_compare): Use a different
4638         subfc./subfe sequence to avoid overflow problems.  Generate a
4639         shorter sequence with cmpld/setb for power9.
4640         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
4641         for generating subfc. instruction.
4642         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
4643         now uses this instruction.
4645 2017-01-30  Ian Lance Taylor  <iant@google.com>
4647         PR debug/79289
4648         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
4649         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
4651 2017-01-30  Martin Sebor  <msebor@redhat.com>
4653         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
4654         Move constant to the right of a relational operator.
4655         (get_mpfr_format_length, format_character, format_string): Ditto.
4656         (should_warn_p, maybe_warn): Same.
4658         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
4660 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
4662         PR lto/79061
4663         * asan.c (get_translation_unit_decl): Remove function.
4664         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
4666 2017-01-30  Martin Liska  <mliska@suse.cz>
4668         PR gcov-profile/79259
4669         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
4670         -fprofile-generate.
4672 2017-01-30  Martin Liska  <mliska@suse.cz>
4674         PR bootstrap/78985
4675         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
4676         Initialize variables with NULL value.
4678 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
4680         PR target/79260
4681         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
4682         tm_p_file.
4683         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
4685 2017-01-30  Richard Biener  <rguenther@suse.de>
4687         PR tree-optimization/79276
4688         * tree-vrp.c (process_assert_insertions): Properly adjust common
4689         when removing a duplicate.
4691         * gcc.dg/torture/pr79276.c: New testcase.
4693 2017-01-30  Richard Biener  <rguenther@suse.de>
4695         PR tree-optimization/79256
4696         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4697         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4698         alignment on TYPE.
4699         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
4701 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4703         PR target/79240
4704         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
4705         ("*r<noxa>sbg_<mode>_sll_bitmask")
4706         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
4707         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
4708         Use contiguous_bitmask_nowrap_operand.
4710 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4712         PR target/79268
4713         * config/rs6000/altivec.h (vec_xl): Revise #define.
4714         (vec_xst): Likewise.
4716 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
4718         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
4720 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
4722         PR rtl-optimization/79194
4723         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
4724         traps before call to bypass_conditional_jumps.
4726 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
4728         PR tree-optimization/71374
4729         * lra-constraints.c (check_conflict_input_operands): New.
4730         (match_reload): Use it.
4732 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
4734         PR target/79131
4735         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
4736         account to calculate conflict_set.
4738 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
4740         PR rtl-optimization/78559
4741         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
4742         other_insn in combine.
4744 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
4746         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
4747         uint16_type_node for BT_UINT16.
4749 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
4751         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
4752         "RTL Tests" to menu.
4753         (GIMPLE Tests): New node.
4754         (RTL Tests): New node.
4756 2017-01-27  Richard Biener  <rguenther@suse.de>
4758         PR tree-optimization/79245
4759         * tree-loop-distribution.c (distribute_loop): Apply cost
4760         modeling also to detected patterns.
4762 2017-01-27  Richard Biener  <rguenther@suse.de>
4764         PR tree-optimization/71433
4765         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
4766         (compare_assert_loc): New function.
4767         (process_assert_insertions): Sort and optimize assert locations
4768         to remove duplicates and push down identical assertions on
4769         edges to their destination block.
4771 2017-01-27  Richard Biener  <rguenther@suse.de>
4773         PR tree-optimization/79244
4774         * tree-vrp.c (remove_range_assertions): Forcefully propagate
4775         out SSA names even if abnormal.
4777 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
4779         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
4780         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
4781         instead of MPFR_RNDN.
4783 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
4785         PR target/79239
4786         * arm.c (arm_option_override): Don't call build_target_option_node
4787         until after doing all option overrides.
4788         (arm_valid_target_attribute_tree): Likewise.
4790 2017-01-27  Martin Liska  <mliska@suse.cz>
4792         * doc/invoke.texi (-fprofile-arcs): Document profiling support
4793         for {cd}tors and C++ {cd}tors.
4795 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4797         * config/s390/s390.md ("*setmem_long_and")
4798         ("*setmem_long_and_31z"): Use zero_extend instead of and.
4800 2017-01-26  Martin Sebor  <msebor@redhat.com>
4802         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
4803         of precision.
4805 2017-01-26  Martin Sebor  <msebor@redhat.com>
4807         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
4808         HAVE_DFmode before using XFmode or DFmode.
4809         (parse_directive): Avoid using the z length modifier to avoid
4810         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
4812         PR middle-end/78703
4813         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
4814         to accept adjustment as an array.
4815         (get_int_range): New function.
4816         (struct directive): Make width and prec arrays.
4817         (directive::set_width, directive::set_precision): Call get_int_range.
4818         (format_integer, format_floating): Handle width and precision ranges.
4819         (format_string, parse_directive): Same.
4821 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4823         PR debug/79129
4824         * dwarf2out.c (generate_skeleton_bottom_up): For children with
4825         comdat_type_p set, just clone them, but keep the children in the
4826         original DIE.
4828         PR debug/78835
4829         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
4830         which have direct callers with -fvar-tracking-assignments enabled
4831         in the current TU.
4832         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
4833         inside of type units.
4835 2017-01-26  Martin Sebor  <msebor@redhat.com>
4837         PR middle-end/78703
4838         * gimple-ssa-sprintf.c (struct result_range): Add likely and
4839         unlikely counters.
4840         (struct format_result): Replace number_chars, number_chars_min,
4841         and number_chars_max with a single member of struct result_range.
4842         Remove bounded.
4843         (format_result::operator+=): Adjust.
4844         (struct fmtresult): Remove bounded.  Handle likely and unlikely
4845         counters.
4846         (fmtresult::adjust_for_width_or_precision): New function.
4847         (fmtresult:type_max_digits): New function.
4848         (bytes_remaining): Handle likely and unlikely counters.
4849         (min_bytes_remaining): Remove.
4850         (format_percent): Simplify.
4851         (format_integer, format_floating): Set likely and unlikely counters.
4852         (get_string_length, format_character, format_string): Same.
4853         (format_plain, should_warn_p): New function.
4854         (maybe_warn): Call should_warn_p.  Update diagnostic messages
4855         and handle those for all directives, including plain strings.
4856         (format_directive): Handle likely and unlikely counters.
4857         Remove unnecessary quoting from diagnostics.  Add an informational
4858         note.
4859         (add_bytes): Remove.
4860         (pass_sprintf_length::compute_format_length): Simplify.
4861         (try_substitute_return_value): Handle likely and unlikely counters.
4863 2017-01-26  Carl Love  <cel@us.ibm.com>
4865         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
4866         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
4868 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
4870         PR target/79131
4871         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
4872         endianess for subregs into account.
4873         * lra-constraints.c (lra_constraints): Do risky transformations
4874         always on the first iteration.
4875         * lra-lives.c (check_pseudos_live_through_calls): Add arg
4876         last_call_used_reg_set.
4877         (process_bb_lives): Define and use last_call_used_reg_set.
4878         * lra.c (lra): Always continue after lra_constraints on the first
4879         iteration.
4881 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
4883         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
4884         constant.
4885         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
4887 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4889         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
4890         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
4891         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
4892         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
4893         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
4894         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
4895         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
4896         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
4897         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
4899 2017-01-26  Marek Polacek  <polacek@redhat.com>
4901         PR c/79199
4902         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
4903         for the third operand.
4905 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4907         PR middle-end/79236
4908         * omp-low.c (struct omp_context): Add simt_stmt field.
4909         (scan_omp_for): Return omp_context *.
4910         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
4911         context to the _simt_ SIMD stmt.
4912         (lower_omp_for): For combined SIMD with sibling _simt_
4913         SIMD, make sure to use the same decls in _looptemp_
4914         clauses as in the sibling.
4916 2017-01-26  David Sherwood  <david.sherwood@arm.com>
4918         PR middle-end/79212
4919         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
4920         all contexts.
4922 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4924         PR target/70465
4925         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
4926         emit fld b; fld a; if possible.
4928         * brig-builtins.def: Update copyright years.
4929         * config/arm/arm_acle_builtins.def: Update copyright years.
4931 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
4933         PR target/79179
4934         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
4935         constraint instead of o for the stxsd instruction.
4937 2017-01-25  Carl Love  <cel@us.ibm.com>
4939         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
4940         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
4942 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
4944         * doc/invoke.texi (C++ Dialect Options): Fix typo.
4946 2017-01-25  Richard Biener  <rguenther@suse.de>
4948         PR tree-optimization/69264
4949         * target.def (vector_alignment_reachable): Improve documentation.
4950         * doc/tm.texi: Regenerate.
4951         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
4952         and add a comment.
4953         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
4954         earlier changes with respect to TYPE_USER_ALIGN.
4955         (vector_alignment_reachable_p): Likewise.  Improve dumping.
4957 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4959         PR target/79145
4960         * config/arm/arm.md (xordi3): Force constant operand into a register
4961         for TARGET_IWMMXT.
4963 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4965         * doc/invoke.texi (-fstore-merging): Correct default optimization
4966         levels at which it is enabled.
4967         (-O): Move -fstore-merging from list to...
4968         (-O2): ... Here.
4970 2017-01-25  Richard Biener  <rguenther@suse.de>
4972         PR debug/78363
4973         * omp-expand.c: Include debug.h.
4974         (expand_omp_taskreg): Make sure to generate early debug before
4975         outlining anything from a function.
4976         (expand_omp_target): Likewise.
4977         (grid_expand_target_grid_body): Likewise.
4979 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
4981         PR lto/79061
4982         * asan.c (get_translation_unit_decl): New function.
4983         (asan_add_global): Extract modules file name from globals
4984         TRANSLATION_UNIT_DECL name.
4986 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
4988         PR target/77439
4989         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
4990         for long calls with APCS frame and VFP.
4992 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
4994         * cfg.c (original_copy_tables_initialized_p): New function.
4995         * cfg.h (original_copy_tables_initialized_p): New decl.
4996         * cfgrtl.c (relink_block_chain): Guard the call to
4997         free_original_copy_tables with a call to
4998         original_copy_tables_initialized_p.
4999         * cgraph.h (symtab_node::native_rtl_p): New decl.
5000         * cgraphunit.c (symtab_node::native_rtl_p): New function.
5001         (symtab_node::needed_p): Don't assert for early assembly output
5002         for __RTL functions.
5003         (cgraph_node::finalize_function): Set "force_output" for __RTL
5004         functions.
5005         (cgraph_node::analyze): Bail out early for __RTL functions.
5006         (analyze_functions): Update assertion to support __RTL functions.
5007         (cgraph_node::expand): Bail out early for __RTL functions.
5008         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5009         __RTL functions.
5010         * function.h (struct function): Update comment for field
5011         "pass_startwith".
5012         * gimple-expr.c: Include "tree-pass.h".
5013         (gimple_has_body_p): Return false for __RTL functions.
5014         * Makefile.in (OBJS): Add run-rtl-passes.o.
5015         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5016         accessor.
5017         (gcc::pass_manager::get_clean_slate): New accessor.
5018         * passes.c: Include "insn-addr.h".
5019         (should_skip_pass_p): Add logging.  Update logic for running
5020         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
5021         property-provider override so it is only done for gimple passes.
5022         Don't skip dfinit.
5023         (skip_pass): New function.
5024         (execute_one_pass): Call skip_pass when skipping passes.
5025         * read-md.c (md_reader::read_char): Support filtering
5026         the input to a subset of line numbers.
5027         (md_reader::md_reader): Initialize fields
5028         m_first_line and m_last_line.
5029         (md_reader::read_file_fragment): New function.
5030         * read-md.h (md_reader::read_file_fragment): New decl.
5031         (md_reader::m_first_line): New field.
5032         (md_reader::m_last_line): New field.
5033         * read-rtl-function.c (function_reader::create_function): Only
5034         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
5035         curr_properties.  Set DECL_INITIAL to a dummy block.
5036         (read_rtl_function_body_from_file_range): New function.
5037         * read-rtl-function.h (read_rtl_function_body_from_file_range):
5038         New decl.
5039         * run-rtl-passes.c: New file.
5040         * run-rtl-passes.h: New file.
5042 2017-01-24 Jeff Law  <law@redhat.com>
5044         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5045         buffer size.
5047 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
5049         PR tree-optimization/79159
5050         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5051         (record_nonwrapping_iv): Improve boundary using above function if no
5052         value range information.
5054 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
5055             Martin Jambor  <mjambor@suse.cz>
5057         * brig-builtins.def: New file.
5058         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5059         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5060         (DEF_HSAIL_SAT_BUILTIN): Likewise.
5061         (DEF_HSAIL_INTR_BUILTIN): Likewise.
5062         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5063         * builtin-types.def (BT_INT8): New.
5064         (BT_INT16): Likewise.
5065         (BT_UINT8): Likewise.
5066         (BT_UINT16): Likewise.
5067         (BT_FN_ULONG): Likewise.
5068         (BT_FN_UINT_INT): Likewise.
5069         (BT_FN_UINT_ULONG): Likewise.
5070         (BT_FN_UINT_LONG): Likewise.
5071         (BT_FN_UINT_PTR): Likewise.
5072         (BT_FN_ULONG_PTR): Likewise.
5073         (BT_FN_INT8_FLOAT): Likewise.
5074         (BT_FN_INT16_FLOAT): Likewise.
5075         (BT_FN_UINT32_FLOAT): Likewise.
5076         (BT_FN_UINT16_FLOAT): Likewise.
5077         (BT_FN_UINT8_FLOAT): Likewise.
5078         (BT_FN_UINT64_FLOAT): Likewise.
5079         (BT_FN_UINT16_UINT32): Likewise.
5080         (BT_FN_UINT32_UINT16): Likewise.
5081         (BT_FN_UINT16_UINT16_UINT16): Likewise.
5082         (BT_FN_INT_PTR_INT): Likewise.
5083         (BT_FN_UINT_PTR_UINT): Likewise.
5084         (BT_FN_LONG_PTR_LONG): Likewise.
5085         (BT_FN_ULONG_PTR_ULONG): Likewise.
5086         (BT_FN_VOID_UINT64_UINT64): Likewise.
5087         (BT_FN_UINT8_UINT8_UINT8): Likewise.
5088         (BT_FN_INT8_INT8_INT8): Likewise.
5089         (BT_FN_INT16_INT16_INT16): Likewise.
5090         (BT_FN_INT_INT_INT): Likewise.
5091         (BT_FN_UINT_FLOAT_UINT): Likewise.
5092         (BT_FN_FLOAT_UINT_UINT): Likewise.
5093         (BT_FN_ULONG_UINT_UINT): Likewise.
5094         (BT_FN_ULONG_UINT_PTR): Likewise.
5095         (BT_FN_ULONG_ULONG_ULONG): Likewise.
5096         (BT_FN_UINT_UINT_UINT): Likewise.
5097         (BT_FN_VOID_UINT_PTR): Likewise.
5098         (BT_FN_UINT_UINT_PTR: Likewise.
5099         (BT_FN_UINT32_UINT64_PTR): Likewise.
5100         (BT_FN_INT_INT_UINT_UINT): Likewise.
5101         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5102         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5103         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5104         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5105         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5106         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5107         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5108         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5109         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5110         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5111         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5112         * doc/frontends.texi: List BRIG FE.
5113         * doc/install.texi (Testing): Add BRIG tesring requirements.
5114         * doc/invoke.texi (Overall Options): Mention BRIG.
5115         * doc/standards.texi (Standards): Doucment BRIG HSA version.
5117 2017-01-24  Richard Biener  <rguenther@suse.de>
5119         PR translation/79208
5120         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5122 2017-01-24  Martin Jambor  <mjambor@suse.cz>
5124         PR bootstrap/79198
5125         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5126         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5127         and known_contexts.
5129 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
5131         PR middle-end/79123
5132         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5133         casts from signed to unsigned really don't have a range.
5135 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
5137         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5138         GMP_RNDx for compatiblity.
5140 2017-01-24  Martin Liska  <mliska@suse.cz>
5142         PR bootstrap/79132
5143         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5144         that would prevent us to call alloca with -1 as argument.
5146 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
5148         * dwarf2out.c (output_compilation_unit_header, output_file_names):
5149         Avoid -Wformat-security warning.
5151 2017-01-23  Andrew Pinski  <apinski@cavium.com>
5153         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5154         cost table.
5156 2017-01-23  Martin Sebor  <msebor@redhat.com>
5158         PR middle-end/78703
5159         * gimple-ssa-sprintf.c (warn_level): New global.
5160         (format_integer): Use it here and throughout the rest of the file.
5161         Use the same switch to compute sign as base.
5162         (maybe_warn): New function.
5163         (format_directive): Factor out warnings into maybe_warn.
5164         Add debugging output.  Use warn_level.
5165         (add_bytes): Use warn_level.
5166         (pass_sprintf_length::compute_format_length): Add debugging output.
5167         (try_substitute_return_value): Same.
5168         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5170         PR middle-end/78703
5171         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5172         (struct fmtresult, format_integer, format_floating): Adjust.
5173         (fmtresult::fmtresult): Set max correctly in two argument ctor.
5174         (get_string_length, format_string,format_directive): Same.
5175         (pass_sprintf_length::compute_format_length): Same.
5176         (try_substitute_return_value): Simplify slightly.
5178         PR middle-end/78703
5179         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5180         (fmtresult::operator+=): Outlined.
5181         (struct fmtresult): Add ctors.
5182         (struct conversion_spec): Rename...
5183         (struct directive): ...to this.  Add and remove data members.
5184         (directive::set_width, directive::set_precision): New functions.
5185         (format_percent): Use fmtresult ctor.
5186         (get_width_and_precision): Remove.
5187         (format_integer): Make naming changes.  Avoid computing width and
5188         precision.
5189         (format_floating): Same.  Adjust indentation.
5190         (format_character, format_none): New functions.
5191         (format_string): Moved character handling to format_character.
5192         (format_directive): Remove arguments, change return type.
5193         (parse_directive): New function.
5194         (pass_sprintf_length::compute_format_length): Move directive
5195         parsing to parse_directive.
5197 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
5199         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5200         (assign_assembler_name_if_needed): ... this.
5201         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5202         (assign_assembler_name_if_needed): ... this.
5203         (free_lang_data_in_cgraph): Adjust callers.
5204         * cgraphunit.c (cgraph_node::analyze): Likewise.
5205         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5206         Likewise.
5208 2017-01-23  Richard Biener  <rguenther@suse.de>
5210         PR tree-optimization/79088
5211         PR tree-optimization/79188
5212         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5213         resetting loop bounds after last path deletion.  Reset loop
5214         bounds of the target loop, make code match the comments.
5215         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5216         Make sure loops need no fixups.
5218 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5220         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5221         exponent support with double type for first argument.
5222         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5223         type returned by __builtin_vec_extract_sig,
5224         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5225         functions from "vector int" to "vector unsigned int" or from
5226         "vector long long int" to "vector unsigned long long int".
5227         Changed type returned by __builtin_vec_extract_exp,
5228         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5229         functions from "vector int" to "vector unsigned int" or from
5230         "vector long long int" to "vector unsigned long long int".
5231         Changed return type of __builtin_vec_test_data_class,
5232         __builtin_vec_test_data_class_sp, and
5233         __builtin_vec_test_data_class_dp from "vector int" to
5234         "vector bool int" or from "vector long long int" to "vector bool
5235         long long int" and changed second argument type from "unsigned
5236         int" to "int".  Added new overloaded function forms "vector float
5237         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5238         "vector float __builtin_vec_insert_exp_sp (vector float, vector
5239         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5240         double, vector unsigned long long int)" and "vector double
5241         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5242         long int)".  Changed return type of
5243         __builtin_scalar_test_data_class and
5244         __builtin_scalar_test_data_class_sp and
5245         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5246         int" and changed second argument from "unsigned int" to "int".
5247         Changed type returned by __builtin_scalar_test_neg,
5248         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5249         from "int" to "bool int".  Added new overloaded function form
5250         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5251         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5252         exponent double-precision with floating point first argument.
5253         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5254         documentation of scalar_test_data_class, scalar_test_neg,
5255         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5256         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5257         vec_test_data_class built-in functions to reflect refinements in
5258         their type signatures.
5260 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
5262         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5263         size of buf.
5264         (aarch64_elf_asm_destructor): Likewise.
5266 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
5268         PR rtl-optimization/78634
5269         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5270         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5271         * ifcvt.c (noce_try_cmove): Add missing cost check.
5273         PR rtl-optimization/71724
5274         * combine.c (if_then_else_cond): Look for situations where it is
5275         beneficial to undo the work of one of the recursive calls.
5277 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
5279         PR tree-optimization/70754
5280         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5281         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
5282         combined stmt before it if not NULL.
5283         (combine_chains): Process refs reversely and compute dominance point
5284         for root ref.
5286 2017-01-23  Martin Liska  <mliska@suse.cz>
5288         PR tree-optimization/79196
5289         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5290         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
5291         instead of memcmp.
5292         (strlen_optimize_stmt): Call the renamed function.
5294 2017-01-23  Michael Matz  <matz@suse.de>
5296         PR tree-optimization/78384
5297         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5299 2017-01-23  Richard Biener  <rguenther@suse.de>
5301         PR tree-optimization/79186
5302         * tree-vrp.c (register_new_assert_for): Make sure we've seen
5303         both incoming edges before moving an assert.
5305 2017-01-23  Martin Jambor  <mjambor@suse.cz>
5307         * ipa-prop.c (load_from_param_1): Removed.
5308         (load_from_unmodified_param): Bits from load_from_param_1 put back
5309         here.
5310         (load_from_param): Removed.
5311         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5312         with stmt.  Reverted back to use of load_from_unmodified_param.
5314 2017-01-23  Martin Jambor  <mjambor@suse.cz>
5316         PR ipa/79108
5317         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5318         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
5319         field a pointer to garbage collected vector, mark lattices and
5320         ipcp_orig_node with GTY((skip)).
5321         (ipa_get_param_count): Adjust to descriptors being a pointer.
5322         (ipa_get_param): Likewise.
5323         (ipa_get_type): Likewise.
5324         (ipa_get_param_move_cost): Likewise.
5325         (ipa_set_param_used): Likewise.
5326         (ipa_get_controlled_uses): Likewise.
5327         (ipa_set_controlled_uses): Likewise.
5328         (ipa_is_param_used): Likewise.
5329         (ipa_node_params_t): Move into garbage collector.  New methods insert
5330         and remove.
5331         (ipa_node_params_sum): Annotate wth GTY(()).
5332         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5333         garbage collected.
5334         (ipa_load_from_parm_agg): Adjust declaration.
5335         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5336         * ipa-profile.c (ipa_profile): Likewise.
5337         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5338         (ipa_populate_param_decls): Make descriptors parameter garbage
5339         collected.
5340         (ipa_dump_param): Adjust to descriptors being a pointer.
5341         (ipa_alloc_node_params): Likewise.
5342         (ipa_initialize_node_params): Likewise.
5343         (load_from_param_1): Make descriptors parameter garbage collected.
5344         (load_from_unmodified_param): Likewise.
5345         (load_from_param): Likewise.
5346         (ipa_load_from_parm_agg): Likewise.
5347         (ipa_node_params::~ipa_node_params): Removed.
5348         (ipa_free_all_node_params): Remove call to delete operator.
5349         (ipa_node_params_t::insert): New.
5350         (ipa_node_params_t::remove): Likewise.
5351         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5352         copy known_csts and known_contexts vectors.
5353         (ipa_read_node_info): Adjust to descriptors being a pointer.
5354         (ipcp_modif_dom_walker): Make m_descriptors field garbage
5355         collected.
5356         (ipcp_transform_function): Make descriptors variable garbage
5357         collected.
5359 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
5361         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5362         * config/i386/avx512dqintrin.h: Ditto.
5363         * config/i386/avx512fintrin.h: Ditto.
5364         * gcc/config/i386/i386.c: Handle new builtins.
5365         * config/i386/i386-builtin.def: Add new builtins.
5366         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5367         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5369 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
5370             Martin Liska  <mliska@suse.cz>
5372         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5373         * asan.c (asan_expand_poison_ifn): Support stores and use
5374         appropriate ASAN report function.
5375         * internal-fn.c (expand_ASAN_POISON_USE): New function.
5376         * internal-fn.def (ASAN_POISON_USE): Declare.
5377         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5378         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5379         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5380         ASAN_POISON calls w/o LHS.
5381         * tree-ssa.c (execute_update_addresses_taken): Create clobber
5382         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5383         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5384         * gimplify.c (asan_poison_variables): Add attribute
5385         use_after_scope_memory to variables that really needs to live
5386         in memory.
5387         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5388         having the attribute.
5390 2017-01-23  Martin Liska  <mliska@suse.cz>
5392         * asan.c (create_asan_shadow_var): New function.
5393         (asan_expand_poison_ifn): Likewise.
5394         * asan.h (asan_expand_poison_ifn): New declaration.
5395         * internal-fn.c (expand_ASAN_POISON): Likewise.
5396         * internal-fn.def (ASAN_POISON): New builtin.
5397         * sanopt.c (pass_sanopt::execute): Expand
5398         asan_expand_poison_ifn.
5399         * tree-inline.c (copy_decl_for_dup_finish): Make function
5400         external.
5401         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5402         * tree-ssa.c (is_asan_mark_p): New function.
5403         (execute_update_addresses_taken): Rewrite local variables
5404         (identified just by use-after-scope as addressable) into SSA.
5406 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
5408         * doc/install.texi (Specific): opensource.apple.com uses https
5409         now. Remove trailing slash.
5411 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
5413         * README.Portability: Remove note on an Irix compatibility issue.
5415 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
5417         * gcov.c (INCLUDE_ALGORITHM): Define.
5418         (INCLUDE_VECTOR): Define.
5419         No longer include <vector> and <algorithm> directly.
5421 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
5423         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5424         to https.
5425         * doc/invoke.texi (Code Gen Options): Ditto.
5427 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
5429         PR lto/78407
5430         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5432 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
5434         rtl-optimization/79125
5435         * cprop.c (local_cprop_pass): Handle cases where we make an
5436         unconditional trap.
5438 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
5440         PR target/61729
5441         PR target/77850
5442         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5443         read from, for big endian.
5445 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
5447         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5448         register pauth builtins for LP64 only.
5450 2017-01-20  Marek Polacek  <polacek@redhat.com>
5452         PR c/79152
5453         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5454         non-case labels.
5456 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
5458         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5459         of safelen status.
5460         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5461         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5462         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5464 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5466         PR target/71270
5467         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5468         in big-endian mode when they are not a single duplicated value.
5470 2017-01-20  Richard Biener  <rguenther@suse.de>
5472         * BASE-VER: Bump to 7.0.1.
5474 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
5476         * omp-low.c (omplow_simd_context): New struct.  Use it...
5477         (lower_rec_simd_input_clauses): ...here and...
5478         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
5479         references to idx, lane, max_vf, is_simt.
5481 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
5483         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5484         mcpu=nps400.
5486 2017-01-20  Martin Jambor  <mjambor@suse.cz>
5488         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
5489         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
5490         gt-hsa-common.h.
5491         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5492         (GTFILES): Rename hsa.c to hsa-common.c.
5493         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5494         * hsa-dump.c: Likewise.
5495         * hsa-gen.c: Likewise.
5496         * hsa-regalloc.c: Likewise.
5497         * ipa-hsa.c: Likewise.
5498         * omp-expand.c: Likewise.
5499         * omp-low.c: Likewise.
5500         * toplev.c: Likewise.
5502 2017-01-20  Marek Polacek  <polacek@redhat.com>
5504         PR c/64279
5505         * doc/invoke.texi: Document -Wduplicated-branches.
5506         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
5507         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
5508         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
5509         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
5510         return 0 only when not OEP_LEXICOGRAPHIC.
5511         (fold_build_cleanup_point_expr): Use the expression
5512         location when building CLEANUP_POINT_EXPR.
5513         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
5514         * tree.c (add_expr): Handle error_mark_node.
5516 2017-01-20  Martin Liska  <mliska@suse.cz>
5518         PR lto/69188
5519         * tree-profile.c (init_ic_make_global_vars): Do not call
5520         finalize_decl.
5521         (gimple_init_gcov_profiler): Likewise.
5523 2017-01-20  Martin Liska  <mliska@suse.cz>
5525         PR ipa/71190
5526         * cgraph.h (maybe_create_reference): Remove argument and
5527         update comment.
5528         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
5529         argument.
5530         * ipa-cp.c (create_specialized_node): Likewise.
5531         * symtab.c (symtab_node::maybe_create_reference): Handle
5532         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
5534 2017-01-20  Martin Liska  <mliska@suse.cz>
5536         * read-rtl-function.c (function_reader::create_function): Use
5537         build_decl instread of build_decl_stat.
5539 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
5541         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
5542         * config/i386/avx512dqintrin.h: Ditto.
5543         * config/i386/avx512fintrin.h: Ditto.
5544         * config/i386/i386-builtin-types.def: Add new types.
5545         * gcc/config/i386/i386.c: Handle new types.
5546         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
5547         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
5548         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
5549         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
5550         (__builtin_ia32_kshiftridi): New.
5551         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
5553 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
5555         PR target/78875
5556         PR target/79140
5557         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
5558         define to rs6000_init_stack_protect_guard.
5559         (rs6000_init_stack_protect_guard): New function.
5561 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
5562             Yunqiang Su  <yunqiang.su@imgtec.com>
5564         * config.gcc (supported_defaults): Add madd4.
5565         (with_madd4): Add validation.
5566         (all_defaults): Add madd4.
5567         * config/mips/mips.opt (mmadd4): New option.
5568         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5569         mmadd4.
5570         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5571         __mips_no_madd4.
5572         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
5573         (ISA_HAS_FUSED_MADD4): Likewise.
5574         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
5575         * gcc/doc/install.texi (--with-madd4): Document the new option.
5577 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5579         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
5580         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
5581         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
5582         (aarch64_init_pauth_hint_builtins): New.
5583         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
5584         (aarch64_expand_builtin): Expand new builtins.
5586 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5588         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
5589         * combine-stack-adj.c (no_unhandled_cfa): Handle
5590         REG_CFA_TOGGLE_RA_MANGLE.
5591         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
5592         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
5593         info for return address signing.
5594         (aarch64_expand_epilogue): Likewise.
5596 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5598         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
5599         * config/aarch64/aarch64-protos.h
5600         (aarch64_return_address_signing_enabled): New declaration.
5601         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
5602         New function.
5603         (aarch64_expand_prologue): Sign return address before it's pushed onto
5604         stack.
5605         (aarch64_expand_epilogue): Authenticate return address fetched from
5606         stack.
5607         (aarch64_override_options): Sanity check for ILP32 and ISA level.
5608         (aarch64_attributes): New function attributes for "sign-return-address".
5609         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
5610         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
5611         ("*do_return"): Generate combined instructions according to key index.
5612         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
5613         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
5614         iterators.
5615         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
5616         * config/aarch64/aarch64.opt (msign-return-address=): New.
5617         * doc/extend.texi (AArch64 Function Attributes): Documents
5618         "sign-return-address=".
5619         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
5621 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
5623         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
5624         overall option summary.
5626 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5628         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
5629         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
5630         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
5631         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
5633 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
5635         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
5636         -mpower9-minmax by default for -mcpu=power9.
5637         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
5638         128-bit floating point.
5640 2017-01-20  Alan Modra  <amodra@gmail.com>
5642         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
5643         optimizing for size.
5645 2017-01-20  Alan Modra  <amodra@gmail.com>
5647         PR target/79144
5648         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
5649         for strcmp and strncmp from corresponding builtin decl.
5651 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
5653         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
5654         instead of i386/rtems-64.h.
5655         * config/i386/rtems-64.h: Remove.
5657 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
5659         PR target/78478
5660         Revert:
5661         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5663         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
5665 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
5667         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
5668         Change int to HOST_WIDE_INT.
5669         * config/aarch64/aarch64-protos.h
5670         (aarch64_simd_gen_const_vector_dup): Likewise.
5671         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
5673 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
5675         * langhooks-def.h (lhd_type_for_size): New decl.
5676         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
5677         * langhooks.c (lhd_type_for_size): New function, taken from
5678         lto_type_for_size.
5680 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
5682         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
5683         define_bypass for CR latency.
5684         (power9-cracked-alu): Update bypass latency and remove power9-branch.
5685         (power9-alu2): Add define_bypass for CR latency.
5686         (power9-cmp): New.
5687         (power9-mul): Update insn latency.
5688         (power9-mul-compare): Update insn latency, bypass latency and remove
5689         power9-branch.
5691 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5693         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5694         Delete.
5695         * config/aarch64/aarch64.md
5696         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
5697         aarch64_nopcrelative_literal_loads.
5698         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5700 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
5702         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
5703         TARGET_LOONGSON_3A.
5704         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
5706 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
5708         PR target/78176
5709         * config.gcc (supported_defaults): Add lxc1-sxc1.
5710         (with_lxc1_sxc1): Add validation.
5711         (all_defaults): Add lxc1-sxc1.
5712         * config/mips/mips.opt (mlxc1-sxc1): New option.
5713         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5714         mlxc1-sxc1.
5715         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5716         __mips_no_lxc1_sxc1.
5717         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
5718         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
5719         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
5721 2017-01-19  Richard Biener  <rguenther@suse.de>
5723         PR tree-optimization/72488
5724         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
5725         sure to restore SSA info.
5726         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
5728 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
5730         PR rtl-optimization/79121
5731         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
5732         of the inner type when shifting an extended value.
5734 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
5736         PR lto/78407
5737         * symtab.c (symtab_node::equal_address_to): Fix comparing of
5738         interposable aliases.
5740 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
5742         PR target/78516
5743         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
5744         Use the evmergelohi instruction.
5745         (mov_si<mode>_e500_subreg4_2_le): Likewise.
5746         (mov_sitf_e500_subreg8_2_be): Likewise.
5747         (mov_sitf_e500_subreg12_2_le): Likewise.
5748         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
5749         (mov_si<mode>_e500_subreg4_2_be): Likewise.
5750         (mov_sitf_e500_subreg8_2_le): Likewise.
5751         (mov_sitf_e500_subreg12_2_be): Likewise.
5753 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5755         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
5756         attribute from vecsimple to vecperm.
5757         (altivec_vbpermq2): Likewise.
5759 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5761         PR target/79040
5762         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
5764 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5765         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
5766         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
5767         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
5768         case where N arg is SIZE_MAX.
5769         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
5770         (cmpstrsi): Add pattern.
5772 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5774         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5775         __builtin_vec_revb builtins.
5776         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
5777         built-in functions to support generation of the ISA 3.0 XXBR<x>
5778         vector byte reverse instructions.
5779         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
5780         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
5781         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
5782         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
5783         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
5784         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
5785         (P9V_BUILTIN_VEC_REVB): Likewise.
5786         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
5787         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
5788         (p9_xxbrq_v16qi): Likewise.
5789         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
5790         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
5791         (p9_xxbrh_v8hi): Likewise.
5792         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
5793         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
5794         vec_revb built-in functions.
5796 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
5798         PR rtl-optimization/78952
5799         * config/i386/i386.md (any_extract): New code iterator.
5800         (*insvqi_2): Use any_extract for source operand.
5801         (*insvqi_3): Use any_shiftrt for source operand.
5803 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
5805         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
5806         New function.
5807         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
5809 2017-01-18  Matthias Klose  <doko@ubuntu.com>
5811         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
5813 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5815         * config/rs6000/altivec.h (vec_bperm): Change #define.
5816         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
5817         (altivec_vbpermq2): New define_insn.
5818         (altivec_vbpermd): Likewise.
5819         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
5820         function interface.
5821         (VBPERMD): Likewise.
5822         (VBPERM): New polymorphic function interface.
5823         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
5824         Add entries for P9V_BUILTIN_VEC_VBPERM.
5825         * doc/extend.texi: Add interfaces for vec_bperm.
5827 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5829         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
5830         first letter of error messages.
5831         (s390_resolve_overloaded_builtin): Likewise.
5832         * config/s390/s390.c (s390_expand_builtin): Likewise.
5833         (s390_invalid_arg_for_unprototyped_fn): Likewise.
5834         (s390_valid_target_attribute_inner_p): Likewise.
5835         * config/s390/s390.md ("tabort"): Likewise.
5837 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
5839         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
5840         (ISA_AVOID_DIV_HILO): New macro.
5841         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
5842         (ISA_HAS_DDIV): Likewise.
5844 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5846         * doc/invoke.texi (fabi-version): Correct number of occurrences.
5848 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5850         * doc/invoke.texi (fabi-version): Spelling fix.
5852 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5854         PR c++/70182
5855         * doc/invoke.texi (fabi-version): Mention mangling fix for
5856         operator names.
5858 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
5860         PR c++/77489
5861         * doc/invoke.texi (fabi-version): Document discriminator mangling.
5863 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
5865         PR target/78875
5866         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
5867         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
5868         the new options.
5869         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
5870         flexible settings.
5871         (stack_protect_test): Ditto.
5872         * config/rs6000/rs6000.opt (mstack-protector-guard=,
5873         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
5874         options.
5875         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
5876         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
5877         -mstack-protector-guard-offset=.
5878         (RS/6000 and PowerPC Options): Ditto.
5880 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
5882         * config/i386/i386.h (MASK_CLASS_P): New define.
5883         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
5884         there are no registers from different register sets also when
5885         mask registers are used.  Update function comment.
5886         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
5887         to (*k/*r) and (*k/*km) alternatives.
5889 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
5891         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
5892         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
5893         (EH_RETURN_HANDLER_RTX): New define.
5894         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
5895         Force frame pointer in EH return functions.
5896         (aarch64_expand_epilogue): Add barrier for eh_return.
5897         (aarch64_final_eh_return_addr): Remove.
5898         (aarch64_eh_return_handler_rtx): New function.
5899         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
5900         Remove.
5901         (aarch64_eh_return_handler_rtx): New prototype.
5903 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5905         * config/rs6000/altivec.h (vec_rlmi): New #define.
5906         (vec_vrlnm): Likewise.
5907         (vec_rlnm): Likewise.
5908         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
5909         (UNSPEC_VRLNM): Likewise.
5910         (VIlong): New mode iterator.
5911         (altivec_vrl<VI_char>mi): New define_insn.
5912         (altivec_vrl<VI_char>nm): Likewise.
5913         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
5914         function entry.
5915         (VRLDNM): Likewise.
5916         (RLNM): New polymorphic function entry.
5917         (VRLWMI): New monomorphic function entry.
5918         (VRLDMI): Likewise.
5919         (RLMI): New polymorphic function entry.
5920         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
5921         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
5922         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
5923         vec_vrlnm.
5925 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
5927         PR debug/78839
5928         * dwarf2out.c (field_byte_offset): Restore the
5929         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
5930         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
5931         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
5932         of build2 + fold.
5934 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
5936         PR ada/67205
5937         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
5939 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
5941         PR debug/71669
5942         * dwarf2out.c (add_data_member_location_attribute): For constant
5943         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
5944         instead of DW_AT_data_member_location, DW_AT_bit_offset and
5945         DW_AT_byte_size attributes.
5947 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
5949         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
5950         after forcing to constant memory when the code model is medium.
5952 2017-01-17  Julia Koval  <julia.koval@intel.com>
5954         PR target/76731
5955         * config/i386/avx512fintrin.h
5956         (_mm512_i32gather_ps): Change __addr type to void const*.
5957         (_mm512_mask_i32gather_ps): Ditto.
5958         (_mm512_i32gather_pd): Ditto.
5959         (_mm512_mask_i32gather_pd): Ditto.
5960         (_mm512_i64gather_ps): Ditto.
5961         (_mm512_mask_i64gather_ps): Ditto.
5962         (_mm512_i64gather_pd): Ditto.
5963         (_mm512_mask_i64gather_pd): Ditto.
5964         (_mm512_i32gather_epi32): Ditto.
5965         (_mm512_mask_i32gather_epi32): Ditto.
5966         (_mm512_i32gather_epi64): Ditto.
5967         (_mm512_mask_i32gather_epi64): Ditto.
5968         (_mm512_i64gather_epi32): Ditto.
5969         (_mm512_mask_i64gather_epi32): Ditto.
5970         (_mm512_i64gather_epi64): Ditto.
5971         (_mm512_mask_i64gather_epi64): Ditto.
5972         (_mm512_i32scatter_ps): Change __addr type to void*.
5973         (_mm512_mask_i32scatter_ps): Ditto.
5974         (_mm512_i32scatter_pd): Ditto.
5975         (_mm512_mask_i32scatter_pd): Ditto.
5976         (_mm512_i64scatter_ps): Ditto.
5977         (_mm512_mask_i64scatter_ps): Ditto.
5978         (_mm512_i64scatter_pd): Ditto.
5979         (_mm512_mask_i64scatter_pd): Ditto.
5980         (_mm512_i32scatter_epi32): Ditto.
5981         (_mm512_mask_i32scatter_epi32): Ditto.
5982         (_mm512_i32scatter_epi64): Ditto.
5983         (_mm512_mask_i32scatter_epi64): Ditto.
5984         (_mm512_i64scatter_epi32): Ditto.
5985         (_mm512_mask_i64scatter_epi32): Ditto.
5986         (_mm512_i64scatter_epi64): Ditto.
5987         (_mm512_mask_i64scatter_epi64): Ditto.
5988         * config/i386/avx512pfintrin.h
5989         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
5990         (_mm512_mask_prefetch_i32gather_ps): Ditto.
5991         (_mm512_mask_prefetch_i64gather_pd): Ditto.
5992         (_mm512_mask_prefetch_i64gather_ps): Ditto.
5993         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
5994         (_mm512_prefetch_i32scatter_ps): Ditto.
5995         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
5996         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
5997         (_mm512_prefetch_i64scatter_pd): Ditto.
5998         (_mm512_prefetch_i64scatter_ps): Ditto.
5999         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6000         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6001         * config/i386/avx512vlintrin.h
6002         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6003         (_mm_mmask_i32gather_ps): Ditto.
6004         (_mm256_mmask_i32gather_pd): Ditto.
6005         (_mm_mmask_i32gather_pd): Ditto.
6006         (_mm256_mmask_i64gather_ps): Ditto.
6007         (_mm_mmask_i64gather_ps): Ditto.
6008         (_mm256_mmask_i64gather_pd): Ditto.
6009         (_mm_mmask_i64gather_pd): Ditto.
6010         (_mm256_mmask_i32gather_epi32): Ditto.
6011         (_mm_mmask_i32gather_epi32): Ditto.
6012         (_mm256_mmask_i32gather_epi64): Ditto.
6013         (_mm_mmask_i32gather_epi64): Ditto.
6014         (_mm256_mmask_i64gather_epi32): Ditto.
6015         (_mm_mmask_i64gather_epi32): Ditto.
6016         (_mm256_mmask_i64gather_epi64): Ditto.
6017         (_mm_mmask_i64gather_epi64): Ditto.
6018         (_mm256_i32scatter_ps): Change __addr type to void*.
6019         (_mm256_mask_i32scatter_ps): Ditto.
6020         (_mm_i32scatter_ps): Ditto.
6021         (_mm_mask_i32scatter_ps): Ditto.
6022         (_mm256_i32scatter_pd): Ditto.
6023         (_mm256_mask_i32scatter_pd): Ditto.
6024         (_mm_i32scatter_pd): Ditto.
6025         (_mm_mask_i32scatter_pd): Ditto.
6026         (_mm256_i64scatter_ps): Ditto.
6027         (_mm256_mask_i64scatter_ps): Ditto.
6028         (_mm_i64scatter_ps): Ditto.
6029         (_mm_mask_i64scatter_ps): Ditto.
6030         (_mm256_i64scatter_pd): Ditto.
6031         (_mm256_mask_i64scatter_pd): Ditto.
6032         (_mm_i64scatter_pd): Ditto.
6033         (_mm_mask_i64scatter_pd): Ditto.
6034         (_mm256_i32scatter_epi32): Ditto.
6035         (_mm256_mask_i32scatter_epi32): Ditto.
6036         (_mm_i32scatter_epi32): Ditto.
6037         (_mm_mask_i32scatter_epi32): Ditto.
6038         (_mm256_i32scatter_epi64): Ditto.
6039         (_mm256_mask_i32scatter_epi64): Ditto.
6040         (_mm_i32scatter_epi64): Ditto.
6041         (_mm_mask_i32scatter_epi64): Ditto.
6042         (_mm256_i64scatter_epi32): Ditto.
6043         (_mm256_mask_i64scatter_epi32): Ditto.
6044         (_mm_i64scatter_epi32): Ditto.
6045         (_mm_mask_i64scatter_epi32): Ditto.
6046         (_mm256_i64scatter_epi64): Ditto.
6047         (_mm256_mask_i64scatter_epi64): Ditto.
6048         (_mm_i64scatter_epi64): Ditto.
6049         (_mm_mask_i64scatter_epi64): Ditto.
6050         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6051         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6052         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6053         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6054         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6055         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6056         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6057         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6058         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6059         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6060         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6061         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6062         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6063         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6064         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6065         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6066         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6067         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6068         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6069         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6070         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6071         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6072         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6073         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6074         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6075         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6076         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6077         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
6078         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6079         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6080         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6081         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6082         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6083         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6084         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6085         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6086         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6087         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6088         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6089         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6090         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6091         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6092         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6093         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6094         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6095         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6096         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6097         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6098         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6099         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6100         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6101         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6102         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6103         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6104         definitions accordingly.
6106 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
6107             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
6109         PR target/79079
6110         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6111         gen_lowpart.
6113 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
6115         PR target/79058
6116         * ira-conflicts.c (ira_build_conflicts): Update total conflict
6117         hard regs for inner regno.
6119 2017-01-17  Martin Liska  <mliska@suse.cz>
6121         PR ipa/71207
6122         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6123         assumption and add comment.
6125 2017-01-17  Nathan Sidwell  <nathan@acm.org>
6127         * ipa-visibility.c (localize_node): New function, broken out of ...
6128         (function_and_variable_visibility): ... here. Call it.
6130 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
6132         PR middle-end/77445
6133         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6134         correctly set frequency of oudgoing edge.
6135         (duplicate_thread_path): Fix profile updating.
6137 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6139         PR other/79046
6140         * configure.ac: Add GCC_BASE_VER.
6141         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6142         version from BASE-VER file.
6143         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6144         (gcc.o): Depend on $(BASEVER).
6145         * common.opt (dumpfullversion): New option.
6146         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6147         * doc/invoke.texi: Document -dumpfullversion.
6148         * doc/install.texi: Document --with-gcc-major-version-only.
6149         * configure: Regenerated.
6151 2017-01-17  Richard Biener  <rguenther@suse.de>
6153         PR tree-optimization/71433
6154         * tree-vrp.c (register_new_assert_for): Merge same asserts
6155         on all incoming edges.
6156         (process_assert_insertions_for): Handle insertions at the
6157         beginning of BBs.
6159 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
6161         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6162         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6164 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6166         PR target/78633
6167         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6168         RTL sharing.
6170 2017-01-17  Alan Modra  <amodra@gmail.com>
6172         PR target/79066
6173         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6174         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6175         symbolic stack limit when pic.
6177 2017-01-16  Martin Sebor  <msebor@redhat.com>
6179         PR tree-optimization/78608
6180         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6182 2017-01-16  Jeff Law  <law@redhat.com>
6184         Revert:
6185         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
6186         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6187         for several include directories that may be relative to sysroot.
6188         * config/i386/x-mingw32 (gplus_includedir): Define.
6189         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6190         (native_system_includedir): Likewise.
6191         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6192         override if TARGET_SYSTEM_ROOT is defined.
6193         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6195         PR tree-optimization/79090
6196         PR tree-optimization/33562
6197         PR tree-optimization/61912
6198         PR tree-optimization/77485
6199         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
6200         and computed trims into the dump file.
6202 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
6204         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6206 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
6208         PR c/79089
6209         * gimplify.c (gimplify_init_constructor): If want_value and
6210         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
6211         fix.
6213         PR target/79080
6214         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6215         sequence.  Formatting fixes.
6216         (doloop_optimize): Formatting fixes.
6218         PR driver/49726
6219         * gcc.c (debug_level_greater_than_spec_func): New function.
6220         (static_spec_functions): Add debug-level-gt spec function.
6221         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6222         !g0.
6223         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6224         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6225         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6226         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6227         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6228         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6230 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
6232         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6233         QImode fixups to general and mask registers only.
6235 2017-01-16  Carl Love  <cel@us.ibm.com>
6237         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6238         for built-in functions
6239         vector signed char vec_nabs (vector signed char)
6240         vector signed short vec_nabs (vector signed short)
6241         vector signed int vec_nabs (vector signed int)
6242         vector signed long long vec_nabs (vector signed long long)
6243         vector float vec_nabs (vector float)
6244         vector double vec_nabs (vector double)
6245         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6246         and NABS overload.
6247         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6248         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6249         * doc/extend.texi: Update the documentation file for the new built-in
6250         functions.
6252 2017-01-16  Martin Sebor  <msebor@redhat.com>
6254         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6255         message.
6257 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6259         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6260         UNSPEC_VSX__XXSPLTD to require special splat handling.
6262 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
6264         PR bootstrap/78616
6265         * system.h: Poison strndup.
6267 2017-01-16  Alan Modra  <amodra@gmail.com>
6269         PR target/79098
6270         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6271         use a switch.
6273 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
6275         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6277 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
6279         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6280         call recog here.  Assert that INSN_CODE (insn) is non-negative.
6282 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
6284         PR target/72749
6285         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6286         fallthrough.
6287         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6288         in the currently scheduled RTL fragment.
6290 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
6292         PR rtl-optimization/78751
6293         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6294         give up.
6296 2017-01-14  Jeff Law  <law@redhat.com>
6298         PR tree-optimization/79090
6299         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6300         variable length stores.
6301         (compute_trims): Delete dead assignment to *trim_tail.
6302         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6303         zero length.
6305 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
6307         PR rtl-optimization/78626
6308         PR rtl-optimization/78727
6309         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6310         of a block, and split such blocks after everything else is finished.
6312 2017-01-14  Alan Modra  <amodra@gmail.com>
6314         PR target/72749
6315         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6316         target legitimate_combined_insn.
6317         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6318         (rs6000_legitimate_combined_insn): New function.
6319         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6320         all uses.
6321         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6322         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6323         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6325 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
6327         * doc/frontends.texi (G++ and GCC): Remove references to Java.
6329 2017-01-13  Jeff Law  <law@redhat.com>
6331         PR tree-optimization/33562
6332         PR tree-optimization/61912
6333         PR tree-optimization/77485
6334         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6335         a statement.
6336         (delete_dead_assignment): Likewise.
6337         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6338         statement to delete_dead_call and delete_dead_assignment.
6340 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
6342         PR c/78304
6343         * substring-locations.c (format_warning_va): Strengthen case 1 so
6344         that both endpoints of the substring must be within the format
6345         range for just the substring to be printed.
6347 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
6349         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6350         * config/i386/i386.c (ix86_target_string): Add missing options
6351         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
6352         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6353         flags_other and ix86_target_other to flags2_other.  Display unknown
6354         isa2 options.
6355         (ix86_valid_target_attribute_inner_p): Add missing options and
6356         reorder options by implied ISAs, as in ix86_target_string.
6358 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
6360         * hash-table.h (hash_table::too_empty_p): New function.
6361         (hash_table::expand): Use it.
6362         (hash_table::traverse): Likewise.
6363         (hash_table::empty_slot): Use sizeof (value_type) instead of
6364         sizeof (PTR) to convert bytes to elements.  Shrink the table
6365         if the current size is excessive for the current number of
6366         elements.
6368 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
6370         * ira-costs.c (record_reg_classes): Break from the inner loop
6371         early once alt_fail is known to be true.  Update outer loop
6372         handling accordingly.
6374 2017-01-13  Jeff Law  <law@redhat.com>
6376         * tree-ssa-dse.c (decrement_count): New function.
6377         (increment_start_addr, maybe_trim_memstar_call): Likewise.
6378         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6379         when we know the partially dead statement is a mem* function.
6381         PR tree-optimization/61912
6382         PR tree-optimization/77485
6383         * tree-ssa-dse.c: Include expr.h.
6384         (maybe_trim_constructor_store): New function.
6385         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6387         PR tree-optimization/33562
6388         PR tree-optimization/61912
6389         PR tree-optimization/77485
6390         * doc/invoke.texi: Document new dse-max-object-size param.
6391         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6392         * tree-ssa-dse.c: Include params.h.
6393         (dse_store_status): New enum.
6394         (initialize_ao_ref_for_dse): New, partially extracted from
6395         dse_optimize_stmt.
6396         (valid_ao_ref_for_dse, normalize_ref): New.
6397         (setup_live_bytes_from_ref, compute_trims): Likewise.
6398         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6399         (maybe_trim_partially_dead_store): Likewise.
6400         (maybe_trim_complex_store): Likewise.
6401         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6402         Track what bytes live from the original store.  Return tri-state
6403         for dead, partially dead or live.
6404         (dse_dom_walker): Add constructor, destructor and new private members.
6405         (delete_dead_call, delete_dead_assignment): New extracted from
6406         dse_optimize_stmt.
6407         (dse_optimize_stmt): Make a member of dse_dom_walker.
6408         Use initialize_ao_ref_for_dse.
6410         PR tree-optimization/33562
6411         PR tree-optimization/61912
6412         PR tree-optimization/77485
6413         * sbitmap.h (bitmap_count_bits): Prototype.
6414         (bitmap_clear_range, bitmap_set_range): Likewise.
6415         * sbitmap.c (bitmap_clear_range): New function.
6416         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6418 2017-01-13  Martin Liska  <mliska@suse.cz>
6420         PR ipa/79043
6421         * function.c (set_cfun): Add new argument force.
6422         * function.h (set_cfun): Likewise.
6423         * ipa-inline-transform.c (inline_call): Use the function when
6424         strict alising from is dropped for function we inline to.
6426 2017-01-13  Richard Biener  <rguenther@suse.de>
6428         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6429         for dumping GIMPLE INTEGER_CSTs.
6431 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6433         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6434         to 201112L since C++17.
6436 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
6438         PR sanitizer/78887
6439         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6440         if -fsanitize=kernel-address is present.
6442 2017-01-13  Richard Biener  <rguenther@suse.de>
6444         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6445         as _Literal ( type ) number in case usual suffixes do not
6446         preserve all information.
6448 2017-01-13  Richard Biener  <rguenther@suse.de>
6450         PR tree-optimization/77283
6451         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6452         and ssa-iterators.h.
6453         (is_feasible_trace): Implement a cost model based on joiner
6454         PHI node uses.
6456 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6458         PR target/79004
6459         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6460         char or short to __float128/_Float128 directly.
6462 2017-01-12  Martin Sebor  <msebor@redhat.com>
6464         to -Wformat-overflow.
6465         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6466         (min_bytes_remaining): Same.
6467         (get_string_length): Same.
6468         (format_string): Same.
6469         (format_directive): Same.
6470         (add_bytes): Same.
6471         (pass_sprintf_length::handle_gimple_call): Same.
6473 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
6475         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6476         info.nowrite calls with no lhs that can't throw.  Return bool
6477         whether gsi_remove has been called or not.
6478         (pass_sprintf_length::handle_gimple_call): Return bool whether
6479         try_substitute_return_value called gsi_remove.  Formatting fix.
6480         (pass_sprintf_length::execute): Don't use gsi_remove if
6481         handle_gimple_call returned true.
6483         PR bootstrap/79069
6484         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6485         be removed due to side-effects, don't remove following barrier nor
6486         turn the successor edge into fallthru edge.
6488 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6490         PR target/79044
6491         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6492         element-reversing loads and stores as not swappable.
6494 2017-01-12  Nathan Sidwell  <nathan@acm.org>
6495             Nicolai Stange  <nicstange@gmail.com>
6497         * combine.c (try_combine): Don't ignore result of overlap checking
6498         loop.  Combine overlap & asm check into single loop.
6500 2017-01-12  Richard Biener  <rguenther@suse.de>
6502         * tree-pretty-print.c (dump_generic_node): Provide -gimple
6503         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
6505 2017-01-12  Richard Biener  <rguenther@suse.de>
6507         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
6508         and TS_TARGET_OPTION directly derive from TS_BASE.
6509         * tree-core.h (tree_optimization_option): Derive from tree_base.
6510         (tree_target_option): Likewise.
6512 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
6514         * config/i386/i386.c (memory_address_length): Increase len
6515         only when rip_relative_addr_p returns false.
6517 2017-01-11  Julia Koval  <julia.koval@intel.com>
6519         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
6520         (OPTION_MASK_ISA_SGX_SET): New.
6521         (ix86_handle_option): Handle OPT_msgx.
6522         * config.gcc: Added sgxintrin.h.
6523         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
6524         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
6525         * config/i386/i386.c (ix86_target_string): Add -msgx.
6526         (PTA_SGX): New.
6527         (ix86_option_override_internal): Handle new options.
6528         (ix86_valid_target_attribute_inner_p): Add sgx.
6529         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
6530         * config/i386/i386.opt: Add msgx.
6531         * config/i386/sgxintrin.h: New file.
6532         * config/i386/x86intrin.h: Add sgxintrin.h.
6534 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
6536         PR c++/71537
6537         * fold-const.c (maybe_nonzero_address): Return 1 for function
6538         local objects.
6539         (tree_single_nonzero_warnv_p): Don't handle function local objects
6540         here.
6542         PR c++/72813
6543         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
6544         of c-header.
6546 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
6548         PR driver/78877
6549         * opts.c: Include "spellcheck.h"
6550         (struct string_fragment): New struct.
6551         (struct edit_distance_traits<const string_fragment &>): New
6552         struct.
6553         (get_closest_sanitizer_option): New function.
6554         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
6556 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
6558         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
6559         by 12.
6560         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
6561         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
6562         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
6563         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
6564         for initial die_offset if dwarf_split_debug_info.
6565         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
6566         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
6567         fields.
6568         (output_skeleton_debug_sections): Formatting fix.  Use
6569         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
6570         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
6572 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
6574         * config/arm/cortex-a53.md: Add bypasses for
6575         cortex_a53_r2f_cvt.
6576         (cortex_a53_r2f): Only use for transfers.
6577         (cortex_a53_f2r): Likewise.
6578         (cortex_a53_r2f_cvt): Add reservation for conversions.
6579         (cortex_a53_f2r_cvt): Likewise.
6581 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
6583         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
6584         to all inlined functions, change static to extern.
6586 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
6588         PR target/78253
6589         * config/arm/arm.c (legitimize_pic_address): Handle reference to
6590         weak symbol.
6591         (arm_assemble_integer): Likewise.
6593 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
6595         * config.gcc: Use new awk script to check CPU, FPU and architecture
6596         parameters for --with-... options.
6597         * config/arm/parsecpu.awk: New file
6598         * config/arm/arm-cpus.in: New file.
6599         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
6600         files.
6601         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
6602         files.
6603         * config/arm/t-arm: Update dependency rules.
6604         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
6605         of processing .def files.
6606         * config/arm/genopt.sh: Deleted.
6607         * config/arm/gentune.sh: Deleted.
6608         * config/arm/arm-cores.def: Deleted.
6609         * config/arm/arm-arches.def: Deleted.
6610         * config/arm/arm-fpus.def: Deleted.
6611         * config/arm/arm-tune.md: Regenerated.
6612         * config/arm/arm-tables.opt: Regenerated.
6613         * config/arm/arm-cpu.h: New generated file.
6614         * config/arm/arm-cpu-data.h: New generated file.
6615         * config/arm/arm-cpu-cdata.h: New generated file.
6617 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
6619         PR lto/79042
6620         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
6621         bit.
6622         (input_varpool_node): Unpack dynamically_initialized bit.
6624 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6626         PR rtl-optimization/79032
6627         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
6628         the alignment of the adjusted memory reference against that of MODE,
6629         instead of the alignment of the original memory reference.
6631 2017-01-11  Martin Jambor  <mjambor@suse.cz>
6633         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
6634         test.
6635         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
6636         decorated functions.
6638 2017-01-11  Richard Biener  <rguenther@suse.de>
6640         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
6641         set range/nonnull info for PHI results.  Do not set it on
6642         stmts marked for removal.
6644 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
6646         * expr.c (store_field): In the bitfield case, fetch the return value
6647         from the registers before applying a single big-endian adjustment.
6648         Always do a final load for a BLKmode value not larger than a word.
6650 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
6652         PR c++/77949
6653         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6654         that we correctly handle column numbers greater than
6655         LINE_MAP_MAX_COLUMN_NUMBER.
6657 2017-01-10  Martin Sebor  <msebor@redhat.com>
6659         PR middle-end/78245
6660         * gimple-ssa-sprintf.c (get_destination_size): Call
6661         {init,fini}object_sizes.
6662         * tree-object-size.c (addr_object_size): Adjust.
6663         (pass_through_call): Adjust.
6664         (pass_object_sizes::execute): Adjust.
6665         * tree-object-size.h (fini_object_sizes): Declare.
6667 2017-01-10  Martin Sebor  <msebor@redhat.com>
6669         PR tree-optimization/78775
6670         * builtins.c (get_size_range): Move...
6671         * calls.c: ...to here.
6672         (alloc_max_size): Accept zero argument.
6673         (operand_signed_p): Remove.
6674         (maybe_warn_alloc_args_overflow): Call get_size_range.
6675         * calls.h (get_size_range): Declare.
6677 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
6679         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
6680         from TI's devices.csv file as of September 2016.
6681         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
6683 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
6685         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
6686         * doc/invoke.texi: Likewise.
6687         * doc/md.texi: Likewise.
6688         * doc/objc.texi: Likewise.
6690 2017-01-10  Joshua Conner  <joshconner@google.com>
6692         * config/arm/fuchsia-elf.h: New file.
6693         * config/fuchsia.h: New file.
6694         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
6695         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
6696         targets.
6697         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
6699 2016-01-10  Richard Biener  <rguenther@suse.de>
6701         PR tree-optimization/79034
6702         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6703         Propagate out degenerate PHIs in the joiner.
6705 2017-01-10  Martin Liska  <mliska@suse.cz>
6707         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
6708         (sort_congruence_classes_by_decl_uid): Likewise.
6709         (sort_congruence_class_groups_by_decl_uid): Likewise.
6710         (sem_item_optimizer::merge_classes): Sort class, groups in these
6711         classes and members in the groups by DECL_UID of declarations.
6712         This would make merge operations stable.
6714 2017-01-10  Martin Liska  <mliska@suse.cz>
6716         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
6717         usage of m_classes_vec.
6718         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
6719         (sem_item_optimizer::get_group_by_hash): Likewise.
6720         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6721         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
6722         (sem_item_optimizer::verify_classes): Likewise.
6723         (sem_item_optimizer::process_cong_reduction): Likewise.
6724         (sem_item_optimizer::dump_cong_classes): Likewise.
6725         (sem_item_optimizer::merge_classes): Likewise.
6726         * ipa-icf.h (congruence_class_hash): Rename from
6727         congruence_class_group_hash.  Remove declaration of m_classes_vec.
6729 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
6731         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
6732         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
6733         * config.gcc: Add avx512vpopcntdqintrin.h.
6734         * config/i386/avx512vpopcntdqintrin.h: New.
6735         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
6736         * config/i386/i386-builtin-types.def: Add new types.
6737         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
6738         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
6739         __builtin_ia32_vpopcountq_v8di_mask): New.
6740         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6741         __AVX512VPOPCNTDQ__.
6742         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
6743         (PTA_AVX512VPOPCNTDQ): Define.
6744         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
6745         TARGET_AVX512VPOPCNTDQ_P): Define.
6746         * config/i386/i386.opt: Add mavx512vpopcntdq.
6747         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
6748         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
6750 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6752         PR middle-end/77484
6753         * predict.def (PRED_CALL): Set to 67.
6755 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
6757         * expr.c (store_field): In the bitfield case, if the value comes from
6758         a function call and is of an aggregate type returned in registers, do
6759         not modify the field mode; extract the value in all cases if the mode
6760         is BLKmode and the size is not larger than a word.
6762 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
6764         PR target/71017
6765         * config/i386/cpuid.h: Fix undefined behavior.
6767 2017-01-04  Jeff Law  <law@redhat.com>
6769         PR tree-optimization/79007
6770         PR tree-optimization/67955
6771         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
6772         conservative for pt.null when flag_non_call_exceptions is on.
6774 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
6776         PR translation/79019
6777         PR translation/79020
6778         * params.def (PARAM_INLINE_MIN_SPEEDUP,
6779         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
6780         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
6781         in descriptions.
6782         * config/avr/avr.opt (maccumulate-args): Likewise.
6783         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
6784         * common.opt (freport-bug): Likewise.
6785         * cif-code.def (CIF_FINAL_ERROR): Likewise.
6786         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
6787         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
6788         translatable string.
6789         * config/i386/i386.c (function_value_32): Likewise.
6790         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
6791         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
6792         Likewise.
6793         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
6794         * common/config/msp430/msp430-common.c (msp430_handle_option):
6795         Likewise.
6796         * symtab.c (symtab_node::verify_base): Likewise.
6797         * opts.c (set_debug_level): Likewise.
6798         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
6799         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6800         missing whitespace to translatable strings.
6801         * config/avr/avr.md (bswapsi2): Fix typo in comment.
6802         * config/sh/superh.h: Likewise.
6803         * config/i386/xopintrin.h: Likewise.
6804         * config/i386/znver1.md: Likewise.
6805         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
6806         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
6807         * double-int.h (struct double_int): Likewise.
6808         * double-int.c (div_and_round_double): Likewise.
6809         * wide-int.cc: Likewise.
6810         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
6811         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
6812         * cfgcleanup.c (crossjumps_occured): Renamed to ...
6813         (crossjumps_occurred): ... this.
6814         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
6815         Adjust all uses.
6817         PR tree-optimization/78899
6818         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
6819         returning bool return struct loop *, NULL for failure and the new
6820         loop on success.
6821         (versionable_outer_loop_p): Don't version outer loop if it has
6822         dont_vectorized bit set.
6823         (tree_if_conversion): When versioning outer loop, ensure
6824         tree_if_conversion is performed also on the inner loop of the
6825         non-vectorizable outer loop copy.
6826         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
6827         LOOP_VECTORIZED in inner loop of the scalar outer loop and
6828         prevent vectorization of it.
6829         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
6830         the outer loop vectorization of the non-scalar version is attempted
6831         before vectorization of the inner loop in scalar version.  If
6832         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
6833         vectorization of its inner loop.
6834         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
6835         has 2 inner loops, rename also on edges from bb whose single pred
6836         is outer_loop->header.  Fix typo in function comment.
6838 2017-01-09  Martin Sebor  <msebor@redhat.com>
6840         PR bootstrap/79033
6841         * asan.c (asan_emit_stack_protection): Increase local buffer size
6842         to avoid snprintf truncation warning.
6844 2017-01-09  Andrew Pinski  <apinski@cavium.com>
6846         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
6847         to reference thunderx2t99 for the tuning structure
6848         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
6849         Rename to ...
6850         (thunderx2t99_extra_costs): This.
6851         * config/aarch64/aarch64-tune.md: Regenerate.
6852         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
6853         (vulcan_addrcost_table): This.
6854         (vulcan_regmove_cost): Rename to ...
6855         (thunderx2t99_regmove_cost): This.
6856         (vulcan_vector_cost): Rename to ...
6857         (thunderx2t99_vector_cost): this.
6858         (vulcan_branch_cost): Rename to ...
6859         (thunderx2t99_branch_cost): This.
6860         (vulcan_tunings): Rename to ...
6861         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
6862         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
6864 2017-01-09  Martin Jambor  <mjambor@suse.cz>
6866         PR ipa/78365
6867         PR ipa/78599
6868         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
6869         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
6870         (propagate_vr_accross_jump_function): Use the above function for all
6871         value range computations for pass-through jump functions and type
6872         converasion from explicit value range values.
6873         (ipcp_propagate_stage): Do not attempt to deduce types of formal
6874         parameters from TYPE_ARG_TYPES.
6875         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
6876         (ipa_write_node_info): Stream type of the actual argument.
6877         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
6879 2017-01-09  Martin Liska  <mliska@suse.cz>
6881         PR pch/78970
6882         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
6883         (lookup_compiler): Do not show error message with have_E.
6885 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
6887         PR tree-optimization/78938
6888         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
6889         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
6890         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
6891         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
6892         fixes.
6894 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6896         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
6897         is const0_rtx.
6899 2017-01-09  Richard Biener  <rguenther@suse.de>
6901         PR tree-optimization/78997
6902         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
6903         name condition properly.
6905 2017-01-09  Richard Biener  <rguenther@suse.de>
6907         PR debug/79000
6908         * dwarf2out.c (is_cxx): New overload with context.
6909         (is_naming_typedef_decl): Use it.
6911 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
6913         * invoke.texi (Option Summary): Correct spacing in option lists
6914         and add line breaks to fix over-long lines.
6916 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
6918         PR middle-end/17660
6920         * extend.texi (Common Variable Attributes): Add xref to GCC
6921         Internals manual to explain mode attribute keywords.
6923 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
6925         PR other/16519
6926         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
6927         and Preprocessor Options.
6928         (Options for Linking): Document -pthread here....
6929         (RS/6000 and PowerPC Options): ...not here.
6930         (Solaris 2 Options): ...or here.
6931         * doc/cppopts.texi: Document -pthread.
6933 2017-01-08  Martin Sebor  <msebor@redhat.com>
6935         PR middle-end/77708
6936         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
6937         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
6938         New member functions.
6939         (format_directive): Used them.
6940         (add_bytes): Same.
6941         (pass_sprintf_length::handle_gimple_call): Same.
6942         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
6943         to avoid truncation for any argument.
6944         (extract_affine_mul): Same.
6945         * tree.c (get_file_function_name): Same.
6947 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6949         PR middle-end/77484
6950         * predict.def (PRED_INDIR_CALL): Set to 86.
6952 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
6954         PR preprocessor/54124
6955         * doc/cppopts.texi: Reformat -d subtable to list the full name
6956         of the options.  Add cross-reference to the docs for the general
6957         compiler -d options.
6958         * doc/invoke.texi (Developer Options): Add cross-reference to the
6959         preprocessor-specific -d option documentation.
6961 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
6963         PR preprocessor/13498
6964         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
6965         redudant material, and reflect new command-line options.
6966         (System Headers): Likewise.
6968 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
6970         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
6971         -isystem, and -idirafter.  Copy-edit.
6972         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
6973         default for -ftrack-macro-expansion.  Delete obsolete and
6974         badly-formatted implementation details about -fdebug-cpp output.
6975         * doc/cppwarnopts.texi: Copy-edit.
6977 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
6979         PR c++/72803
6980         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6981         that the transition from a max line width >= 1<<10 to narrower
6982         lines works correctly.
6984 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
6986         * doc/options.texi (PerFunction): New.
6987         * opt-functions.awk (switch_flags): Map both Optimization and
6988         PerFunction to CL_OPTIMIZATION.
6989         * opth-gen.awk: Test for PerFunction flag along with
6990         Optimization.
6991         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
6992         it only when the latter is present.  Skip those that don't in
6993         the hash function generator.
6994         * common.opt (fvar-tracking): Mark as PerFunction instead of
6995         Optimization.
6996         (fvar-tracking-assignments): Likewise.
6997         (fvar-tracking-assignments-toggle): Likewise.
6998         (fvar-tracking-uninit): Likewise.
7000 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
7002         PR translation/79018
7003         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7004         the and store.
7006 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
7008         PR target/57583
7009         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7010         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7011         TARGET_LONG_JUMP_TABLE_OFFSETS.
7012         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7013         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7014         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7015         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7016         * config/m68k/m68k.md (tablejump expander): Likewise.
7017         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7018         TARGET_LONG_JUMP_TABLE_OFFSETS.
7019         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7020         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7022 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7023             David Holsgrove <david.holsgrove@xilinx.com>
7025         * common/config/microblaze/microblaze-common.c
7026         (TARGET_EXCEPT_UNWIND_INFO): Remove.
7027         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7028         New prototype.
7029         * config/microblaze/microblaze.c (microblaze_must_save_register)
7030         (microblaze_expand_epilogue, microblaze_return_addr): Handle
7031         calls_eh_return.
7032         (microblaze_eh_return): New function.
7033         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7034         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7035         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7036         * config/microblaze/microblaze.md (eh_return): New pattern.
7038 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
7040         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7041         GCC_DIAGNOSTIC_STRINGIFY): Define.
7043         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7045 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7047         * config/arm/arm.md (<mcrr>): New.
7048         (<mrrc>): New.
7049         * config/arm/arm.c (arm_arch5te): New.
7050         (arm_option_override): Set arm_arch5te.
7051         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7052         and mrrc2.
7053         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7054         (arm_mcrr_qualifiers): ... this. New.
7055         (MRRC_QUALIFIERS): Define to...
7056         (arm_mrrc_qualifiers): ... this. New.
7057         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7058         __arm_mrrc2): New.
7059         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7060         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7061         (MRRCI, mrrc, MRRC): New.
7062         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7063         VUNSPEC_MRRC2): New.
7065 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7067         * config/arm/arm.md (<mcr>): New.
7068         (<mrc>): New.
7069         * config/arm/arm.c (arm_coproc_builtin_available): Add
7070         support for mcr, mrc, mcr2 and mrc2.
7071         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7072         (arm_mcr_qualifiers): ... this. New.
7073         (MRC_QUALIFIERS): Define to ...
7074         (arm_mrc_qualifiers): ... this. New.
7075         (MCR_QUALIFIERS): Define to ...
7076         (arm_mcr_qualifiers): ... this. New.
7077         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7078         __arm_mrc2): New.
7079         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7080         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7081         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7082         VUNSPEC_MRC2): New.
7084 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7086         * config/arm/arm.md (*ldc): New.
7087         (*stc): New.
7088         (<ldc>): New.
7089         (<stc>): New.
7090         * config/arm/arm.c (arm_coproc_builtin_available): Add
7091         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7092         (arm_coproc_ldc_stc_legitimate_address): New.
7093         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7094         'qualifier_const_pointer'.
7095         (LDC_QUALIFIERS): Define to...
7096         (arm_ldc_qualifiers): ... this. New.
7097         (STC_QUALIFIERS): Define to...
7098         (arm_stc_qualifiers): ... this. New.
7099         * config/arm/arm-protos.h
7100         (arm_coproc_ldc_stc_legitimate_address): New.
7101         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7102         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7103         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7104         stc2, stcl, stc2l): New.
7105         * config/arm/constraints.md (Uz): New.
7106         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7107         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7108         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7109         VUNSPEC_STC2L): New.
7111 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7113         * config/arm/arm.md (<cdp>): New.
7114         * config/arm/arm.c (neon_const_bounds): Rename this ...
7115         (arm_const_bounds): ... this.
7116         (arm_coproc_builtin_available): New.
7117         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7118         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7119         (CDP_QUALIFIERS): Define to...
7120         (arm_cdp_qualifiers): ... this. New.
7121         (void_UP): Define.
7122         (arm_expand_builtin_args): Add case for 6 arguments.
7123         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7124         (arm_const_bounds): ... this.
7125         (arm_coproc_builtin_available): New.
7126         * config/arm/arm_acle.h (__arm_cdp): New.
7127         (__arm_cdp2): New.
7128         * config/arm/arm_acle_builtins.def (cdp): New.
7129         (cdp2): New.
7130         * config/arm/iterators.md (CDPI,CDP,cdp): New.
7131         * config/arm/neon.md: Rename all 'neon_const_bounds' to
7132         'arm_const_bounds'.
7133         * config/arm/types.md (coproc): New.
7134         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7135         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7136         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7137         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7139 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7141         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7142         (UBINOP_QUALIFIERS): New.
7143         (si_UP): Define.
7144         (acle_builtin_data): New. Change comment.
7145         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7146         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7147         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7148         arm_acle_builtins.def.
7149         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7150         (arm_init_acle_builtins): New.
7151         (CRC32_BUILTIN): Remove.
7152         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7153         crc32cb, crc32ch and crc32cw.
7154         (arm_init_crc32_builtins): Remove.
7155         (arm_init_builtins): Use arm_init_acle_builtins rather
7156         than arm_init_crc32_builtins.
7157         (arm_expand_acle_builtin): New.
7158         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7159         * config/arm/arm_acle_builtins.def: New.
7161 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7163         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7164         (arm_builtin_datum): ... this.
7165         (arm_init_neon_builtin): Rename to ...
7166         (arm_init_builtin): ... this. Add a new parameters PREFIX
7167         and USE_SIG_IN_NAME.
7168         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7169         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7170         'arm_builtin_datum'.
7171         (arm_init_vfp_builtins): Likewise.
7172         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7173         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7174         (arm_expand_neon_args): Rename to ...
7175         (arm_expand_builtin_args): ... this. Rename builtin_arg
7176         enum values and differentiate between ARG_BUILTIN_MEMORY
7177         and ARG_BUILTIN_NEON_MEMORY.
7178         (arm_expand_neon_builtin_1): Rename to ...
7179         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7180         values, arm_expand_builtin_args and add bool parameter NEON.
7181         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7182         (arm_expand_vfp_builtin): Likewise.
7183         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7185 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7187         PR middle-end/77484
7188         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7189         * predict.c (tree_estimate_probability_bb): Reverse direction of
7190         polymorphic call predictor.
7192 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
7194         * passes.c (execute_one_pass): Split out pass-skipping logic into...
7195         (determine_pass_name_match): ...this new function and...
7196         (should_skip_pass_p): ...this new function.
7198 2017-01-06  Nathan Sidwell  <nathan@acm.org>
7200         * ipa-visibility.c (function_and_variable_visibility): Reformat
7201         comments and long lines.  Remove extrneous if.
7202         * symtab.c (symtab_node::make_decl_local): Fix code format.
7203         (symtab_node::set_section_for_node): Fix comment typo.
7205 2017-01-06  Martin Liska  <mliska@suse.cz>
7207         PR bootstrap/79003
7208         * lra-constraints.c: Rename invariant to lra_invariant.
7209         * predict.c (set_even_probabilities): Initialize e to NULL.
7211 2017-01-05  Martin Sebor  <msebor@redhat.com>
7213         PR tree-optimization/78910
7214         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7215         (format_integer): Correct off-by-one error in the handling
7216         of precision with negative numbers in signed conversions..
7218 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7220         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7222 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
7224         PR tree-optimization/71016
7225         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7226         factor_out_conditional_conversion.  Formatting fix.
7227         (factor_out_conditional_conversion): Add cond_stmt argument.
7228         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7229         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7230         Formatting fix.
7232 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
7234         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7235         read-rtl-function.o, and selftest-rtl.o.
7236         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7237         (selftest::aarch64_test_loading_full_dump): New function.
7238         (selftest::aarch64_run_selftests): New function.
7239         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7240         selftest::aarch64_run_selftests.
7241         * config/i386/i386.c
7242         (selftest::ix86_test_loading_dump_fragment_1): New function.
7243         (selftest::ix86_test_loading_call_insn): New function.
7244         (selftest::ix86_test_loading_full_dump): New function.
7245         (selftest::ix86_test_loading_unspec): New function.
7246         (selftest::ix86_run_selftests): Call the new functions.
7247         * emit-rtl.c (maybe_set_max_label_num): New function.
7248         * emit-rtl.h (maybe_set_max_label_num): New decl.
7249         * function.c (instantiate_decls): Guard call to
7250         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7251         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7252         "static".
7253         * gensupport.c (gen_reader::gen_reader): Pass "false"
7254         for new "compact" param of rtx_reader.
7255         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7256         rather than an empty string for NULL strings.
7257         * read-md.c: Potentially include config.h rather than bconfig.h.
7258         Wrap include of errors.h with #ifdef GENERATOR_FILE.
7259         (have_error): New global, copied from errors.c.
7260         (md_reader::read_name): Rename to...
7261         (md_reader::read_name_1): ...this, adding "out_loc" param,
7262         and converting "missing name or number" to returning false, rather
7263         than failing.
7264         (md_reader::read_name): Reimplement in terms of read_name_1.
7265         (md_reader::read_name_or_nil): New function.
7266         (md_reader::read_string): Handle "(nil)" by returning NULL.
7267         (md_reader::md_reader): Add new param "compact".
7268         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7269         (md_reader::read_file): New method.
7270         * read-md.h (md_reader::md_reader): Add new param "compact".
7271         (md_reader::read_file): New method.
7272         (md_reader::is_compact): New accessor.
7273         (md_reader::read_name): Convert return type from void to file_location.
7274         (md_reader::read_name_or_nil): New decl.
7275         (md_reader::read_name_1): New decl.
7276         (md_reader::m_compact): New field.
7277         (noop_reader::noop_reader): Pass "false" for new "compact" param
7278         of rtx_reader.
7279         (rtx_reader::rtx_reader): Add new "compact" param.
7280         (rtx_reader::read_rtx_operand): Make virtual and convert return
7281         type from void to rtx.
7282         (rtx_reader::read_until): New decl.
7283         (rtx_reader::handle_any_trailing_information): New virtual function.
7284         (rtx_reader::postprocess): New virtual function.
7285         (rtx_reader::finalize_string): New virtual function.
7286         (rtx_reader::m_in_call_function_usage): New field.
7287         (rtx_reader::m_reuse_rtx_by_id): New field.
7288         * read-rtl-function.c: New file.
7289         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7290         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7291         (selftest::verify_three_block_rtl_cfg): New decl.
7292         * read-rtl-function.h: New file.
7293         * read-rtl.c: Potentially include config.h rather than bconfig.h.
7294         For host, include function.h, memmodel.h, and emit-rtl.h.
7295         (one_time_initialization): New function.
7296         (struct compact_insn_name): New struct.
7297         (compact_insn_names): New array.
7298         (find_code): Handle insn codes in compact dumps.
7299         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7300         (bind_subst_iter_and_attr): Likewise.
7301         (add_condition_to_string): Likewise.
7302         (add_condition_to_rtx): Likewise.
7303         (apply_attribute_uses): Likewise.
7304         (add_current_iterators): Likewise.
7305         (apply_iterators): Likewise.
7306         (initialize_iterators): Guard usage of apply_subst_iterator with
7307         #ifdef GENERATOR_FILE.
7308         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7309         (md_reader::read_mapping): Likewise.
7310         (add_define_attr_for_define_subst): Likewise.
7311         (add_define_subst_attr): Likewise.
7312         (read_subst_mapping): Likewise.
7313         (check_code_iterator): Likewise.
7314         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
7315         logic to...
7316         (one_time_initialization): New function.
7317         (rtx_reader::read_until): New method.
7318         (read_flags): New function.
7319         (parse_reg_note_name): New function.
7320         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7321         Handle reuse_rtx ids.
7322         Wrap iterator lookup within #ifdef GENERATOR_FILE.
7323         Add parsing support for RTL dumps, mirroring the special-cases in
7324         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7325         values, and calling handle_any_trailing_information.
7326         (rtx_reader::read_rtx_operand): Convert return type from void
7327         to rtx, returning return_rtx.  Handle case 'e'.  Call
7328         finalize_string on XSTR and XTMPL fields.
7329         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
7330          "(nil)" values were omitted.  Call the postprocess vfunc on the
7331         return_rtx.
7332         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7333         class ctor.  Initialize m_in_call_function_usage.  Call
7334         one_time_initialization.
7335         * rtl-tests.c (selftest::test_uncond_jump): Call
7336         set_new_first_and_last_insn.
7337         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7338         * selftest-rtl.c: New file.
7339         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7340         (selftest::get_insn_by_uid): New decl.
7341         * selftest-run-tests.c (selftest::run_tests): Call
7342         read_rtl_function_c_tests.
7343         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
7344         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7345         dumps.
7347 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
7349         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7350         operands in a special way.  Assert that pos+len <= mode precision.
7352 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
7354         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7355         3 argument Alias with unlimited for the negative form.
7356         (fno-vect-cost-model): Removed.
7358 2017-01-05  Martin Liska  <mliska@suse.cz>
7360         * hsa-gen.c (gen_hsa_divmod): New function.
7361         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7363 2017-01-05  Martin Liska  <mliska@suse.cz>
7365         PR pch/78970
7366         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7367         header.
7369 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7371         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7372         small constant length operands.
7374 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7376         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7377         between loop iterations.
7379 2017-01-05  Martin Liska  <mliska@suse.cz>
7381         PR sanitizer/78815
7382         * gimplify.c (gimplify_decl_expr): Compare to
7383         asan_poisoned_variables instread of checking flags.
7384         (gimplify_target_expr): Likewise.
7385         (gimplify_expr): Likewise.
7386         (gimplify_function_tree): Conditionally initialize
7387         asan_poisoned_variables.
7389 2017-01-04  Jeff Law  <law@redhat.com>
7391         PR tree-optimizatin/78812
7392         * rtl.h (contains_mem_rtx_p): Prototype.
7393         * ifcvt.c (containts_mem_rtx_p): Move from here to...
7394         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7395         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7396         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
7397         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7399 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7401         * input.c (assert_char_at_range): Default-initialize actual_range.
7403 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7405         * df-scan.c (df_ref_create_structure): Make regno unsigned,
7406         to match the caller.
7408 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7410         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7411         insns after final jump in test to emit dummy move.
7413 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7415         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7416         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7418 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7420         * multiple_target.c (create_dispatcher_calls): Init e_next.
7421         * tree-ssa-loop-split.c (split_loop): Init border.
7422         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7423         scalar_type.
7425 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
7427         PR target/71977
7428         PR target/70568
7429         PR target/78823
7430         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7431         (altivec_register_operand): Do not return true if the operand
7432         contains a SUBREG mixing SImode and SFmode.
7433         (vsx_register_operand): Likewise.
7434         (vsx_reg_sfsubreg_ok): New predicate.
7435         (vfloat_operand): Do not return true if the operand contains a
7436         SUBREG mixing SImode and SFmode.
7437         (vint_operand): Likewise.
7438         (vlogical_operand): Likewise.
7439         (gpc_reg_operand): Likewise.
7440         (int_reg_operand): Likewise.
7441         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7442         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7443         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7444         SImode and SFmode.
7445         (rs6000_emit_move_si_sf_subreg): New helper function.
7446         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7447         fixup SUBREGs involving SImode and SFmode.
7448         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7449         numbers for the new peephole2 optimization.
7450         (peephole2 for SFmode unions): New peephole2 to optimize cases in
7451         the GLIBC math library that do AND/IOR/XOR operations on single
7452         precision floating point.
7453         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7454         target macros to say whether we need to avoid SUBREGs mixing
7455         SImode and SFmode.
7456         (TARGET_ALLOW_SF_SUBREG): Likewise.
7457         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7458         (UNSPEC_SI_FROM_SF): Likewise.
7459         (iorxor): Change spacing.
7460         (and_ior_xor): New iterator for AND, IOR, and XOR.
7461         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7462         (movdi_from_sf_zero_ext): Likewise.
7463         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7464         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
7465         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7466         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7467         (fms<mode>4): Likewise.
7468         (fnma<mode>4): Likewise.
7469         (fnms<mode>4): Likewise.
7470         (nfma<mode>4): Likewise.
7471         (nfms<mode>4): Likewise.
7473 2017-01-04  Marek Polacek  <polacek@redhat.com>
7475         PR c++/64767
7476         * doc/invoke.texi: Document -Wpointer-compare.
7478 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7480         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7481         RejectNegative.
7483         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7484         descriptions for -gdwarf-5 and emit them as uleb128 instead of
7485         2-byte data.
7487 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7489         PR target/78056
7490         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7491         documentation of the powerpc_popcntb_ok attribute.
7492         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7493         code to issue warning messages if a requested CPU configuration is
7494         not supported by the binary (assembler and loader) toolchain.
7495         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7496         made to define a built-in function that has been disabled.
7497         (paired_init_builtins): Add assertion to prevent ICE if attempt is
7498         made to define a built-in function that has been disabled.
7499         (altivec_init_builtins): Add comment explaining why definition
7500         of the DST built-in functions is not preceded by an assertion
7501         check.  Add assertions to prevent ICE if attempts are made to
7502         define an altivec predicate or an abs* built-in function that has
7503         been disabled.
7504         (htm_init_builtins): Add comment explaining why definition of the
7505         htm built-in functions is not preceded by an assertion check.
7507 2017-01-04  Jeff Law  <law@redhat.com>
7509         PR tree-optimizatin/67955
7510         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
7511         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
7512         the points-to solution does not include pt_null.  Use DECL_PT_UID
7513         unconditionally.
7515 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
7517         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
7518         Use gen_int_mode instead of gen_lopwart for const_int operands.
7520 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7522         PR tree-optimization/71563
7523         * match.pd: Simplify X << Y into X if Y is known to be 0 or
7524         out of range value - has low bits known to be zero.
7526 2017-01-04  Alan Modra  <amodra@gmail.com>
7528         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
7529         * configure: Regenerate.
7530         * config.in: Regenerate.
7532 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7534         PR bootstrap/77569
7535         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
7536         a substring of the message, but strcmp with the whole message.  Ifdef
7537         ENABLE_NLS, translate the message first using dgettext.
7539 2017-01-03  Jeff Law  <law@redhat.com>
7541         PR tree-optimizatin/78856
7542         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
7543         (mark_threaded_blocks): Remove code to truncate thread paths that
7544         cross multiple loop headers.  Instead invalidate the cached loop
7545         iteration information and handle case of a thread path walking
7546         into an irreducible region.
7548 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7550         PR target/78900
7551         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
7552         assertions.  Add support for doing the signbit if the IEEE 128-bit
7553         floating point value is in a GPR.
7554         * config/rs6000/rs6000.md (Fsignbit): Delete.
7555         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
7556         Update the length attribute if the value is in a GPR.
7557         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
7558         the sign or zero extension instruction, since the value is always 0/1.
7559         (signbit<mode>2_dm2): Delete using <Fsignbit>.
7561         PR target/78953
7562         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
7563         extracting SImode to a GPR register so that we can generate a
7564         store, limit the vector to be in a traditional Altivec register
7565         for the vextuwrx instruction.
7567 2017-01-03  Ian Lance Taylor  <iant@google.com>
7569         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
7571 2017-01-03  Martin Sebor  <msebor@redhat.com>
7573         PR tree-optimization/78696
7574         * gimple-ssa-sprintf.c (format_floating): Correct handling of
7575         precision.  Use MPFR for %f for greater fidelity.  Correct handling
7576         of %g.
7577         (pass_sprintf_length::compute_format_length): Set width and precision
7578         specified by asrerisk to void_node for vararg functions.
7579         (try_substitute_return_value): Adjust dump output.
7581 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
7583         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
7585 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7587         * doc/invoke.texi (SPARC options): Document -mlra as the default.
7588         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
7589         -mlra/-mno-lra was passed to the compiler.
7591 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
7593         PR rtl-optimization/65618
7594         * emit-rtl.c (try_split): Move initialization of "before" and
7595         "after" to just before the call to emit_insn_after_setloc.
7597 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
7599         * doc/md.texi (Standard Names): Remove reference to Java frontend.
7601 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7603         * dwarf2out.c (gen_enumeration_type_die): When
7604         -gno-strict-dwarf, add a DW_AT_encoding attribute.
7606 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
7608         PR tree-optimization/78965
7609         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
7610         Change first argument from const call_info & to call_info &.  For %n
7611         set info.nowrite to false.
7613         PR middle-end/78901
7614         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
7615         possibly throwing calls.
7617         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
7618         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
7619         and fns handling, rather than in a separate case SSA_NAME.
7621 2017-01-02  Jeff Law  <law@redhat.com>
7623         * config/darwin-driver.c (darwin_driver_init): Const-correctness
7624         fixes for first_period and second_period variables.
7626 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
7628         PR target/78967
7629         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
7630         (*insvqi_1): New insn pattern.
7631         (*insvqi_1_mem_rex64): Ditto.
7632         (*insvqi_2): Ditto.
7633         (*insvqi_3): Rename from *insvqi.
7635         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
7637 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7639         * doc/cfg.texi (Edges): Remove reference to Java.
7640         (Maintaining the CFG): Ditto.
7642 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7644         PR middle-end/77674
7645         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
7646         transparent aliases.
7648 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7650         PR middle-end/77484
7651         * predict.def (PRED_CALL): Update hitrate.
7652         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
7653         * predict.c (tree_estimate_probability_bb): Split CALL predictor
7654         into direct/indirect/polymorphic variants.
7656 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7658         Update copyright years.
7660         * gcc.c (process_command): Update copyright notice dates.
7661         * gcov-dump.c (print_version): Ditto.
7662         * gcov.c (print_version): Ditto.
7663         * gcov-tool.c (print_version): Ditto.
7664         * gengtype.c (create_file): Ditto.
7665         * doc/cpp.texi: Bump @copying's copyright year.
7666         * doc/cppinternals.texi: Ditto.
7667         * doc/gcc.texi: Ditto.
7668         * doc/gccint.texi: Ditto.
7669         * doc/gcov.texi: Ditto.
7670         * doc/install.texi: Ditto.
7671         * doc/invoke.texi: Ditto.
7673 Copyright (C) 2017 Free Software Foundation, Inc.
7675 Copying and distribution of this file, with or without modification,
7676 are permitted in any medium without royalty provided the copyright
7677 notice and this notice are preserved.