PR c/79855: add full stop to store merging param descriptions
[official-gcc.git] / gcc / ChangeLog
blobb09e49fe872568576e54e83345d5f7bb0e3717ed
1 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         PR c/79855
4         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
5         to end of description.
6         (PARAM_MAX_STORES_TO_MERGE): Likewise.
8 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
10         PR rtl-optimization/79901
11         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
12         ...
13         (*avx512f_<code><mode>3<mask_name>): ... this.
14         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
15         iterator instead of VI8_AVX2_AVX512BW.
17         PR rtl-optimization/79901
18         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
19         min/max expander, expand it using expand_vec_cond_expr.
21         PR sanitizer/79897
22         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
23         temporary.
25 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
27         PR c++/79821
28         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
29         to void * for PCH reasons.
30         * dwarf2out.c (output_loc_operands, output_die): Cast
31         v.val_vec.array to unsigned char *.
33 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
35         PR target/77850
36         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
37         vector types.
39 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
41         PR rtl-optimization/79571
42         * lra-constraints.c (process_alt_operands): Calculate static
43         reject and subtract it from overall when only addresses will be
44         reloaded.
46 2017-03-06  Julia Koval  <julia.koval@intel.com>
48         PR target/79793
49         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
50         incoming stack boundary to 128 for 64-bit targets.
52 2017-03-06  Richard Biener  <rguenther@suse.de>
54         PR tree-optimization/79894
55         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
56         to NULL after folding it.
58 2017-03-06  Richard Biener  <rguenther@suse.de>
60         PR tree-optimization/79824
61         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
62         check disabling peeling for gaps.
64 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
66         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
67         attributes): Document gettimeofday.
69 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
71         * config/s390/s390.c (s390_option_override_internal): Set
72         PARAM_MIN_VECT_LOOP_BOUND
74 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
76         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
77         * config/s390/s390.md: Likewise.
79 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
81         PR target/79812
82         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
83         (<avx2_avx512>_perm<mode>): Rename to ...
84         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
85         of VI8F_256_512.
86         (<avx512>_perm<mode>_mask): Rename to ...
87         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
88         of VI8F_256_512.
89         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
90         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
91         instead of VI8F_256_512.
92         (avx512f_perm<mode>): New define_expand.
93         (avx512f_perm<mode>_mask): Likewise.
94         (avx512f_perm<mode>_1<mask_name>): New define_insn.
95         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
97 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
99         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
100         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
101         if_then_else.
102         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
104 2017-03-06  Martin Liska  <mliska@suse.cz>
106         PR sanitize/79783
107         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
108         when having a SSA NAME w/o VAR_DECL assigned to it.
110 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
112         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
113         msa_dpsub_<su>_d): Fix MODE for vec_select.
115 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
117         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
118         argument.
119         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
121 2017-03-06  Richard Biener  <rguenther@suse.de>
123         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
124         * plugin.c (register_plugin_info): Likewise.
125         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
127 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
129         * config/i386/sse.md (sse_storehps, sse_storelps,
130         avx_<castmode><avxsizesuffix>_<castmode>,
131         avx512f_<castmode><avxsizesuffix>_<castmode>,
132         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
133         in condition that at least one operand is not a MEM.
135 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
137         PR middle-end/79805
138         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
139         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
140         ECF_NOTHROW.
141         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
142         gimple_call_nothrow_p flag based on whether original builtin can throw.
143         If it can, emit following stmts on the fallthrough edge.
144         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
145         don't create new bb if inserting just debug stmts on the edge, try to
146         insert them on the fallthru bb or just reset debug stmts.
148 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
150         PR target/43763
151         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
152         restore recog_data (including the operand rtxes inside it) around
153         the call to get_insn_template.
155 2017-03-03  Martin Sebor  <msebor@redhat.com>
157         PR tree-optimization/79699
158         * context.c (context::~context): Free MPFR caches to avoid
159         a memory leak on program exit.
161 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
163         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
164         Use wide_int::ulow () instead of .elt (0).
166 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
168         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
169         (*pushxf): Limit oF constraint to 32bit targets and add oC
170         constraint for 64bit targets.
171         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
172         (*pushdf): Change rmF constraint to rmC.
174 2017-03-03  Martin Liska  <mliska@suse.cz>
176         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
177         Remove unused variable.
179 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
181         PR target/79807
182         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
183         is a memory operand, increase num_memory.
184         (ix86_expand_args_builtin): Likewise.
186 2017-03-03  Jan Hubicka  <jh@suse.cz>
188         PR lto/79760
189         * ipa-devirt.c (maybe_record_node): Properly handle
190         __cxa_pure_virtual visibility.
192 2017-03-03  Martin Liska  <mliska@suse.cz>
194         PR tree-optimization/79803
195         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
196         assert.
197         (pass_loop_prefetch::execute): Disabled optimization if an
198         assumption about L1 cache size is not met.
200 2017-03-03  Martin Liska  <mliska@suse.cz>
202         PR rtl-optimization/79574
203         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
204         (hash_scan_set): Likewise.
205         (dump_hash_table): Likewise.
206         (hoist_code): Likewise.
208 2017-03-03  Richard Biener  <rguenther@suse.de>
210         * fixed-value.c (fixed_from_string): Restore use of elt (1)
211         in place of uhigh ().
212         (fixed_convert_from_real): Likewise.
214 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
216         PR target/79514
217         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
219 2017-03-03  Richard Biener  <rguenther@suse.de>
221         PR middle-end/79818
222         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
223         TYPE_OVERFLOW_UNDEFINED check.
225 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
227         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
228         numbers.
229         (vector_ae_<mode>_p): Likewise.
230         (vector_nez_<mode>_p): Likewise.
231         (vector_ne_v2di_p): Likewise.
232         (vector_ae_v2di_p): Likewise.
233         (vector_ne_<mode>_p): Likewise.
234         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
235         numbers.
236         (vsx_tsqrt<mode>2_fe): Likewise.
238 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
240         PR target/79514
241         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
243 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
245         PR rtl-optimization/79780
246         * cprop.c (one_cprop_pass): When second and further conditional trap
247         in a single basic block is turned into an unconditional trap, turn it
248         into a deleted note to avoid RTL verification failures.
250 2017-03-02  Richard Biener  <rguenther@suse.de>
252         * fold-const.c (const_binop): Use ulow () instead of elt (0).
254 2017-03-02  Richard Biener  <rguenther@suse.de>
256         PR tree-optimization/79345
257         PR c++/42000
258         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
259         param and abort the walk, returning -1 if it is hit.
260         (walk_aliased_vdefs): Take a limit param and pass it on.
261         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
262         defaulting to 0 and return a signed int.
263         * tree-ssa-uninit.c (struct check_defs_data): New struct.
264         (check_defs): New helper.
265         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
266         about uninitialized memory.
267         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
268         bogus uninitialized warning.
269         (fixed_convert_from_real): Likewise.
271 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
273         PR tree-optimization/66768
274         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
275         iv_use if base object can't be determined.
277 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
279         PR tree-optimization/79345
280         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
281         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
282         (get_pattern_stats): Initialize it.
283         * genemit.c (gen_expand): Verify match_scratch numbers come after
284         match_operand/match_dup numbers.
285         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
286         match_scratch numbers.
287         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
288         Likewise.
289         * config/s390/s390.md (trunctdsd2): Likewise.
291 2017-03-02  Richard Biener  <rguenther@suse.de>
293         * wide-int.h (wide_int_storage::operator=): Implement in terms
294         of wi::copy.
296 2017-03-02  Richard Biener  <rguenther@suse.de>
298         PR tree-optimization/79777
299         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
300         the to insert expression to sth existing.
302 2017-03-01  Martin Sebor  <msebor@redhat.com>
304         PR middle-end/79692
305         * gimple-ssa-sprintf.c
306         (directive::known_width_and_precision): New function.
307         (format_integer): Use it.
308         (get_mpfr_format_length): Consider the full range of precision
309         when computing %g output with the # flag.  Set the likely byte
310         count to 3 rather than 1 when precision is indeterminate.
311         (format_floating): Correct the lower bound of precision.
313 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
315         * doc/invoke.texi: Document default code model for 64-bit Linux.
317 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
319         PR target/79752
320         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
321         udiv rather than div since input pattern is unsigned.
323 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
325         * config/i386/i386.c (print_reg): Warn for values of
326         unsupported size in integer register.
328 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
330         PR target/79439
331         * config/rs6000/predicates.md (current_file_function_operand): Do
332         not allow self calls to be local if the function is replaceable.
334 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
336         PR target/79395
337         * config/rs6000/altivec.h (vec_ctz and others): Change the
338         preprocessor macro that controls conditional compilation from
339         _ARCH_PWR9 to __POWER9_VECTOR__.
340         (vec_all_ne): Change parameterization of __altivec_scalar_pred
341         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
342         control (instead of _ARCH_PWR9 control) so that template
343         definition uses power9-specific function.
344         (vec_any_eq): Likewise.
345         (vec_all_ne): Change macro definition to use a power9-specific
346         expansion under #ifdef __POWER9_VECTOR__ control (instead of
347         _ARCH_PWR9 control).
348         (vec_any_eq) Likewise.
349         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
350         expansion for CMPNEF to remove support for xvcmpnesp instruction.
351         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
352         support for xvcmpnedp instruction.
353         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
354         macro expansion so that Power9 implementation of vec_all_ne does
355         not use the AltiVec predicate framework.
356         (VCMPNEH_P): Likewise.
357         (VCMPNEW_P): Likewise.
358         (VCMPNED_P): Likewise.
359         (VCMPNEFP_P): Likewise.
360         (VCMPNEDP_P): Likewise.
361         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
362         implementation of vec_any_eq to not use AltiVec predicate
363         framework.
364         (VCMPAEH_P): Likewise.
365         (VCMPAEW_P): Likewise.
366         (VCMPAED_P): Likewise.
367         (VCMPAEFP_P): Likewise.
368         (VCMPAEDP_P): Likewise.
369         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
370         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
371         not use the AltiVec predicate framework.
372         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
373         of vec_any_eq to not use AltiVec predicate framework.
374         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
375         support for predefined __POWER9_VECTOR__ macro to indicate that
376         Power9 instruction selection is enabled.
377         (altivec_overloaded_builtins): Remove extraneous
378         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
379         function argument types RS6000_BTI_bool_V16QI and
380         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
381         entry for overloaded function argument types RS6000_BTI_bool_V4SI
382         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
383         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
384         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
385         Power9 for implementations of vec_cmpne.  Change the signature for
386         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
387         (representing vec_all_ne) to remove the previously described first
388         argument of type RS6000_BTI_INTSI, as this was an artifact of
389         reliance on the AltiVec predicate framework, which is no longer
390         used in the implementation of these functions.  Add
391         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
392         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
393         since, unlike the AltiVec predicate framework implementation, we
394         do not share function descriptors between vec_alle and vec_anyeq.
395         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
396         set of modes that receive special treatment even when
397         TARGET_P9_VECTOR is true.  The special treatment emits code that
398         does not depend on Power9 instructions.
399         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
400         define_expand to not rely on AltiVec predicate framework.
401         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
402         function.
403         (vector_ne_v2di_p): Change this define_expand to not rely on
404         AltiVec predicate framework.
405         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
406         function.
407         (vector_ne_<mode>_p): Change this define_expand to not rely on
408         AltiVec predicate framework.
409         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
410         function.
411         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
412         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
413         define_insn pattern.
414         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
415         define_insn pattern because the xvcmpne<VSs>. instruction is not
416         supported.
417         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
418         instruction is not supported.
420 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
422         * config/nvptx/nvptx.c: Include intl.h.
424 2017-03-01  Martin Jambor  <mjambor@suse.cz>
426         PR lto/78140
427         * ipa-prop.h (ipa_bits): Removed field known.
428         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
429         to pointers.  Adjusted their comments to warn about their sharing.
430         (ipcp_transformation_summary): Change bits to a vector of pointers.
431         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
432         (ipa_get_ipa_bits_for_value): Declare.
433         * tree-vrp.h (value_range): Mark as GTY((for_user)).
434         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
435         (ipa_bits_hash_table): Likewise.
436         (ipa_vr_ggc_hash_traits): Likewise.
437         (ipa_vr_hash_table): Likewise.
438         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
439         being pointers and vr_known being removed.
440         (ipa_set_jf_unknown): Likewise.
441         (ipa_get_ipa_bits_for_value): New function.
442         (ipa_set_jfunc_bits): Likewise.
443         (ipa_get_value_range): New overloaded functions.
444         (ipa_set_jfunc_vr): Likewise.
445         (ipa_compute_jump_functions_for_edge): Use the above functions to
446         construct bits and vr parts of jump functions.
447         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
448         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
449         exist.
450         (ipcp_grow_transformations_if_necessary): Also allocate
451         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
452         exist.
453         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
454         them.  Fix too long lines.
455         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
456         vr_known being removed.
457         (ipa_read_jump_function): Use new setter functions to construct bits
458         and vr parts of jump functions or set them to NULL.
459         (write_ipcp_transformation_info): Adjust for bits being pointers.
460         (read_ipcp_transformation_info): Likewise.
461         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
462         space.
463         Include gt-ipa-prop.h.
464         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
465         being pointers.
466         (ipcp_store_bits_results): Likewise.
467         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
468         Do not write to existing jump functions but use a temporary instead.
470 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
472         PR c++/79681
473         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
474         attempt to use its first operand as BIT_FIELD_REF base.
476 2017-03-01  Richard Biener  <rguenther@suse.de>
478         PR middle-end/79721
479         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
480         interpolating formula in wrapping arithmetic.
481         (chrec_apply): Convert chrec_evaluate return value to wanted type.
483 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
485         PR tree-optimization/79734
486         * tree-vect-generic.c (expand_vector_condition): Optimize
487         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
488         Handle VEC_COND_EXPR where comparison has different inner width from
489         type's inner width.
491 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
493         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
494         markup, and similar issues.  Remove @opindex entries for things
495         that aren't options.  Add missing -mmpy-option entries.
497 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
499         PR tree-optimization/79737
500         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
501         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
502         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
503         instead of byte_size.  Formatting fix.
504         (shift_bytes_in_array_right): Formatting fix.
506 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
508         PR target/79749
509         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
510         condition on optimize for the leaf function test.
512 2017-02-28  Martin Liska  <mliska@suse.cz>
514         PR lto/79625
515         * read-rtl-function.c (function_reader::handle_unknown_directive):
516         Bail out when one uses -flto.
518 2017-02-28  Martin Liska  <mliska@suse.cz>
520         * common.opt: Replace space with tabular for options of <number>
521         type.
522         * config/i386/i386.opt: Show <number> value for
523         -mlarge-data-threshold.
524         * opts.c (print_filtered_help): Do not display number in hexadecimal
525         format.
527 2017-02-28  Martin Liska  <mliska@suse.cz>
529         * common.opt: Fix --help=option -Q for options which are of
530         an enum type.
532 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
534         * config/i386/i386.c (print_reg): Error out for values
535         of 8-bit size in invalid integer register.
537 2017-02-28  Martin Sebor  <msebor@redhat.com>
539         PR tree-optimization/79691
540         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
542 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
544         PR target/79729
545         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
546         gcc_unreachable with output_operand_lossage.
548 2017-02-28  Richard Biener  <rguenther@suse.de>
550         PR tree-optimization/79740
551         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
552         inserts.
553         (visit_nary_op): Insert the nary into the hashtable if we
554         pattern-matched sth.
555         * tree-ssa-pre.c (eliminate_insert): Robustify.
557 2017-02-28  Richard Biener  <rguenther@suse.de>
559         PR middle-end/79731
560         * fold-const.c (decode_field_reference): Reject out-of-bound
561         accesses.
563 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
565         * config/i386/i386.c: Include intl.h.
566         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
567         instead of just cond ? "..." : "...".
568         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
569         * coverage.c (read_counts_file): Likewise.
570         * omp-offload.c: Include intl.h.
571         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
572         of just cond ? "..." : "...".
573         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
574         of just cond ? "..." : "...".
576 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
578         PR target/79742
579         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
580         entry, if present.
581         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
582         'tune for' CPU name.
583         * config/arm/arm-cpu-data.h: Regenerated.
585 2017-02-28  Richard Biener  <rguenther@suse.de>
587         PR tree-optimization/79732
588         * tree-inline.c (expand_call_inline): Do not shadow var.
590 2017-02-28  Richard Biener  <rguenther@suse.de>
592         PR tree-optimization/79723
593         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
594         address-space properly.
596 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
598         * doc/optinfo.texi (Optimization groups): Fix option used for
599         OPTGROUP_ALL.
600         * doc/invoke.texi (-fopt-info): Document "omp".
601         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
602         (OPTGROUP_ALL): Add OPTGROUP_OMP.
603         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
604         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
605         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
607         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
608         all users.
609         * dumpfile.c (optgroup_options): Instead of "openmp", associate
610         OPTGROUP_OMP with "omp".
612 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
614         PR target/79544
615         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
616         for arithmetic shift of unsigned V2DI.
618 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
620         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
621         arc/linux.h headers.
622         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
623         (LINK_SPEC): Likewise.
624         (ARC_TLS_EXTRA_START_SPEC): Likewise.
625         (EXTRA_SPECS): Likewise.
626         (STARTFILE_SPEC): Likewise.
627         (ENDFILE_SPEC): Likewise.
628         (LIB_SPEC): Likewise.
629         (TARGET_SDATA_DEFAULT): Likewise.
630         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
631         (MULTILIB_DEFAULTS): Likewise.
632         (DWARF2_UNWIND_INFO): Likewise.
633         * config/arc/big.h: New file.
634         * config/arc/elf.h: Likewise.
635         * config/arc/linux.h: Likewise.
636         * config/arc/t-uClibc: Remove.
638 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
640         PR tree-optimization/77536
641         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
642         (tree_transform_and_unroll_loop): Use above function to compute the
643         estimated niter of unrolled loop and use it when scaling profile.
644         Also use count info rather than frequency if it's non-zero.
645         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
646         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
647         (vect_transform_loop): Call above function.
649 2017-02-27  Richard Biener  <rguenther@suse.de>
651         PR tree-optimization/45397
652         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
653         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
654         (visit_nary_op): Add pattern matching for CSEing sign-changed
655         or truncated operations with wider ones.
657 2017-02-27  Richard Biener  <rguenther@suse.de>
659         PR tree-optimization/79690
660         * tree-vect-stmts.c (vectorizable_store): Use vector type
661         built from the DR with address-space.
663 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
665         * doc/invoke.texi (Optimize Options): Refine the description
666         of asan-use-after-return.
668 2017-02-25  Alan Modra  <amodra@gmail.com>
670         PR rtl-optimization/79584
671         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
672         base, not ad->base_term, the reg within base.  Remove assertion
673         that ad->base == ad->base_term.  Replace gen_int_mode using
674         bogus mode with const0_rtx.
676 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
678         PR middle-end/79396
679         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
680         FMA_EXPR like tcc_binary or tcc_unary.
682         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
684         PR debug/77589
685         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
686         bitfield.
687         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
688         (output_loc_operands): Handle DW_OP_call_ref and
689         DW_OP_GNU_variable_value.
690         (struct variable_value_struct): New type.
691         (struct variable_value_hasher): Likewise.
692         (variable_value_hash): New variable.
693         (string_types): Remove.
694         (copy_loc_descr): New function.
695         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
696         (prepend_loc_descr_to_each): New function.
697         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
698         instead of add_loc_descr_to_each if the first argument is single
699         location list and the second has multiple.
700         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
701         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
702         when looking for variable value which doesn't have other location info.
703         (loc_list_from_tree): Formatting fix.
704         (gen_array_type_die): Simplify DW_AT_string_length handling.
705         (adjust_string_types): Remove.
706         (gen_subprogram_die): Don't call adjust_string_types nor test/set
707         string_types.  Call resolve_variable_values.
708         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
709         (resolve_addr_in_expr): Likewise.  Add A argument.
710         (copy_deref_exprloc): Remove deref argument.  Adjust for the
711         original expression being DW_OP_GNU_variable_value with optionally
712         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
713         optionally after it.
714         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
715         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
716         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
717         (variable_value_hasher::hash, variable_value_hasher::equal): New
718         methods.
719         (resolve_variable_value_in_expr, resolve_variable_value,
720         resolve_variable_values, note_variable_value_in_expr,
721         note_variable_value): New functions.
722         (dwarf2out_early_finish): Call note_variable_value on all toplevel
723         DIEs.
725 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
727         PR c/79677
728         * opts.h (handle_generated_option): Add GENERATED_P argument.
729         * opts-common.c (handle_option): Adjust function comment.
730         (handle_generated_option): Add GENERATED_P argument, pass it to
731         handle_option.
732         (control_warning_option): Pass false to handle_generated_option
733         GENERATED_P.
734         * opts.c (maybe_default_option): Pass true to handle_generated_option
735         GENERATED_P.
736         * optc-gen.awk: Likewise.
738 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
740         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
741         a REG, look at the REG it is a SUBREG of.
742         (splitter for cmpeqsi_t): Ditto.
744 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
746         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
747         the special USEs with the pattern of the insn, not the insn itself.
749 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
751         PR target/79473
752         * doc/invoke.texi: Document -mload-store-pairs.
754 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
755             Sandra Loosemore  <sandra@codesourcery.com>
757         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
758         argument isn't a CONST_INT.
759         (nios2_alternate_compare_const): Assert op is a CONST_INT.
760         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
761         (nios2_validate_compare): Bypass alternate compare logic if *op2
762         is not a CONST_INT.
763         (ldstwm_operation_p): Return false if first_base is not a REG or
764         if first_offset is not a CONST_INT.
766 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
768         * config/cris/cris.md: Use correct operand in a define_peephole2.
770 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
772         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
774 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
776         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
777         this_insn if it is an INSN or JUMP_INSN.
778         (force_offsettable): Look at base, not at addr.
779         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
780         on things that aren't necessarily CONST_INTs.
782 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
784         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
785         -mfpmath=sse is the default also for x86-32 targets with SSE2
786         instruction set when @option{-ffast-math} is enabled
788 2017-02-24  Jeff Law  <law@redhat.com>
790         PR rtl-optimizatoin/79286
791         * ira.c (update_equiv_regs): Drop may_trap_p exception to
792         dominance test.
794 2017-02-24  Richard Biener  <rguenther@suse.de>
796         PR tree-optimization/79389
797         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
798         debug insns.
800 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
802         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
803         function comment to reflect reality.
804         (loop_exits_before_overflow): Fix typo in function description.
806 2017-02-24  Richard Biener  <rguenther@suse.de>
808         PR tree-optimization/79389
809         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
810         properly that a threading opportunity exists.  Detect conditional
811         copy/constant propagation opportunities.
813 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
815         * config/visium/visium.md (type): Add trap.
816         (b): New mode attribute.
817         (*btst): Rename into...
818         (*btst<mode>): ...this and adjust.
819         (*cbranchsi4_btst_insn): Rename into...
820         (*cbranch<mode>4_btst_insn): ...this and adjust.
821         (trap): New define_insn.
823 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
825         PR tree-optimization/79389
826         * ifcvt.c (struct noce_if_info): Add rev_cond field.
827         (noce_reversed_cond_code): New function.
828         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
829         reversed_comparison_code.  Formatting fix.
830         (noce_try_store_flag): Test rev_cond != NULL in addition to
831         reversed_comparison_code.
832         (noce_try_store_flag_constants): Likewise.
833         (noce_try_store_flag_mask): Likewise.
834         (noce_try_addcc): Use rev_cond if non-NULL instead of
835         reversed_comparison_code.
836         (noce_try_cmove_arith): Likewise.  Formatting fixes.
837         (noce_try_minmax, noce_try_abs): Clear rev_cond.
838         (noce_find_if_block): Initialize rev_cond.
839         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
840         instead of false as last argument never attempt to reverse it
841         afterwards.
843 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
845         PR tree-optimization/79663
846         * tree-predcom.c (combine_chains): Process refs in reverse order
847         only for ZERO length chains, and add explaining comment.
849 2017-02-23  Jeff Law  <law@redhat.com>
851         PR tree-optimization/79578
852         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
853         in call to operand_equal_p.
855 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
857         PR target/71017
858         * config/i386/cpuid.h: Fix another undefined behavior.
860 2017-02-23  Richard Biener  <rguenther@suse.de>
862         PR tree-optimization/79683
863         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
864         vector types for data-refs.
866 2017-02-23  Martin Liska  <mliska@suse.cz>
868         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
870 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
872         PR middle-end/79665
873         * internal-fn.c (get_range_pos_neg): Moved to ...
874         * tree.c (get_range_pos_neg): ... here.  No longer static.
875         * tree.h (get_range_pos_neg): New prototype.
876         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
877         are known to be in between 0 and signed maximum inclusive, try to
878         expand both unsigned and signed divmod and use the cheaper one from
879         those.
881 2017-02-22  Jeff Law  <law@redhat.com>
883         PR tree-optimization/79578
884         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
885         to compare base operands.
887 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
889         PR target/79211
890         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
891         gpc_reg_operand instead of fpr_reg_operand.
893 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
895         * config/mips/mips.c (mips_return_in_memory): Force FP
896         vector types to be returned in memory for o32 ABI.
898 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
900         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
901         instead of DW_TAG_member for static data member declarations and don't
902         set no_linkage_name for static inline data members.
903         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
904         to DW_TAG_member.
906 2017-02-22  Martin Liska  <mliska@suse.cz>
908         * doc/invoke.texi: Replace inequality signs with square brackets
909         for -Wnormalized.
911 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
913         PR tree-optimization/68644
914         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
916 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
918         PR target/78660
919         * lra-constraints.c (simplify_operand_subreg): Handle
920         WORD_REGISTER_OPERATIONS targets.
922 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
924         PR target/70465
925         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
926         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
927         elimination by swapping fld*.
929 2017-02-22  Richard Biener  <rguenther@suse.de>
931         PR tree-optimization/79673
932         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
933         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
934         irrelevant address-space qualifiers and avoiding a
935         ADDR_SPACE_CONVERT_EXPR from fold_convert.
937 2017-02-22  Richard Biener  <rguenther@suse.de>
939         PR tree-optimization/79666
940         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
941         to not symbolically negate if that may introduce undefined
942         overflow.
944 2017-02-22  Martin Liska  <mliska@suse.cz>
946         PR lto/79587
947         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
948         * data-streamer-out.c (streamer_write_gcov_count_stream):
949         Likewise.
950         * value-prof.c (stream_out_histogram_value): Make assert more
951         precise based on type of counter.
953 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
955         PR target/79593
956         * config/i386/i386.md (standard_x87sse_constant_load splitter):
957         Use nonimmediate_operand instead of memory_operand for operand 1.
958         (float-extend standard_x87sse_constant_load splitter): Ditto.
960 2017-02-21 Jeff Law  <law@redhat.com>
962         PR tree-optimization/79621
963         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
964         blocks with edges to themselves.
966 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
968         PR target/79633
969         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
970         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
971         Use gimple_call_builtin_p.
973         PR target/79570
974         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
975         on temporarily removed DEBUG_INSNs.
977         PR tree-optimization/79649
978         * tree-loop-distribution.c (classify_partition): Give up on
979         non-generic address space loads/stores.
981 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
983         * doc/loop.texi (Loop manipulation): Remove nonexistent
984         tree_ssa_loop_version from the documentation.
985         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
987 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
989         PR target/79494
990         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
991         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
992         * config/rs6000/rs6000.c: Include except.h.
993         (rs6000_expand_split_stack_prologue): Call
994         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
996 2017-02-21  Martin Jambor  <mjambor@suse.cz>
998         PR lto/79579
999         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
1000         have been analyzed.
1002 2017-02-21  Martin Jambor  <mjambor@suse.cz>
1004         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
1005         for backward compatibility only.
1006         * doc/invoke.texi (Option Summary): Remove all references to
1007         -fipa-cp-alignment.
1009 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
1011         PR target/78660
1012         Revert:
1013         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1015         * lra-constraints.c (curr_insn_transform): Handle
1016         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1018 2017-02-21  Martin Liska  <mliska@suse.cz>
1020         * config/i386/i386.opt: Replace -masm-dialect with -masm.
1022 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
1024         PR translation/79638
1025         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
1027 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
1029         PR ada/67205
1030         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1031         (arm_function_ok_for_sibcall): Return false for an indirect call by
1032         descriptor if all the argument registers are used.
1033         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
1034         alignment of the function.
1036 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1038         PR tree-optimization/61441
1039         * simplify-rtx.c (simplify_const_unary_operation): For
1040         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
1041         the sNaN unmodified.
1043 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1045         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1046         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1047         instead of SYSTEM_HEADER_DIR.
1049 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
1050             Martin LiÅ¡ka  <mliska@suse.cz>
1052         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
1053         Fix typos and grammar, use active voice, and clarify.
1055 2017-02-20  Marek Polacek  <polacek@redhat.com>
1057         PR middle-end/79537
1058         * gimplify.c (gimplify_expr): Handle unused *&&L;.
1060         PR sanitizer/79558
1061         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
1063 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
1065         PR target/79568
1066         * config/i386/i386.c (ix86_expand_builtin): Handle
1067         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
1068         ix86_builtins_isa[fcode].isa as a requirement of those
1069         flags and any other flag in the bitmask.
1070         (ix86_init_mmx_sse_builtins): Use 0 instead of
1071         ~OPTION_MASK_ISA_64BIT as mask.
1072         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
1073         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
1074         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
1075         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
1077 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1079         PR target/78012
1080         * lra-constraints.c (split_reg): Check requested split mode
1081         is supported by the register.
1083 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1085         * lra-constraints.c (simplify_operand_subreg): Remove early
1086         return false.
1088 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1090         PR target/78660
1091         * lra-constraints.c (curr_insn_transform): Tighten condition
1092         for converting SUBREG reloads from OP_OUT to OP_INOUT.
1094 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1096         PR target/78660
1097         * lra-constraints.c (curr_insn_transform): Handle
1098         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1100 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
1102         Revert:
1103         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
1105         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1107 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
1109         PR c++/69523
1110         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
1111         description.
1113 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1115         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
1116         for FMA_EXPR.
1118 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
1120         * final.c (last_columnnum, override_columnnum): New variables.
1121         (final_start_function): Set last_columnnum, pass it to begin_prologue
1122         hook and pass 0 to dwarf2out_begin_prologue.
1123         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
1124         to source_line debug hook.
1125         (notice_source_line): Compute last_columnnum and for debug_column_info
1126         return true on column changes.
1127         * debug.h (struct gcc_debug_hooks): Add column argument to
1128         source_line and begin_prologue hooks.
1129         (debug_nothing_int_charstar_int_bool): Remove prototype.
1130         (debug_nothing_int_int_charstar,
1131         debug_nothing_int_int_charstar_int_bool): New prototypes.
1132         (dwarf2out_begin_prologue): Add column argument.
1133         * debug.c (do_nothing_debug_hooks): Adjust source_line and
1134         begin_prologue hooks.
1135         (debug_nothing_int_charstar_int_bool): Remove.
1136         (debug_nothing_int_int_charstar,
1137         debug_nothing_int_int_charstar_int_bool): New functions.
1138         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
1139         through to dwarf2out_source_line.
1140         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
1141         (dwarf2out_source_line): Add column argument, emit it if requested.
1142         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
1143         arguments.
1144         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1145         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1146         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
1147         through to dwarf2out_begin_prologue.
1148         (vmsdbgout_source_line): Add column argument, pass it through to
1149         dwarf2out_source_line.
1150         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
1151         dbxout_source_line caller.
1152         (dbxout_source_line): Add column argument.
1154         * common.opt (gno-column-info, gcolumn-info): New options.
1155         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
1156         (check_die): Also test for multiple DW_AT_decl_column attributes.
1157         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
1158         DW_AT_decl_column if requested.
1159         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
1160         if requested.
1161         (gen_variable_die): Likewise.
1162         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
1163         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
1165         PR target/79569
1166         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
1167         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
1168         (ix86_handle_option): Handle OPT_m3dnowa.
1169         * doc/invoke.texi (-m3dnowa): Document.
1170         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
1171         -m3dnowa instead of -m3dnow -march=athlon.
1173         PR target/79559
1174         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
1175         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
1177 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1179         PR target/79261
1180         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1181         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
1182         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
1183         generator for vsx_xxpermdi_<mode>_be.
1184         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
1185         force big-endian semantics.
1186         (vsx_xxpermdi_<mode>_be): New define_expand with same
1187         implementation as previous version of vsx_xxpermdi_<mode>.
1189 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
1191         PR tree-optimization/79327
1192         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
1193         variable, its initialization and use.
1195 2017-02-17  Julia Koval  <julia.koval@intel.com>
1197         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
1198         (OPTION_MASK_ISA_PKU_UNSET): New.
1199         (ix86_handle_option): Handle -mrdpid.
1200         * config/i386/cpuid.h (bit_RDPID): New.
1201         * config/i386/driver-i386.c (host_detect_local_cpu):
1202         Detect RDPID feature.
1203         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
1204         * config/i386/i386-c.c (ix86_target_macros_internal):
1205         Handle RDPID flag.
1206         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
1207         (ix86_valid_target_attribute_inner_p): Add "rdpid".
1208         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
1209         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
1210         * config/i386/i386.md (define_insn "rdpid"): New.
1211         * config/i386/i386.opt Add -mrdpid.
1212         * config/i386/immintrin.h (_rdpid_u32): New.
1214 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
1216         PR rtl-optimization/79541
1217         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
1218         instead of transforming it into USE.
1220 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
1222         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
1223         If HONOR_SNANS (SFmode) force the input to a register.
1224         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
1225         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
1226         an frsp or similar insn.
1228 2017-02-17  Martin Liska  <mliska@suse.cz>
1230         PR rtl-optimization/79577
1231         * params.def (selsched-max-sched-times): Increase minimum to 1.
1233 2017-02-17  Martin Liska  <mliska@suse.cz>
1235         PR rtl-optimization/79574
1236         * gcse.c (want_to_gcse_p): Prevent integer overflow.
1238 2017-02-17  Martin Liska  <mliska@suse.cz>
1240         PR tree-optimization/79529
1241         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
1242         ssa_defined_default_def_p to handle cases which are implicitly
1243         defined.
1244         * tree-ssa.c (ssa_defined_default_def_p): New function.
1245         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
1246         which are implicitly defined.
1247         * tree-ssa.h (ssa_defined_default_def_p): Declare.
1249 2017-02-17  Richard Biener  <rguenther@suse.de>
1251         PR middle-end/79576
1252         * params.def (max-ssa-name-query-depth): Limit to 10.
1254 2017-02-17  Richard Biener  <rguenther@suse.de>
1256         PR tree-optimization/79552
1257         * tree-ssa-structalias.c (visit_loadstore): Properly verify
1258         default defs.
1260 2017-02-17  Richard Biener  <rguenther@suse.de>
1262         PR bootstrap/79567
1263         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
1265 2017-02-17  Marek Polacek  <polacek@redhat.com>
1267         PR middle-end/79536
1268         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
1269         (fold_negate_expr): New wrapper.
1271 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
1273         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
1274         Correct terminology and de-emphasize pre-standard behavior.
1276 2017-02-16  Alan Modra  <amodra@gmail.com>
1278         PR rtl-optimization/79286
1279         * ira.c (def_dominates_uses): New function.
1280         (update_equiv_regs): Don't create an equivalence for insns that
1281         may trap where the register def does not dominate the use.
1283 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
1285         PR rtl-optimization/78127
1286         * lra.c (lra): Call lra_eliminate before finish the loop after
1287         lra_constraint.
1289 2017-02-16  Richard Biener  <rguenther@suse.de>
1291         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
1292         isl/isl_val.h.
1293         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
1294         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
1295         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
1296         (isl_val_int_from_wi): New function.
1297         (extract_affine_gmp): Rename to ...
1298         (extract_affine_wi): ... this, take a widest_int.
1299         (extract_affine_int): Just wrap extract_affine_wi.
1300         (add_param_constraints): Use isl_val_int_from_wi.
1301         (add_loop_constraints): Likewise, and extract_affine_wi.
1303 2017-02-15 Jeff Law  <law@redhat.com>
1305         PR middle-end/79521
1306         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
1307         ira_init_register_move_cost_if_necessary.
1309 2017-02-15  Martin Sebor  <msebor@redhat.com>
1311         PR middle-end/32003
1312         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
1313         removed in a prior commit.
1315 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
1317         PR tree-optimization/79347
1318         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
1319         counters during peeling.
1321 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
1323         * Makefile.in (site.exp): Remove "set ISLVER".
1325 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
1327         PR target/79487
1328         * real.c (real_from_integer): Call real_convert even for decimal.
1330 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1332         PR target/79421
1333         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
1335 2017-02-14  Andrew Pinski  <apinski@cavium.com>
1337         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
1338         cores and change the partno/implementer to be correct.
1339         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
1340         the 'B" as the implementer.
1341         * config/aarch64/aarch64-tune.md: Regenerate.
1343 2017-02-14  Carl Love  <cel@us.ibm.com>
1345         * config/rs6000/rs6000.c: Add case statement entry to make the
1346         xvcvuxdsp built-in argument unsigned.
1347         * config/rs6000/vsx.md: Fix the source and return operand types so they
1348         match the instruction definitions from the ISA document.  Fix typo
1349         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
1350         statement.
1352 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
1354         PR target/79282
1355         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
1356         member early_clobber_alts.
1357         * lra-lives.c (reg_early_clobber_p): New.
1358         (process_bb_lives): Use it.
1359         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
1360         (debug_operand_data): Initialize early_clobber_alts.
1361         (setup_operand_alternative): Set up early_clobber_alts.
1362         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
1363         alternatives to new_insn_reg.
1364         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
1365         it.
1366         (lra_update_insn_regno_info): Pass the new arg.
1368 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
1370         PR middle-end/79505
1371         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
1372         (new_oacc_loop_raw): Don't clear already cleared fields.
1374         PR target/79481
1375         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
1376         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
1377         _mm512_prefetch_i64gather_ps): New inline functions and macros.
1379 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
1381         PR target/79495
1382         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
1384 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1386         PR target/79498
1387         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
1388         the extra instruction to the right place to store 128-bit constant
1389         when needed.
1391 2017-02-14  Martin Sebor  <msebor@redhat.com>
1393         PR middle-end/79448
1394         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
1395           warning for strings of unknown length.
1397 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
1399         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
1401 2017-02-14 Jeff Law  <law@redhat.com>
1403         PR target/79404
1404         * ira-costs.c (scan_one_insn): Initialize register move costs
1405         for pseudos seen in USE/CLOBBER insns.
1407         PR tree-optimization/79095
1408         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
1409         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
1410         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
1411         if the operands are known to be not equal, then the resulting range
1412         is ~[0,0].
1413         (intersect_ranges): If the new range is ~[0,0] and the old range is
1414         wide, then prefer ~[0,0].
1415         * tree-vrp.c (overflow_comparison_p_1): New function.
1416         (overflow_comparison_p): New function.
1417         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
1418         if NAME is used in an overflow test.
1419         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
1420         overflow check that can be expressed as an equality test, then adjust
1421         ops to be that equality test.
1423 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1425         * config/s390/s390-builtin-types.def: Remove flags argument.
1426         * config/s390/s390.c (s390_init_builtins): Likewise.
1428 2017-02-14  Martin Liska  <mliska@suse.cz>
1430         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
1431         vector.  Fix trailing white spaces.
1433 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
1435         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
1436         HFmode.
1438 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1440         PR rtl-optimization/68664
1441         * config/arm/arm.c (arm_sched_can_speculate_insn):
1442         New function.  Declare prototype.
1443         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
1445 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1447         PR rtl-optimization/68664
1448         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
1449         New function.
1450         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
1452 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
1454         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
1455         max skip bytes for function, loop and jump.
1457 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1459         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
1460         ABS_EXPR for gimple dump.
1462 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
1464         PR target/79462
1465         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
1467         PR tree-optimization/79408
1468         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
1469         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
1470         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1471         also if rhs1 is INTEGER_CST.
1473 2017-02-14  Richard Biener  <rguenther@suse.de>
1475         PR middle-end/79432
1476         * tree-into-ssa.c (insert_phi_nodes): When the function can
1477         have abnormal edges rewrite SSA names with broken use-def
1478         dominance out of SSA and register them for PHI insertion.
1480 2017-02-13  Martin Sebor  <msebor@redhat.com>
1482         PR middle-end/79496
1483         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
1484         clearing info.nowrite flag when snprintf size argument is a range.
1486 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1488         * cprop.c (cprop_jump): Add missing space in string literal.
1489         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1490         (get_constraint_for_component_ref): Likewise.
1491         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1492         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
1493         * lra-constraints.c (process_alt_operands): Likewise.
1494         * ipa-inline.c (inline_small_functions): Likewise.
1495         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
1496         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1497         * trans-mem.c (diagnose_tm_1_op): Likewise.
1498         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
1499         (grid_parallel_clauses_gridifiable): Likewise.
1501         * config/nvptx/mkoffload.c (process): Add space in between
1502         , and %d.
1504         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
1505         "MOD4_SSE_REGS" and "ALL_REGS".
1507         * spellcheck.c (test_data): Add , in between "foo" and "food".
1509 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1511         PR target/79449
1512         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
1513         boundary crossing check and subsequent code generation agree.
1515 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1517         * config/aarch64/aarch64.c (has_memory_op): Delete.
1518         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
1519         has_memory_op.
1521 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1523         PR rtl-optimization/79388
1524         PR rtl-optimization/79450
1525         * combine.c (distribute_notes): When removing TEM_INSN for which
1526         corresponding dest has last value recorded, invalidate that last
1527         value.
1529 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1531         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
1532         of explicit '@'.  Add missing assembly comment marker on branch costs
1533         printout.
1535 2017-02-13  Nathan Sidwell  <nathan@acm.org>
1537         * gengtype-lex.l (<in_struct>): Add '/'.
1539 2017-02-13  Martin Liska  <mliska@suse.cz>
1541         PR c/79471
1542         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
1544 2017-02-13  Richard Biener  <rguenther@suse.de>
1546         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
1547         Remove.
1548         * configure: Re-generate.
1549         * config.in: Likewise.
1550         * graphite-dependences.c: Simplify as if
1551         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
1552         * graphite-isl-ast-to-gimple.c: Likewise.
1553         * graphite-optimize-isl.c: Likewise.
1554         * graphite-poly.c: Likewise.
1555         * graphite-sese-to-poly.c: Likewise.
1556         * graphite.h: Likewise.
1557         * toplev.c: Include isl/version.h and use isl_version () for
1558         printing the ISL version.
1559         * doc/install.texi: Update ISL requirement.
1561 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
1563         * doc/standards.texi (Standards): Update reference to
1564         Objective-C 2.0.
1566 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
1567         
1568         * doc/extend.texi (Named Address Spaces): sourceware.org now
1569         defaults to https.
1570         * doc/install.texi (Binaries): Ditto.
1571         (Specific): Ditto.
1573 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
1575         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
1576         standard terminology "stringize"/"stringizing" throughout.
1577         * doc/cppinternals.texi: Likewise.
1579 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
1581         * doc/extend.texi: Fix some spelling mistakes and typos.
1582         * doc/invoke.texi: Likewise.
1584 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
1586         PR ipa/79224
1587         * params.def (inline-min-speedup) Change from 10 to 8.
1589 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
1591         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
1592         4.5.
1594 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
1596         PR ipa/79224
1597         * ipa-inline-analysis.c (get_minimal_bb): New function.
1598         (record_modified): Use it.
1599         (remap_edge_change_prob): Handle also ancestor functions.
1601 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
1603         * doc/contrib.texi (Contributors): Remove broken link into
1604         the Mauve CVS repository.
1606 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
1608         PR middle-end/79454
1609         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
1610         result computation whenever lhs doesn't have vector mode, not
1611         just when it has BLKmode.
1613 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
1615         * doc/makefile.texi (profiledbootstrap): Refer to the
1616         installation instructions only in textual form.
1618 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1620         PR target/79295
1621         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
1623 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
1625         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
1626         (Specific): Update mingw-w64 reference.
1627         (Binaries): Ditto.
1628         (Specific): Remove broken link to Renesas RX processor.
1630 2017-02-10  Richard Biener  <rguenther@suse.de>
1632         * toplev.c (process_options): Do not mention obsolete graphite
1633         options when printing sorry message about missing graphite support.
1634         Mention -floop-nest-optimize.
1636 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
1638         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
1639         (vtst_p16): Likewise.
1640         (vtstq_p8): Likewise.
1641         (vtstq_p16): Likewise.
1642         (vtst_p64): New.
1643         (vtstq_p64): Likewise.
1644         * config/arm/arm_neon.h (vgetq_lane_p64): New.
1645         (vset_lane_p64): New.
1646         (vsetq_lane_p64): New.
1648 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
1650         PR tree-optimization/79411
1651         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
1652         stmt operands are SSA_NAMEs used in abnormal phis.
1653         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
1654         phis.
1656 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
1658         PR ipa/70795
1659         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
1660         flag if needed.
1662 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
1664         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
1666 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
1668         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
1669         to avoid warning.
1671         PR c/79413
1672         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
1673         not arbitrary TREE_CONSTANT.
1675         PR c/79431
1676         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
1677         "omp declare target link" attribute unless is_global_var.
1678         * omp-offload.c (find_link_var_op): Likewise.
1680 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
1681             Chung-Lin Tang  <cltang@codesourcery.com>
1683         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
1684         OMP_CLAUSE_TILE.
1685         (gimplify_adjust_omp_clauses): Don't delete TILE.
1686         (gimplify_omp_for): Deal with TILE.
1687         * internal-fn.c (expand_GOACC_TILE): New function.
1688         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
1689         (GOACC_TILE): New.
1690         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
1691         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
1692         element fields.
1693         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
1694         avoid DIV for outermost collapse var.
1695         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
1696         Remove out of date comments, fix whitespace.
1697         * omp-general.c (omp_extract_for_data): Deal with tiling.
1698         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
1699         adjust OLF_DIM_BASE value.
1700         (struct omp_for_data): Add tiling field.
1701         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
1702         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
1703         for auto loops.  Remove default auto determining, moved to
1704         oacc_loop_fixed_partitions.
1705         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
1706         stmts, add e_mask field.
1707         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
1708         (oacc_thread_numbers): Use oacc_dim_call.
1709         (oacc_xform_tile): New.
1710         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
1711         (finish_oacc_loop): Adjust for ifns vector.
1712         (oacc_loop_discover_walk): Append loop abstraction sites to list,
1713         add case for GOACC_TILE fns.
1714         (oacc_loop_xform_loop): Delete.
1715         (oacc_loop_process): Iterate over call list directly, and add
1716         handling for GOACC_TILE fns.
1717         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
1718         dump partitioning.
1719         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
1720         vector partitioning to outer loops.  Assign 2 partitions to loops
1721         when available. Add TILE handling.
1722         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
1723         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
1724         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
1725         * tree.c (omp_clause_num_ops): Adjust TILE ops.
1726         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
1728 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
1730         * configure.ac (ACX_BUGURL): Update.
1731         * configure: Regenerate.
1733 2017-02-09  Richard Biener  <rguenther@suse.de>
1735         PR tree-optimization/69823
1736         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1737         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
1739 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1741         * config/arc/arc-c.def: Add __NPS400__ definition.
1742         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
1743         (TARGET_NPS400): Define.
1745 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
1747         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
1748         file.
1749         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
1750         pointer, arch_info.
1751         (arc_cpu_types): Fill the arch_info field with a pointer into the
1752         arc_arch_types table.
1753         (arc_selected_cpu): Declare.
1754         * config/arc/arc.c (arc_selected_cpu): Make global.
1755         (arc_selected_arch): Delete.
1756         (arc_base_cpu): Delete.
1757         (arc_override_options): Remove references to deleted variables,
1758         update access to arch information.
1759         (ARC_OPT): Update access to arch information.
1760         (ARC_OPTX): Likewise.
1761         * config/arc/arc.h (arc_base_cpu): Remove declaration.
1762         (TARGET_ARC600): Update access to arch information.
1763         (TARGET_ARC601): Likewise.
1764         (TARGET_ARC700): Likewise.
1765         (TARGET_EM): Likewise.
1766         (TARGET_HS): Likewise.
1767         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
1768         information.
1770 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
1772         PR target/78604
1773         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
1774         condition/operands for integer GE/LE/GEU/LEU operations.
1776 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
1778         PR translation/79397
1779         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
1780         of AltiVec.
1782 2017-02-08  Martin Jambor  <mjambor@suse.cz>
1784         PR ipa/79375
1785         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
1786         whether allocation happened.
1787         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
1788         nothing was allocated.
1790 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
1792         PR tree-optimization/79408
1793         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
1794         constant, but SSA_NAME with a known integer range, use the minimum
1795         of that range instead of op1 to determine if modulo can be replaced
1796         with its first operand.
1798 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1800         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
1802 2017-02-08  Richard Biener  <rguenther@suse.de>
1804         PR tree-optimization/71824
1805         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1806         Check all loops contained in the merged region.
1808 2017-02-07  Andrew Pinski  <apinski@cavium.com>
1810         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
1812 2017-02-07  Andrew Pinski  <apinski@cavium.com>
1814         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
1815         (thunderxt88): Likewise.
1816         (thunderxt81): Disable LSE and change v8.1 to v8.
1817         (thunderxt83): Likewise.
1819 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
1820             Richard Biener  <rguenther@suse.de>
1822         PR middle-end/79399
1823         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
1824         type from int to size_t.
1825         * ira-costs.c (struct_costs_size): Change type from int to size_t.
1827 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
1829         PR rtl-optimization/79386
1830         * cprop.c (bypass_conditional_jumps): Initialize
1831         bypass_last_basic_block already before splitting bbs after
1832         unconditional traps...
1833         (bypass_conditional_jumps): ... rather than here.
1835         PR target/79299
1836         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
1837         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
1838         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
1839         fix -masm=intel patterns.
1841 2017-02-07  Richard Biener  <rguenther@suse.de>
1843         PR tree-optimization/79256
1844         PR middle-end/79278
1845         * builtins.c (get_object_alignment_2): Use min_align_of_type
1846         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
1847         and ADJUST_FIELD_ALIGN.
1849         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
1850         type parameter.
1851         * doc/tm.texi: Regenerate.
1852         * stor-layout.c (layout_decl): Adjust.
1853         (update_alignment_for_field): Likewise.
1854         (place_field): Likewise.
1855         (min_align_of_type): Likewise.
1856         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
1857         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
1858         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
1859         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
1860         * config/frv/frv.c (frv_adjust_field_align): Likewise.
1861         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
1862         * config/i386/i386.c (x86_field_alignment): Likewise.
1863         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1864         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
1865         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
1866         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1867         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
1868         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1869          Likewise.
1871         Revert
1872         2017-01-30  Richard Biener  <rguenther@suse.de>
1874         PR tree-optimization/79256
1875         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
1876         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
1877         alignment on TYPE.
1879 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
1881         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
1882         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
1883         builtins to SImode and emit a zero-extend, if necessary.
1885 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
1887         * docs/invoke.texi (RISC-V Options): Alphabetize.
1889 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
1891         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
1892         options.
1894 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
1896         * config/riscv/riscv.c: New file.
1897         * gcc/common/config/riscv/riscv-common.c: Likewise.
1898         * config.gcc: Likewise.
1899         * config/riscv/constraints.md: Likewise.
1900         * config/riscv/elf.h: Likewise.
1901         * config/riscv/generic.md: Likewise.
1902         * config/riscv/linux.h: Likewise.
1903         * config/riscv/multilib-generator: Likewise.
1904         * config/riscv/peephole.md: Likewise.
1905         * config/riscv/pic.md: Likewise.
1906         * config/riscv/predicates.md: Likewise.
1907         * config/riscv/riscv-builtins.c: Likewise.
1908         * config/riscv/riscv-c.c: Likewise.
1909         * config/riscv/riscv-ftypes.def: Likewise.
1910         * config/riscv/riscv-modes.def: Likewise.
1911         * config/riscv/riscv-opts.h: Likewise.
1912         * config/riscv/riscv-protos.h: Likewise.
1913         * config/riscv/riscv.h: Likewise.
1914         * config/riscv/riscv.md: Likewise.
1915         * config/riscv/riscv.opt: Likewise.
1916         * config/riscv/sync.md: Likewise.
1917         * config/riscv/t-elf-multilib: Likewise.
1918         * config/riscv/t-linux: Likewise.
1919         * config/riscv/t-linux-multilib: Likewise.
1920         * config/riscv/t-riscv: Likewise.
1921         * configure.ac: Likewise.
1922         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
1923         Waterman as RISC-V maintainers.
1924         * doc/install.texi: Add RISC-V entries.
1925         * doc/invoke.texi: Add RISC-V options section.
1926         * doc/md.texi: Add RISC-V constraints section.
1927         * configure: Regenerated.
1929 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1931         PR target/66144
1932         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
1933         false values to be constant vectors with all 0 or all 1 bits set.
1934         (vcondu<mode><mode>): Likewise.
1935         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
1936         predicate.
1937         (fpmask_comparison_operator): Update comment.
1938         (vecint_comparison_operator): New predicate.
1939         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
1940         vector conditionals when the true and false values are constant
1941         vectors with all 0 bits or all 1 bits set.
1943 2017-02-06  Martin Sebor  <msebor@redhat.com>
1945         PR  tree-optimization/79376
1946         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
1948 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
1950         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
1951         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
1952         to simplify split condition.
1954 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
1956         * omp-expand.c (oxpand_omp_atomic_fetch_op,
1957         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
1958         false.
1960 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
1962         PR rtl-optimization/68664
1963         * target.def (can_speculate_insn): New hook.
1964         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
1965         * doc/tm.texi: Regenerate.
1966         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
1967         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
1968         (rs6000_sched_can_speculate_insn): New function.
1970 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
1972         PR tree-optimization/79284
1973         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
1974         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
1975         vectorizable_mask_load_store, vectorizable_operation,
1976         vect_is_simple_cond, get_same_sized_vectype): Use it instead
1977         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
1978         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
1979         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
1980         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1981         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1982         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
1983         is_gimple_assign (stmt).  Replace another such test with
1984         is_gimple_assign (stmt).
1986 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
1988         PR target/78883
1989         * config/avr/avr.c (rtl-iter.h): Include it.
1990         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
1991         (avr_legitimate_combined_insn): ...and implementation.
1993 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1995         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
1996         * config/s390/s390.c (s390_const_operand_ok)
1997         (s390_canonicalize_comparison, s390_extract_part)
1998         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
1999         (s390_contiguous_bitmask_p, s390_rtx_costs)
2000         (legitimize_pic_address): Likewise.
2001         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
2002         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
2003         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
2004         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
2005         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
2007 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
2009         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
2010         REGNO($0) == REGNO($1).
2012 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2014         * config/s390/linux.h(SIZE_TYPE): Add comment.
2016 2017-02-06  Julian Brown  <julian@codesourcery.com>
2017             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2018             Virendra Pathak  <virendra.pathak@broadcom.com>
2020         * config/aarch64/aarch64-cores.def: Change the scheduler
2021         to Thunderx2t99.
2022         * config/aarch64/aarch64.md: Include thunderx2t99.md.
2023         * config/aarch64/thunderx2t99.md: New file.
2025 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2027         * doc/standards.texi (Go Language): Update link to language
2028         standard.
2030 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
2032         * tree-eh.c (lower_resx): Sanitize profile.
2033         (cleanup_empty_eh_move_lp): Likewise.
2035 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
2037         PR tree-ssa/79347
2038         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
2039         ELSE_PROB.
2040         * cfgloopmanip.h (loop_version): Update prototype.
2041         * modulo-sched.c (sms_schedule): Update call of loop_version.
2042         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
2043         * tree-parloops.c (gen_parallel_loop): Likewise.
2044         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2045         * tree-ssa-loop-split.c (split_loop): Likewise.
2046         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
2047         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
2049 2017-02-05  Martin Liska  <mliska@suse.cz>
2051         PR bootstrap/78985
2052         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
2053         variable to NULL.
2054         (print_operand_address): Initialize a struct to zero.
2056 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2058         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
2059         garbage collector only in textual form.
2061 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2062         
2063         * doc/extend.texi (x86 specific memory model extensions for
2064         transactional memory): Simplify a phrase.
2066 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
2068         PR target/79353
2069         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
2070         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
2071         (atomic_storedi_1): Likewise.
2073 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
2075         PR tree-optimization/79338
2076         * tree-parloops.c (gather_scalar_reductions): Don't call
2077         vect_analyze_loop_form for loop->inner before destroying loop's
2078         loop_vinfo.
2080 2017-02-03  Martin Sebor  <msebor@redhat.com>
2082         PR tree-optimization/79327
2083         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
2084         when precision has resulted in leading zeros.
2085         (format_integer): Adjust the likely counter to assume an unknown
2086         argument that may be zero is non-zero.
2088 2017-02-03  Jason Merrill  <jason@redhat.com>
2090         PR c++/78689
2091         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
2092         avoid copying non-taken branch.
2094 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
2096         PR tree-optimization/79340
2097         * tree-vect-loop.c (vectorizable_reduction): Release
2098         vec_defs elements after safe_splicing them into other vectors.
2099         Formatting fixes.
2101         PR tree-optimization/79327
2102         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
2103         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
2104         dirtype.
2105         (format_integer): Use wide_int_to_tree instead of build_int_cst
2106         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
2107         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
2108         of shortest and longest sequence.
2110 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
2112         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2113         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
2115 2017-02-03  Walter Lee  <walt@tilera.com>
2117         PR target/78862
2118         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
2119         after initial stackframe link reg save.
2120         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
2122 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
2124         PR target/79354
2125         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
2126         wu for stxssp alternative.
2128 2017-02-03  Martin Sebor  <msebor@redhat.com>
2130         PR tree-optimization/79352
2131         * gimple-fold.c (get_range_strlen): Add argument.
2132         (get_range_strlen): Change return type to bool.
2133         (get_maxval_strlen): Pass in a dummy argument.
2134         * gimple-fold.h (get_range_strlen): Change return type to bool.
2135         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
2136         * tree.h (array_at_struct_end_p): Add argument.
2137         * tree.c (array_at_struct_end_p): Handle it.
2139 2017-02-03  Martin Liska  <mliska@suse.cz>
2141         PR lto/66295
2142         * multiple_target.c (create_dispatcher_calls): Redirect edge
2143         from a caller of a dispatcher.
2144         (expand_target_clones): Make the clones local.
2145         (ipa_target_clone): Do both target clones and resolvers.
2146         (ipa_dispatcher_calls): Remove the pass.
2147         (pass_dispatcher_calls::gate): Likewise.
2148         (make_pass_dispatcher_calls): Likewise.
2149         * passes.def (pass_target_clone): Put as very first IPA early
2150         pass.
2152 2017-02-03  Martin Liska  <mliska@suse.cz>
2154         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
2155         in case of a function with ifunc attribute.
2157 2017-02-03  Martin Liska  <mliska@suse.cz>
2159         * cgraph.c (cgraph_node::dump): Dump function version info.
2160         * symtab.c (symtab_node::dump_base): Add missing new line.
2162 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
2164         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
2165         (ifcombine_ifandif): Use it.
2167 2017-02-03  Martin Liska  <mliska@suse.cz>
2169         * doc/invoke.texi: Document default value for
2170         use-after-scope-direct-emission-threshold.
2172 2017-02-03  Martin Liska  <mliska@suse.cz>
2174         PR tree-optimization/79339
2175         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
2176         (format_floating): Likewise.
2178 2017-02-03  Martin Liska  <mliska@suse.cz>
2180         PR ipa/79337
2181         * ipa-prop.c (ipa_node_params_t::insert): Remove current
2182         implementation.
2183         (ipa_node_params_t::remove): Likewise.
2184         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
2185         initialization from removed ipa_node_params_t::insert.
2186         (ipa_node_params::~ipa_node_params): Move from removed
2187         ipa_node_params_t::release.
2188         * symbol-summary.h (symbol_summary::m_released): New member.
2189         Do not release a summary twice.  Do not allow to call finalizer
2190         for types of a summary that live in GGC memory.
2192 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2194         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
2195         cmp_branch fusion.
2197 2017-02-02  Martin Sebor  <msebor@redhat.com>
2199         PR middle-end/79275
2200         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
2201         (format_string): Tighten up the range of output for non-constant
2202         strings and correct the expected range for wide non-constant strings.
2204 2017-02-02  Martin Sebor  <msebor@redhat.com>
2206         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
2208         PR middle-end/32003
2209         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
2210         index.
2211         (-fdump-tree-@var): Add to index and document how to come up
2212         with pass-specific option and dump file names.
2213         (-fdump-passes): Clarify where to look for output.
2215 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
2217         PR middle-end/77445
2218         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
2219         statistics of the analyzed path; allow threading for speed when
2220         any of BBs along the path are optimized for speed.
2222 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
2224         PR middle-end/78468
2225         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
2226         settings of the virtual registers.
2228         Revert again
2229         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2231         * explow.c (get_dynamic_stack_size): Take known alignment of stack
2232         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2233         needed.
2235 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2237         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
2238         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
2240 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2242         * config/s390/s390.md: Add missing comments with the expanded
2243         mnemonics.
2244         * config/s390/vector.md: Likewise.
2245         * config/s390/vx-builtins.md: Likewise.
2247 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
2249         PR target/79197
2250         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
2251         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
2252         conditions on a single line.
2254 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2256         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2257         __S390_VX__ to __VX__.
2259 2017-02-01  Andrew Pinski  <apinski@cavium.com>
2261         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
2262         stmt_info to record_stmt_cost.
2263         (vect_get_known_peeling_cost): Pass stmt_info if known to
2264         record_stmt_cost.
2265         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
2266         cpu_vector_cost field into
2267         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
2268         field into vec_int_stmt_cost and vec_fp_stmt_cost.
2269         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
2270         splitting of scalar_stmt_cost and vec_stmt_cost.
2271         (thunderx_vector_cost): Likewise.
2272         (cortexa57_vector_cost): LIkewise.
2273         (exynosm1_vector_cost): Likewise.
2274         (xgene1_vector_cost): Likewise.
2275         (thunderx2t99_vector_cost): Improve after the splitting of the two
2276         fields.
2277         (aarch64_builtin_vectorization_cost): Update for the splitting of
2278         scalar_stmt_cost and vec_stmt_cost.
2280 2017-02-01  Torvald Riegel  <triegel@redhat.com>
2281             Richard Henderson  <rth@redhat.com>
2283         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
2284         conditional on existance of a fast atomic load.
2285         * optabs-query.c (can_atomic_load_p): New function.
2286         * optabs-query.h (can_atomic_load_p): Declare it.
2287         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
2288         no fast atomic load is available for the particular size of access.
2289         (expand_atomic_compare_and_swap): Likewise.
2290         (expand_atomic_load): Likewise.
2291         (expand_atomic_store): Likewise.
2292         (expand_atomic_fetch_op): Likewise.
2293         * testsuite/lib/target-supports.exp
2294         (check_effective_target_sync_int_128): Remove x86 because it provides
2295         no fast atomic load.
2296         (check_effective_target_sync_int_128_runtime): Likewise.
2298 2017-02-01  Richard Biener  <rguenther@suse.de>
2300         * graphite.c: Include tree-vectorizer.h for find_loop_location.
2301         (graphite_transform_loops): Provide opt-info for optimized nests.
2302         * tree-parloop.c (parallelize_loops): Provide opt-info for
2303         parallelized loops.
2305 2017-02-01  Richard Biener  <rguenther@suse.de>
2307         PR middle-end/79315
2308         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
2309         was not set before.
2311 2017-02-01  Richard Biener  <rguenther@suse.de>
2313         PR tree-optimization/71824
2314         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2315         Verify the loops are valid in the merged SESE region.
2316         (scop_detection::can_represent_loop_1): Check analyzing the
2317         evolution of the number of iterations in the region succeeds.
2319 2017-01-31  Ian Lance Taylor  <iant@golang.org>
2321         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
2322         REG_ARGS_SIZE note to 32-bit push insns and call insn.
2324 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
2326         PR preprocessor/79210
2327         * input.c (get_substring_ranges_for_loc): Replace line_width
2328         assertion with error-handling.
2330 2017-01-31  Richard Biener  <rguenther@suse.de>
2332         PR tree-optimization/77318
2333         * graphite-sese-to-poly.c (extract_affine): Fix assert.
2334         (create_pw_aff_from_tree): Take loop parameter.
2335         (add_condition_to_pbb): Pass loop of the condition to
2336         create_pw_aff_from_tree.
2338 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
2340         * config/s390/s390.c (s390_asan_shadow_offset): New function.
2341         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
2343 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2345         PR target/78597
2346         PR target/79038
2347         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
2348         no longer used.
2349         (convert_int_to_float128): Likewise.
2350         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
2351         (convert_int_to_float128): Likewise.
2352         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
2353         (UNSPEC_IEEE128_CONVERT): Likewise.
2354         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
2355         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
2356         Use local variables for IBM extended format.
2357         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
2358         (fix_trunc<mode>si2_fprs): Likewise.
2359         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2360         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
2361         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
2362         to know that we can now have integers of all sizes in vector
2363         registers.
2364         (fix<uns>_<mode>di2_hw): Likewise.
2365         (float<uns>_<mode>si2_hw): Likewise.
2366         (fix_<mode>si2_hw): Likewise.
2367         (fixuns_<mode>si2_hw): Likewise.
2368         (float<uns>_<mode>di2_hw): Likewise.
2369         (float_<mode>di2_hw): Likewise.
2370         (float_<mode>si2_hw): Likewise.
2371         (floatuns_<mode>di2_hw): Likewise.
2372         (floatuns_<mode>si2_hw): Likewise.
2373         (xscvqp<su>wz_<mode>): Delete, no longer used.
2374         (xscvqp<su>dz_<mode>): Likewise.
2375         (xscv<su>dqp_<mode>): Likewise.
2376         (ieee128_mfvsrd_64bit): Likewise.
2377         (ieee128_mfvsrd_32bit): Likewise.
2378         (ieee128_mfvsrwz): Likewise.
2379         (ieee128_mtvsrw): Likewise.
2380         (ieee128_mtvsrd_64bit): Likewise.
2381         (ieee128_mtvsrd_32bit): Likewise.
2383 2017-01-31  Martin Liska  <mliska@suse.cz>
2385         PR ipa/79285
2386         * ipa-prop.c (ipa_free_all_node_params): Call release method
2387         instead of ~sumbol_summary to not to trigger double times
2388         dtor of hash_map.
2390 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
2392         PR tree-optimization/71691
2393         * bitmap.h (class auto_bitmap): New.
2394         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
2395         is_maybe_undefined instead of ssa_undefined_value_p.
2397 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2399         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2400         __S390_ARCH_LEVEL__ to __ARCH__.
2402 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
2404         PR tree-optimization/79267
2405         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
2406         if should_remove_lhs_p is true.
2408 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
2410         PR debug/63238
2411         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
2412         (add_alignment_attribute): New.
2413         (base_type_die): Add alignment attribute.
2414         (subrange_type_die): Likewise.
2415         (modified_type_die): Likewise.
2416         (gen_array_type_die): Likewise.
2417         (gen_descr_array_type_die: Likewise.
2418         (gen_enumeration_type_die): Likewise.
2419         (gen_subprogram_die): Likewise.
2420         (gen_variable_die): Likewise.
2421         (gen_field_die): Likewise.
2422         (gen_ptr_to_mbr_type_die): Likewise.
2423         (gen_struct_or_union_type_die): Likewise.
2424         (gen_subroutine_type_die): Likewise.
2425         (gen_typedef_die): Likewise.
2426         (base_type_cmp): Compare alignment attribute.
2428 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2430         PR target/79170
2431         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
2432         (setb_unsigned) New pattern for setb with CCUNS.
2433         * config/rs6000/rs6000.c (expand_block_compare): Use a different
2434         subfc./subfe sequence to avoid overflow problems.  Generate a
2435         shorter sequence with cmpld/setb for power9.
2436         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
2437         for generating subfc. instruction.
2438         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
2439         now uses this instruction.
2441 2017-01-30  Ian Lance Taylor  <iant@google.com>
2443         PR debug/79289
2444         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
2445         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
2447 2017-01-30  Martin Sebor  <msebor@redhat.com>
2449         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
2450         Move constant to the right of a relational operator.
2451         (get_mpfr_format_length, format_character, format_string): Ditto.
2452         (should_warn_p, maybe_warn): Same.
2454         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
2456 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
2458         PR lto/79061
2459         * asan.c (get_translation_unit_decl): Remove function.
2460         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
2462 2017-01-30  Martin Liska  <mliska@suse.cz>
2464         PR gcov-profile/79259
2465         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
2466         -fprofile-generate.
2468 2017-01-30  Martin Liska  <mliska@suse.cz>
2470         PR bootstrap/78985
2471         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
2472         Initialize variables with NULL value.
2474 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
2476         PR target/79260
2477         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
2478         tm_p_file.
2479         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
2481 2017-01-30  Richard Biener  <rguenther@suse.de>
2483         PR tree-optimization/79276
2484         * tree-vrp.c (process_assert_insertions): Properly adjust common
2485         when removing a duplicate.
2487         * gcc.dg/torture/pr79276.c: New testcase.
2489 2017-01-30  Richard Biener  <rguenther@suse.de>
2491         PR tree-optimization/79256
2492         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2493         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2494         alignment on TYPE.
2495         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
2497 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2499         PR target/79240
2500         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
2501         ("*r<noxa>sbg_<mode>_sll_bitmask")
2502         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2503         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
2504         Use contiguous_bitmask_nowrap_operand.
2506 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2508         PR target/79268
2509         * config/rs6000/altivec.h (vec_xl): Revise #define.
2510         (vec_xst): Likewise.
2512 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
2514         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
2516 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
2518         PR rtl-optimization/79194
2519         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
2520         traps before call to bypass_conditional_jumps.
2522 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
2524         PR tree-optimization/71374
2525         * lra-constraints.c (check_conflict_input_operands): New.
2526         (match_reload): Use it.
2528 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
2530         PR target/79131
2531         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
2532         account to calculate conflict_set.
2534 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
2536         PR rtl-optimization/78559
2537         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
2538         other_insn in combine.
2540 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2542         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
2543         uint16_type_node for BT_UINT16.
2545 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
2547         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
2548         "RTL Tests" to menu.
2549         (GIMPLE Tests): New node.
2550         (RTL Tests): New node.
2552 2017-01-27  Richard Biener  <rguenther@suse.de>
2554         PR tree-optimization/79245
2555         * tree-loop-distribution.c (distribute_loop): Apply cost
2556         modeling also to detected patterns.
2558 2017-01-27  Richard Biener  <rguenther@suse.de>
2560         PR tree-optimization/71433
2561         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
2562         (compare_assert_loc): New function.
2563         (process_assert_insertions): Sort and optimize assert locations
2564         to remove duplicates and push down identical assertions on
2565         edges to their destination block.
2567 2017-01-27  Richard Biener  <rguenther@suse.de>
2569         PR tree-optimization/79244
2570         * tree-vrp.c (remove_range_assertions): Forcefully propagate
2571         out SSA names even if abnormal.
2573 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
2575         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
2576         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
2577         instead of MPFR_RNDN.
2579 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
2581         PR target/79239
2582         * arm.c (arm_option_override): Don't call build_target_option_node
2583         until after doing all option overrides.
2584         (arm_valid_target_attribute_tree): Likewise.
2586 2017-01-27  Martin Liska  <mliska@suse.cz>
2588         * doc/invoke.texi (-fprofile-arcs): Document profiling support
2589         for {cd}tors and C++ {cd}tors.
2591 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2593         * config/s390/s390.md ("*setmem_long_and")
2594         ("*setmem_long_and_31z"): Use zero_extend instead of and.
2596 2017-01-26  Martin Sebor  <msebor@redhat.com>
2598         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
2599         of precision.
2601 2017-01-26  Martin Sebor  <msebor@redhat.com>
2603         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
2604         HAVE_DFmode before using XFmode or DFmode.
2605         (parse_directive): Avoid using the z length modifier to avoid
2606         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
2608         PR middle-end/78703
2609         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
2610         to accept adjustment as an array.
2611         (get_int_range): New function.
2612         (struct directive): Make width and prec arrays.
2613         (directive::set_width, directive::set_precision): Call get_int_range.
2614         (format_integer, format_floating): Handle width and precision ranges.
2615         (format_string, parse_directive): Same.
2617 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2619         PR debug/79129
2620         * dwarf2out.c (generate_skeleton_bottom_up): For children with
2621         comdat_type_p set, just clone them, but keep the children in the
2622         original DIE.
2624         PR debug/78835
2625         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
2626         which have direct callers with -fvar-tracking-assignments enabled
2627         in the current TU.
2628         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
2629         inside of type units.
2631 2017-01-26  Martin Sebor  <msebor@redhat.com>
2633         PR middle-end/78703
2634         * gimple-ssa-sprintf.c (struct result_range): Add likely and
2635         unlikely counters.
2636         (struct format_result): Replace number_chars, number_chars_min,
2637         and number_chars_max with a single member of struct result_range.
2638         Remove bounded.
2639         (format_result::operator+=): Adjust.
2640         (struct fmtresult): Remove bounded.  Handle likely and unlikely
2641         counters.
2642         (fmtresult::adjust_for_width_or_precision): New function.
2643         (fmtresult:type_max_digits): New function.
2644         (bytes_remaining): Handle likely and unlikely counters.
2645         (min_bytes_remaining): Remove.
2646         (format_percent): Simplify.
2647         (format_integer, format_floating): Set likely and unlikely counters.
2648         (get_string_length, format_character, format_string): Same.
2649         (format_plain, should_warn_p): New function.
2650         (maybe_warn): Call should_warn_p.  Update diagnostic messages
2651         and handle those for all directives, including plain strings.
2652         (format_directive): Handle likely and unlikely counters.
2653         Remove unnecessary quoting from diagnostics.  Add an informational
2654         note.
2655         (add_bytes): Remove.
2656         (pass_sprintf_length::compute_format_length): Simplify.
2657         (try_substitute_return_value): Handle likely and unlikely counters.
2659 2017-01-26  Carl Love  <cel@us.ibm.com>
2661         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
2662         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
2664 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
2666         PR target/79131
2667         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
2668         endianess for subregs into account.
2669         * lra-constraints.c (lra_constraints): Do risky transformations
2670         always on the first iteration.
2671         * lra-lives.c (check_pseudos_live_through_calls): Add arg
2672         last_call_used_reg_set.
2673         (process_bb_lives): Define and use last_call_used_reg_set.
2674         * lra.c (lra): Always continue after lra_constraints on the first
2675         iteration.
2677 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
2679         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
2680         constant.
2681         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
2683 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2685         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
2686         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
2687         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
2688         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
2689         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
2690         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
2691         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
2692         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
2693         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
2695 2017-01-26  Marek Polacek  <polacek@redhat.com>
2697         PR c/79199
2698         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
2699         for the third operand.
2701 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2703         PR middle-end/79236
2704         * omp-low.c (struct omp_context): Add simt_stmt field.
2705         (scan_omp_for): Return omp_context *.
2706         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
2707         context to the _simt_ SIMD stmt.
2708         (lower_omp_for): For combined SIMD with sibling _simt_
2709         SIMD, make sure to use the same decls in _looptemp_
2710         clauses as in the sibling.
2712 2017-01-26  David Sherwood  <david.sherwood@arm.com>
2714         PR middle-end/79212
2715         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
2716         all contexts.
2718 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2720         PR target/70465
2721         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
2722         emit fld b; fld a; if possible.
2724         * brig-builtins.def: Update copyright years.
2725         * config/arm/arm_acle_builtins.def: Update copyright years.
2727 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2729         PR target/79179
2730         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
2731         constraint instead of o for the stxsd instruction.
2733 2017-01-25  Carl Love  <cel@us.ibm.com>
2735         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
2736         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
2738 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
2740         * doc/invoke.texi (C++ Dialect Options): Fix typo.
2742 2017-01-25  Richard Biener  <rguenther@suse.de>
2744         PR tree-optimization/69264
2745         * target.def (vector_alignment_reachable): Improve documentation.
2746         * doc/tm.texi: Regenerate.
2747         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
2748         and add a comment.
2749         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
2750         earlier changes with respect to TYPE_USER_ALIGN.
2751         (vector_alignment_reachable_p): Likewise.  Improve dumping.
2753 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2755         PR target/79145
2756         * config/arm/arm.md (xordi3): Force constant operand into a register
2757         for TARGET_IWMMXT.
2759 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2761         * doc/invoke.texi (-fstore-merging): Correct default optimization
2762         levels at which it is enabled.
2763         (-O): Move -fstore-merging from list to...
2764         (-O2): ... Here.
2766 2017-01-25  Richard Biener  <rguenther@suse.de>
2768         PR debug/78363
2769         * omp-expand.c: Include debug.h.
2770         (expand_omp_taskreg): Make sure to generate early debug before
2771         outlining anything from a function.
2772         (expand_omp_target): Likewise.
2773         (grid_expand_target_grid_body): Likewise.
2775 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
2777         PR lto/79061
2778         * asan.c (get_translation_unit_decl): New function.
2779         (asan_add_global): Extract modules file name from globals
2780         TRANSLATION_UNIT_DECL name.
2782 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
2784         PR target/77439
2785         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
2786         for long calls with APCS frame and VFP.
2788 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
2790         * cfg.c (original_copy_tables_initialized_p): New function.
2791         * cfg.h (original_copy_tables_initialized_p): New decl.
2792         * cfgrtl.c (relink_block_chain): Guard the call to
2793         free_original_copy_tables with a call to
2794         original_copy_tables_initialized_p.
2795         * cgraph.h (symtab_node::native_rtl_p): New decl.
2796         * cgraphunit.c (symtab_node::native_rtl_p): New function.
2797         (symtab_node::needed_p): Don't assert for early assembly output
2798         for __RTL functions.
2799         (cgraph_node::finalize_function): Set "force_output" for __RTL
2800         functions.
2801         (cgraph_node::analyze): Bail out early for __RTL functions.
2802         (analyze_functions): Update assertion to support __RTL functions.
2803         (cgraph_node::expand): Bail out early for __RTL functions.
2804         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
2805         __RTL functions.
2806         * function.h (struct function): Update comment for field
2807         "pass_startwith".
2808         * gimple-expr.c: Include "tree-pass.h".
2809         (gimple_has_body_p): Return false for __RTL functions.
2810         * Makefile.in (OBJS): Add run-rtl-passes.o.
2811         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
2812         accessor.
2813         (gcc::pass_manager::get_clean_slate): New accessor.
2814         * passes.c: Include "insn-addr.h".
2815         (should_skip_pass_p): Add logging.  Update logic for running
2816         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
2817         property-provider override so it is only done for gimple passes.
2818         Don't skip dfinit.
2819         (skip_pass): New function.
2820         (execute_one_pass): Call skip_pass when skipping passes.
2821         * read-md.c (md_reader::read_char): Support filtering
2822         the input to a subset of line numbers.
2823         (md_reader::md_reader): Initialize fields
2824         m_first_line and m_last_line.
2825         (md_reader::read_file_fragment): New function.
2826         * read-md.h (md_reader::read_file_fragment): New decl.
2827         (md_reader::m_first_line): New field.
2828         (md_reader::m_last_line): New field.
2829         * read-rtl-function.c (function_reader::create_function): Only
2830         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
2831         curr_properties.  Set DECL_INITIAL to a dummy block.
2832         (read_rtl_function_body_from_file_range): New function.
2833         * read-rtl-function.h (read_rtl_function_body_from_file_range):
2834         New decl.
2835         * run-rtl-passes.c: New file.
2836         * run-rtl-passes.h: New file.
2838 2017-01-24 Jeff Law  <law@redhat.com>
2840         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
2841         buffer size.
2843 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
2845         PR tree-optimization/79159
2846         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
2847         (record_nonwrapping_iv): Improve boundary using above function if no
2848         value range information.
2850 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
2851             Martin Jambor  <mjambor@suse.cz>
2853         * brig-builtins.def: New file.
2854         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
2855         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
2856         (DEF_HSAIL_SAT_BUILTIN): Likewise.
2857         (DEF_HSAIL_INTR_BUILTIN): Likewise.
2858         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
2859         * builtin-types.def (BT_INT8): New.
2860         (BT_INT16): Likewise.
2861         (BT_UINT8): Likewise.
2862         (BT_UINT16): Likewise.
2863         (BT_FN_ULONG): Likewise.
2864         (BT_FN_UINT_INT): Likewise.
2865         (BT_FN_UINT_ULONG): Likewise.
2866         (BT_FN_UINT_LONG): Likewise.
2867         (BT_FN_UINT_PTR): Likewise.
2868         (BT_FN_ULONG_PTR): Likewise.
2869         (BT_FN_INT8_FLOAT): Likewise.
2870         (BT_FN_INT16_FLOAT): Likewise.
2871         (BT_FN_UINT32_FLOAT): Likewise.
2872         (BT_FN_UINT16_FLOAT): Likewise.
2873         (BT_FN_UINT8_FLOAT): Likewise.
2874         (BT_FN_UINT64_FLOAT): Likewise.
2875         (BT_FN_UINT16_UINT32): Likewise.
2876         (BT_FN_UINT32_UINT16): Likewise.
2877         (BT_FN_UINT16_UINT16_UINT16): Likewise.
2878         (BT_FN_INT_PTR_INT): Likewise.
2879         (BT_FN_UINT_PTR_UINT): Likewise.
2880         (BT_FN_LONG_PTR_LONG): Likewise.
2881         (BT_FN_ULONG_PTR_ULONG): Likewise.
2882         (BT_FN_VOID_UINT64_UINT64): Likewise.
2883         (BT_FN_UINT8_UINT8_UINT8): Likewise.
2884         (BT_FN_INT8_INT8_INT8): Likewise.
2885         (BT_FN_INT16_INT16_INT16): Likewise.
2886         (BT_FN_INT_INT_INT): Likewise.
2887         (BT_FN_UINT_FLOAT_UINT): Likewise.
2888         (BT_FN_FLOAT_UINT_UINT): Likewise.
2889         (BT_FN_ULONG_UINT_UINT): Likewise.
2890         (BT_FN_ULONG_UINT_PTR): Likewise.
2891         (BT_FN_ULONG_ULONG_ULONG): Likewise.
2892         (BT_FN_UINT_UINT_UINT): Likewise.
2893         (BT_FN_VOID_UINT_PTR): Likewise.
2894         (BT_FN_UINT_UINT_PTR: Likewise.
2895         (BT_FN_UINT32_UINT64_PTR): Likewise.
2896         (BT_FN_INT_INT_UINT_UINT): Likewise.
2897         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
2898         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
2899         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
2900         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
2901         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
2902         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
2903         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
2904         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
2905         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
2906         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
2907         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
2908         * doc/frontends.texi: List BRIG FE.
2909         * doc/install.texi (Testing): Add BRIG tesring requirements.
2910         * doc/invoke.texi (Overall Options): Mention BRIG.
2911         * doc/standards.texi (Standards): Doucment BRIG HSA version.
2913 2017-01-24  Richard Biener  <rguenther@suse.de>
2915         PR translation/79208
2916         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
2918 2017-01-24  Martin Jambor  <mjambor@suse.cz>
2920         PR bootstrap/79198
2921         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
2922         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
2923         and known_contexts.
2925 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
2927         PR middle-end/79123
2928         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
2929         casts from signed to unsigned really don't have a range.
2931 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
2933         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
2934         GMP_RNDx for compatiblity.
2936 2017-01-24  Martin Liska  <mliska@suse.cz>
2938         PR bootstrap/79132
2939         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
2940         that would prevent us to call alloca with -1 as argument.
2942 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
2944         * dwarf2out.c (output_compilation_unit_header, output_file_names):
2945         Avoid -Wformat-security warning.
2947 2017-01-23  Andrew Pinski  <apinski@cavium.com>
2949         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
2950         cost table.
2952 2017-01-23  Martin Sebor  <msebor@redhat.com>
2954         PR middle-end/78703
2955         * gimple-ssa-sprintf.c (warn_level): New global.
2956         (format_integer): Use it here and throughout the rest of the file.
2957         Use the same switch to compute sign as base.
2958         (maybe_warn): New function.
2959         (format_directive): Factor out warnings into maybe_warn.
2960         Add debugging output.  Use warn_level.
2961         (add_bytes): Use warn_level.
2962         (pass_sprintf_length::compute_format_length): Add debugging output.
2963         (try_substitute_return_value): Same.
2964         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
2966         PR middle-end/78703
2967         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
2968         (struct fmtresult, format_integer, format_floating): Adjust.
2969         (fmtresult::fmtresult): Set max correctly in two argument ctor.
2970         (get_string_length, format_string,format_directive): Same.
2971         (pass_sprintf_length::compute_format_length): Same.
2972         (try_substitute_return_value): Simplify slightly.
2974         PR middle-end/78703
2975         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
2976         (fmtresult::operator+=): Outlined.
2977         (struct fmtresult): Add ctors.
2978         (struct conversion_spec): Rename...
2979         (struct directive): ...to this.  Add and remove data members.
2980         (directive::set_width, directive::set_precision): New functions.
2981         (format_percent): Use fmtresult ctor.
2982         (get_width_and_precision): Remove.
2983         (format_integer): Make naming changes.  Avoid computing width and
2984         precision.
2985         (format_floating): Same.  Adjust indentation.
2986         (format_character, format_none): New functions.
2987         (format_string): Moved character handling to format_character.
2988         (format_directive): Remove arguments, change return type.
2989         (parse_directive): New function.
2990         (pass_sprintf_length::compute_format_length): Move directive
2991         parsing to parse_directive.
2993 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
2995         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
2996         (assign_assembler_name_if_needed): ... this.
2997         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
2998         (assign_assembler_name_if_needed): ... this.
2999         (free_lang_data_in_cgraph): Adjust callers.
3000         * cgraphunit.c (cgraph_node::analyze): Likewise.
3001         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
3002         Likewise.
3004 2017-01-23  Richard Biener  <rguenther@suse.de>
3006         PR tree-optimization/79088
3007         PR tree-optimization/79188
3008         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
3009         resetting loop bounds after last path deletion.  Reset loop
3010         bounds of the target loop, make code match the comments.
3011         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
3012         Make sure loops need no fixups.
3014 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3016         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
3017         exponent support with double type for first argument.
3018         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
3019         type returned by __builtin_vec_extract_sig,
3020         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
3021         functions from "vector int" to "vector unsigned int" or from
3022         "vector long long int" to "vector unsigned long long int".
3023         Changed type returned by __builtin_vec_extract_exp,
3024         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
3025         functions from "vector int" to "vector unsigned int" or from
3026         "vector long long int" to "vector unsigned long long int".
3027         Changed return type of __builtin_vec_test_data_class,
3028         __builtin_vec_test_data_class_sp, and
3029         __builtin_vec_test_data_class_dp from "vector int" to
3030         "vector bool int" or from "vector long long int" to "vector bool
3031         long long int" and changed second argument type from "unsigned
3032         int" to "int".  Added new overloaded function forms "vector float
3033         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
3034         "vector float __builtin_vec_insert_exp_sp (vector float, vector
3035         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
3036         double, vector unsigned long long int)" and "vector double
3037         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
3038         long int)".  Changed return type of
3039         __builtin_scalar_test_data_class and
3040         __builtin_scalar_test_data_class_sp and
3041         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
3042         int" and changed second argument from "unsigned int" to "int".
3043         Changed type returned by __builtin_scalar_test_neg,
3044         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
3045         from "int" to "bool int".  Added new overloaded function form
3046         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
3047         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
3048         exponent double-precision with floating point first argument.
3049         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
3050         documentation of scalar_test_data_class, scalar_test_neg,
3051         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
3052         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
3053         vec_test_data_class built-in functions to reflect refinements in
3054         their type signatures.
3056 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
3058         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
3059         size of buf.
3060         (aarch64_elf_asm_destructor): Likewise.
3062 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
3064         PR rtl-optimization/78634
3065         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
3066         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
3067         * ifcvt.c (noce_try_cmove): Add missing cost check.
3069         PR rtl-optimization/71724
3070         * combine.c (if_then_else_cond): Look for situations where it is
3071         beneficial to undo the work of one of the recursive calls.
3073 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
3075         PR tree-optimization/70754
3076         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
3077         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
3078         combined stmt before it if not NULL.
3079         (combine_chains): Process refs reversely and compute dominance point
3080         for root ref.
3082 2017-01-23  Martin Liska  <mliska@suse.cz>
3084         PR tree-optimization/79196
3085         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
3086         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
3087         instead of memcmp.
3088         (strlen_optimize_stmt): Call the renamed function.
3090 2017-01-23  Michael Matz  <matz@suse.de>
3092         PR tree-optimization/78384
3093         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
3095 2017-01-23  Richard Biener  <rguenther@suse.de>
3097         PR tree-optimization/79186
3098         * tree-vrp.c (register_new_assert_for): Make sure we've seen
3099         both incoming edges before moving an assert.
3101 2017-01-23  Martin Jambor  <mjambor@suse.cz>
3103         * ipa-prop.c (load_from_param_1): Removed.
3104         (load_from_unmodified_param): Bits from load_from_param_1 put back
3105         here.
3106         (load_from_param): Removed.
3107         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
3108         with stmt.  Reverted back to use of load_from_unmodified_param.
3110 2017-01-23  Martin Jambor  <mjambor@suse.cz>
3112         PR ipa/79108
3113         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
3114         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
3115         field a pointer to garbage collected vector, mark lattices and
3116         ipcp_orig_node with GTY((skip)).
3117         (ipa_get_param_count): Adjust to descriptors being a pointer.
3118         (ipa_get_param): Likewise.
3119         (ipa_get_type): Likewise.
3120         (ipa_get_param_move_cost): Likewise.
3121         (ipa_set_param_used): Likewise.
3122         (ipa_get_controlled_uses): Likewise.
3123         (ipa_set_controlled_uses): Likewise.
3124         (ipa_is_param_used): Likewise.
3125         (ipa_node_params_t): Move into garbage collector.  New methods insert
3126         and remove.
3127         (ipa_node_params_sum): Annotate wth GTY(()).
3128         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
3129         garbage collected.
3130         (ipa_load_from_parm_agg): Adjust declaration.
3131         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
3132         * ipa-profile.c (ipa_profile): Likewise.
3133         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
3134         (ipa_populate_param_decls): Make descriptors parameter garbage
3135         collected.
3136         (ipa_dump_param): Adjust to descriptors being a pointer.
3137         (ipa_alloc_node_params): Likewise.
3138         (ipa_initialize_node_params): Likewise.
3139         (load_from_param_1): Make descriptors parameter garbage collected.
3140         (load_from_unmodified_param): Likewise.
3141         (load_from_param): Likewise.
3142         (ipa_load_from_parm_agg): Likewise.
3143         (ipa_node_params::~ipa_node_params): Removed.
3144         (ipa_free_all_node_params): Remove call to delete operator.
3145         (ipa_node_params_t::insert): New.
3146         (ipa_node_params_t::remove): Likewise.
3147         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
3148         copy known_csts and known_contexts vectors.
3149         (ipa_read_node_info): Adjust to descriptors being a pointer.
3150         (ipcp_modif_dom_walker): Make m_descriptors field garbage
3151         collected.
3152         (ipcp_transform_function): Make descriptors variable garbage
3153         collected.
3155 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
3157         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
3158         * config/i386/avx512dqintrin.h: Ditto.
3159         * config/i386/avx512fintrin.h: Ditto.
3160         * gcc/config/i386/i386.c: Handle new builtins.
3161         * config/i386/i386-builtin.def: Add new builtins.
3162         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
3163         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
3165 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
3166             Martin Liska  <mliska@suse.cz>
3168         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
3169         * asan.c (asan_expand_poison_ifn): Support stores and use
3170         appropriate ASAN report function.
3171         * internal-fn.c (expand_ASAN_POISON_USE): New function.
3172         * internal-fn.def (ASAN_POISON_USE): Declare.
3173         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
3174         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
3175         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
3176         ASAN_POISON calls w/o LHS.
3177         * tree-ssa.c (execute_update_addresses_taken): Create clobber
3178         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
3179         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
3180         * gimplify.c (asan_poison_variables): Add attribute
3181         use_after_scope_memory to variables that really needs to live
3182         in memory.
3183         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
3184         having the attribute.
3186 2017-01-23  Martin Liska  <mliska@suse.cz>
3188         * asan.c (create_asan_shadow_var): New function.
3189         (asan_expand_poison_ifn): Likewise.
3190         * asan.h (asan_expand_poison_ifn): New declaration.
3191         * internal-fn.c (expand_ASAN_POISON): Likewise.
3192         * internal-fn.def (ASAN_POISON): New builtin.
3193         * sanopt.c (pass_sanopt::execute): Expand
3194         asan_expand_poison_ifn.
3195         * tree-inline.c (copy_decl_for_dup_finish): Make function
3196         external.
3197         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
3198         * tree-ssa.c (is_asan_mark_p): New function.
3199         (execute_update_addresses_taken): Rewrite local variables
3200         (identified just by use-after-scope as addressable) into SSA.
3202 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
3204         * doc/install.texi (Specific): opensource.apple.com uses https
3205         now. Remove trailing slash.
3207 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
3209         * README.Portability: Remove note on an Irix compatibility issue.
3211 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
3213         * gcov.c (INCLUDE_ALGORITHM): Define.
3214         (INCLUDE_VECTOR): Define.
3215         No longer include <vector> and <algorithm> directly.
3217 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
3219         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
3220         to https.
3221         * doc/invoke.texi (Code Gen Options): Ditto.
3223 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
3225         PR lto/78407
3226         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
3228 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
3230         rtl-optimization/79125
3231         * cprop.c (local_cprop_pass): Handle cases where we make an
3232         unconditional trap.
3234 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
3236         PR target/61729
3237         PR target/77850
3238         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
3239         read from, for big endian.
3241 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
3243         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
3244         register pauth builtins for LP64 only.
3246 2017-01-20  Marek Polacek  <polacek@redhat.com>
3248         PR c/79152
3249         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
3250         non-case labels.
3252 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
3254         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
3255         of safelen status.
3256         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
3257         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
3258         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
3260 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3262         PR target/71270
3263         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
3264         in big-endian mode when they are not a single duplicated value.
3266 2017-01-20  Richard Biener  <rguenther@suse.de>
3268         * BASE-VER: Bump to 7.0.1.
3270 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
3272         * omp-low.c (omplow_simd_context): New struct.  Use it...
3273         (lower_rec_simd_input_clauses): ...here and...
3274         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
3275         references to idx, lane, max_vf, is_simt.
3277 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
3279         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
3280         mcpu=nps400.
3282 2017-01-20  Martin Jambor  <mjambor@suse.cz>
3284         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
3285         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
3286         gt-hsa-common.h.
3287         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
3288         (GTFILES): Rename hsa.c to hsa-common.c.
3289         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
3290         * hsa-dump.c: Likewise.
3291         * hsa-gen.c: Likewise.
3292         * hsa-regalloc.c: Likewise.
3293         * ipa-hsa.c: Likewise.
3294         * omp-expand.c: Likewise.
3295         * omp-low.c: Likewise.
3296         * toplev.c: Likewise.
3298 2017-01-20  Marek Polacek  <polacek@redhat.com>
3300         PR c/64279
3301         * doc/invoke.texi: Document -Wduplicated-branches.
3302         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
3303         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
3304         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
3305         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
3306         return 0 only when not OEP_LEXICOGRAPHIC.
3307         (fold_build_cleanup_point_expr): Use the expression
3308         location when building CLEANUP_POINT_EXPR.
3309         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
3310         * tree.c (add_expr): Handle error_mark_node.
3312 2017-01-20  Martin Liska  <mliska@suse.cz>
3314         PR lto/69188
3315         * tree-profile.c (init_ic_make_global_vars): Do not call
3316         finalize_decl.
3317         (gimple_init_gcov_profiler): Likewise.
3319 2017-01-20  Martin Liska  <mliska@suse.cz>
3321         PR ipa/71190
3322         * cgraph.h (maybe_create_reference): Remove argument and
3323         update comment.
3324         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
3325         argument.
3326         * ipa-cp.c (create_specialized_node): Likewise.
3327         * symtab.c (symtab_node::maybe_create_reference): Handle
3328         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
3330 2017-01-20  Martin Liska  <mliska@suse.cz>
3332         * read-rtl-function.c (function_reader::create_function): Use
3333         build_decl instread of build_decl_stat.
3335 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
3337         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
3338         * config/i386/avx512dqintrin.h: Ditto.
3339         * config/i386/avx512fintrin.h: Ditto.
3340         * config/i386/i386-builtin-types.def: Add new types.
3341         * gcc/config/i386/i386.c: Handle new types.
3342         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
3343         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
3344         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
3345         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
3346         (__builtin_ia32_kshiftridi): New.
3347         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
3349 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
3351         PR target/78875
3352         PR target/79140
3353         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
3354         define to rs6000_init_stack_protect_guard.
3355         (rs6000_init_stack_protect_guard): New function.
3357 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
3358             Yunqiang Su  <yunqiang.su@imgtec.com>
3360         * config.gcc (supported_defaults): Add madd4.
3361         (with_madd4): Add validation.
3362         (all_defaults): Add madd4.
3363         * config/mips/mips.opt (mmadd4): New option.
3364         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3365         mmadd4.
3366         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3367         __mips_no_madd4.
3368         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
3369         (ISA_HAS_FUSED_MADD4): Likewise.
3370         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
3371         * gcc/doc/install.texi (--with-madd4): Document the new option.
3373 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3375         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
3376         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
3377         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
3378         (aarch64_init_pauth_hint_builtins): New.
3379         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
3380         (aarch64_expand_builtin): Expand new builtins.
3382 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3384         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
3385         * combine-stack-adj.c (no_unhandled_cfa): Handle
3386         REG_CFA_TOGGLE_RA_MANGLE.
3387         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
3388         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
3389         info for return address signing.
3390         (aarch64_expand_epilogue): Likewise.
3392 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3394         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
3395         * config/aarch64/aarch64-protos.h
3396         (aarch64_return_address_signing_enabled): New declaration.
3397         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
3398         New function.
3399         (aarch64_expand_prologue): Sign return address before it's pushed onto
3400         stack.
3401         (aarch64_expand_epilogue): Authenticate return address fetched from
3402         stack.
3403         (aarch64_override_options): Sanity check for ILP32 and ISA level.
3404         (aarch64_attributes): New function attributes for "sign-return-address".
3405         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
3406         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
3407         ("*do_return"): Generate combined instructions according to key index.
3408         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
3409         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
3410         iterators.
3411         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
3412         * config/aarch64/aarch64.opt (msign-return-address=): New.
3413         * doc/extend.texi (AArch64 Function Attributes): Documents
3414         "sign-return-address=".
3415         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
3417 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
3419         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
3420         overall option summary.
3422 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3424         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
3425         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
3426         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
3427         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
3429 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
3431         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
3432         -mpower9-minmax by default for -mcpu=power9.
3433         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
3434         128-bit floating point.
3436 2017-01-20  Alan Modra  <amodra@gmail.com>
3438         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
3439         optimizing for size.
3441 2017-01-20  Alan Modra  <amodra@gmail.com>
3443         PR target/79144
3444         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
3445         for strcmp and strncmp from corresponding builtin decl.
3447 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
3449         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
3450         instead of i386/rtems-64.h.
3451         * config/i386/rtems-64.h: Remove.
3453 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
3455         PR target/78478
3456         Revert:
3457         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
3459         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
3461 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
3463         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
3464         Change int to HOST_WIDE_INT.
3465         * config/aarch64/aarch64-protos.h
3466         (aarch64_simd_gen_const_vector_dup): Likewise.
3467         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
3469 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
3471         * langhooks-def.h (lhd_type_for_size): New decl.
3472         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
3473         * langhooks.c (lhd_type_for_size): New function, taken from
3474         lto_type_for_size.
3476 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
3478         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
3479         define_bypass for CR latency.
3480         (power9-cracked-alu): Update bypass latency and remove power9-branch.
3481         (power9-alu2): Add define_bypass for CR latency.
3482         (power9-cmp): New.
3483         (power9-mul): Update insn latency.
3484         (power9-mul-compare): Update insn latency, bypass latency and remove
3485         power9-branch.
3487 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3489         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3490         Delete.
3491         * config/aarch64/aarch64.md
3492         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
3493         aarch64_nopcrelative_literal_loads.
3494         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3496 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
3498         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
3499         TARGET_LOONGSON_3A.
3500         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
3502 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
3504         PR target/78176
3505         * config.gcc (supported_defaults): Add lxc1-sxc1.
3506         (with_lxc1_sxc1): Add validation.
3507         (all_defaults): Add lxc1-sxc1.
3508         * config/mips/mips.opt (mlxc1-sxc1): New option.
3509         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3510         mlxc1-sxc1.
3511         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3512         __mips_no_lxc1_sxc1.
3513         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
3514         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
3515         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
3517 2017-01-19  Richard Biener  <rguenther@suse.de>
3519         PR tree-optimization/72488
3520         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
3521         sure to restore SSA info.
3522         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
3524 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
3526         PR rtl-optimization/79121
3527         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
3528         of the inner type when shifting an extended value.
3530 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
3532         PR lto/78407
3533         * symtab.c (symtab_node::equal_address_to): Fix comparing of
3534         interposable aliases.
3536 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
3538         PR target/78516
3539         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
3540         Use the evmergelohi instruction.
3541         (mov_si<mode>_e500_subreg4_2_le): Likewise.
3542         (mov_sitf_e500_subreg8_2_be): Likewise.
3543         (mov_sitf_e500_subreg12_2_le): Likewise.
3544         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
3545         (mov_si<mode>_e500_subreg4_2_be): Likewise.
3546         (mov_sitf_e500_subreg8_2_le): Likewise.
3547         (mov_sitf_e500_subreg12_2_be): Likewise.
3549 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3551         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
3552         attribute from vecsimple to vecperm.
3553         (altivec_vbpermq2): Likewise.
3555 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3557         PR target/79040
3558         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
3560 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3561         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
3562         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
3563         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
3564         case where N arg is SIZE_MAX.
3565         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
3566         (cmpstrsi): Add pattern.
3568 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3570         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3571         __builtin_vec_revb builtins.
3572         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
3573         built-in functions to support generation of the ISA 3.0 XXBR<x>
3574         vector byte reverse instructions.
3575         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
3576         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
3577         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
3578         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
3579         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
3580         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
3581         (P9V_BUILTIN_VEC_REVB): Likewise.
3582         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
3583         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
3584         (p9_xxbrq_v16qi): Likewise.
3585         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
3586         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
3587         (p9_xxbrh_v8hi): Likewise.
3588         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
3589         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
3590         vec_revb built-in functions.
3592 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
3594         PR rtl-optimization/78952
3595         * config/i386/i386.md (any_extract): New code iterator.
3596         (*insvqi_2): Use any_extract for source operand.
3597         (*insvqi_3): Use any_shiftrt for source operand.
3599 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
3601         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
3602         New function.
3603         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
3605 2017-01-18  Matthias Klose  <doko@ubuntu.com>
3607         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
3609 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3611         * config/rs6000/altivec.h (vec_bperm): Change #define.
3612         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
3613         (altivec_vbpermq2): New define_insn.
3614         (altivec_vbpermd): Likewise.
3615         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
3616         function interface.
3617         (VBPERMD): Likewise.
3618         (VBPERM): New polymorphic function interface.
3619         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
3620         Add entries for P9V_BUILTIN_VEC_VBPERM.
3621         * doc/extend.texi: Add interfaces for vec_bperm.
3623 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3625         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
3626         first letter of error messages.
3627         (s390_resolve_overloaded_builtin): Likewise.
3628         * config/s390/s390.c (s390_expand_builtin): Likewise.
3629         (s390_invalid_arg_for_unprototyped_fn): Likewise.
3630         (s390_valid_target_attribute_inner_p): Likewise.
3631         * config/s390/s390.md ("tabort"): Likewise.
3633 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
3635         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
3636         (ISA_AVOID_DIV_HILO): New macro.
3637         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
3638         (ISA_HAS_DDIV): Likewise.
3640 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3642         * doc/invoke.texi (fabi-version): Correct number of occurrences.
3644 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3646         * doc/invoke.texi (fabi-version): Spelling fix.
3648 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3650         PR c++/70182
3651         * doc/invoke.texi (fabi-version): Mention mangling fix for
3652         operator names.
3654 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3656         PR c++/77489
3657         * doc/invoke.texi (fabi-version): Document discriminator mangling.
3659 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3661         PR target/78875
3662         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
3663         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
3664         the new options.
3665         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
3666         flexible settings.
3667         (stack_protect_test): Ditto.
3668         * config/rs6000/rs6000.opt (mstack-protector-guard=,
3669         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
3670         options.
3671         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
3672         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
3673         -mstack-protector-guard-offset=.
3674         (RS/6000 and PowerPC Options): Ditto.
3676 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
3678         * config/i386/i386.h (MASK_CLASS_P): New define.
3679         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
3680         there are no registers from different register sets also when
3681         mask registers are used.  Update function comment.
3682         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
3683         to (*k/*r) and (*k/*km) alternatives.
3685 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
3687         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
3688         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
3689         (EH_RETURN_HANDLER_RTX): New define.
3690         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
3691         Force frame pointer in EH return functions.
3692         (aarch64_expand_epilogue): Add barrier for eh_return.
3693         (aarch64_final_eh_return_addr): Remove.
3694         (aarch64_eh_return_handler_rtx): New function.
3695         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
3696         Remove.
3697         (aarch64_eh_return_handler_rtx): New prototype.
3699 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3701         * config/rs6000/altivec.h (vec_rlmi): New #define.
3702         (vec_vrlnm): Likewise.
3703         (vec_rlnm): Likewise.
3704         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
3705         (UNSPEC_VRLNM): Likewise.
3706         (VIlong): New mode iterator.
3707         (altivec_vrl<VI_char>mi): New define_insn.
3708         (altivec_vrl<VI_char>nm): Likewise.
3709         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
3710         function entry.
3711         (VRLDNM): Likewise.
3712         (RLNM): New polymorphic function entry.
3713         (VRLWMI): New monomorphic function entry.
3714         (VRLDMI): Likewise.
3715         (RLMI): New polymorphic function entry.
3716         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
3717         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
3718         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
3719         vec_vrlnm.
3721 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3723         PR debug/78839
3724         * dwarf2out.c (field_byte_offset): Restore the
3725         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
3726         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
3727         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
3728         of build2 + fold.
3730 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3732         PR ada/67205
3733         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
3735 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3737         PR debug/71669
3738         * dwarf2out.c (add_data_member_location_attribute): For constant
3739         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
3740         instead of DW_AT_data_member_location, DW_AT_bit_offset and
3741         DW_AT_byte_size attributes.
3743 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3745         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
3746         after forcing to constant memory when the code model is medium.
3748 2017-01-17  Julia Koval  <julia.koval@intel.com>
3750         PR target/76731
3751         * config/i386/avx512fintrin.h
3752         (_mm512_i32gather_ps): Change __addr type to void const*.
3753         (_mm512_mask_i32gather_ps): Ditto.
3754         (_mm512_i32gather_pd): Ditto.
3755         (_mm512_mask_i32gather_pd): Ditto.
3756         (_mm512_i64gather_ps): Ditto.
3757         (_mm512_mask_i64gather_ps): Ditto.
3758         (_mm512_i64gather_pd): Ditto.
3759         (_mm512_mask_i64gather_pd): Ditto.
3760         (_mm512_i32gather_epi32): Ditto.
3761         (_mm512_mask_i32gather_epi32): Ditto.
3762         (_mm512_i32gather_epi64): Ditto.
3763         (_mm512_mask_i32gather_epi64): Ditto.
3764         (_mm512_i64gather_epi32): Ditto.
3765         (_mm512_mask_i64gather_epi32): Ditto.
3766         (_mm512_i64gather_epi64): Ditto.
3767         (_mm512_mask_i64gather_epi64): Ditto.
3768         (_mm512_i32scatter_ps): Change __addr type to void*.
3769         (_mm512_mask_i32scatter_ps): Ditto.
3770         (_mm512_i32scatter_pd): Ditto.
3771         (_mm512_mask_i32scatter_pd): Ditto.
3772         (_mm512_i64scatter_ps): Ditto.
3773         (_mm512_mask_i64scatter_ps): Ditto.
3774         (_mm512_i64scatter_pd): Ditto.
3775         (_mm512_mask_i64scatter_pd): Ditto.
3776         (_mm512_i32scatter_epi32): Ditto.
3777         (_mm512_mask_i32scatter_epi32): Ditto.
3778         (_mm512_i32scatter_epi64): Ditto.
3779         (_mm512_mask_i32scatter_epi64): Ditto.
3780         (_mm512_i64scatter_epi32): Ditto.
3781         (_mm512_mask_i64scatter_epi32): Ditto.
3782         (_mm512_i64scatter_epi64): Ditto.
3783         (_mm512_mask_i64scatter_epi64): Ditto.
3784         * config/i386/avx512pfintrin.h
3785         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
3786         (_mm512_mask_prefetch_i32gather_ps): Ditto.
3787         (_mm512_mask_prefetch_i64gather_pd): Ditto.
3788         (_mm512_mask_prefetch_i64gather_ps): Ditto.
3789         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
3790         (_mm512_prefetch_i32scatter_ps): Ditto.
3791         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
3792         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
3793         (_mm512_prefetch_i64scatter_pd): Ditto.
3794         (_mm512_prefetch_i64scatter_ps): Ditto.
3795         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
3796         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
3797         * config/i386/avx512vlintrin.h
3798         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
3799         (_mm_mmask_i32gather_ps): Ditto.
3800         (_mm256_mmask_i32gather_pd): Ditto.
3801         (_mm_mmask_i32gather_pd): Ditto.
3802         (_mm256_mmask_i64gather_ps): Ditto.
3803         (_mm_mmask_i64gather_ps): Ditto.
3804         (_mm256_mmask_i64gather_pd): Ditto.
3805         (_mm_mmask_i64gather_pd): Ditto.
3806         (_mm256_mmask_i32gather_epi32): Ditto.
3807         (_mm_mmask_i32gather_epi32): Ditto.
3808         (_mm256_mmask_i32gather_epi64): Ditto.
3809         (_mm_mmask_i32gather_epi64): Ditto.
3810         (_mm256_mmask_i64gather_epi32): Ditto.
3811         (_mm_mmask_i64gather_epi32): Ditto.
3812         (_mm256_mmask_i64gather_epi64): Ditto.
3813         (_mm_mmask_i64gather_epi64): Ditto.
3814         (_mm256_i32scatter_ps): Change __addr type to void*.
3815         (_mm256_mask_i32scatter_ps): Ditto.
3816         (_mm_i32scatter_ps): Ditto.
3817         (_mm_mask_i32scatter_ps): Ditto.
3818         (_mm256_i32scatter_pd): Ditto.
3819         (_mm256_mask_i32scatter_pd): Ditto.
3820         (_mm_i32scatter_pd): Ditto.
3821         (_mm_mask_i32scatter_pd): Ditto.
3822         (_mm256_i64scatter_ps): Ditto.
3823         (_mm256_mask_i64scatter_ps): Ditto.
3824         (_mm_i64scatter_ps): Ditto.
3825         (_mm_mask_i64scatter_ps): Ditto.
3826         (_mm256_i64scatter_pd): Ditto.
3827         (_mm256_mask_i64scatter_pd): Ditto.
3828         (_mm_i64scatter_pd): Ditto.
3829         (_mm_mask_i64scatter_pd): Ditto.
3830         (_mm256_i32scatter_epi32): Ditto.
3831         (_mm256_mask_i32scatter_epi32): Ditto.
3832         (_mm_i32scatter_epi32): Ditto.
3833         (_mm_mask_i32scatter_epi32): Ditto.
3834         (_mm256_i32scatter_epi64): Ditto.
3835         (_mm256_mask_i32scatter_epi64): Ditto.
3836         (_mm_i32scatter_epi64): Ditto.
3837         (_mm_mask_i32scatter_epi64): Ditto.
3838         (_mm256_i64scatter_epi32): Ditto.
3839         (_mm256_mask_i64scatter_epi32): Ditto.
3840         (_mm_i64scatter_epi32): Ditto.
3841         (_mm_mask_i64scatter_epi32): Ditto.
3842         (_mm256_i64scatter_epi64): Ditto.
3843         (_mm256_mask_i64scatter_epi64): Ditto.
3844         (_mm_i64scatter_epi64): Ditto.
3845         (_mm_mask_i64scatter_epi64): Ditto.
3846         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
3847         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
3848         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
3849         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
3850         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
3851         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
3852         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
3853         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
3854         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
3855         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
3856         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
3857         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
3858         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
3859         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
3860         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
3861         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
3862         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
3863         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
3864         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
3865         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
3866         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
3867         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
3868         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
3869         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
3870         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
3871         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
3872         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
3873         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
3874         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
3875         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
3876         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
3877         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
3878         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
3879         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
3880         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
3881         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
3882         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
3883         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
3884         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
3885         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
3886         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
3887         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
3888         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
3889         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
3890         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
3891         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
3892         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
3893         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
3894         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
3895         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
3896         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
3897         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
3898         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
3899         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
3900         definitions accordingly.
3902 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
3903             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
3905         PR target/79079
3906         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
3907         gen_lowpart.
3909 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
3911         PR target/79058
3912         * ira-conflicts.c (ira_build_conflicts): Update total conflict
3913         hard regs for inner regno.
3915 2017-01-17  Martin Liska  <mliska@suse.cz>
3917         PR ipa/71207
3918         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
3919         assumption and add comment.
3921 2017-01-17  Nathan Sidwell  <nathan@acm.org>
3923         * ipa-visibility.c (localize_node): New function, broken out of ...
3924         (function_and_variable_visibility): ... here. Call it.
3926 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
3928         PR middle-end/77445
3929         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3930         correctly set frequency of oudgoing edge.
3931         (duplicate_thread_path): Fix profile updating.
3933 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3935         PR other/79046
3936         * configure.ac: Add GCC_BASE_VER.
3937         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
3938         version from BASE-VER file.
3939         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
3940         (gcc.o): Depend on $(BASEVER).
3941         * common.opt (dumpfullversion): New option.
3942         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
3943         * doc/invoke.texi: Document -dumpfullversion.
3944         * doc/install.texi: Document --with-gcc-major-version-only.
3945         * configure: Regenerated.
3947 2017-01-17  Richard Biener  <rguenther@suse.de>
3949         PR tree-optimization/71433
3950         * tree-vrp.c (register_new_assert_for): Merge same asserts
3951         on all incoming edges.
3952         (process_assert_insertions_for): Handle insertions at the
3953         beginning of BBs.
3955 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
3957         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
3958         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
3960 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3962         PR target/78633
3963         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
3964         RTL sharing.
3966 2017-01-17  Alan Modra  <amodra@gmail.com>
3968         PR target/79066
3969         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
3970         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
3971         symbolic stack limit when pic.
3973 2017-01-16  Martin Sebor  <msebor@redhat.com>
3975         PR tree-optimization/78608
3976         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
3978 2017-01-16  Jeff Law  <law@redhat.com>
3980         Revert:
3981         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
3982         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
3983         for several include directories that may be relative to sysroot.
3984         * config/i386/x-mingw32 (gplus_includedir): Define.
3985         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
3986         (native_system_includedir): Likewise.
3987         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
3988         override if TARGET_SYSTEM_ROOT is defined.
3989         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
3991         PR tree-optimization/79090
3992         PR tree-optimization/33562
3993         PR tree-optimization/61912
3994         PR tree-optimization/77485
3995         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
3996         and computed trims into the dump file.
3998 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
4000         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
4002 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
4004         PR c/79089
4005         * gimplify.c (gimplify_init_constructor): If want_value and
4006         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
4007         fix.
4009         PR target/79080
4010         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
4011         sequence.  Formatting fixes.
4012         (doloop_optimize): Formatting fixes.
4014         PR driver/49726
4015         * gcc.c (debug_level_greater_than_spec_func): New function.
4016         (static_spec_functions): Add debug-level-gt spec function.
4017         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
4018         !g0.
4019         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4020         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4021         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
4022         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
4023         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
4024         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
4026 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
4028         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
4029         QImode fixups to general and mask registers only.
4031 2017-01-16  Carl Love  <cel@us.ibm.com>
4033         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
4034         for built-in functions
4035         vector signed char vec_nabs (vector signed char)
4036         vector signed short vec_nabs (vector signed short)
4037         vector signed int vec_nabs (vector signed int)
4038         vector signed long long vec_nabs (vector signed long long)
4039         vector float vec_nabs (vector float)
4040         vector double vec_nabs (vector double)
4041         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
4042         and NABS overload.
4043         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
4044         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
4045         * doc/extend.texi: Update the documentation file for the new built-in
4046         functions.
4048 2017-01-16  Martin Sebor  <msebor@redhat.com>
4050         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
4051         message.
4053 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4055         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
4056         UNSPEC_VSX__XXSPLTD to require special splat handling.
4058 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
4060         PR bootstrap/78616
4061         * system.h: Poison strndup.
4063 2017-01-16  Alan Modra  <amodra@gmail.com>
4065         PR target/79098
4066         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
4067         use a switch.
4069 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
4071         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
4073 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
4075         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
4076         call recog here.  Assert that INSN_CODE (insn) is non-negative.
4078 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
4080         PR target/72749
4081         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
4082         fallthrough.
4083         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
4084         in the currently scheduled RTL fragment.
4086 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
4088         PR rtl-optimization/78751
4089         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
4090         give up.
4092 2017-01-14  Jeff Law  <law@redhat.com>
4094         PR tree-optimization/79090
4095         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
4096         variable length stores.
4097         (compute_trims): Delete dead assignment to *trim_tail.
4098         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
4099         zero length.
4101 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
4103         PR rtl-optimization/78626
4104         PR rtl-optimization/78727
4105         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
4106         of a block, and split such blocks after everything else is finished.
4108 2017-01-14  Alan Modra  <amodra@gmail.com>
4110         PR target/72749
4111         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
4112         target legitimate_combined_insn.
4113         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
4114         (rs6000_legitimate_combined_insn): New function.
4115         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
4116         all uses.
4117         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
4118         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
4119         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
4121 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
4123         * doc/frontends.texi (G++ and GCC): Remove references to Java.
4125 2017-01-13  Jeff Law  <law@redhat.com>
4127         PR tree-optimization/33562
4128         PR tree-optimization/61912
4129         PR tree-optimization/77485
4130         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
4131         a statement.
4132         (delete_dead_assignment): Likewise.
4133         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
4134         statement to delete_dead_call and delete_dead_assignment.
4136 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
4138         PR c/78304
4139         * substring-locations.c (format_warning_va): Strengthen case 1 so
4140         that both endpoints of the substring must be within the format
4141         range for just the substring to be printed.
4143 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
4145         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
4146         * config/i386/i386.c (ix86_target_string): Add missing options
4147         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
4148         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
4149         flags_other and ix86_target_other to flags2_other.  Display unknown
4150         isa2 options.
4151         (ix86_valid_target_attribute_inner_p): Add missing options and
4152         reorder options by implied ISAs, as in ix86_target_string.
4154 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4156         * hash-table.h (hash_table::too_empty_p): New function.
4157         (hash_table::expand): Use it.
4158         (hash_table::traverse): Likewise.
4159         (hash_table::empty_slot): Use sizeof (value_type) instead of
4160         sizeof (PTR) to convert bytes to elements.  Shrink the table
4161         if the current size is excessive for the current number of
4162         elements.
4164 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4166         * ira-costs.c (record_reg_classes): Break from the inner loop
4167         early once alt_fail is known to be true.  Update outer loop
4168         handling accordingly.
4170 2017-01-13  Jeff Law  <law@redhat.com>
4172         * tree-ssa-dse.c (decrement_count): New function.
4173         (increment_start_addr, maybe_trim_memstar_call): Likewise.
4174         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
4175         when we know the partially dead statement is a mem* function.
4177         PR tree-optimization/61912
4178         PR tree-optimization/77485
4179         * tree-ssa-dse.c: Include expr.h.
4180         (maybe_trim_constructor_store): New function.
4181         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
4183         PR tree-optimization/33562
4184         PR tree-optimization/61912
4185         PR tree-optimization/77485
4186         * doc/invoke.texi: Document new dse-max-object-size param.
4187         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
4188         * tree-ssa-dse.c: Include params.h.
4189         (dse_store_status): New enum.
4190         (initialize_ao_ref_for_dse): New, partially extracted from
4191         dse_optimize_stmt.
4192         (valid_ao_ref_for_dse, normalize_ref): New.
4193         (setup_live_bytes_from_ref, compute_trims): Likewise.
4194         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
4195         (maybe_trim_partially_dead_store): Likewise.
4196         (maybe_trim_complex_store): Likewise.
4197         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
4198         Track what bytes live from the original store.  Return tri-state
4199         for dead, partially dead or live.
4200         (dse_dom_walker): Add constructor, destructor and new private members.
4201         (delete_dead_call, delete_dead_assignment): New extracted from
4202         dse_optimize_stmt.
4203         (dse_optimize_stmt): Make a member of dse_dom_walker.
4204         Use initialize_ao_ref_for_dse.
4206         PR tree-optimization/33562
4207         PR tree-optimization/61912
4208         PR tree-optimization/77485
4209         * sbitmap.h (bitmap_count_bits): Prototype.
4210         (bitmap_clear_range, bitmap_set_range): Likewise.
4211         * sbitmap.c (bitmap_clear_range): New function.
4212         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
4214 2017-01-13  Martin Liska  <mliska@suse.cz>
4216         PR ipa/79043
4217         * function.c (set_cfun): Add new argument force.
4218         * function.h (set_cfun): Likewise.
4219         * ipa-inline-transform.c (inline_call): Use the function when
4220         strict alising from is dropped for function we inline to.
4222 2017-01-13  Richard Biener  <rguenther@suse.de>
4224         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
4225         for dumping GIMPLE INTEGER_CSTs.
4227 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4229         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
4230         to 201112L since C++17.
4232 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
4234         PR sanitizer/78887
4235         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
4236         if -fsanitize=kernel-address is present.
4238 2017-01-13  Richard Biener  <rguenther@suse.de>
4240         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
4241         as _Literal ( type ) number in case usual suffixes do not
4242         preserve all information.
4244 2017-01-13  Richard Biener  <rguenther@suse.de>
4246         PR tree-optimization/77283
4247         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
4248         and ssa-iterators.h.
4249         (is_feasible_trace): Implement a cost model based on joiner
4250         PHI node uses.
4252 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4254         PR target/79004
4255         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
4256         char or short to __float128/_Float128 directly.
4258 2017-01-12  Martin Sebor  <msebor@redhat.com>
4260         to -Wformat-overflow.
4261         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
4262         (min_bytes_remaining): Same.
4263         (get_string_length): Same.
4264         (format_string): Same.
4265         (format_directive): Same.
4266         (add_bytes): Same.
4267         (pass_sprintf_length::handle_gimple_call): Same.
4269 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
4271         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
4272         info.nowrite calls with no lhs that can't throw.  Return bool
4273         whether gsi_remove has been called or not.
4274         (pass_sprintf_length::handle_gimple_call): Return bool whether
4275         try_substitute_return_value called gsi_remove.  Formatting fix.
4276         (pass_sprintf_length::execute): Don't use gsi_remove if
4277         handle_gimple_call returned true.
4279         PR bootstrap/79069
4280         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
4281         be removed due to side-effects, don't remove following barrier nor
4282         turn the successor edge into fallthru edge.
4284 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4286         PR target/79044
4287         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
4288         element-reversing loads and stores as not swappable.
4290 2017-01-12  Nathan Sidwell  <nathan@acm.org>
4291             Nicolai Stange  <nicstange@gmail.com>
4293         * combine.c (try_combine): Don't ignore result of overlap checking
4294         loop.  Combine overlap & asm check into single loop.
4296 2017-01-12  Richard Biener  <rguenther@suse.de>
4298         * tree-pretty-print.c (dump_generic_node): Provide -gimple
4299         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
4301 2017-01-12  Richard Biener  <rguenther@suse.de>
4303         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
4304         and TS_TARGET_OPTION directly derive from TS_BASE.
4305         * tree-core.h (tree_optimization_option): Derive from tree_base.
4306         (tree_target_option): Likewise.
4308 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
4310         * config/i386/i386.c (memory_address_length): Increase len
4311         only when rip_relative_addr_p returns false.
4313 2017-01-11  Julia Koval  <julia.koval@intel.com>
4315         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
4316         (OPTION_MASK_ISA_SGX_SET): New.
4317         (ix86_handle_option): Handle OPT_msgx.
4318         * config.gcc: Added sgxintrin.h.
4319         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
4320         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
4321         * config/i386/i386.c (ix86_target_string): Add -msgx.
4322         (PTA_SGX): New.
4323         (ix86_option_override_internal): Handle new options.
4324         (ix86_valid_target_attribute_inner_p): Add sgx.
4325         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
4326         * config/i386/i386.opt: Add msgx.
4327         * config/i386/sgxintrin.h: New file.
4328         * config/i386/x86intrin.h: Add sgxintrin.h.
4330 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
4332         PR c++/71537
4333         * fold-const.c (maybe_nonzero_address): Return 1 for function
4334         local objects.
4335         (tree_single_nonzero_warnv_p): Don't handle function local objects
4336         here.
4338         PR c++/72813
4339         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
4340         of c-header.
4342 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
4344         PR driver/78877
4345         * opts.c: Include "spellcheck.h"
4346         (struct string_fragment): New struct.
4347         (struct edit_distance_traits<const string_fragment &>): New
4348         struct.
4349         (get_closest_sanitizer_option): New function.
4350         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
4352 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
4354         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
4355         by 12.
4356         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
4357         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
4358         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
4359         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
4360         for initial die_offset if dwarf_split_debug_info.
4361         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
4362         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
4363         fields.
4364         (output_skeleton_debug_sections): Formatting fix.  Use
4365         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
4366         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
4368 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
4370         * config/arm/cortex-a53.md: Add bypasses for
4371         cortex_a53_r2f_cvt.
4372         (cortex_a53_r2f): Only use for transfers.
4373         (cortex_a53_f2r): Likewise.
4374         (cortex_a53_r2f_cvt): Add reservation for conversions.
4375         (cortex_a53_f2r_cvt): Likewise.
4377 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
4379         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
4380         to all inlined functions, change static to extern.
4382 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
4384         PR target/78253
4385         * config/arm/arm.c (legitimize_pic_address): Handle reference to
4386         weak symbol.
4387         (arm_assemble_integer): Likewise.
4389 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
4391         * config.gcc: Use new awk script to check CPU, FPU and architecture
4392         parameters for --with-... options.
4393         * config/arm/parsecpu.awk: New file
4394         * config/arm/arm-cpus.in: New file.
4395         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
4396         files.
4397         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
4398         files.
4399         * config/arm/t-arm: Update dependency rules.
4400         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
4401         of processing .def files.
4402         * config/arm/genopt.sh: Deleted.
4403         * config/arm/gentune.sh: Deleted.
4404         * config/arm/arm-cores.def: Deleted.
4405         * config/arm/arm-arches.def: Deleted.
4406         * config/arm/arm-fpus.def: Deleted.
4407         * config/arm/arm-tune.md: Regenerated.
4408         * config/arm/arm-tables.opt: Regenerated.
4409         * config/arm/arm-cpu.h: New generated file.
4410         * config/arm/arm-cpu-data.h: New generated file.
4411         * config/arm/arm-cpu-cdata.h: New generated file.
4413 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
4415         PR lto/79042
4416         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
4417         bit.
4418         (input_varpool_node): Unpack dynamically_initialized bit.
4420 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
4422         PR rtl-optimization/79032
4423         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
4424         the alignment of the adjusted memory reference against that of MODE,
4425         instead of the alignment of the original memory reference.
4427 2017-01-11  Martin Jambor  <mjambor@suse.cz>
4429         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
4430         test.
4431         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
4432         decorated functions.
4434 2017-01-11  Richard Biener  <rguenther@suse.de>
4436         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
4437         set range/nonnull info for PHI results.  Do not set it on
4438         stmts marked for removal.
4440 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
4442         * expr.c (store_field): In the bitfield case, fetch the return value
4443         from the registers before applying a single big-endian adjustment.
4444         Always do a final load for a BLKmode value not larger than a word.
4446 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
4448         PR c++/77949
4449         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4450         that we correctly handle column numbers greater than
4451         LINE_MAP_MAX_COLUMN_NUMBER.
4453 2017-01-10  Martin Sebor  <msebor@redhat.com>
4455         PR middle-end/78245
4456         * gimple-ssa-sprintf.c (get_destination_size): Call
4457         {init,fini}object_sizes.
4458         * tree-object-size.c (addr_object_size): Adjust.
4459         (pass_through_call): Adjust.
4460         (pass_object_sizes::execute): Adjust.
4461         * tree-object-size.h (fini_object_sizes): Declare.
4463 2017-01-10  Martin Sebor  <msebor@redhat.com>
4465         PR tree-optimization/78775
4466         * builtins.c (get_size_range): Move...
4467         * calls.c: ...to here.
4468         (alloc_max_size): Accept zero argument.
4469         (operand_signed_p): Remove.
4470         (maybe_warn_alloc_args_overflow): Call get_size_range.
4471         * calls.h (get_size_range): Declare.
4473 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
4475         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
4476         from TI's devices.csv file as of September 2016.
4477         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
4479 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
4481         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
4482         * doc/invoke.texi: Likewise.
4483         * doc/md.texi: Likewise.
4484         * doc/objc.texi: Likewise.
4486 2017-01-10  Joshua Conner  <joshconner@google.com>
4488         * config/arm/fuchsia-elf.h: New file.
4489         * config/fuchsia.h: New file.
4490         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
4491         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
4492         targets.
4493         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
4495 2016-01-10  Richard Biener  <rguenther@suse.de>
4497         PR tree-optimization/79034
4498         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4499         Propagate out degenerate PHIs in the joiner.
4501 2017-01-10  Martin Liska  <mliska@suse.cz>
4503         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
4504         (sort_congruence_classes_by_decl_uid): Likewise.
4505         (sort_congruence_class_groups_by_decl_uid): Likewise.
4506         (sem_item_optimizer::merge_classes): Sort class, groups in these
4507         classes and members in the groups by DECL_UID of declarations.
4508         This would make merge operations stable.
4510 2017-01-10  Martin Liska  <mliska@suse.cz>
4512         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
4513         usage of m_classes_vec.
4514         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
4515         (sem_item_optimizer::get_group_by_hash): Likewise.
4516         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4517         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
4518         (sem_item_optimizer::verify_classes): Likewise.
4519         (sem_item_optimizer::process_cong_reduction): Likewise.
4520         (sem_item_optimizer::dump_cong_classes): Likewise.
4521         (sem_item_optimizer::merge_classes): Likewise.
4522         * ipa-icf.h (congruence_class_hash): Rename from
4523         congruence_class_group_hash.  Remove declaration of m_classes_vec.
4525 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
4527         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
4528         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
4529         * config.gcc: Add avx512vpopcntdqintrin.h.
4530         * config/i386/avx512vpopcntdqintrin.h: New.
4531         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
4532         * config/i386/i386-builtin-types.def: Add new types.
4533         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
4534         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
4535         __builtin_ia32_vpopcountq_v8di_mask): New.
4536         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4537         __AVX512VPOPCNTDQ__.
4538         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
4539         (PTA_AVX512VPOPCNTDQ): Define.
4540         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
4541         TARGET_AVX512VPOPCNTDQ_P): Define.
4542         * config/i386/i386.opt: Add mavx512vpopcntdq.
4543         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
4544         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
4546 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4548         PR middle-end/77484
4549         * predict.def (PRED_CALL): Set to 67.
4551 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4553         * expr.c (store_field): In the bitfield case, if the value comes from
4554         a function call and is of an aggregate type returned in registers, do
4555         not modify the field mode; extract the value in all cases if the mode
4556         is BLKmode and the size is not larger than a word.
4558 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
4560         PR target/71017
4561         * config/i386/cpuid.h: Fix undefined behavior.
4563 2017-01-04  Jeff Law  <law@redhat.com>
4565         PR tree-optimization/79007
4566         PR tree-optimization/67955
4567         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
4568         conservative for pt.null when flag_non_call_exceptions is on.
4570 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
4572         PR translation/79019
4573         PR translation/79020
4574         * params.def (PARAM_INLINE_MIN_SPEEDUP,
4575         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
4576         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
4577         in descriptions.
4578         * config/avr/avr.opt (maccumulate-args): Likewise.
4579         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
4580         * common.opt (freport-bug): Likewise.
4581         * cif-code.def (CIF_FINAL_ERROR): Likewise.
4582         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
4583         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
4584         translatable string.
4585         * config/i386/i386.c (function_value_32): Likewise.
4586         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
4587         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
4588         Likewise.
4589         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
4590         * common/config/msp430/msp430-common.c (msp430_handle_option):
4591         Likewise.
4592         * symtab.c (symtab_node::verify_base): Likewise.
4593         * opts.c (set_debug_level): Likewise.
4594         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
4595         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4596         missing whitespace to translatable strings.
4597         * config/avr/avr.md (bswapsi2): Fix typo in comment.
4598         * config/sh/superh.h: Likewise.
4599         * config/i386/xopintrin.h: Likewise.
4600         * config/i386/znver1.md: Likewise.
4601         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
4602         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
4603         * double-int.h (struct double_int): Likewise.
4604         * double-int.c (div_and_round_double): Likewise.
4605         * wide-int.cc: Likewise.
4606         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
4607         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4608         * cfgcleanup.c (crossjumps_occured): Renamed to ...
4609         (crossjumps_occurred): ... this.
4610         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
4611         Adjust all uses.
4613         PR tree-optimization/78899
4614         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
4615         returning bool return struct loop *, NULL for failure and the new
4616         loop on success.
4617         (versionable_outer_loop_p): Don't version outer loop if it has
4618         dont_vectorized bit set.
4619         (tree_if_conversion): When versioning outer loop, ensure
4620         tree_if_conversion is performed also on the inner loop of the
4621         non-vectorizable outer loop copy.
4622         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
4623         LOOP_VECTORIZED in inner loop of the scalar outer loop and
4624         prevent vectorization of it.
4625         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
4626         the outer loop vectorization of the non-scalar version is attempted
4627         before vectorization of the inner loop in scalar version.  If
4628         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
4629         vectorization of its inner loop.
4630         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
4631         has 2 inner loops, rename also on edges from bb whose single pred
4632         is outer_loop->header.  Fix typo in function comment.
4634 2017-01-09  Martin Sebor  <msebor@redhat.com>
4636         PR bootstrap/79033
4637         * asan.c (asan_emit_stack_protection): Increase local buffer size
4638         to avoid snprintf truncation warning.
4640 2017-01-09  Andrew Pinski  <apinski@cavium.com>
4642         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
4643         to reference thunderx2t99 for the tuning structure
4644         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
4645         Rename to ...
4646         (thunderx2t99_extra_costs): This.
4647         * config/aarch64/aarch64-tune.md: Regenerate.
4648         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
4649         (vulcan_addrcost_table): This.
4650         (vulcan_regmove_cost): Rename to ...
4651         (thunderx2t99_regmove_cost): This.
4652         (vulcan_vector_cost): Rename to ...
4653         (thunderx2t99_vector_cost): this.
4654         (vulcan_branch_cost): Rename to ...
4655         (thunderx2t99_branch_cost): This.
4656         (vulcan_tunings): Rename to ...
4657         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
4658         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
4660 2017-01-09  Martin Jambor  <mjambor@suse.cz>
4662         PR ipa/78365
4663         PR ipa/78599
4664         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
4665         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
4666         (propagate_vr_accross_jump_function): Use the above function for all
4667         value range computations for pass-through jump functions and type
4668         converasion from explicit value range values.
4669         (ipcp_propagate_stage): Do not attempt to deduce types of formal
4670         parameters from TYPE_ARG_TYPES.
4671         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
4672         (ipa_write_node_info): Stream type of the actual argument.
4673         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
4675 2017-01-09  Martin Liska  <mliska@suse.cz>
4677         PR pch/78970
4678         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
4679         (lookup_compiler): Do not show error message with have_E.
4681 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
4683         PR tree-optimization/78938
4684         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
4685         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
4686         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
4687         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
4688         fixes.
4690 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4692         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
4693         is const0_rtx.
4695 2017-01-09  Richard Biener  <rguenther@suse.de>
4697         PR tree-optimization/78997
4698         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
4699         name condition properly.
4701 2017-01-09  Richard Biener  <rguenther@suse.de>
4703         PR debug/79000
4704         * dwarf2out.c (is_cxx): New overload with context.
4705         (is_naming_typedef_decl): Use it.
4707 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
4709         * invoke.texi (Option Summary): Correct spacing in option lists
4710         and add line breaks to fix over-long lines.
4712 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
4714         PR middle-end/17660
4716         * extend.texi (Common Variable Attributes): Add xref to GCC
4717         Internals manual to explain mode attribute keywords.
4719 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
4721         PR other/16519
4722         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
4723         and Preprocessor Options.
4724         (Options for Linking): Document -pthread here....
4725         (RS/6000 and PowerPC Options): ...not here.
4726         (Solaris 2 Options): ...or here.
4727         * doc/cppopts.texi: Document -pthread.
4729 2017-01-08  Martin Sebor  <msebor@redhat.com>
4731         PR middle-end/77708
4732         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
4733         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
4734         New member functions.
4735         (format_directive): Used them.
4736         (add_bytes): Same.
4737         (pass_sprintf_length::handle_gimple_call): Same.
4738         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
4739         to avoid truncation for any argument.
4740         (extract_affine_mul): Same.
4741         * tree.c (get_file_function_name): Same.
4743 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4745         PR middle-end/77484
4746         * predict.def (PRED_INDIR_CALL): Set to 86.
4748 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4750         PR preprocessor/54124
4751         * doc/cppopts.texi: Reformat -d subtable to list the full name
4752         of the options.  Add cross-reference to the docs for the general
4753         compiler -d options.
4754         * doc/invoke.texi (Developer Options): Add cross-reference to the
4755         preprocessor-specific -d option documentation.
4757 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4759         PR preprocessor/13498
4760         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
4761         redudant material, and reflect new command-line options.
4762         (System Headers): Likewise.
4764 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4766         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
4767         -isystem, and -idirafter.  Copy-edit.
4768         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
4769         default for -ftrack-macro-expansion.  Delete obsolete and
4770         badly-formatted implementation details about -fdebug-cpp output.
4771         * doc/cppwarnopts.texi: Copy-edit.
4773 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
4775         PR c++/72803
4776         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4777         that the transition from a max line width >= 1<<10 to narrower
4778         lines works correctly.
4780 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
4782         * doc/options.texi (PerFunction): New.
4783         * opt-functions.awk (switch_flags): Map both Optimization and
4784         PerFunction to CL_OPTIMIZATION.
4785         * opth-gen.awk: Test for PerFunction flag along with
4786         Optimization.
4787         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
4788         it only when the latter is present.  Skip those that don't in
4789         the hash function generator.
4790         * common.opt (fvar-tracking): Mark as PerFunction instead of
4791         Optimization.
4792         (fvar-tracking-assignments): Likewise.
4793         (fvar-tracking-assignments-toggle): Likewise.
4794         (fvar-tracking-uninit): Likewise.
4796 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
4798         PR translation/79018
4799         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
4800         the and store.
4802 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
4804         PR target/57583
4805         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
4806         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
4807         TARGET_LONG_JUMP_TABLE_OFFSETS.
4808         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4809         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4810         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
4811         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
4812         * config/m68k/m68k.md (tablejump expander): Likewise.
4813         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
4814         TARGET_LONG_JUMP_TABLE_OFFSETS.
4815         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
4816         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
4818 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4819             David Holsgrove <david.holsgrove@xilinx.com>
4821         * common/config/microblaze/microblaze-common.c
4822         (TARGET_EXCEPT_UNWIND_INFO): Remove.
4823         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
4824         New prototype.
4825         * config/microblaze/microblaze.c (microblaze_must_save_register)
4826         (microblaze_expand_epilogue, microblaze_return_addr): Handle
4827         calls_eh_return.
4828         (microblaze_eh_return): New function.
4829         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
4830         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
4831         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
4832         * config/microblaze/microblaze.md (eh_return): New pattern.
4834 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
4836         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
4837         GCC_DIAGNOSTIC_STRINGIFY): Define.
4839         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
4841 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4843         * config/arm/arm.md (<mcrr>): New.
4844         (<mrrc>): New.
4845         * config/arm/arm.c (arm_arch5te): New.
4846         (arm_option_override): Set arm_arch5te.
4847         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
4848         and mrrc2.
4849         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
4850         (arm_mcrr_qualifiers): ... this. New.
4851         (MRRC_QUALIFIERS): Define to...
4852         (arm_mrrc_qualifiers): ... this. New.
4853         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
4854         __arm_mrrc2): New.
4855         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
4856         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
4857         (MRRCI, mrrc, MRRC): New.
4858         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
4859         VUNSPEC_MRRC2): New.
4861 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4863         * config/arm/arm.md (<mcr>): New.
4864         (<mrc>): New.
4865         * config/arm/arm.c (arm_coproc_builtin_available): Add
4866         support for mcr, mrc, mcr2 and mrc2.
4867         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
4868         (arm_mcr_qualifiers): ... this. New.
4869         (MRC_QUALIFIERS): Define to ...
4870         (arm_mrc_qualifiers): ... this. New.
4871         (MCR_QUALIFIERS): Define to ...
4872         (arm_mcr_qualifiers): ... this. New.
4873         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
4874         __arm_mrc2): New.
4875         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
4876         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
4877         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
4878         VUNSPEC_MRC2): New.
4880 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4882         * config/arm/arm.md (*ldc): New.
4883         (*stc): New.
4884         (<ldc>): New.
4885         (<stc>): New.
4886         * config/arm/arm.c (arm_coproc_builtin_available): Add
4887         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
4888         (arm_coproc_ldc_stc_legitimate_address): New.
4889         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
4890         'qualifier_const_pointer'.
4891         (LDC_QUALIFIERS): Define to...
4892         (arm_ldc_qualifiers): ... this. New.
4893         (STC_QUALIFIERS): Define to...
4894         (arm_stc_qualifiers): ... this. New.
4895         * config/arm/arm-protos.h
4896         (arm_coproc_ldc_stc_legitimate_address): New.
4897         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
4898         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
4899         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
4900         stc2, stcl, stc2l): New.
4901         * config/arm/constraints.md (Uz): New.
4902         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
4903         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
4904         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
4905         VUNSPEC_STC2L): New.
4907 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4909         * config/arm/arm.md (<cdp>): New.
4910         * config/arm/arm.c (neon_const_bounds): Rename this ...
4911         (arm_const_bounds): ... this.
4912         (arm_coproc_builtin_available): New.
4913         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
4914         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
4915         (CDP_QUALIFIERS): Define to...
4916         (arm_cdp_qualifiers): ... this. New.
4917         (void_UP): Define.
4918         (arm_expand_builtin_args): Add case for 6 arguments.
4919         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
4920         (arm_const_bounds): ... this.
4921         (arm_coproc_builtin_available): New.
4922         * config/arm/arm_acle.h (__arm_cdp): New.
4923         (__arm_cdp2): New.
4924         * config/arm/arm_acle_builtins.def (cdp): New.
4925         (cdp2): New.
4926         * config/arm/iterators.md (CDPI,CDP,cdp): New.
4927         * config/arm/neon.md: Rename all 'neon_const_bounds' to
4928         'arm_const_bounds'.
4929         * config/arm/types.md (coproc): New.
4930         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
4931         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
4932         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
4933         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
4935 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4937         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
4938         (UBINOP_QUALIFIERS): New.
4939         (si_UP): Define.
4940         (acle_builtin_data): New. Change comment.
4941         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
4942         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
4943         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
4944         arm_acle_builtins.def.
4945         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
4946         (arm_init_acle_builtins): New.
4947         (CRC32_BUILTIN): Remove.
4948         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
4949         crc32cb, crc32ch and crc32cw.
4950         (arm_init_crc32_builtins): Remove.
4951         (arm_init_builtins): Use arm_init_acle_builtins rather
4952         than arm_init_crc32_builtins.
4953         (arm_expand_acle_builtin): New.
4954         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
4955         * config/arm/arm_acle_builtins.def: New.
4957 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4959         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
4960         (arm_builtin_datum): ... this.
4961         (arm_init_neon_builtin): Rename to ...
4962         (arm_init_builtin): ... this. Add a new parameters PREFIX
4963         and USE_SIG_IN_NAME.
4964         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
4965         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
4966         'arm_builtin_datum'.
4967         (arm_init_vfp_builtins): Likewise.
4968         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
4969         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
4970         (arm_expand_neon_args): Rename to ...
4971         (arm_expand_builtin_args): ... this. Rename builtin_arg
4972         enum values and differentiate between ARG_BUILTIN_MEMORY
4973         and ARG_BUILTIN_NEON_MEMORY.
4974         (arm_expand_neon_builtin_1): Rename to ...
4975         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
4976         values, arm_expand_builtin_args and add bool parameter NEON.
4977         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
4978         (arm_expand_vfp_builtin): Likewise.
4979         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
4981 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4983         PR middle-end/77484
4984         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
4985         * predict.c (tree_estimate_probability_bb): Reverse direction of
4986         polymorphic call predictor.
4988 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
4990         * passes.c (execute_one_pass): Split out pass-skipping logic into...
4991         (determine_pass_name_match): ...this new function and...
4992         (should_skip_pass_p): ...this new function.
4994 2017-01-06  Nathan Sidwell  <nathan@acm.org>
4996         * ipa-visibility.c (function_and_variable_visibility): Reformat
4997         comments and long lines.  Remove extrneous if.
4998         * symtab.c (symtab_node::make_decl_local): Fix code format.
4999         (symtab_node::set_section_for_node): Fix comment typo.
5001 2017-01-06  Martin Liska  <mliska@suse.cz>
5003         PR bootstrap/79003
5004         * lra-constraints.c: Rename invariant to lra_invariant.
5005         * predict.c (set_even_probabilities): Initialize e to NULL.
5007 2017-01-05  Martin Sebor  <msebor@redhat.com>
5009         PR tree-optimization/78910
5010         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
5011         (format_integer): Correct off-by-one error in the handling
5012         of precision with negative numbers in signed conversions..
5014 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5016         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
5018 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
5020         PR tree-optimization/71016
5021         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
5022         factor_out_conditional_conversion.  Formatting fix.
5023         (factor_out_conditional_conversion): Add cond_stmt argument.
5024         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
5025         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
5026         Formatting fix.
5028 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
5030         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
5031         read-rtl-function.o, and selftest-rtl.o.
5032         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
5033         (selftest::aarch64_test_loading_full_dump): New function.
5034         (selftest::aarch64_run_selftests): New function.
5035         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
5036         selftest::aarch64_run_selftests.
5037         * config/i386/i386.c
5038         (selftest::ix86_test_loading_dump_fragment_1): New function.
5039         (selftest::ix86_test_loading_call_insn): New function.
5040         (selftest::ix86_test_loading_full_dump): New function.
5041         (selftest::ix86_test_loading_unspec): New function.
5042         (selftest::ix86_run_selftests): Call the new functions.
5043         * emit-rtl.c (maybe_set_max_label_num): New function.
5044         * emit-rtl.h (maybe_set_max_label_num): New decl.
5045         * function.c (instantiate_decls): Guard call to
5046         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
5047         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
5048         "static".
5049         * gensupport.c (gen_reader::gen_reader): Pass "false"
5050         for new "compact" param of rtx_reader.
5051         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
5052         rather than an empty string for NULL strings.
5053         * read-md.c: Potentially include config.h rather than bconfig.h.
5054         Wrap include of errors.h with #ifdef GENERATOR_FILE.
5055         (have_error): New global, copied from errors.c.
5056         (md_reader::read_name): Rename to...
5057         (md_reader::read_name_1): ...this, adding "out_loc" param,
5058         and converting "missing name or number" to returning false, rather
5059         than failing.
5060         (md_reader::read_name): Reimplement in terms of read_name_1.
5061         (md_reader::read_name_or_nil): New function.
5062         (md_reader::read_string): Handle "(nil)" by returning NULL.
5063         (md_reader::md_reader): Add new param "compact".
5064         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
5065         (md_reader::read_file): New method.
5066         * read-md.h (md_reader::md_reader): Add new param "compact".
5067         (md_reader::read_file): New method.
5068         (md_reader::is_compact): New accessor.
5069         (md_reader::read_name): Convert return type from void to file_location.
5070         (md_reader::read_name_or_nil): New decl.
5071         (md_reader::read_name_1): New decl.
5072         (md_reader::m_compact): New field.
5073         (noop_reader::noop_reader): Pass "false" for new "compact" param
5074         of rtx_reader.
5075         (rtx_reader::rtx_reader): Add new "compact" param.
5076         (rtx_reader::read_rtx_operand): Make virtual and convert return
5077         type from void to rtx.
5078         (rtx_reader::read_until): New decl.
5079         (rtx_reader::handle_any_trailing_information): New virtual function.
5080         (rtx_reader::postprocess): New virtual function.
5081         (rtx_reader::finalize_string): New virtual function.
5082         (rtx_reader::m_in_call_function_usage): New field.
5083         (rtx_reader::m_reuse_rtx_by_id): New field.
5084         * read-rtl-function.c: New file.
5085         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
5086         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
5087         (selftest::verify_three_block_rtl_cfg): New decl.
5088         * read-rtl-function.h: New file.
5089         * read-rtl.c: Potentially include config.h rather than bconfig.h.
5090         For host, include function.h, memmodel.h, and emit-rtl.h.
5091         (one_time_initialization): New function.
5092         (struct compact_insn_name): New struct.
5093         (compact_insn_names): New array.
5094         (find_code): Handle insn codes in compact dumps.
5095         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
5096         (bind_subst_iter_and_attr): Likewise.
5097         (add_condition_to_string): Likewise.
5098         (add_condition_to_rtx): Likewise.
5099         (apply_attribute_uses): Likewise.
5100         (add_current_iterators): Likewise.
5101         (apply_iterators): Likewise.
5102         (initialize_iterators): Guard usage of apply_subst_iterator with
5103         #ifdef GENERATOR_FILE.
5104         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
5105         (md_reader::read_mapping): Likewise.
5106         (add_define_attr_for_define_subst): Likewise.
5107         (add_define_subst_attr): Likewise.
5108         (read_subst_mapping): Likewise.
5109         (check_code_iterator): Likewise.
5110         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
5111         logic to...
5112         (one_time_initialization): New function.
5113         (rtx_reader::read_until): New method.
5114         (read_flags): New function.
5115         (parse_reg_note_name): New function.
5116         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
5117         Handle reuse_rtx ids.
5118         Wrap iterator lookup within #ifdef GENERATOR_FILE.
5119         Add parsing support for RTL dumps, mirroring the special-cases in
5120         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
5121         values, and calling handle_any_trailing_information.
5122         (rtx_reader::read_rtx_operand): Convert return type from void
5123         to rtx, returning return_rtx.  Handle case 'e'.  Call
5124         finalize_string on XSTR and XTMPL fields.
5125         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
5126          "(nil)" values were omitted.  Call the postprocess vfunc on the
5127         return_rtx.
5128         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
5129         class ctor.  Initialize m_in_call_function_usage.  Call
5130         one_time_initialization.
5131         * rtl-tests.c (selftest::test_uncond_jump): Call
5132         set_new_first_and_last_insn.
5133         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
5134         * selftest-rtl.c: New file.
5135         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
5136         (selftest::get_insn_by_uid): New decl.
5137         * selftest-run-tests.c (selftest::run_tests): Call
5138         read_rtl_function_c_tests.
5139         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
5140         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
5141         dumps.
5143 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
5145         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
5146         operands in a special way.  Assert that pos+len <= mode precision.
5148 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
5150         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
5151         3 argument Alias with unlimited for the negative form.
5152         (fno-vect-cost-model): Removed.
5154 2017-01-05  Martin Liska  <mliska@suse.cz>
5156         * hsa-gen.c (gen_hsa_divmod): New function.
5157         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
5159 2017-01-05  Martin Liska  <mliska@suse.cz>
5161         PR pch/78970
5162         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
5163         header.
5165 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5167         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
5168         small constant length operands.
5170 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5172         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
5173         between loop iterations.
5175 2017-01-05  Martin Liska  <mliska@suse.cz>
5177         PR sanitizer/78815
5178         * gimplify.c (gimplify_decl_expr): Compare to
5179         asan_poisoned_variables instread of checking flags.
5180         (gimplify_target_expr): Likewise.
5181         (gimplify_expr): Likewise.
5182         (gimplify_function_tree): Conditionally initialize
5183         asan_poisoned_variables.
5185 2017-01-04  Jeff Law  <law@redhat.com>
5187         PR tree-optimizatin/78812
5188         * rtl.h (contains_mem_rtx_p): Prototype.
5189         * ifcvt.c (containts_mem_rtx_p): Move from here to...
5190         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
5191         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
5192         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
5193         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
5195 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5197         * input.c (assert_char_at_range): Default-initialize actual_range.
5199 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5201         * df-scan.c (df_ref_create_structure): Make regno unsigned,
5202         to match the caller.
5204 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5206         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
5207         insns after final jump in test to emit dummy move.
5209 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5211         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
5212         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
5214 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5216         * multiple_target.c (create_dispatcher_calls): Init e_next.
5217         * tree-ssa-loop-split.c (split_loop): Init border.
5218         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
5219         scalar_type.
5221 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5223         PR target/71977
5224         PR target/70568
5225         PR target/78823
5226         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
5227         (altivec_register_operand): Do not return true if the operand
5228         contains a SUBREG mixing SImode and SFmode.
5229         (vsx_register_operand): Likewise.
5230         (vsx_reg_sfsubreg_ok): New predicate.
5231         (vfloat_operand): Do not return true if the operand contains a
5232         SUBREG mixing SImode and SFmode.
5233         (vint_operand): Likewise.
5234         (vlogical_operand): Likewise.
5235         (gpc_reg_operand): Likewise.
5236         (int_reg_operand): Likewise.
5237         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
5238         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
5239         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
5240         SImode and SFmode.
5241         (rs6000_emit_move_si_sf_subreg): New helper function.
5242         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
5243         fixup SUBREGs involving SImode and SFmode.
5244         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
5245         numbers for the new peephole2 optimization.
5246         (peephole2 for SFmode unions): New peephole2 to optimize cases in
5247         the GLIBC math library that do AND/IOR/XOR operations on single
5248         precision floating point.
5249         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
5250         target macros to say whether we need to avoid SUBREGs mixing
5251         SImode and SFmode.
5252         (TARGET_ALLOW_SF_SUBREG): Likewise.
5253         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
5254         (UNSPEC_SI_FROM_SF): Likewise.
5255         (iorxor): Change spacing.
5256         (and_ior_xor): New iterator for AND, IOR, and XOR.
5257         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
5258         (movdi_from_sf_zero_ext): Likewise.
5259         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
5260         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
5261         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
5262         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
5263         (fms<mode>4): Likewise.
5264         (fnma<mode>4): Likewise.
5265         (fnms<mode>4): Likewise.
5266         (nfma<mode>4): Likewise.
5267         (nfms<mode>4): Likewise.
5269 2017-01-04  Marek Polacek  <polacek@redhat.com>
5271         PR c++/64767
5272         * doc/invoke.texi: Document -Wpointer-compare.
5274 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5276         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
5277         RejectNegative.
5279         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
5280         descriptions for -gdwarf-5 and emit them as uleb128 instead of
5281         2-byte data.
5283 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5285         PR target/78056
5286         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
5287         documentation of the powerpc_popcntb_ok attribute.
5288         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5289         code to issue warning messages if a requested CPU configuration is
5290         not supported by the binary (assembler and loader) toolchain.
5291         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
5292         made to define a built-in function that has been disabled.
5293         (paired_init_builtins): Add assertion to prevent ICE if attempt is
5294         made to define a built-in function that has been disabled.
5295         (altivec_init_builtins): Add comment explaining why definition
5296         of the DST built-in functions is not preceded by an assertion
5297         check.  Add assertions to prevent ICE if attempts are made to
5298         define an altivec predicate or an abs* built-in function that has
5299         been disabled.
5300         (htm_init_builtins): Add comment explaining why definition of the
5301         htm built-in functions is not preceded by an assertion check.
5303 2017-01-04  Jeff Law  <law@redhat.com>
5305         PR tree-optimizatin/67955
5306         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
5307         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
5308         the points-to solution does not include pt_null.  Use DECL_PT_UID
5309         unconditionally.
5311 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
5313         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
5314         Use gen_int_mode instead of gen_lopwart for const_int operands.
5316 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5318         PR tree-optimization/71563
5319         * match.pd: Simplify X << Y into X if Y is known to be 0 or
5320         out of range value - has low bits known to be zero.
5322 2017-01-04  Alan Modra  <amodra@gmail.com>
5324         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
5325         * configure: Regenerate.
5326         * config.in: Regenerate.
5328 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5330         PR bootstrap/77569
5331         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
5332         a substring of the message, but strcmp with the whole message.  Ifdef
5333         ENABLE_NLS, translate the message first using dgettext.
5335 2017-01-03  Jeff Law  <law@redhat.com>
5337         PR tree-optimizatin/78856
5338         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
5339         (mark_threaded_blocks): Remove code to truncate thread paths that
5340         cross multiple loop headers.  Instead invalidate the cached loop
5341         iteration information and handle case of a thread path walking
5342         into an irreducible region.
5344 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5346         PR target/78900
5347         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
5348         assertions.  Add support for doing the signbit if the IEEE 128-bit
5349         floating point value is in a GPR.
5350         * config/rs6000/rs6000.md (Fsignbit): Delete.
5351         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
5352         Update the length attribute if the value is in a GPR.
5353         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
5354         the sign or zero extension instruction, since the value is always 0/1.
5355         (signbit<mode>2_dm2): Delete using <Fsignbit>.
5357         PR target/78953
5358         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
5359         extracting SImode to a GPR register so that we can generate a
5360         store, limit the vector to be in a traditional Altivec register
5361         for the vextuwrx instruction.
5363 2017-01-03  Ian Lance Taylor  <iant@google.com>
5365         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
5367 2017-01-03  Martin Sebor  <msebor@redhat.com>
5369         PR tree-optimization/78696
5370         * gimple-ssa-sprintf.c (format_floating): Correct handling of
5371         precision.  Use MPFR for %f for greater fidelity.  Correct handling
5372         of %g.
5373         (pass_sprintf_length::compute_format_length): Set width and precision
5374         specified by asrerisk to void_node for vararg functions.
5375         (try_substitute_return_value): Adjust dump output.
5377 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
5379         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
5381 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
5383         * doc/invoke.texi (SPARC options): Document -mlra as the default.
5384         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
5385         -mlra/-mno-lra was passed to the compiler.
5387 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
5389         PR rtl-optimization/65618
5390         * emit-rtl.c (try_split): Move initialization of "before" and
5391         "after" to just before the call to emit_insn_after_setloc.
5393 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
5395         * doc/md.texi (Standard Names): Remove reference to Java frontend.
5397 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5399         * dwarf2out.c (gen_enumeration_type_die): When
5400         -gno-strict-dwarf, add a DW_AT_encoding attribute.
5402 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
5404         PR tree-optimization/78965
5405         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
5406         Change first argument from const call_info & to call_info &.  For %n
5407         set info.nowrite to false.
5409         PR middle-end/78901
5410         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
5411         possibly throwing calls.
5413         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
5414         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
5415         and fns handling, rather than in a separate case SSA_NAME.
5417 2017-01-02  Jeff Law  <law@redhat.com>
5419         * config/darwin-driver.c (darwin_driver_init): Const-correctness
5420         fixes for first_period and second_period variables.
5422 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
5424         PR target/78967
5425         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
5426         (*insvqi_1): New insn pattern.
5427         (*insvqi_1_mem_rex64): Ditto.
5428         (*insvqi_2): Ditto.
5429         (*insvqi_3): Rename from *insvqi.
5431         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
5433 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
5435         * doc/cfg.texi (Edges): Remove reference to Java.
5436         (Maintaining the CFG): Ditto.
5438 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5440         PR middle-end/77674
5441         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
5442         transparent aliases.
5444 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5446         PR middle-end/77484
5447         * predict.def (PRED_CALL): Update hitrate.
5448         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
5449         * predict.c (tree_estimate_probability_bb): Split CALL predictor
5450         into direct/indirect/polymorphic variants.
5452 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
5454         Update copyright years.
5456         * gcc.c (process_command): Update copyright notice dates.
5457         * gcov-dump.c (print_version): Ditto.
5458         * gcov.c (print_version): Ditto.
5459         * gcov-tool.c (print_version): Ditto.
5460         * gengtype.c (create_file): Ditto.
5461         * doc/cpp.texi: Bump @copying's copyright year.
5462         * doc/cppinternals.texi: Ditto.
5463         * doc/gcc.texi: Ditto.
5464         * doc/gccint.texi: Ditto.
5465         * doc/gcov.texi: Ditto.
5466         * doc/install.texi: Ditto.
5467         * doc/invoke.texi: Ditto.
5469 Copyright (C) 2017 Free Software Foundation, Inc.
5471 Copying and distribution of this file, with or without modification,
5472 are permitted in any medium without royalty provided the copyright
5473 notice and this notice are preserved.