PR sanitizer/80349
[official-gcc.git] / gcc / ChangeLog
blobf96256bfac997e7c708af9d060dfc7971b1403d9
1 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
3         PR sanitizer/80349
4         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5         first argument to type.
7 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9         PR target/80376
10         PR target/80315
11         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
12         CONST0_RTX (mode) rather than const0_rtx where appropriate.
13         (rs6000_expand_binop_builtin): Likewise.
14         (rs6000_expand_ternop_builtin): Likewise; also add missing
15         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
16         vshasigma built-ins.
17         * doc/extend.texi: Document that vec_xxpermdi's third argument
18         must be a constant.
20 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
22         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
23         Use shift_const cost parameter when calculating gain of STV shifts.
25 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
27         PR rtl-optimization/70478
28         * lra-constraints.c (process_alt_operands): Check memory for
29         disfavoring memory insn operand.
31 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
33         PR middle-end/80100
34         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
35         left shift in unsigned HOST_WIDE_INT type.
37         PR rtl-optimization/80385
38         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
39         (not (neg X)) into (plus X -1) for complex or non-integral modes.
41         PR libgomp/80394
42         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
43         if they have any depend clauses.
45 2017-04-11  Martin Liska  <mliska@suse.cz>
47         PR ipa/80212
48         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
49         * ipa-split.c (split_function): Create a local comdat symbol
50         if caller is in a comdat group.
52 2017-04-11  Martin Liska  <mliska@suse.cz>
54         PR ipa/80212
55         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
56         flags.
58 2017-04-11  Martin Sebor  <msebor@redhat.com>
60         PR middle-end/80364
61         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
62         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
63         for INTEGER_TYPE.
64         (directive::set_width, directive::set_precision, format_character):
65         Adjust.
66         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
67         INTEGER_TYPE.
69 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
71         PR target/80389
72         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
73         conflict, set target->arch_name instead of target->cpu_name.
75 2017-04-11  Richard Biener  <rguenther@suse.de>
77         PR tree-optimization/80374
78         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
79         build_zero_cst, remove fold_convertible_p check again.
81 2017-04-11  Martin Liska  <mliska@suse.cz>
83         PR sanitizer/70878
84         * ubsan.c (instrument_object_size): Do not instrument register
85         variables.
87 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
89         PR target/80381
90         * config/i386/i386-builtin-types.def
91         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
92         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
93         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
94         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
95         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
96         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
97         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
98         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
99         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
100         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
101         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
102         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
103         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
104         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
105         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
106         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
107         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
108         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
109         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
110         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
111         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
112         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
113         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
114         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
115         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
116         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
117         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
118         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
119         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
120         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
121         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
122         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
123         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
124         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
125         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
126         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
127         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
128         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
129         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
130         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
131         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
132         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
133         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
134         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
135         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
136         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
137         aliases.
138         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
139         flag to second_arg_count, handle 4 argument function type _COUNT
140         aliases, handle second_arg_count on second argument rather than last.
142 2017-04-10  Jeff Law  <law@redhat.com>
144         PR tree-optimization/80374
145         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
146         record anything if we can not convert integer_zero_node to the
147         desired type.
149 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
151         PR target/80108
152         * config/rs6000/rs6000.c (rs6000_option_override_internal):
153         Enhance special handling given to the TARGET_P9_MINMAX option in
154         relation to certain other options.
156 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
158         PR tree-optimization/80153
159         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
160         remove POINTER_PLUS_EXPR's base part directly, rather than through
161         aff_tree.
163 2017-04-10  Richard Biener  <rguenther@suse.de>
164             Bin Cheng  <bin.cheng@arm.com>
166         PR tree-optimization/80153
167         * tree-affine.c (aff_combination_to_tree): Get base pointer from
168         the first element of pointer type aff_tree.  Build result expr in
169         aff_tree's type.
170         (add_elt_to_tree): Convert to type unconditionally.  Remove other
171         fold_convert calls.
172         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
173         (rewrite_use_nonlinear_expr): Check invariant using iv information.
175 2017-04-10  Richard Biener  <rguenther@suse.de>
177         * tree-ssa-structalias.c (find_func_aliases): Properly handle
178         asm inputs.
180 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
182         PR rtl-optimization/70478
183         * lra-constraints.c (curr_small_class_check): New.
184         (update_and_check_small_class_inputs): New.
185         (process_alt_operands): Update curr_small_class_check.  Disfavor
186         alternative insn memory operands.  Check available regs for small
187         class operands.
189 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
191         PR target/80057
192         * config/mips/mips.opt (-mvirt): Update description.
193         * doc/invoke.texi (-mvirt): Likewise.
195 2017-04-10  Richard Biener  <rguenther@suse.de>
197         PR middle-end/80362
198         * fold-const.c (fold_binary_loc): Look at unstripped ops when
199         looking for NEGATE_EXPR in -A / -B to A / B folding.
201 2017-04-10  Martin Liska  <mliska@suse.cz>
203         PR gcov-profile/80224
204         * gcov.c (print_usage): Fix usage string.
205         (get_gcov_intermediate_filename): Remove.
206         (output_gcov_file): Use both for normal and intermediate format.
207         (generate_results): Do not initialize special file for
208         intermediate format.
210 2017-04-10  Richard Biener  <rguenther@suse.de>
212         PR tree-optimization/80304
213         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
214         for safelen.
216 2017-04-10  Nathan Sidwell  <nathan@acm.org>
218         PR target/79905
219         * config/rs6000/rs6000.c (rs6000_vector_type): New.
220         (rs6000_init_builtins): Use it.
222 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
224         * config/arm/arm.md (<mrc>): Add mode to SET source.
225         (<mrrc>): Likewise.
227 2017-04-10  Richard Biener  <rguenther@suse.de>
229         PR middle-end/80344
230         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
232 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
234         PR target/80324
235         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
236         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
237         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
238         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
239         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
240         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
241         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
242         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
243         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
244         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
245         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
246         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
247         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
248         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
249         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
250         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
251         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
252         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
253         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
254         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
255         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
256         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
257         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
259 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
261         PR rtl-optimization/70478
262         * lra-constraints.c: Reverse the last patch.
264 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
266         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
267         Add comment for WCHAR_T.
269 2017-04-08  Martin Liska  <mliska@suse.cz>
271         Revert:
272         2017-04-07  Martin Liska  <mliska@suse.cz>
274         PR ipa/80212
275         * ipa-split.c (split_function): Add function part to a same comdat
276         group.
278 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
280         PR target/80358
281         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
283 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
285         * rs6000/rs6000.c (vec_load_pendulum): Rename...
286         (vec_pairing): ...to this.
287         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
288         (rs6000_sched_init): Adjust for name change.
289         (struct rs6000_sched_context): Likewise.
290         (rs6000_init_sched_context): Likewise.
291         (rs6000_set_sched_context): Likewise.
293 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
295         PR target/80322
296         PR target/80323
297         PR target/80325
298         PR target/80326
299         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
300         intrinsics.
301         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
302         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
303         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
305 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
307         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
309 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
311         PR rtl-optimization/70703
312         * ira-color.c (update_conflict_hard_regno_costs): Use
313         int64_t instead of HOST_WIDE_INT.
315 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
317         PR rtl-optimization/70478
318         * lra-constraints.c (process_alt_operands): Disfavor alternative
319         insn memory operands.
321 2017-04-07  Jeff Law  <law@redhat.com>
323         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
324         CALL and NOTE_INSN_CALL_ARG_LOCATION.
326 2017-04-07  Martin Liska  <mliska@suse.cz>
328         PR target/79889
329         * config/aarch64/aarch64.c (aarch64_process_target_attr):
330         Show error message instead of an ICE.
332 2017-04-07  Martin Liska  <mliska@suse.cz>
334         PR ipa/80212
335         * ipa-split.c (split_function): Add function part to a same comdat
336         group.
338 2017-04-07  Richard Biener  <rguenther@suse.de>
340         PR middle-end/80341
341         * tree.c (get_unwidened): Also handle ! for_type case for
342         INTEGER_CSTs.
343         * convert.c (do_narrow): Split out from ...
344         (convert_to_integer_1): ... here.  Do not pass final truncation
345         type to get_unwidened for TRUNC_DIV_EXPR.
347 2017-04-07  Richard Biener  <rguenther@suse.de>
349         * tree-affine.c (wide_int_ext_for_comb): Take type rather
350         than aff_tree.
351         (aff_combination_const): Adjust.
352         (aff_combination_scale): Likewise.
353         (aff_combination_add_elt): Likewise.
354         (aff_combination_add_cst): Likewise.
355         (aff_combination_convert): Likewise.
356         (add_elt_to_tree): Likewise.  Remove unused argument.
357         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
359 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
361         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
362         definition.
363         * config/arm/arm.c (arm_default_short_enums): Use
364         ARM_DEFAULT_SHORT_ENUMS.
365         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
367 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
369         PR debug/80234
370         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
371         members with redundant out-of-class redeclaration.
373 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
375         PR target/80286
376         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
377         * config/i386/i386.md (*zero_extendsidi2):
378         Add (?*x,*x) and (?*v,*v) alternatives.
380 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
382         PR target/79733
383         * config/i386/i386.c (ix86_expand_builtin)
384         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
385         mode from insn data. Convert operands to insn operand mode.
386         Copy operands that don't satisfy insn predicate to a register.
388 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
390         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
391         Update comments.
393 2017-04-06  Richard Biener  <rguenther@suse.de>
395         PR tree-optimization/80334
396         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
397         preserve alignment of accesses.
399 2017-04-06  Richard Biener  <rguenther@suse.de>
401         PR tree-optimization/80262
402         * tree-sra.c (build_ref_for_offset): Preserve address-space
403         information.
404         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
405         Drop useless address-space information on MEM_REF offsets.
407 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
409         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
411 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
413         PR rtl-optimization/70703
414         * ira-color.c (update_conflict_hard_regno_costs): Use
415         HOST_WIDE_INT instead of long.
417 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
419         PR target/80298
420         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
421         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
422         is not defined.
423         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
424         for x86_64 target.  Handle -m3dnowa option.
426 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
428         PR rtl-optimization/70703
429         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
430         (update_conflict_hard_regno_costs): Use long instead of unsigned
431         arithmetic for cost calculation.
433 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
434             Bernd Edlinger  <bernd.edlinger@hotmail.de>
436         PR sanitizer/80308
437         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
438         for big endian.
440 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
442         PR target/78002
443         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
444         ptr_mode with Pmode throughout.
445         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
446         into probe_stack_range and use DImode.
448 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
450         PR target/79890
451         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
452         call_eh_return is true.
454 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
456         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
457         Initialize last_match_fntype_index.
459 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
461         PR target/80310
462         * tree-nvr.c: Include internal-fn.h.
463         (pass_return_slot::execute): Ignore internal calls without
464         direct optab.
466 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
467             Richard Biener  <rguenther@suse.de>
469         PR c++/80297
470         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
471         captures used multiple times, except for the last use.
472         * generic-match-head.c: Include gimplify.h.
474 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
476         PR tree-optimization/79390
477         * target.h (struct noce_if_info): Declare.
478         * targhooks.h (default_noce_conversion_profitable_p): Declare.
479         * target.def (noce_conversion_profitable_p): New target hook.
480         * ifcvt.h (struct noce_if_info): New type, moved from ...
481         * ifcvt.c (struct noce_if_info): ... here.
482         (noce_conversion_profitable_p): Renamed to ...
483         (default_noce_conversion_profitable_p): ... this.  No longer
484         static nor inline.
485         (noce_try_store_flag_constants, noce_try_addcc,
486         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
487         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
488         instead of noce_conversion_profitable_p.
489         * config/i386/i386.c: Include ifcvt.h.
490         (ix86_option_override_internal): Don't override
491         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
492         (ix86_noce_conversion_profitable_p): New function.
493         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
494         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
495         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
496         * doc/tm.texi: Regenerated.
498 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
500         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
501         correction.
503 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
505         PR target/80307
506         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
507         instructions for small multiply cores.
509 2017-04-04  Jeff Law  <law@redhat.com>
511         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
512         added member.
513         (mips_expand_vec_perm_const): Initialize elements in orig_perm
514         that are not set by the loop over the elements.
516 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
518         PR target/80286
519         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
520         int mode, convert_modes it to mode as unsigned, otherwise use
521         lowpart_subreg to mode rather than SImode.
522         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
523         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
524         Use DImode instead of SImode for the shift count operand.
525         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
526         Likewise.
528 2017-04-04  Richard Biener  <rguenther@suse.de>
530         PR middle-end/80281
531         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
532         arithmetic done for the negate or the plus.  Simplify.
533         (A - (-B) -> A + B): Likewise.
534         * fold-const.c (split_tree): Make sure to not negate pointers.
536 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
538         PR rtl-optimization/60818
539         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
540         a compare of comparisons with the thing compared if this results
541         in a different machine mode.
543 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
545         * alias.c (base_alias_check): Fix typo in comment.
546         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
547         * cgraphunit.c (symbol_table::compile): Likewise.
548         * collect2.c (maybe_run_lto_and_relink): Likewise.
549         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
550         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
551         * config/avr/avr.c (avr_map_op_t): Likewise.
552         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
553         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
554         * config/epiphany/epiphany.md (movcc): Likewise.
555         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
556         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
557         Likewise.
558         * config/mips/mips.c (mips_save_restore_reg): Likewise.
559         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
560         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
561         * config/sh/sh.c (sh_rtx_costs): Likewise.
562         * fold-const.c (fold_truth_andor): Likewise.
563         * genautomata.c (collapse_flag): Likewise.
564         * gengtype.h (struct type::u::s): Likewise.
565         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
566         * input.c (FORMAT_AMOUNT): Likewise.
567         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
568         (known_aggs_to_agg_replacement_list): Likewise.
569         * ipa-inline-analysis.c: Likewise.
570         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
571         * ipa-polymorphic-call.c
572         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
573         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
574         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
575         Likewise.
576         * modulo-sched.c (apply_reg_moves): Likewise.
577         * omp-expand.c (build_omp_regions_1): Likewise.
578         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
579         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
580         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
581         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
582         * value-prof.c: Likewise.
583         * var-tracking.c (val_reset): Likewise.
585 2017-04-03  Richard Biener  <rguenther@suse.de>
587         PR tree-optimization/80275
588         * fold-const.c (split_address_to_core_and_offset): Handle
589         POINTER_PLUS_EXPR.
591 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
593         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
594         descriptors is at least equal to that of functions.
596 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
598         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
600 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
602         PR target/80250
603         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
604         (mov<IMOD4:mode>): New expander.
605         (*mov<IMOD4:mode>_internal): New insn and split pattern.
607 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
609         PR rtl-optimization/79405
610         * fwprop.c (propagations_left): New variable.
611         (forward_propagate_into): Decrement it.
612         (fwprop_init): Initialize it.
613         (fw_prop): If the variable has reached zero, stop propagating.
614         (fwprop_addr): Ditto.
616 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
618         PR debug/79255
619         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
620         a FUNCTION_DECL, pass it as decl instead of origin to
621         process_scope_var.
623 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
625         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
626         string.
628 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
630         PR target/80107
631         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
632         TARGET_VSX_SMALL_INTEGER.
634 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
636         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
637         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
639 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
641         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
642         extraction from odd-numbered MSA register.
644 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
646         PR middle-end/80173
647         * expmed.c (store_bit_field_1): Don't attempt to create
648         a word subreg out of hard registers wider than word if they
649         have HARD_REGNO_NREGS of 1 for their mode.
651         PR middle-end/80163
652         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
653         conversions to integer types wider than word and pointer.
655         PR debug/80025
656         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
657         (rtx_equal_for_cselib_p): Pass 0 to it.
658         * cselib.c (cselib_hasher::equal): Likewise.
659         (rtx_equal_for_cselib_1): Add depth argument.  If depth
660         is 128, don't look up VALUE locs and punt.  Increment
661         depth in recursive calls when walking VALUE locs.
663 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
665         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
666         (make_gcov_file_name): Use the canonical path name for generating
667         the MD5 value.
668         (read_line): Fix handling of files with ascii null bytes.
670 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
672         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
673         to initialise a vector register instead
674         of using a const_int.
676 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
678         PR translation/80189
679         * gimplify.c (omp_default_clause): Use %qs instead of %s in
680         diagnostic messages.
682 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
684         PR target/80246
685         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
686         (dfp_diex_<mode>): Update mode of operand 1.
687         * doc/extend.texi (dxex, dxexq): Document change to return type.
688         (diex, diexq): Document change to argument type.
690 2017-03-30  Martin Jambor  <mjambor@suse.cz>
692         PR ipa/77333
693         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
694         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
695         it reflects the signature changes performed at the callee side.
696         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
697         to cgraph_build_function_type_skip_args.
698         (build_function_decl_skip_args): Adjust call to the above function.
700 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
702         PR target/80206
703         * config/i386/sse.md
704         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
705         register as dest whenever it is a MEM not rtx_equal_p to the
706         corresponding dup operand, and when forcing into reg move the
707         reg into the memory afterwards.
708         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
709         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
710         for the force_reg mode.
711         (avx512vl_vextractf128<mode>): Use register as dest either
712         always when a MEM, or when it is a MEM not rtx_equal_p to the
713         corresponding dup operand, or even not when it is a CONST_VECTOR
714         depending on the mode and lo vs. hi.
715         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
716         parens.
717         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
718         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
719         Likewise.  Require that operands[2] is even.
720         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
721         Remove extraneous parens.  Require that operands[2] is a multiple
722         of 4.
723         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
724         operands[0] is a MEM if <mask_applied>, the predicates/constraints
725         disallow memory then.
727 2017-03-30  Richard Biener  <rguenther@suse.de>
729         PR tree-optimization/77498
730         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
731         to non-constants over backedges.
733 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
735         PR rtl-optimization/80233
736         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
737         as last_combined_insn.  Do not test for BARRIER_P separately.
739 2017-03-29  Andreas Schwab  <schwab@suse.de>
741         PR ada/80146
742         * calls.c (prepare_call_address): Convert funexp to Pmode before
743         copying to temp reg.
745 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
747         PR tree-optimization/80158
748         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
749         Handle possible future case of more than one alternate
750         interpretation.
751         (replace_rhs_if_not_dup): Likewise.
752         (replace_one_candidate): Likewise.
754 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
756         PR rtl-optimization/80193
757         * ira.c (ira): Do not check allocation for LRA.
759 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
761         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
762         (nvptx_output_simt_exit): Declare.
763         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
764         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
765         (init_softstack_frame): Move initialization of crtl->is_leaf to...
766         (nvptx_declare_function_name): ...here.  Emit declaration of local
767         memory space buffer for omp_simt_enter insn.
768         (nvptx_output_unisimt_switch): New.
769         (nvptx_output_softstack_switch): New.
770         (nvptx_output_simt_enter): New.
771         (nvptx_output_simt_exit): New.
772         * config/nvptx/nvptx.h (struct machine_function): New fields
773         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
774         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
775         (UNSPECV_SIMT_EXIT): Ditto.
776         (omp_simt_enter_insn): New insn.
777         (omp_simt_enter): New expansion.
778         (omp_simt_exit): New insn.
779         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
781         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
782         (expand_GOMP_SIMT_ENTER_ALLOC): New.
783         (expand_GOMP_SIMT_EXIT): New.
784         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
785         (GOMP_SIMT_ENTER_ALLOC): Ditto.
786         (GOMP_SIMT_EXIT): Ditto.
787         * target-insns.def (omp_simt_enter): New insn.
788         (omp_simt_exit): Ditto.
789         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
790         simt_dlist.
791         (lower_rec_simd_input_clauses): Implement SIMT privatization.
792         (lower_rec_input_clauses): Likewise.
793         (lower_lastprivate_clauses): Handle SIMT privatization.
795         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
796         (ompdevlow_adjust_simt_enter): New.
797         (find_simtpriv_var_op): New.
798         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
799         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
801         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
802         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
803         (copy_decl_for_dup_finish): Ditto.
805         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
807 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
809         PR target/53383
810         * config/i386/i386.c (ix86_option_override_internal): Always
811         allow -mpreferred-stack-boundary=3 for 64-bit targets.
813 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
815         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
817 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
819         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
820         mark new edge's irreducible flag accordign to it.
821         (vect_do_peeling): Check loop preheader edge's irreducible flag
822         and pass it to function slpeel_add_loop_guard.
824 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
826         PR tree-optimization/80218
827         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
828         Update block frequencies and counts.
830 2017-03-28  Richard Biener  <rguenther@suse.de>
832         PR tree-optimization/78644
833         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
834         of a simplification result we may not use it at all.
836 2017-03-28  Richard Biener  <rguenther@suse.de>
838         PR ipa/80205
839         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
840         without arguments, generate default definition of a SSA name.
842 2017-03-28  Richard Biener  <rguenther@suse.de>
844         PR middle-end/80222
845         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
846         TYPE_REF_CAN_ALIAS_ALL references.
847         * fold-const.c (fold_indirect_ref_1): Likewise.
849 2017-03-28  Martin Liska  <mliska@suse.cz>
851         PR ipa/80104
852         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
853         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
855 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
856             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
858         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
859         (EXTRA_SPECS): Define.
860         (SUBTARGET_EXTRA_SPECS): Likewise.
861         (SUBTARGET_CPP_SPEC): Likewise.
862         * config/arc/elf.h (EXTRA_SPECS): Renamed to
863         SUBTARGET_EXTRA_SPECS.
864         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
866 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
868         * config/arc/simdext.md (vst64_insn): Update pattern.
869         (vld32wh_insn): Likewise.
870         (vld32wl_insn): Likewise.
871         (vld64_insn): Likewise.
872         (vld32_insn): Likewise.
874 2017-03-28  Marek Polacek  <polacek@redhat.com>
876         PR sanitizer/80067
877         * fold-const.c (fold_comparison): Use protected_set_expr_location
878         instead of SET_EXPR_LOCATION.
880 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
882         * tree.c (add_expr): Avoid name lookup warning.
884 2017-03-27  Jeff Law  <law@redhat.com>
886         PR tree-optimization/80216
887         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
888         function name.  Limit recursion depth.
889         (record_temporary_equivalences): Corresponding changes.
891 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
893         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
894         covered first.
896 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
898         PR target/80102
899         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
900         notes.
901         * cfgcleanup.c (reg_note_cfa_p): New array.
902         (insns_have_identical_cfa_notes): New function.
903         (old_insns_match_p): Don't cross-jump in between /f
904         and non-/f instructions.  If both i1 and i2 are frame related,
905         verify all CFA notes, their order and content.
907 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
909         PR target/78543
910         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
911         HImode and SImode with zero extend to DImode to one insn.
912         (bswap<mode>2_extenddi): Likewise.
913         (bswapsi2_extenddi): Likewise.
914         (bswaphi2_extendsi): Likewise.
915         (bswaphi2): Combine bswap HImode and SImode into one insn.
916         Separate memory insns from swapping register.
917         (bswapsi2): Likewise.
918         (bswap<mode>2): Likewise.
919         (bswaphi2_internal): Delete, no longer used.
920         (bswapsi2_internal): Likewise.
921         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
922         store, and gpr<-gpr swap insns.
923         (bswap<mode>2_store): Likewise.
924         (bswaphi2_reg): Register only splitter, combine with the splitter.
925         (bswaphi2 splitter): Likewise.
926         (bswapsi2_reg): Likewise.
927         (bswapsi2 splitter): Likewise.
928         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
929         the insns into load, store, and register/register insns.
930         (bswapdi2_ldbrx): Likewise.
931         (bswapdi2_load): Likewise.
932         (bswapdi2_store): Likewise.
933         (bswapdi2_reg): Likewise.
935 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
937         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
938         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
940 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
942         PR target/80103
943         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
944         add comments.
945         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
946         special handling for target option conflicts between dform
947         options (-mpower9-dform, -mpower9-dform-vector,
948         -mpower9-dform-scalar) and -mno-direct-move.
950 2017-03-27  Richard Biener  <rguenther@suse.de>
952         PR tree-optimization/80181
953         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
955 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
957         * config/arc/predicates.md (move_double_src_operand): Replace the
958         call to move_double_src_operand with a call to address_operand.
960 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
962         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
963         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
964         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
966 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
968         * config/arc/predicates.md (long_immediate_loadstore_operand):
969         Consider scaled addresses cases.
971 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
973         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
974         restored when in interrupt.
975         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
976         doesn't have delay slot.
978 2017-03-27  Richard Biener  <rguenther@suse.de>
980         PR ipa/79776
981         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
982         inlined thunk clones.
984 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
986         PR sanitizer/80168
987         * asan.c (instrument_derefs): Copy over last operand from
988         original COMPONENT_REF to the new COMPONENT_REF with
989         DECL_BIT_FIELD_REPRESENTATIVE.
990         * ubsan.c (instrument_object_size): Likewise.
992 2017-03-27  Richard Biener  <rguenther@suse.de>
994         PR tree-optimization/80170
995         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
996         sure DR/SCEV didnt fold in constants we do not see when looking
997         at the reference base alignment.
999 2017-03-27  Richard Biener  <rguenther@suse.de>
1001         PR middle-end/80171
1002         * gimple-fold.c (fold_ctor_reference): Properly guard against
1003         NULL return value from canonicalize_constructor_val.
1005 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
1007         PR target/80180
1008         * config/i386/i386.c (ix86_expand_builtin)
1009         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
1010         flags reg setting and flags reg using instructions.
1011         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
1012         clobbering instructions to zero extend op2.
1014 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
1016         * doc/install.texi (Configuration) <--with-aix-soname>:
1017         Update link to AIX ld.
1019 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
1021         PR rtl-optimization/80160
1022         PR rtl-optimization/80159
1023         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
1024         reg_alternate_class into account.
1026 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
1028         PR target/80148
1029         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
1030         to consider in curr_insn_transform.
1032 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
1034         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
1035         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
1036         and emit_mode_inner.
1038 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1040         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
1041         argument to the overloaded builtin variants.  Use the new flag to
1042         deprecate certain builtin variants.
1043         * config/s390/s390-builtin-types.def: Add new builtin types.
1044         * config/s390/s390-builtins.h: Support new flags field for
1045         overloaded builtins.
1046         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
1047         (s390_macro_to_expand): Enable vector float data type.
1048         (s390_cpu_cpp_builtins_internal): Indicate support of the new
1049         builtins by incrementing the __VEC__ version number.
1050         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
1051         vec_xst.
1052         (s390_resolve_overloaded_builtin): Emit error messages depending
1053         on the builtin flags.
1054         * config/s390/s390.c (s390_expand_builtin): Support additional
1055         flags argument.  Change error message to match the messages
1056         emitted in s390-c.c.
1057         * config/s390/s390.md: New UNSPEC_* constants.
1058         (op_type): Add new instruction types.
1059         * config/s390/vecintrin.h: Add new builtins and test data class
1060         constants.
1061         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
1062         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
1063         (VEC_INEXACT, VEC_NOINEXACT): New constants.
1064         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
1065         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
1066         ("vec_mergel<mode>"): V_HW -> VEC_HW.
1068         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
1069         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
1070         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
1071         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
1073         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
1074         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
1075         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
1076         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
1078         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
1079         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
1080         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
1081         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
1082         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
1083         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
1084         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
1086         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
1087         ("vec_scatter_element<V_HW_4:mode>_DI")
1088         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
1089         ("vec_fpint<mode>", "vflls")
1090         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
1091         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
1092         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
1093         ("*vec_cmphe<mode>_cc"): ... these.
1095         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
1096         mode constant instead of magic value.
1098 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1100         * config/s390/s390.c (s390_expand_vec_compare): Support other
1101         vector floating point modes than just V2DF.
1102         (s390_expand_vcond): Likewise.
1103         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
1104         (s390_cannot_change_mode_class): Prevent mode changes between TF
1105         and V1TF in vector registers.
1106         * config/s390/s390.md (DF, SF): New mode attributes.
1107         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
1108         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
1109         SFmode support for VRs.
1110         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
1111         vector fp modes.
1112         (VFT, VF_HW): New mode iterators.
1113         (vw, sdx): New mode attributes.
1114         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
1115         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
1116         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
1117         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
1118         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
1119         also the new vector floating point modes.  Renaming to ...
1121         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
1122         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
1123         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
1124         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
1125         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
1126         ("vec_unordered<mode>"): ... these.
1128         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
1129         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
1130         ("*vec_extendv2df"): New insn definitions.
1132 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1134         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
1135         ("mulditi3_2", "*muldi3_sign"): New patterns.
1136         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
1137         rename the pattern definition.
1139 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1141         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
1142         expander.
1143         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
1145 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1147         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
1148         instruction if possible.
1149         * config/s390/vector.md (vec_halfnumelts): New mode
1150         attribute.
1151         ("*vec_vllezlf<mode>"): New pattern.
1153 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1155         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
1156         ("popcountv4si2", "popcountv2di2"): Rename to ...
1157         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
1158         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
1159         condition.
1160         ("popcount<mode>2_vxe"): New pattern.
1162 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1164         * common/config/s390/s390-common.c (processor_flags_table): Add
1165         arch12.
1166         * config.gcc: Add arch12.
1167         * config/s390/driver-native.c (s390_host_detect_local_cpu):
1168         Default to arch12 for unknown CPU model numbers.
1169         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
1170         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
1171         PROCESSOR_max sanity check.
1172         * config/s390/s390-opts.h (enum processor_type): Add
1173         PROCESSOR_ARCH12.
1174         * config/s390/s390.c (processor_table): Add arch12.
1175         (s390_expand_builtin): Add check for B_VXE flag.
1176         (s390_issue_rate): Add PROCESSOR_ARCH12.
1177         (s390_get_sched_attrmask): Likewise.
1178         (s390_get_unit_mask): Likewise.
1179         (s390_sched_score): Enable z13 scheduling for arch12.
1180         (s390_sched_reorder): Likewise.
1181         (s390_sched_variable_issue): Likewise.
1182         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
1183         PF_VXE.
1184         (s390_tune_attr): Use z13 scheduling also for arch12.
1185         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
1186         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
1187         (TARGET_VXE_P): New macros.
1188         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
1189         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
1190         * config/s390/s390.opt: Add arch12 as processor_type.
1192 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1194         * config/s390/s390.md
1195         ("fixuns_truncdddi2", "fixuns_trunctddi2")
1196         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
1197         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
1199         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
1200         Rename expanders to ...
1202         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
1203         ("fixuns_truncdddi2_emu"): ... these.
1205         ("fixuns_trunc<mode>si2_emu"): New expander.
1207         ("*fixuns_truncdfdi2_z13"): Rename to ...
1208         ("*fixuns_truncdfdi2_vx"): ... this.
1210 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1212         * config/s390/2964.md: Remove the single element vector compare
1213         instructions which are no longer used.
1214         * config/s390/s390.c (s390_select_ccmode): Remove handling of
1215         vector CCmodes.
1216         (s390_canonicalize_comparison): Remove handling of DFmode
1217         compares.
1218         (s390_expand_vec_compare_scalar): Remove function.
1219         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
1220         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
1221         pattern.
1222         ("*cmp<mode>_ccs"): Add wfcdb instruction.
1224 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1226         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
1227         FP zero.
1228         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
1229         will anyway by matched by mov<mode>_64dfp.
1231 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1233         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1234         vlef/vstef.  Add missing operand to vleif.
1236 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1238         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1239         pair for all vector types with 64 bit elements.
1240         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1241         * config/s390/vector.md (V_HW_64): ... here.
1242         (V_128_NOSINGLE): New mode iterator.
1243         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1244         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1245         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1246         ("*vec_load_pairv2di"): Change to ...
1247         ("*vec_load_pair<mode>"): ... this one.
1249 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1251         * config/s390/constraints.md: Add comments.
1252         (jKK): Reject element sizes > 8 bytes.
1253         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1254         s_operands.
1255         * config/s390/s390.md: Add the s_operand checks formerly in
1256         s390_split_ok_p to various splitters where they are still
1257         required.
1258         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1259         for 128 bit vectors.  Plus two splitters.
1261 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1263         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1264         the file.
1266 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1268         PR target/79893
1269         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1270         error if the boundary argument is not constant.
1272 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
1274         PR rtl-optimization/80112
1275         * loop-doloop.c (doloop_condition_get): Don't check condition
1276         if cmp isn't SET with IF_THEN_ELSE src.
1278 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1280         PR tree-optimization/80158
1281         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1282         replacing a candidate statement, also replace it for the
1283         candidate's alternate interpretation.
1284         (replace_rhs_if_not_dup): Likewise.
1285         (replace_one_candidate): Likewise.
1287 2017-03-24  Richard Biener  <rguenther@suse.de>
1289         PR tree-optimization/80167
1290         * graphite-isl-ast-to-gimple.c
1291         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1292         properly.
1293         (translate_isl_ast_to_gimple::get_rename): Likewise.
1295 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1297         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1298         handling of certain combinations of target options, including the
1299         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1300         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1302 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1304         PR target/71436
1305         * config/arm/arm.md (*load_multiple): Add reload_completed to
1306         matching condition.
1308 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1309             Richard Biener  <rguenth@suse.de>
1311         PR tree-optimization/79908
1312         PR tree-optimization/80136
1313         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1314         been cast away, gimplify_and_add suffices.
1316 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
1318         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1320 2017-03-23  Richard Biener  <rguenther@suse.de>
1322         PR tree-optimization/80032
1323         * gimplify.c (gimple_push_cleanup): Forced unconditional
1324         cleanups still have to go to the conditional_cleanups
1325         sequence.
1327 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
1329         PR tree-optimization/80072
1330         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1331         to unsigned int.
1332         (next_operand_entry_id): Change type to unsigned int.
1333         (sort_by_operand_rank): Make sure to return the right return value
1334         even if unsigned fields are bigger than INT_MAX.
1335         (struct oecount): Change cnt and id type to unsigned int.
1336         (oecount_hasher::equal): Formatting fix.
1337         (oecount_cmp): Make sure to return the right return value
1338         even if unsigned fields are bigger than INT_MAX.
1339         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1341         PR c++/80129
1342         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1343         TREE_READONLY on result if writing it more than once.
1345         PR sanitizer/80110
1346         * doc/invoke.texi (-fsanitize=thread): Document that with
1347         -fnon-call-exceptions atomics are not able to throw
1348         exceptions.
1350         PR sanitizer/80110
1351         * tsan.c: Include tree-eh.h.
1352         (instrument_builtin_call): Call maybe_clean_eh_stmt or
1353         maybe_clean_or_replace_eh_stmt where needed.
1354         (instrument_memory_accesses): Add cfg_changed argument.
1355         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1356         if it returned true.
1357         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
1359         PR rtl-optimization/63191
1360         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1361         wrapper function, moved the whole old content into ...
1362         (ix86_delegitimize_address_1): ... this.  New inline function.
1363         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1364         true as last argument instead of ix86_delegitimize_address.
1366 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
1368         * config/aarch64/aarch64.c (generic_branch_cost): Copy
1369         cortexa57_branch_cost.
1371 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
1373         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1375 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1377         PR target/80123
1378         * doc/md.texi (Constraints): Document wA constraint.
1379         * config/rs6000/constraints.md (wA): New.
1380         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1381         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1382         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1383         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1385 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
1387         PR c++/80029
1388         * gimplify.c (is_oacc_declared): New function.
1389         (oacc_default_clause): Use it to set default flags for acc declared
1390         variables inside parallel regions.
1391         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1392         declared variables.
1393         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
1394         declare attribute to any decl as necessary.
1396 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1398         PR target/80082
1399         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1400         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1401         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1402         (arm_arch_lpae): This.
1403         * config/arm/arm.c (arm_arch7ve): Rename into ...
1404         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
1405         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1406         arm_arch_lpae.
1408 2017-03-22  Martin Liska  <mliska@suse.cz>
1410         PR target/79906
1411         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1412         error message instead of an ICE.
1414 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1416         * doc/extend.texi (6.11 Additional Floating Types): Revise.
1418 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1420         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1421         comments.
1422         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1423         comments.
1425 2017-03-21  Martin Sebor  <msebor@redhat.com>
1427         * doc/extend.texi: Use "cannot" instead of "can't."
1428         * doc/hostconfig.texi: Same.
1429         * doc/install.texi: Same.
1430         * doc/invoke.texi: Same.
1431         * doc/loop.texi: Same.
1432         * doc/md.texi: Same.
1433         * doc/objc.texi: Same.
1434         * doc/rtl.texi: Same.
1435         * doc/tm.texi: Same.
1436         * doc/tm.texi.in: Same.
1437         * doc/trouble.texi: Same.
1439 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
1441         PR debug/63238
1442         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1443         (collect_checksum_attributes): Set it.
1444         (die_checksum_ordered): Use it.
1446 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1448         PR tree-optimization/79908
1449         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1450         change: For a VA_ARG whose LHS has been cast away, use
1451         force_gimple_operand to construct the side effects.
1453 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
1455         PR translation/80001
1456         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1457         more amenable to translation.
1458         (oacc_loop_auto_partitions): Likewise.
1460 2017-03-21  Marek Polacek  <polacek@redhat.com>
1461             Martin Sebor  <msebor@redhat.com>
1463         PR tree-optimization/80109
1464         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1465         on INTEGRAL_TYPE_P.
1467 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
1468             Segher Boessenkool  <segher@kernel.crashing.org>
1470         PR target/80125
1471         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1472         check reg_used_between_p between insn and one of succ or succ2
1473         depending on if succ is artificial insn not inserted into insn
1474         stream.
1476 2017-03-21  Martin Liska  <mliska@suse.cz>
1478         PR gcov-profile/80081
1479         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1480         * doc/gcc.texi: Include gcov-dump stuff.
1481         * doc/gcov-dump.texi: New file.
1483 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
1485         PR rtl-optimization/79150
1486         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1487         conditional jump, if the jump is the last insn of the loop.
1489 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1490             Richard Biener  <rguenth@suse.de>
1492         PR tree-optimization/79908
1493         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1494         been cast away, use force_gimple_operand to construct the side
1495         effects.
1497 2017-03-21  Martin Liska  <mliska@suse.cz>
1499         PR libfortran/79956
1500         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1501         to NULL.
1503 2017-03-21  Brad Spengler <spender@grsecurity.net>
1505         PR plugins/80094
1506         * plugin.c (htab_hash_plugin): New function.
1507         (add_new_plugin): Use it and adjust.
1508         (parse_plugin_arg_opt): Adjust.
1509         (init_one_plugin): Likewise.
1511 2017-03-21  Richard Biener  <rguenther@suse.de>
1513         PR tree-optimization/80032
1514         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1515         if set force the cleanup to happen unconditionally.
1516         (gimplify_target_expr): Push inserted clobbers with force_uncond
1517         to avoid them being removed by control-dependent DCE.
1519 2017-03-21  Richard Biener  <rguenther@suse.de>
1521         PR tree-optimization/80122
1522         * tree-inline.c (copy_bb): Do not expans va-arg packs or
1523         va_arg_pack_len when the inlined call stmt requires pack
1524         expansion itself.
1525         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1527 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
1529         PR sanitizer/78158
1530         * tsan.c (instrument_builtin_call): If the memory model argument
1531         is not a constant, assume it is valid.
1533         PR c/67338
1534         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1535         avoid UB.
1537 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
1539         PR rtl-optimization/79910
1540         * combine.c (can_combine_p): Do not allow combining an I0 or I1
1541         if its dest is used by an insn before I2 (other than the combined
1542         insns themselves, which are properly handled already).
1544 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
1546         Revert:
1547         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
1549         * combine.c (record_used_regs): New static function.
1550         (try_combine): Handle situations where there is an additional
1551         instruction between I2 and I3 which needs to have a LOG_LINK
1552         updated.
1554         Revert:
1555         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
1557         * combine.c (try_combine): Delete redundant i1 test.  Call
1558         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1560 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1562         PR target/80083
1563         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1564         alternatives 13/14.
1566 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1568         PR tree-optimization/80054
1569         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1570         the optimization if a PHI or any of its arguments is not dominated
1571         by the candidate's basis.  Use gphi* rather than gimple* as
1572         appropriate.
1573         (replace_profitable_candidates): Clean up a gimple* variable that
1574         should be a gphi* variable.
1576 2017-03-20  Martin Sebor  <msebor@redhat.com>
1578         PR c++/52477
1579         * doc/extend.texi (attribute constructor): Document present limitation.
1581 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1583         PR target/79963
1584         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1585         __POWER9_VECTOR__ #ifdef control, change template definition to
1586         use Power9-specific built-in function.
1587         (vec_any_eq): Likewise.
1588         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1589         to control outcomes from this test.
1590         (vector_ae_<mode>p): For VEC_F modes, likewise.
1592 2017-03-20  Ian Lance Taylor  <iant@google.com>
1594         * config/i386/i386.c (ix86_function_regparm): Save an extra
1595         register for -fsplit-stack with DECL_STATIC_CHAIN.
1597 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
1599         PR target/79912
1600         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1601         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1603 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
1605         * config/riscv/riscv.c (riscv_print_operand): Use "fence
1606         iorw,ow".
1607         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1608         iorw,iorw".
1610 2017-03-20  Marek Polacek  <polacek@redhat.com>
1612         PR sanitizer/80063
1613         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1615 2017-03-20  Richard Biener  <rguenther@suse.de>
1617         PR tree-optimization/80113
1618         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1619         allocate extra SSA name for PHI def.
1620         (add_close_phis_to_outer_loops): Likewise.
1621         (add_close_phis_to_merge_points): Likewise.
1622         (copy_loop_close_phi_args): Likewise.
1623         (copy_cond_phi_nodes): Likewise.
1625 2017-03-20  Martin Liska  <mliska@suse.cz>
1627         PR middle-end/79753
1628         * tree-chkp.c (chkp_build_returned_bound): Do not build
1629         returned bounds for a LHS that's not a BOUNDED_P type.
1631 2017-03-20  Martin Liska  <mliska@suse.cz>
1633         PR target/79769
1634         PR target/79770
1635         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1636         COMPLEX_CST and VECTOR_CST.
1638 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1640         PR target/78857
1641         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1642         target operand.  A new splitter adds the clobber statement in case
1643         the target operand is dead anyway.
1645 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
1647         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1648         to age-old versions of binutils and glibc.
1650 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
1652         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1654 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
1656         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1658 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
1660         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1661         requirement for binutils 2.13.
1663 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
1665         * combine.c (try_combine): Delete redundant i1 test.  Call
1666         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1668 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
1670         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1671         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1672         contents.
1673         <riscv64-*-elf>: Re-arrange section
1674         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1675         <riscv32-*-linux>: Likewise.
1676         <riscv64-*-elf>: Likewise
1677         <riscv64-*-linux>: Likewise.
1679 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
1681         PR target/80052
1682         * aarch64.opt(verbose-cost-dump): Fix typo.
1684 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
1686         PR target/79951
1687         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1688         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1690 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
1692         * reload.c (find_reloads): When reloading a nonoffsettable address,
1693         use RELOAD_OTHER for it and its address reloads.
1695         PR rtl-optimization/79910
1696         * combine.c (record_used_regs): New static function.
1697         (try_combine): Handle situations where there is an additional
1698         instruction between I2 and I3 which needs to have a LOG_LINK
1699         updated.
1701 2017-03-17  Jeff Law  <law@redhat.com>
1703         PR tree-optimization/71437
1704         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1705         conditional in the hash table first.
1706         (vrp_dom_walker::before_dom_children): Extract condition from
1707         ASSERT_EXPR.  Record condition, its inverion and any implied
1708         conditions as well.
1710 2017-03-17  Marek Polacek  <polacek@redhat.com>
1711             Markus Trippelsdorf  <markus@trippelsdorf.de>
1713         PR tree-optimization/80079
1714         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1715         m_stores_head.
1717 2017-03-17  Richard Biener  <rguenther@suse.de>
1719         PR middle-end/80075
1720         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1721         Properly verify the LHS before the RHS possibly claims to be
1722         handled.
1723         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
1724         do not throw.
1726 2017-03-17  Martin Jambor  <mjambor@suse.cz>
1728         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1729         (List of -O2 options): Likewise.
1730         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1731         (-fipa-vrp) New.
1733 2017-03-17  Tom de Vries  <tom@codesourcery.com>
1735         * gcov-dump.c (print_usage): Print bug_report_url.
1737 2017-03-17  Richard Biener  <rguenther@suse.de>
1739         PR middle-end/80050
1740         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
1741         (parser::peek): Likewise.
1743 2017-03-17  Richard Biener  <rguenther@suse.de>
1745         PR tree-optimization/80048
1746         * sese.c (free_sese_info): Properly release rename_map and
1747         copied_bb_map elements.
1749 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
1751         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
1752         Add linked-list forward and backlinks.  Insert on
1753         construction, remove on destruction.
1754         (class pass_store_merging): Add m_stores_head field.
1755         (pass_store_merging::terminate_and_process_all_chains):
1756         Iterate over m_stores_head list.
1757         (pass_store_merging::terminate_all_aliasing_chains):
1758         Likewise.
1759         (pass_store_merging::execute): Check for debug stmts first.
1760         Push new chains onto the m_stores_head stack.
1762 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
1764         PR target/71294
1765         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1766         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1767         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1769 2017-03-16  Jeff Law  <law@redhat.com>
1771         PR tree-optimization/71437
1772         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
1773         member function.  Implementation moved into after_dom_children
1774         member function and into the threader's thread_outgoing_edges
1775         function.
1776         (dom_opt_dom_walker::after_dom_children): Simplify by moving
1777         some code into new thread_outgoing_edges.
1778         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
1779         definition.  Simplify marker handling (do it here).   Assume we always
1780         have the available expression and the const/copies tables.
1781         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
1782         and tree-vrp.c
1783         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
1784         * tree-vrp.c (equiv_stack): No longer file scoped.
1785         (vrp_dom_walker): New class.
1786         (vrp_dom_walker::before_dom_children): New member function.
1787         (vrp_dom_walker::after_dom_children): Likewise.
1788         (identify_jump_threads):  Setup domwalker.  Use it rather than
1789         walking edges in a random order by hand.  Simplify setup/finalization.
1790         (finalize_jump_threads): Remove.
1791         (vrp_finalize): Do not call identify_jump_threads here.
1792         (execute_vrp): Do it here instead and call thread_through_all_blocks
1793         here too.
1795         PR tree-optimization/71437
1796         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
1797         callers changed.
1798         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
1799         callers changed.
1800         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
1801         (dom_opt_dom_walker::thread_across_edge): Remove
1802         handle_dominating_asserts argument.  All callers changed.
1803         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
1804         changes.  Remove calls to lhs_of_dominating_assert.  Other
1805         uses of handle_dominating_asserts turn into unconditional code
1806         (simplify_control_stmt_condition_1): Likewise.
1807         (simplify_control_stmt_condition): Likewise.
1808         (thread_through_normal_block, thread_across_edge): Likewise.
1809         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
1810         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
1811         object if it is not an SSA_NAME.
1812         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
1813         before calling into the VRP specific simplifiers.
1814         (identify_jump_threads): Remove handle_dominating_asserts
1815         argument.
1817 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
1819         PR fortran/79886
1820         * tree-diagnostic.c (default_tree_printer): No longer static.
1821         * tree-diagnostic.h (default_tree_printer): New prototype.
1823 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
1825         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
1826         Change ins into fmov.
1828 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1830         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
1831         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
1832         Use h_con constraint for operand 1.
1833         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1834         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
1836 2017-03-15  Jeff Law  <law@redhat.com>
1838         PR tree-optimization/71437
1839         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
1840         (record_temporary_equivalences): Use it.
1842         PR tree-optimization/71437
1843         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
1844         tree-ssa-scopedtables.
1845         (lookup_avail_expr, build_and_record_new_cond): Likewise.
1846         (record_conditions, record_cond, vuse_eq): Likewise.
1847         (record_edge_info): Adjust to API tweak of record_conditions.
1848         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
1849         (record_temporary_equivalences, optimize_stmt): Likewise.
1850         (eliminate_redundant_computations): Likewise.
1851         (record_equivalences_from_stmt): Likewise.
1852         * tree-ssa-scopedtables.c: Include options.h and params.h.
1853         (vuse_eq): New function, moved from tree-ssa-dom.c
1854         (build_and_record_new_cond): Likewise.
1855         (record_conditions): Likewise.  Accept vector of conditions rather
1856         than edge_equivalence structure for first argument.
1857         for the first argument.
1858         (avail_exprs_stack::lookup_avail_expr): New member function, moved
1859         from tree-ssa-dom.c.
1860         (avail_exprs_stack::record_cond): Likewise.
1861         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
1862         from tree-ssa-dom.c.
1863         (avail_exprs_stack): Add new member functions lookup_avail_expr
1864         and record_cond.
1865         (record_conditions): Declare.
1867 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
1869         PR target/80017
1870         * lra-constraints.c (process_alt_operands): Increase reject for
1871         reloading an input/output operand.
1873 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1875         PR target/79038
1876         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
1877         insns to convert from signed/unsigned char/short to IEEE 128-bit
1878         floating point.
1879         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
1881 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
1883         PR target/80019
1884         * config/i386/i386.c (ix86_vector_duplicate_value): Create
1885         subreg of inner mode for values already in registers.
1887 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
1889         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
1890         iteration reg is used after the loop.
1892 2017-03-14  Martin Sebor  <msebor@redhat.com>
1894         PR tree-optimization/79800
1895         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
1896         precision in negative-positive range.
1897         (format_floating): Call non-const overload with adjusted precision.
1899 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1901         PR target/79947
1902         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
1903         -mpowerpc-gfxopt.
1905 2017-03-14  Martin Sebor  <msebor@redhat.com>
1907         PR middle-end/80020
1908         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
1909         * builtins.def (aligned_alloc): Use it.
1911         PR c/79936
1912         * Makefile.in (GTFILES): Add calls.c.
1913         * calls.c: Include "gt-calls.h".
1915 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
1917         PR rtl-optimization/79728
1918         * regs.h (struct target_regs): New field
1919         x_contains_allocatable_regs_of_mode.
1920         (contains_allocatable_regs_of_mode): New macro.
1921         * reginfo.c (init_reg_sets_1): Initialize it, and change
1922         contains_reg_of_mode so it includes global regs as well.
1923         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
1924         rather than contains_regs_of_mode.
1926 2017-03-14  Martin Liska  <mliska@suse.cz>
1928         * doc/invoke.texi: Document options that can't be combined with
1929         -fcheck-pointer-bounds.
1931 2017-03-14  Martin Liska  <mliska@suse.cz>
1933         PR middle-end/79831
1934         * doc/invoke.texi (-Wchkp): Document the option.
1936 2017-03-14  Martin Liska  <mliska@suse.cz>
1938         * Makefile.in: Install gcov-dump.
1940 2017-03-14  Martin Liska  <mliska@suse.cz>
1942         * multiple_target.c (expand_target_clones): Bail out for
1943         an invalid attribute.
1945 2017-03-14  Richard Biener  <rguenther@suse.de>
1947         * alias.c (struct alias_set_entry): Pack properly.
1948         * cfgloop.h (struct loop): Likewise.
1949         * cse.c (struct set): Likewise.
1950         * ipa-utils.c (struct searchc_env): Likewise.
1951         * loop-invariant.c (struct invariant): Likewise.
1952         * lra-remat.c (struct cand): Likewise.
1953         * recog.c (struct change_t): Likewise.
1954         * rtl.h (struct address_info): Likewise.
1955         * symbol-summary.h (function_summary): Likewise.
1956         * tree-loop-distribution.c (struct partition): Likewise.
1957         * tree-object-size.c (struct object_size_info): Likewise.
1958         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
1959         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
1960         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
1961         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
1962         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
1963         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
1964         (struct _stmt_vec_info): Likewise.
1966 2017-03-14  Martin Liska  <mliska@suse.cz>
1968         PR target/79892
1969         * multiple_target.c (create_dispatcher_calls): Check that
1970         a target can create a function dispatcher.
1972 2017-03-14  Martin Liska  <mliska@suse.cz>
1974         PR lto/66295
1975         * multiple_target.c (expand_target_clones): Drop local.local
1976         flag for default implementation.
1978 2017-03-14  Richard Biener  <rguenther@suse.de>
1980         PR tree-optimization/80030
1981         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
1983 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
1985         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
1986         gcc_fallthrough() instead of __attribute__((fallthrough));
1988 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
1990         * doc/gcc.texi: Remove "up" link to (DIR).
1991         * doc/gccint.texi: Ditto.
1993 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
1995         * doc/install.texi (Specific) <avr>: Remove reference to
1996         binutils 2.13.
1998 2017-03-13  Jeff Law  <law@redhat.com>
2000         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
2001         attribute rather than comments.
2003         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
2004         match_scratch operand is highest.
2006 2017-03-13  Martin Liska  <mliska@suse.cz>
2008         PR middle-end/78339
2009         * ipa-pure-const.c (warn_function_noreturn): If the declarations
2010         is a CHKP clone, use original declaration.
2012 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2014         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
2015         (arc_conditional_register_usage): Use a different allocation order
2016         when optimizing for size.
2017         * common/config/arc/arc-common.c (arc_option_optimization_table):
2018         Section anchors default on when optimizing for size.
2020 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2022         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
2024 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2026         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
2027         * config/arc/arc.md (cpu_facility): Add cd variant.
2028         (*movqi_insn): Add code density variant.
2029         (*movhi_insn): Likewise.
2030         (*movqi_insn): Likewise.
2031         (*addsi3_mixed): Likewise.
2032         (subsi3_insn): Likewise.
2034 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2036         * config/arc/arc.md (movsi_cond_exec): Update constraint.
2038 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2040         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
2041         expressions with MINUS and UNARY ops.
2043 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2045         PR target/79911
2046         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
2047         Rename to...
2048         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
2049         between vec_select and vector argument.
2050         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
2051         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
2052         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
2053         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
2054         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
2055         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
2057 2017-03-13  Richard Biener  <rguenther@suse.de>
2059         PR other/79991
2060         * params.def (vect-max-peeling-for-alignment): Fix typo.
2062 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2064         * doc/install.texi (Specific) <mips-*-*>: Remove description of
2065         issue that only occurred with binutils below 2.18.
2067 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2069         * doc/install.texi (Specific) <cris-axis-elf>: No longer
2070         refer to binutils 2.11/2.12 minimum.
2072 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2074         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
2075         ftp.kernel.org and simplify binutils requirement.
2077 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
2079         * doc/invoke.texi (Warning Options): Fix spelling of link-time
2080         optimization.
2081         (Optimize Options): Ditto.  Also remove redundancy.
2083 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2085         PR translation/79848
2086         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
2087         "%qs".
2088         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
2089         to G_ to avoid double translation.
2091 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2093         PR translation/79923
2094         * auto-profile.c (get_combined_location): Convert leading
2095         character of diagnostics to lower case and remove trailing period.
2096         (read_profile): Likewise for various diagnostics.
2097         * config/arm/arm.c (arm_option_override): Remove trailing period
2098         from various diagnostics.
2099         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
2100         (msp430_expand_delay_cycles): Likewise.
2102 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2104         PR target/79925
2105         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
2106         full command-line argument, rather than just "str".
2107         (aarch64_validate_march): Likewise.
2108         (aarch64_validate_mtune): Likewise.
2110 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
2112         PR rtl-optimization/78911
2113         * lra-assigns.c (must_not_spill_p): New function.
2114         (spill_for): Use it.
2116 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
2118         PR tree-optimization/79981
2119         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
2120         ATOMIC_COMPARE_EXCHANGE ifn result.
2121         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
2122         IFN_ATOMIC_COMPARE_EXCHANGE.
2124 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2126         PR driver/79875
2127         * opts.c (parse_sanitizer_options): Add missing question mark to
2128         "did you mean" message.
2130 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2132         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
2133         built-in.
2134         (VMULEUH_UNS): Likewise.
2135         (VMULOUB_UNS): Likewise.
2136         (VMULOUH_UNS): Likewise.
2137         * config/rs6000/rs6000.c (builtin_function_type): Remove
2138         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
2140 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2142         PR bootstrap/79952
2143         * read-rtl-function.c (function_reader::read_rtx_operand): Update
2144         x with result of extra_parsing_for_operand_code_0.
2145         (function_reader::extra_parsing_for_operand_code_0): Convert
2146         return type from void to rtx, returning x.  When reading
2147         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
2148         larger size containing struct block_symbol.
2150 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
2152         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
2153         -mfloat128-hardware without -m64.
2155 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
2157         PR target/79941
2158         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
2159         entries to the case statement that marks unsigned arguments to
2160         overloaded functions.
2162 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2164         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2165         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
2167 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
2169         PR target/79907
2170         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
2171         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
2173 2017-03-10  Martin Liska  <mliska@suse.cz>
2175         PR target/65705
2176         PR target/69804
2177         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
2178         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
2179         FIELD != NULL.
2181 2017-03-10  Olivier Hainque  <hainque@adacore.com>
2183         * tree-switch-conversion (array_value_type): Start by resetting
2184         candidate type to it's main variant.
2186 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
2188         PR rtl-optimization/79909
2189         * combine.c (try_combine): Use simplify_replace_rtx on individual
2190         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
2191         of the whole CALL_INSN_FUNCTION_USAGE.
2193         PR tree-optimization/79972
2194         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
2195         get_range_info on SSA_NAMEs.  Formatting fixes.
2197 2017-03-10  Richard Biener  <rguenther@suse.de>
2198             Jakub Jelinek  <jakub@redhat.com>
2200         PR tree-optimization/77975
2201         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
2202         edge to be constant.
2203         (get_val_for): For constant x return it.  Formatting fix.
2204         (loop_niter_by_eval): Avoid pointless looping if the next iteration
2205         would use the same bases as the current one.
2207 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2209         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
2210         instead of vec_select for V1TImode.
2211         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
2212         longer needed.
2213         (VSX_LE_128): Add V1TI to this mode iterator.
2214         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
2215         (*vsx_le_perm_store_<mode>): Likewise.
2216         (pre-reload splitter for VSX stores): Likewise.
2217         (post-reload splitter for VSX stores): Likewise.
2218         (*vsx_xxpermdi2_le_<mode>): Likewise.
2219         (*vsx_lxvd2x2_le_<mode>): Likewise.
2220         (*vsx_stxvd2x2_le_<mode>): Likewise.
2222 2017-03-09  Michael Eager  <eager@eagercon.com>
2224         Correct failures with --enable-checking=yes,rtl.
2226         * config/microblaze/microblaze.c (microblaze_expand_shift):
2227         Replace GET_CODE test with CONST_INT_P and INTVAL test with
2228         test for const0_rtx.
2229         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
2230         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2232 2017-03-09  Richard Biener  <rguenther@suse.de>
2234         PR tree-optimization/79977
2235         * graphite-scop-detection.c (scop_detection::merge_sese):
2236         Handle the case of extra exits to blocks dominating the entry.
2238 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
2240         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2241         Document rdynamic.
2243 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
2245         PR rtl-optimization/79949
2246         * lra-constraints.c (process_alt_operands): Check memory when
2247         trying to predict a cycle.  Print about the overall increase.
2249 2017-03-09  Richard Biener  <rguenther@suse.de>
2251         PR middle-end/79971
2252         * gimple-expr.c (useless_type_conversion_p): Preserve
2253         TYPE_SATURATING for fixed-point types.
2255 2017-03-09  Richard Biener  <rguenther@suse.de>
2257         PR ipa/79970
2258         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2259         alignment of BLKmode params.
2261 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2263         PR target/79913
2264         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2265         (VALL_NO_V2Q): Likewise.
2266         (VDQF_DF): Delete.
2267         * config/aarch64/aarch64-simd.md
2268         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2269         iterator.
2270         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2271         VALL_NO_V2Q mode iterator.
2272         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2274 2017-03-09  Martin Liska  <mliska@suse.cz>
2276         PR tree-optimization/79631
2277         * tree-chkp-opt.c (chkp_is_constant_addr): Call
2278         tree_int_cst_sign_bit just for INTEGER constants.
2280 2017-03-09  Martin Liska  <mliska@suse.cz>
2282         PR target/65705
2283         PR target/69804
2284         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2285         sanitizers.
2287 2017-03-09  Marek Polacek  <polacek@redhat.com>
2289         PR c++/79672
2290         * tree.c (inchash::add_expr): Handle TREE_VEC.
2292 2017-03-09  Martin Liska  <mliska@suse.cz>
2294         PR ipa/79764
2295         (chkp_narrow_size_and_offset): New function.
2296         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2297         (void chkp_parse_bit_field_ref): New function.
2298         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2299         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2301 2017-03-09  Martin Liska  <mliska@suse.cz>
2303         PR ipa/79761
2304         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2305         (chkp_find_bounds_1): Remove gcc_unreachable.
2307 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
2309         PR sanitizer/79944
2310         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2311         BUILT_IN_SYNC*, determine the access type from the size suffix and
2312         always build a MEM_REF with that type.  Handle forgotten
2313         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2315         PR target/79932
2316         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2317         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2318         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2319         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2320         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2321         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2322         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2323         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2324         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2325         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2326         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2327         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2328         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2329         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2330         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2331         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2332         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2333         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2334         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2335         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2336         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2337         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2338         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2339         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2340         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2341         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2342         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2343         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2344         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2345         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2346         definitions outside of __OPTIMIZE__ guarded section.
2348         PR target/79932
2349         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2350         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2351         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2352         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2353         guarded section.
2355 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2357         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2358         ("vfenez<mode>"): Add missing constraints.
2360 2017-03-08  Martin Sebor  <msebor@redhat.com>
2362         PR target/79928
2363         * config/nds32/nds32.c (nds32_option_override):
2364         Fix misspelled diagnostic.
2366 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2368         PR c/79940
2369         * gimplify.c (gimplify_omp_for): Replace index var in outer
2370         taskloop statement with an artificial variable and add
2371         OMP_CLAUSE_PRIVATE clause for it.
2373 2017-03-08  Richard Biener  <rguenther@suse.de>
2375         PR tree-optimization/79955
2376         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2377         for accesses that are completely outside of the variable.
2379 2017-03-08  Andrew Haley  <aph@redhat.com>
2381         PR tree-optimization/79943
2382         * tree-ssa-loop-split.c (compute_new_first_bound): When
2383         calculating the new upper bound, (END-BEG) should be added, not
2384         subtracted.
2386 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2388         * config/avr/avr.md (setmemhi): Make sure match_dup
2389         operand number comes before match_scratch.
2391 2017-03-08  Richard Biener  <rguenther@suse.de>
2393         PR tree-optimization/79920
2394         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2395         with ncopies == 1 to ...
2396         (vect_transform_slp_perm_load): ... here.  Properly compute
2397         all element loads by iterating VF times over the group.  Do
2398         not handle ncopies (computed in a broken way) in
2399         vect_create_mask_and_perm.
2401 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2403         PR sanitizer/79904
2404         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2405         is a uniform vector, use uniform_vector_p return value instead of
2406         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2408 2017-03-07  Marek Polacek  <polacek@redhat.com>
2410         PR middle-end/79809
2411         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2412         (alloca_call_type): Likewise.
2414 2017-03-07  Martin Liska  <mliska@suse.cz>
2416         * gcov.c (process_args): Put comment to correct location.
2418 2017-03-07  Martin Liska  <mliska@suse.cz>
2420         PR middle-end/68270
2421         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2422         Use array_at_struct_end_p instead of DECL_CHAIN (field).
2423         (chkp_narrow_bounds_for_field): Likewise.
2424         (chkp_parse_array_and_component_ref): Pass one more argument to
2425         call.
2427 2017-03-07  Richard Biener  <rguenther@suse.de>
2429         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2430         preheaders.
2432 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
2434         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2435         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2437 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2439         PR c/79855
2440         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2441         to end of description.
2442         (PARAM_MAX_STORES_TO_MERGE): Likewise.
2444 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
2446         PR rtl-optimization/79901
2447         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2448         ...
2449         (*avx512f_<code><mode>3<mask_name>): ... this.
2450         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2451         iterator instead of VI8_AVX2_AVX512BW.
2453         PR rtl-optimization/79901
2454         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2455         min/max expander, expand it using expand_vec_cond_expr.
2457         PR sanitizer/79897
2458         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2459         temporary.
2461 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
2463         PR c++/79821
2464         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2465         to void * for PCH reasons.
2466         * dwarf2out.c (output_loc_operands, output_die): Cast
2467         v.val_vec.array to unsigned char *.
2469 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
2471         PR target/77850
2472         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2473         vector types.
2475 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
2477         PR rtl-optimization/79571
2478         * lra-constraints.c (process_alt_operands): Calculate static
2479         reject and subtract it from overall when only addresses will be
2480         reloaded.
2482 2017-03-06  Julia Koval  <julia.koval@intel.com>
2484         PR target/79793
2485         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2486         incoming stack boundary to 128 for 64-bit targets.
2488 2017-03-06  Richard Biener  <rguenther@suse.de>
2490         PR tree-optimization/79894
2491         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2492         to NULL after folding it.
2494 2017-03-06  Richard Biener  <rguenther@suse.de>
2496         PR tree-optimization/79824
2497         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2498         check disabling peeling for gaps.
2500 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
2502         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2503         attributes): Document gettimeofday.
2505 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2507         * config/s390/s390.c (s390_option_override_internal): Set
2508         PARAM_MIN_VECT_LOOP_BOUND
2510 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2512         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2513         * config/s390/s390.md: Likewise.
2515 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
2517         PR target/79812
2518         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2519         (<avx2_avx512>_perm<mode>): Rename to ...
2520         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
2521         of VI8F_256_512.
2522         (<avx512>_perm<mode>_mask): Rename to ...
2523         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
2524         of VI8F_256_512.
2525         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2526         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
2527         instead of VI8F_256_512.
2528         (avx512f_perm<mode>): New define_expand.
2529         (avx512f_perm<mode>_mask): Likewise.
2530         (avx512f_perm<mode>_1<mask_name>): New define_insn.
2531         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2533 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2535         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2536         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2537         if_then_else.
2538         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2540 2017-03-06  Martin Liska  <mliska@suse.cz>
2542         PR sanitize/79783
2543         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2544         when having a SSA NAME w/o VAR_DECL assigned to it.
2546 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2548         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2549         msa_dpsub_<su>_d): Fix MODE for vec_select.
2551 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2553         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2554         argument.
2555         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2557 2017-03-06  Richard Biener  <rguenther@suse.de>
2559         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2560         * plugin.c (register_plugin_info): Likewise.
2561         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2563 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
2565         * config/i386/sse.md (sse_storehps, sse_storelps,
2566         avx_<castmode><avxsizesuffix>_<castmode>,
2567         avx512f_<castmode><avxsizesuffix>_<castmode>,
2568         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2569         in condition that at least one operand is not a MEM.
2571 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2573         PR middle-end/79805
2574         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2575         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2576         ECF_NOTHROW.
2577         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2578         gimple_call_nothrow_p flag based on whether original builtin can throw.
2579         If it can, emit following stmts on the fallthrough edge.
2580         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2581         don't create new bb if inserting just debug stmts on the edge, try to
2582         insert them on the fallthru bb or just reset debug stmts.
2584 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
2586         PR target/43763
2587         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2588         restore recog_data (including the operand rtxes inside it) around
2589         the call to get_insn_template.
2591 2017-03-03  Martin Sebor  <msebor@redhat.com>
2593         PR tree-optimization/79699
2594         * context.c (context::~context): Free MPFR caches to avoid
2595         a memory leak on program exit.
2597 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2599         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2600         Use wide_int::ulow () instead of .elt (0).
2602 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
2604         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2605         (*pushxf): Limit oF constraint to 32bit targets and add oC
2606         constraint for 64bit targets.
2607         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2608         (*pushdf): Change rmF constraint to rmC.
2610 2017-03-03  Martin Liska  <mliska@suse.cz>
2612         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2613         Remove unused variable.
2615 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2617         PR target/79807
2618         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2619         is a memory operand, increase num_memory.
2620         (ix86_expand_args_builtin): Likewise.
2622 2017-03-03  Jan Hubicka  <jh@suse.cz>
2624         PR lto/79760
2625         * ipa-devirt.c (maybe_record_node): Properly handle
2626         __cxa_pure_virtual visibility.
2628 2017-03-03  Martin Liska  <mliska@suse.cz>
2630         PR tree-optimization/79803
2631         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2632         assert.
2633         (pass_loop_prefetch::execute): Disabled optimization if an
2634         assumption about L1 cache size is not met.
2636 2017-03-03  Martin Liska  <mliska@suse.cz>
2638         PR rtl-optimization/79574
2639         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2640         (hash_scan_set): Likewise.
2641         (dump_hash_table): Likewise.
2642         (hoist_code): Likewise.
2644 2017-03-03  Richard Biener  <rguenther@suse.de>
2646         * fixed-value.c (fixed_from_string): Restore use of elt (1)
2647         in place of uhigh ().
2648         (fixed_convert_from_real): Likewise.
2650 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
2652         PR target/79514
2653         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2655 2017-03-03  Richard Biener  <rguenther@suse.de>
2657         PR middle-end/79818
2658         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2659         TYPE_OVERFLOW_UNDEFINED check.
2661 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2663         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2664         numbers.
2665         (vector_ae_<mode>_p): Likewise.
2666         (vector_nez_<mode>_p): Likewise.
2667         (vector_ne_v2di_p): Likewise.
2668         (vector_ae_v2di_p): Likewise.
2669         (vector_ne_<mode>_p): Likewise.
2670         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2671         numbers.
2672         (vsx_tsqrt<mode>2_fe): Likewise.
2674 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
2676         PR target/79514
2677         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2679 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
2681         PR rtl-optimization/79780
2682         * cprop.c (one_cprop_pass): When second and further conditional trap
2683         in a single basic block is turned into an unconditional trap, turn it
2684         into a deleted note to avoid RTL verification failures.
2686 2017-03-02  Richard Biener  <rguenther@suse.de>
2688         * fold-const.c (const_binop): Use ulow () instead of elt (0).
2690 2017-03-02  Richard Biener  <rguenther@suse.de>
2692         PR tree-optimization/79345
2693         PR c++/42000
2694         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2695         param and abort the walk, returning -1 if it is hit.
2696         (walk_aliased_vdefs): Take a limit param and pass it on.
2697         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2698         defaulting to 0 and return a signed int.
2699         * tree-ssa-uninit.c (struct check_defs_data): New struct.
2700         (check_defs): New helper.
2701         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2702         about uninitialized memory.
2703         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2704         bogus uninitialized warning.
2705         (fixed_convert_from_real): Likewise.
2707 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
2709         PR tree-optimization/66768
2710         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2711         iv_use if base object can't be determined.
2713 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
2715         PR tree-optimization/79345
2716         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2717         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2718         (get_pattern_stats): Initialize it.
2719         * genemit.c (gen_expand): Verify match_scratch numbers come after
2720         match_operand/match_dup numbers.
2721         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2722         match_scratch numbers.
2723         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2724         Likewise.
2725         * config/s390/s390.md (trunctdsd2): Likewise.
2727 2017-03-02  Richard Biener  <rguenther@suse.de>
2729         * wide-int.h (wide_int_storage::operator=): Implement in terms
2730         of wi::copy.
2732 2017-03-02  Richard Biener  <rguenther@suse.de>
2734         PR tree-optimization/79777
2735         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
2736         the to insert expression to sth existing.
2738 2017-03-01  Martin Sebor  <msebor@redhat.com>
2740         PR middle-end/79692
2741         * gimple-ssa-sprintf.c
2742         (directive::known_width_and_precision): New function.
2743         (format_integer): Use it.
2744         (get_mpfr_format_length): Consider the full range of precision
2745         when computing %g output with the # flag.  Set the likely byte
2746         count to 3 rather than 1 when precision is indeterminate.
2747         (format_floating): Correct the lower bound of precision.
2749 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2751         * doc/invoke.texi: Document default code model for 64-bit Linux.
2753 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2755         PR target/79752
2756         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
2757         udiv rather than div since input pattern is unsigned.
2759 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
2761         * config/i386/i386.c (print_reg): Warn for values of
2762         unsupported size in integer register.
2764 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2766         PR target/79439
2767         * config/rs6000/predicates.md (current_file_function_operand): Do
2768         not allow self calls to be local if the function is replaceable.
2770 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2772         PR target/79395
2773         * config/rs6000/altivec.h (vec_ctz and others): Change the
2774         preprocessor macro that controls conditional compilation from
2775         _ARCH_PWR9 to __POWER9_VECTOR__.
2776         (vec_all_ne): Change parameterization of __altivec_scalar_pred
2777         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
2778         control (instead of _ARCH_PWR9 control) so that template
2779         definition uses power9-specific function.
2780         (vec_any_eq): Likewise.
2781         (vec_all_ne): Change macro definition to use a power9-specific
2782         expansion under #ifdef __POWER9_VECTOR__ control (instead of
2783         _ARCH_PWR9 control).
2784         (vec_any_eq) Likewise.
2785         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
2786         expansion for CMPNEF to remove support for xvcmpnesp instruction.
2787         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
2788         support for xvcmpnedp instruction.
2789         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
2790         macro expansion so that Power9 implementation of vec_all_ne does
2791         not use the AltiVec predicate framework.
2792         (VCMPNEH_P): Likewise.
2793         (VCMPNEW_P): Likewise.
2794         (VCMPNED_P): Likewise.
2795         (VCMPNEFP_P): Likewise.
2796         (VCMPNEDP_P): Likewise.
2797         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
2798         implementation of vec_any_eq to not use AltiVec predicate
2799         framework.
2800         (VCMPAEH_P): Likewise.
2801         (VCMPAEW_P): Likewise.
2802         (VCMPAED_P): Likewise.
2803         (VCMPAEFP_P): Likewise.
2804         (VCMPAEDP_P): Likewise.
2805         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
2806         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
2807         not use the AltiVec predicate framework.
2808         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
2809         of vec_any_eq to not use AltiVec predicate framework.
2810         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
2811         support for predefined __POWER9_VECTOR__ macro to indicate that
2812         Power9 instruction selection is enabled.
2813         (altivec_overloaded_builtins): Remove extraneous
2814         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
2815         function argument types RS6000_BTI_bool_V16QI and
2816         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
2817         entry for overloaded function argument types RS6000_BTI_bool_V4SI
2818         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
2819         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
2820         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
2821         Power9 for implementations of vec_cmpne.  Change the signature for
2822         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
2823         (representing vec_all_ne) to remove the previously described first
2824         argument of type RS6000_BTI_INTSI, as this was an artifact of
2825         reliance on the AltiVec predicate framework, which is no longer
2826         used in the implementation of these functions.  Add
2827         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
2828         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
2829         since, unlike the AltiVec predicate framework implementation, we
2830         do not share function descriptors between vec_alle and vec_anyeq.
2831         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
2832         set of modes that receive special treatment even when
2833         TARGET_P9_VECTOR is true.  The special treatment emits code that
2834         does not depend on Power9 instructions.
2835         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
2836         define_expand to not rely on AltiVec predicate framework.
2837         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2838         function.
2839         (vector_ne_v2di_p): Change this define_expand to not rely on
2840         AltiVec predicate framework.
2841         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
2842         function.
2843         (vector_ne_<mode>_p): Change this define_expand to not rely on
2844         AltiVec predicate framework.
2845         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2846         function.
2847         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
2848         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
2849         define_insn pattern.
2850         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
2851         define_insn pattern because the xvcmpne<VSs>. instruction is not
2852         supported.
2853         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
2854         instruction is not supported.
2856 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
2858         * config/nvptx/nvptx.c: Include intl.h.
2860 2017-03-01  Martin Jambor  <mjambor@suse.cz>
2862         PR lto/78140
2863         * ipa-prop.h (ipa_bits): Removed field known.
2864         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
2865         to pointers.  Adjusted their comments to warn about their sharing.
2866         (ipcp_transformation_summary): Change bits to a vector of pointers.
2867         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
2868         (ipa_get_ipa_bits_for_value): Declare.
2869         * tree-vrp.h (value_range): Mark as GTY((for_user)).
2870         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
2871         (ipa_bits_hash_table): Likewise.
2872         (ipa_vr_ggc_hash_traits): Likewise.
2873         (ipa_vr_hash_table): Likewise.
2874         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
2875         being pointers and vr_known being removed.
2876         (ipa_set_jf_unknown): Likewise.
2877         (ipa_get_ipa_bits_for_value): New function.
2878         (ipa_set_jfunc_bits): Likewise.
2879         (ipa_get_value_range): New overloaded functions.
2880         (ipa_set_jfunc_vr): Likewise.
2881         (ipa_compute_jump_functions_for_edge): Use the above functions to
2882         construct bits and vr parts of jump functions.
2883         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
2884         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2885         exist.
2886         (ipcp_grow_transformations_if_necessary): Also allocate
2887         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2888         exist.
2889         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
2890         them.  Fix too long lines.
2891         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
2892         vr_known being removed.
2893         (ipa_read_jump_function): Use new setter functions to construct bits
2894         and vr parts of jump functions or set them to NULL.
2895         (write_ipcp_transformation_info): Adjust for bits being pointers.
2896         (read_ipcp_transformation_info): Likewise.
2897         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
2898         space.
2899         Include gt-ipa-prop.h.
2900         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
2901         being pointers.
2902         (ipcp_store_bits_results): Likewise.
2903         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
2904         Do not write to existing jump functions but use a temporary instead.
2906 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
2908         PR c++/79681
2909         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
2910         attempt to use its first operand as BIT_FIELD_REF base.
2912 2017-03-01  Richard Biener  <rguenther@suse.de>
2914         PR middle-end/79721
2915         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
2916         interpolating formula in wrapping arithmetic.
2917         (chrec_apply): Convert chrec_evaluate return value to wanted type.
2919 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
2921         PR tree-optimization/79734
2922         * tree-vect-generic.c (expand_vector_condition): Optimize
2923         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
2924         Handle VEC_COND_EXPR where comparison has different inner width from
2925         type's inner width.
2927 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
2929         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
2930         markup, and similar issues.  Remove @opindex entries for things
2931         that aren't options.  Add missing -mmpy-option entries.
2933 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
2935         PR tree-optimization/79737
2936         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
2937         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
2938         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
2939         instead of byte_size.  Formatting fix.
2940         (shift_bytes_in_array_right): Formatting fix.
2942 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
2944         PR target/79749
2945         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
2946         condition on optimize for the leaf function test.
2948 2017-02-28  Martin Liska  <mliska@suse.cz>
2950         PR lto/79625
2951         * read-rtl-function.c (function_reader::handle_unknown_directive):
2952         Bail out when one uses -flto.
2954 2017-02-28  Martin Liska  <mliska@suse.cz>
2956         * common.opt: Replace space with tabular for options of <number>
2957         type.
2958         * config/i386/i386.opt: Show <number> value for
2959         -mlarge-data-threshold.
2960         * opts.c (print_filtered_help): Do not display number in hexadecimal
2961         format.
2963 2017-02-28  Martin Liska  <mliska@suse.cz>
2965         * common.opt: Fix --help=option -Q for options which are of
2966         an enum type.
2968 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
2970         * config/i386/i386.c (print_reg): Error out for values
2971         of 8-bit size in invalid integer register.
2973 2017-02-28  Martin Sebor  <msebor@redhat.com>
2975         PR tree-optimization/79691
2976         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
2978 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
2980         PR target/79729
2981         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
2982         gcc_unreachable with output_operand_lossage.
2984 2017-02-28  Richard Biener  <rguenther@suse.de>
2986         PR tree-optimization/79740
2987         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
2988         inserts.
2989         (visit_nary_op): Insert the nary into the hashtable if we
2990         pattern-matched sth.
2991         * tree-ssa-pre.c (eliminate_insert): Robustify.
2993 2017-02-28  Richard Biener  <rguenther@suse.de>
2995         PR middle-end/79731
2996         * fold-const.c (decode_field_reference): Reject out-of-bound
2997         accesses.
2999 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
3001         * config/i386/i386.c: Include intl.h.
3002         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
3003         instead of just cond ? "..." : "...".
3004         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
3005         * coverage.c (read_counts_file): Likewise.
3006         * omp-offload.c: Include intl.h.
3007         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
3008         of just cond ? "..." : "...".
3009         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
3010         of just cond ? "..." : "...".
3012 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
3014         PR target/79742
3015         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
3016         entry, if present.
3017         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
3018         'tune for' CPU name.
3019         * config/arm/arm-cpu-data.h: Regenerated.
3021 2017-02-28  Richard Biener  <rguenther@suse.de>
3023         PR tree-optimization/79732
3024         * tree-inline.c (expand_call_inline): Do not shadow var.
3026 2017-02-28  Richard Biener  <rguenther@suse.de>
3028         PR tree-optimization/79723
3029         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
3030         address-space properly.
3032 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
3034         * doc/optinfo.texi (Optimization groups): Fix option used for
3035         OPTGROUP_ALL.
3036         * doc/invoke.texi (-fopt-info): Document "omp".
3037         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
3038         (OPTGROUP_ALL): Add OPTGROUP_OMP.
3039         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
3040         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
3041         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
3043         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
3044         all users.
3045         * dumpfile.c (optgroup_options): Instead of "openmp", associate
3046         OPTGROUP_OMP with "omp".
3048 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
3050         PR target/79544
3051         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
3052         for arithmetic shift of unsigned V2DI.
3054 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
3056         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
3057         arc/linux.h headers.
3058         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
3059         (LINK_SPEC): Likewise.
3060         (ARC_TLS_EXTRA_START_SPEC): Likewise.
3061         (EXTRA_SPECS): Likewise.
3062         (STARTFILE_SPEC): Likewise.
3063         (ENDFILE_SPEC): Likewise.
3064         (LIB_SPEC): Likewise.
3065         (TARGET_SDATA_DEFAULT): Likewise.
3066         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
3067         (MULTILIB_DEFAULTS): Likewise.
3068         (DWARF2_UNWIND_INFO): Likewise.
3069         * config/arc/big.h: New file.
3070         * config/arc/elf.h: Likewise.
3071         * config/arc/linux.h: Likewise.
3072         * config/arc/t-uClibc: Remove.
3074 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
3076         PR tree-optimization/77536
3077         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
3078         (tree_transform_and_unroll_loop): Use above function to compute the
3079         estimated niter of unrolled loop and use it when scaling profile.
3080         Also use count info rather than frequency if it's non-zero.
3081         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
3082         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
3083         (vect_transform_loop): Call above function.
3085 2017-02-27  Richard Biener  <rguenther@suse.de>
3087         PR tree-optimization/45397
3088         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
3089         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
3090         (visit_nary_op): Add pattern matching for CSEing sign-changed
3091         or truncated operations with wider ones.
3093 2017-02-27  Richard Biener  <rguenther@suse.de>
3095         PR tree-optimization/79690
3096         * tree-vect-stmts.c (vectorizable_store): Use vector type
3097         built from the DR with address-space.
3099 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
3101         * doc/invoke.texi (Optimize Options): Refine the description
3102         of asan-use-after-return.
3104 2017-02-25  Alan Modra  <amodra@gmail.com>
3106         PR rtl-optimization/79584
3107         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
3108         base, not ad->base_term, the reg within base.  Remove assertion
3109         that ad->base == ad->base_term.  Replace gen_int_mode using
3110         bogus mode with const0_rtx.
3112 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
3114         PR middle-end/79396
3115         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
3116         FMA_EXPR like tcc_binary or tcc_unary.
3118         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
3120         PR debug/77589
3121         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
3122         bitfield.
3123         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
3124         (output_loc_operands): Handle DW_OP_call_ref and
3125         DW_OP_GNU_variable_value.
3126         (struct variable_value_struct): New type.
3127         (struct variable_value_hasher): Likewise.
3128         (variable_value_hash): New variable.
3129         (string_types): Remove.
3130         (copy_loc_descr): New function.
3131         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
3132         (prepend_loc_descr_to_each): New function.
3133         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
3134         instead of add_loc_descr_to_each if the first argument is single
3135         location list and the second has multiple.
3136         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
3137         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
3138         when looking for variable value which doesn't have other location info.
3139         (loc_list_from_tree): Formatting fix.
3140         (gen_array_type_die): Simplify DW_AT_string_length handling.
3141         (adjust_string_types): Remove.
3142         (gen_subprogram_die): Don't call adjust_string_types nor test/set
3143         string_types.  Call resolve_variable_values.
3144         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
3145         (resolve_addr_in_expr): Likewise.  Add A argument.
3146         (copy_deref_exprloc): Remove deref argument.  Adjust for the
3147         original expression being DW_OP_GNU_variable_value with optionally
3148         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
3149         optionally after it.
3150         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
3151         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
3152         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
3153         (variable_value_hasher::hash, variable_value_hasher::equal): New
3154         methods.
3155         (resolve_variable_value_in_expr, resolve_variable_value,
3156         resolve_variable_values, note_variable_value_in_expr,
3157         note_variable_value): New functions.
3158         (dwarf2out_early_finish): Call note_variable_value on all toplevel
3159         DIEs.
3161 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
3163         PR c/79677
3164         * opts.h (handle_generated_option): Add GENERATED_P argument.
3165         * opts-common.c (handle_option): Adjust function comment.
3166         (handle_generated_option): Add GENERATED_P argument, pass it to
3167         handle_option.
3168         (control_warning_option): Pass false to handle_generated_option
3169         GENERATED_P.
3170         * opts.c (maybe_default_option): Pass true to handle_generated_option
3171         GENERATED_P.
3172         * optc-gen.awk: Likewise.
3174 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3176         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
3177         a REG, look at the REG it is a SUBREG of.
3178         (splitter for cmpeqsi_t): Ditto.
3180 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3182         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
3183         the special USEs with the pattern of the insn, not the insn itself.
3185 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
3187         PR target/79473
3188         * doc/invoke.texi: Document -mload-store-pairs.
3190 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3191             Sandra Loosemore  <sandra@codesourcery.com>
3193         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
3194         argument isn't a CONST_INT.
3195         (nios2_alternate_compare_const): Assert op is a CONST_INT.
3196         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
3197         (nios2_validate_compare): Bypass alternate compare logic if *op2
3198         is not a CONST_INT.
3199         (ldstwm_operation_p): Return false if first_base is not a REG or
3200         if first_offset is not a CONST_INT.
3202 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3204         * config/cris/cris.md: Use correct operand in a define_peephole2.
3206 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3208         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
3210 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3212         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
3213         this_insn if it is an INSN or JUMP_INSN.
3214         (force_offsettable): Look at base, not at addr.
3215         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
3216         on things that aren't necessarily CONST_INTs.
3218 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
3220         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
3221         -mfpmath=sse is the default also for x86-32 targets with SSE2
3222         instruction set when @option{-ffast-math} is enabled
3224 2017-02-24  Jeff Law  <law@redhat.com>
3226         PR rtl-optimizatoin/79286
3227         * ira.c (update_equiv_regs): Drop may_trap_p exception to
3228         dominance test.
3230 2017-02-24  Richard Biener  <rguenther@suse.de>
3232         PR tree-optimization/79389
3233         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3234         debug insns.
3236 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
3238         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3239         function comment to reflect reality.
3240         (loop_exits_before_overflow): Fix typo in function description.
3242 2017-02-24  Richard Biener  <rguenther@suse.de>
3244         PR tree-optimization/79389
3245         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3246         properly that a threading opportunity exists.  Detect conditional
3247         copy/constant propagation opportunities.
3249 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
3251         * config/visium/visium.md (type): Add trap.
3252         (b): New mode attribute.
3253         (*btst): Rename into...
3254         (*btst<mode>): ...this and adjust.
3255         (*cbranchsi4_btst_insn): Rename into...
3256         (*cbranch<mode>4_btst_insn): ...this and adjust.
3257         (trap): New define_insn.
3259 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
3261         PR tree-optimization/79389
3262         * ifcvt.c (struct noce_if_info): Add rev_cond field.
3263         (noce_reversed_cond_code): New function.
3264         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3265         reversed_comparison_code.  Formatting fix.
3266         (noce_try_store_flag): Test rev_cond != NULL in addition to
3267         reversed_comparison_code.
3268         (noce_try_store_flag_constants): Likewise.
3269         (noce_try_store_flag_mask): Likewise.
3270         (noce_try_addcc): Use rev_cond if non-NULL instead of
3271         reversed_comparison_code.
3272         (noce_try_cmove_arith): Likewise.  Formatting fixes.
3273         (noce_try_minmax, noce_try_abs): Clear rev_cond.
3274         (noce_find_if_block): Initialize rev_cond.
3275         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3276         instead of false as last argument never attempt to reverse it
3277         afterwards.
3279 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
3281         PR tree-optimization/79663
3282         * tree-predcom.c (combine_chains): Process refs in reverse order
3283         only for ZERO length chains, and add explaining comment.
3285 2017-02-23  Jeff Law  <law@redhat.com>
3287         PR tree-optimization/79578
3288         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3289         in call to operand_equal_p.
3291 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
3293         PR target/71017
3294         * config/i386/cpuid.h: Fix another undefined behavior.
3296 2017-02-23  Richard Biener  <rguenther@suse.de>
3298         PR tree-optimization/79683
3299         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3300         vector types for data-refs.
3302 2017-02-23  Martin Liska  <mliska@suse.cz>
3304         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3306 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
3308         PR middle-end/79665
3309         * internal-fn.c (get_range_pos_neg): Moved to ...
3310         * tree.c (get_range_pos_neg): ... here.  No longer static.
3311         * tree.h (get_range_pos_neg): New prototype.
3312         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3313         are known to be in between 0 and signed maximum inclusive, try to
3314         expand both unsigned and signed divmod and use the cheaper one from
3315         those.
3317 2017-02-22  Jeff Law  <law@redhat.com>
3319         PR tree-optimization/79578
3320         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3321         to compare base operands.
3323 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
3325         PR target/79211
3326         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3327         gpc_reg_operand instead of fpr_reg_operand.
3329 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
3331         * config/mips/mips.c (mips_return_in_memory): Force FP
3332         vector types to be returned in memory for o32 ABI.
3334 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
3336         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3337         instead of DW_TAG_member for static data member declarations and don't
3338         set no_linkage_name for static inline data members.
3339         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3340         to DW_TAG_member.
3342 2017-02-22  Martin Liska  <mliska@suse.cz>
3344         * doc/invoke.texi: Replace inequality signs with square brackets
3345         for -Wnormalized.
3347 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3349         PR tree-optimization/68644
3350         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3352 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
3354         PR target/78660
3355         * lra-constraints.c (simplify_operand_subreg): Handle
3356         WORD_REGISTER_OPERATIONS targets.
3358 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
3360         PR target/70465
3361         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3362         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3363         elimination by swapping fld*.
3365 2017-02-22  Richard Biener  <rguenther@suse.de>
3367         PR tree-optimization/79673
3368         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3369         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3370         irrelevant address-space qualifiers and avoiding a
3371         ADDR_SPACE_CONVERT_EXPR from fold_convert.
3373 2017-02-22  Richard Biener  <rguenther@suse.de>
3375         PR tree-optimization/79666
3376         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3377         to not symbolically negate if that may introduce undefined
3378         overflow.
3380 2017-02-22  Martin Liska  <mliska@suse.cz>
3382         PR lto/79587
3383         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3384         * data-streamer-out.c (streamer_write_gcov_count_stream):
3385         Likewise.
3386         * value-prof.c (stream_out_histogram_value): Make assert more
3387         precise based on type of counter.
3389 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
3391         PR target/79593
3392         * config/i386/i386.md (standard_x87sse_constant_load splitter):
3393         Use nonimmediate_operand instead of memory_operand for operand 1.
3394         (float-extend standard_x87sse_constant_load splitter): Ditto.
3396 2017-02-21 Jeff Law  <law@redhat.com>
3398         PR tree-optimization/79621
3399         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3400         blocks with edges to themselves.
3402 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3404         PR target/79633
3405         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3406         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3407         Use gimple_call_builtin_p.
3409         PR target/79570
3410         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3411         on temporarily removed DEBUG_INSNs.
3413         PR tree-optimization/79649
3414         * tree-loop-distribution.c (classify_partition): Give up on
3415         non-generic address space loads/stores.
3417 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
3419         * doc/loop.texi (Loop manipulation): Remove nonexistent
3420         tree_ssa_loop_version from the documentation.
3421         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3423 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3425         PR target/79494
3426         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3427         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3428         * config/rs6000/rs6000.c: Include except.h.
3429         (rs6000_expand_split_stack_prologue): Call
3430         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3432 2017-02-21  Martin Jambor  <mjambor@suse.cz>
3434         PR lto/79579
3435         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3436         have been analyzed.
3438 2017-02-21  Martin Jambor  <mjambor@suse.cz>
3440         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3441         for backward compatibility only.
3442         * doc/invoke.texi (Option Summary): Remove all references to
3443         -fipa-cp-alignment.
3445 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
3447         PR target/78660
3448         Revert:
3449         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3451         * lra-constraints.c (curr_insn_transform): Handle
3452         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3454 2017-02-21  Martin Liska  <mliska@suse.cz>
3456         * config/i386/i386.opt: Replace -masm-dialect with -masm.
3458 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
3460         PR translation/79638
3461         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3463 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
3465         PR ada/67205
3466         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3467         (arm_function_ok_for_sibcall): Return false for an indirect call by
3468         descriptor if all the argument registers are used.
3469         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3470         alignment of the function.
3472 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3474         PR tree-optimization/61441
3475         * simplify-rtx.c (simplify_const_unary_operation): For
3476         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3477         the sNaN unmodified.
3479 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3481         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3482         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3483         instead of SYSTEM_HEADER_DIR.
3485 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
3486             Martin LiÅ¡ka  <mliska@suse.cz>
3488         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3489         Fix typos and grammar, use active voice, and clarify.
3491 2017-02-20  Marek Polacek  <polacek@redhat.com>
3493         PR middle-end/79537
3494         * gimplify.c (gimplify_expr): Handle unused *&&L;.
3496         PR sanitizer/79558
3497         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3499 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
3501         PR target/79568
3502         * config/i386/i386.c (ix86_expand_builtin): Handle
3503         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3504         ix86_builtins_isa[fcode].isa as a requirement of those
3505         flags and any other flag in the bitmask.
3506         (ix86_init_mmx_sse_builtins): Use 0 instead of
3507         ~OPTION_MASK_ISA_64BIT as mask.
3508         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3509         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3510         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3511         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3513 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3515         PR target/78012
3516         * lra-constraints.c (split_reg): Check requested split mode
3517         is supported by the register.
3519 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3521         * lra-constraints.c (simplify_operand_subreg): Remove early
3522         return false.
3524 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3526         PR target/78660
3527         * lra-constraints.c (curr_insn_transform): Tighten condition
3528         for converting SUBREG reloads from OP_OUT to OP_INOUT.
3530 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3532         PR target/78660
3533         * lra-constraints.c (curr_insn_transform): Handle
3534         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3536 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
3538         Revert:
3539         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
3541         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3543 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
3545         PR c++/69523
3546         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3547         description.
3549 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3551         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3552         for FMA_EXPR.
3554 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
3556         * final.c (last_columnnum, override_columnnum): New variables.
3557         (final_start_function): Set last_columnnum, pass it to begin_prologue
3558         hook and pass 0 to dwarf2out_begin_prologue.
3559         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
3560         to source_line debug hook.
3561         (notice_source_line): Compute last_columnnum and for debug_column_info
3562         return true on column changes.
3563         * debug.h (struct gcc_debug_hooks): Add column argument to
3564         source_line and begin_prologue hooks.
3565         (debug_nothing_int_charstar_int_bool): Remove prototype.
3566         (debug_nothing_int_int_charstar,
3567         debug_nothing_int_int_charstar_int_bool): New prototypes.
3568         (dwarf2out_begin_prologue): Add column argument.
3569         * debug.c (do_nothing_debug_hooks): Adjust source_line and
3570         begin_prologue hooks.
3571         (debug_nothing_int_charstar_int_bool): Remove.
3572         (debug_nothing_int_int_charstar,
3573         debug_nothing_int_int_charstar_int_bool): New functions.
3574         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3575         through to dwarf2out_source_line.
3576         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3577         (dwarf2out_source_line): Add column argument, emit it if requested.
3578         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3579         arguments.
3580         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3581         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3582         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3583         through to dwarf2out_begin_prologue.
3584         (vmsdbgout_source_line): Add column argument, pass it through to
3585         dwarf2out_source_line.
3586         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3587         dbxout_source_line caller.
3588         (dbxout_source_line): Add column argument.
3590         * common.opt (gno-column-info, gcolumn-info): New options.
3591         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3592         (check_die): Also test for multiple DW_AT_decl_column attributes.
3593         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3594         DW_AT_decl_column if requested.
3595         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3596         if requested.
3597         (gen_variable_die): Likewise.
3598         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3599         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3601         PR target/79569
3602         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3603         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3604         (ix86_handle_option): Handle OPT_m3dnowa.
3605         * doc/invoke.texi (-m3dnowa): Document.
3606         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3607         -m3dnowa instead of -m3dnow -march=athlon.
3609         PR target/79559
3610         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3611         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
3613 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3615         PR target/79261
3616         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3617         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3618         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3619         generator for vsx_xxpermdi_<mode>_be.
3620         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3621         force big-endian semantics.
3622         (vsx_xxpermdi_<mode>_be): New define_expand with same
3623         implementation as previous version of vsx_xxpermdi_<mode>.
3625 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
3627         PR tree-optimization/79327
3628         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3629         variable, its initialization and use.
3631 2017-02-17  Julia Koval  <julia.koval@intel.com>
3633         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3634         (OPTION_MASK_ISA_PKU_UNSET): New.
3635         (ix86_handle_option): Handle -mrdpid.
3636         * config/i386/cpuid.h (bit_RDPID): New.
3637         * config/i386/driver-i386.c (host_detect_local_cpu):
3638         Detect RDPID feature.
3639         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3640         * config/i386/i386-c.c (ix86_target_macros_internal):
3641         Handle RDPID flag.
3642         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3643         (ix86_valid_target_attribute_inner_p): Add "rdpid".
3644         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3645         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3646         * config/i386/i386.md (define_insn "rdpid"): New.
3647         * config/i386/i386.opt Add -mrdpid.
3648         * config/i386/immintrin.h (_rdpid_u32): New.
3650 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
3652         PR rtl-optimization/79541
3653         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3654         instead of transforming it into USE.
3656 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
3658         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3659         If HONOR_SNANS (SFmode) force the input to a register.
3660         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3661         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3662         an frsp or similar insn.
3664 2017-02-17  Martin Liska  <mliska@suse.cz>
3666         PR rtl-optimization/79577
3667         * params.def (selsched-max-sched-times): Increase minimum to 1.
3669 2017-02-17  Martin Liska  <mliska@suse.cz>
3671         PR rtl-optimization/79574
3672         * gcse.c (want_to_gcse_p): Prevent integer overflow.
3674 2017-02-17  Martin Liska  <mliska@suse.cz>
3676         PR tree-optimization/79529
3677         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3678         ssa_defined_default_def_p to handle cases which are implicitly
3679         defined.
3680         * tree-ssa.c (ssa_defined_default_def_p): New function.
3681         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3682         which are implicitly defined.
3683         * tree-ssa.h (ssa_defined_default_def_p): Declare.
3685 2017-02-17  Richard Biener  <rguenther@suse.de>
3687         PR middle-end/79576
3688         * params.def (max-ssa-name-query-depth): Limit to 10.
3690 2017-02-17  Richard Biener  <rguenther@suse.de>
3692         PR tree-optimization/79552
3693         * tree-ssa-structalias.c (visit_loadstore): Properly verify
3694         default defs.
3696 2017-02-17  Richard Biener  <rguenther@suse.de>
3698         PR bootstrap/79567
3699         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3701 2017-02-17  Marek Polacek  <polacek@redhat.com>
3703         PR middle-end/79536
3704         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3705         (fold_negate_expr): New wrapper.
3707 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
3709         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
3710         Correct terminology and de-emphasize pre-standard behavior.
3712 2017-02-16  Alan Modra  <amodra@gmail.com>
3714         PR rtl-optimization/79286
3715         * ira.c (def_dominates_uses): New function.
3716         (update_equiv_regs): Don't create an equivalence for insns that
3717         may trap where the register def does not dominate the use.
3719 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
3721         PR rtl-optimization/78127
3722         * lra.c (lra): Call lra_eliminate before finish the loop after
3723         lra_constraint.
3725 2017-02-16  Richard Biener  <rguenther@suse.de>
3727         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3728         isl/isl_val.h.
3729         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3730         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3731         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3732         (isl_val_int_from_wi): New function.
3733         (extract_affine_gmp): Rename to ...
3734         (extract_affine_wi): ... this, take a widest_int.
3735         (extract_affine_int): Just wrap extract_affine_wi.
3736         (add_param_constraints): Use isl_val_int_from_wi.
3737         (add_loop_constraints): Likewise, and extract_affine_wi.
3739 2017-02-15 Jeff Law  <law@redhat.com>
3741         PR middle-end/79521
3742         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
3743         ira_init_register_move_cost_if_necessary.
3745 2017-02-15  Martin Sebor  <msebor@redhat.com>
3747         PR middle-end/32003
3748         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
3749         removed in a prior commit.
3751 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
3753         PR tree-optimization/79347
3754         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
3755         counters during peeling.
3757 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
3759         * Makefile.in (site.exp): Remove "set ISLVER".
3761 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
3763         PR target/79487
3764         * real.c (real_from_integer): Call real_convert even for decimal.
3766 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3768         PR target/79421
3769         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3771 2017-02-14  Andrew Pinski  <apinski@cavium.com>
3773         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
3774         cores and change the partno/implementer to be correct.
3775         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
3776         the 'B" as the implementer.
3777         * config/aarch64/aarch64-tune.md: Regenerate.
3779 2017-02-14  Carl Love  <cel@us.ibm.com>
3781         * config/rs6000/rs6000.c: Add case statement entry to make the
3782         xvcvuxdsp built-in argument unsigned.
3783         * config/rs6000/vsx.md: Fix the source and return operand types so they
3784         match the instruction definitions from the ISA document.  Fix typo
3785         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
3786         statement.
3788 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
3790         PR target/79282
3791         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
3792         member early_clobber_alts.
3793         * lra-lives.c (reg_early_clobber_p): New.
3794         (process_bb_lives): Use it.
3795         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
3796         (debug_operand_data): Initialize early_clobber_alts.
3797         (setup_operand_alternative): Set up early_clobber_alts.
3798         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
3799         alternatives to new_insn_reg.
3800         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
3801         it.
3802         (lra_update_insn_regno_info): Pass the new arg.
3804 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
3806         PR middle-end/79505
3807         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
3808         (new_oacc_loop_raw): Don't clear already cleared fields.
3810         PR target/79481
3811         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
3812         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
3813         _mm512_prefetch_i64gather_ps): New inline functions and macros.
3815 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
3817         PR target/79495
3818         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
3820 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
3822         PR target/79498
3823         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
3824         the extra instruction to the right place to store 128-bit constant
3825         when needed.
3827 2017-02-14  Martin Sebor  <msebor@redhat.com>
3829         PR middle-end/79448
3830         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
3831           warning for strings of unknown length.
3833 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
3835         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
3837 2017-02-14 Jeff Law  <law@redhat.com>
3839         PR target/79404
3840         * ira-costs.c (scan_one_insn): Initialize register move costs
3841         for pseudos seen in USE/CLOBBER insns.
3843         PR tree-optimization/79095
3844         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
3845         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
3846         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
3847         if the operands are known to be not equal, then the resulting range
3848         is ~[0,0].
3849         (intersect_ranges): If the new range is ~[0,0] and the old range is
3850         wide, then prefer ~[0,0].
3851         * tree-vrp.c (overflow_comparison_p_1): New function.
3852         (overflow_comparison_p): New function.
3853         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
3854         if NAME is used in an overflow test.
3855         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
3856         overflow check that can be expressed as an equality test, then adjust
3857         ops to be that equality test.
3859 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3861         * config/s390/s390-builtin-types.def: Remove flags argument.
3862         * config/s390/s390.c (s390_init_builtins): Likewise.
3864 2017-02-14  Martin Liska  <mliska@suse.cz>
3866         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
3867         vector.  Fix trailing white spaces.
3869 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
3871         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
3872         HFmode.
3874 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3876         PR rtl-optimization/68664
3877         * config/arm/arm.c (arm_sched_can_speculate_insn):
3878         New function.  Declare prototype.
3879         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3881 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3883         PR rtl-optimization/68664
3884         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
3885         New function.
3886         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3888 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
3890         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
3891         max skip bytes for function, loop and jump.
3893 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3895         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
3896         ABS_EXPR for gimple dump.
3898 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
3900         PR target/79462
3901         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
3903         PR tree-optimization/79408
3904         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
3905         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
3906         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3907         also if rhs1 is INTEGER_CST.
3909 2017-02-14  Richard Biener  <rguenther@suse.de>
3911         PR middle-end/79432
3912         * tree-into-ssa.c (insert_phi_nodes): When the function can
3913         have abnormal edges rewrite SSA names with broken use-def
3914         dominance out of SSA and register them for PHI insertion.
3916 2017-02-13  Martin Sebor  <msebor@redhat.com>
3918         PR middle-end/79496
3919         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
3920         clearing info.nowrite flag when snprintf size argument is a range.
3922 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
3924         * cprop.c (cprop_jump): Add missing space in string literal.
3925         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3926         (get_constraint_for_component_ref): Likewise.
3927         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3928         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
3929         * lra-constraints.c (process_alt_operands): Likewise.
3930         * ipa-inline.c (inline_small_functions): Likewise.
3931         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
3932         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3933         * trans-mem.c (diagnose_tm_1_op): Likewise.
3934         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
3935         (grid_parallel_clauses_gridifiable): Likewise.
3937         * config/nvptx/mkoffload.c (process): Add space in between
3938         , and %d.
3940         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
3941         "MOD4_SSE_REGS" and "ALL_REGS".
3943         * spellcheck.c (test_data): Add , in between "foo" and "food".
3945 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3947         PR target/79449
3948         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
3949         boundary crossing check and subsequent code generation agree.
3951 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3953         * config/aarch64/aarch64.c (has_memory_op): Delete.
3954         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
3955         has_memory_op.
3957 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
3959         PR rtl-optimization/79388
3960         PR rtl-optimization/79450
3961         * combine.c (distribute_notes): When removing TEM_INSN for which
3962         corresponding dest has last value recorded, invalidate that last
3963         value.
3965 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3967         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
3968         of explicit '@'.  Add missing assembly comment marker on branch costs
3969         printout.
3971 2017-02-13  Nathan Sidwell  <nathan@acm.org>
3973         * gengtype-lex.l (<in_struct>): Add '/'.
3975 2017-02-13  Martin Liska  <mliska@suse.cz>
3977         PR c/79471
3978         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
3980 2017-02-13  Richard Biener  <rguenther@suse.de>
3982         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
3983         Remove.
3984         * configure: Re-generate.
3985         * config.in: Likewise.
3986         * graphite-dependences.c: Simplify as if
3987         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
3988         * graphite-isl-ast-to-gimple.c: Likewise.
3989         * graphite-optimize-isl.c: Likewise.
3990         * graphite-poly.c: Likewise.
3991         * graphite-sese-to-poly.c: Likewise.
3992         * graphite.h: Likewise.
3993         * toplev.c: Include isl/version.h and use isl_version () for
3994         printing the ISL version.
3995         * doc/install.texi: Update ISL requirement.
3997 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
3999         * doc/standards.texi (Standards): Update reference to
4000         Objective-C 2.0.
4002 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
4003         
4004         * doc/extend.texi (Named Address Spaces): sourceware.org now
4005         defaults to https.
4006         * doc/install.texi (Binaries): Ditto.
4007         (Specific): Ditto.
4009 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
4011         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
4012         standard terminology "stringize"/"stringizing" throughout.
4013         * doc/cppinternals.texi: Likewise.
4015 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
4017         * doc/extend.texi: Fix some spelling mistakes and typos.
4018         * doc/invoke.texi: Likewise.
4020 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
4022         PR ipa/79224
4023         * params.def (inline-min-speedup) Change from 10 to 8.
4025 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
4027         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
4028         4.5.
4030 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
4032         PR ipa/79224
4033         * ipa-inline-analysis.c (get_minimal_bb): New function.
4034         (record_modified): Use it.
4035         (remap_edge_change_prob): Handle also ancestor functions.
4037 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
4039         * doc/contrib.texi (Contributors): Remove broken link into
4040         the Mauve CVS repository.
4042 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
4044         PR middle-end/79454
4045         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
4046         result computation whenever lhs doesn't have vector mode, not
4047         just when it has BLKmode.
4049 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
4051         * doc/makefile.texi (profiledbootstrap): Refer to the
4052         installation instructions only in textual form.
4054 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4056         PR target/79295
4057         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
4059 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
4061         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
4062         (Specific): Update mingw-w64 reference.
4063         (Binaries): Ditto.
4064         (Specific): Remove broken link to Renesas RX processor.
4066 2017-02-10  Richard Biener  <rguenther@suse.de>
4068         * toplev.c (process_options): Do not mention obsolete graphite
4069         options when printing sorry message about missing graphite support.
4070         Mention -floop-nest-optimize.
4072 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
4074         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
4075         (vtst_p16): Likewise.
4076         (vtstq_p8): Likewise.
4077         (vtstq_p16): Likewise.
4078         (vtst_p64): New.
4079         (vtstq_p64): Likewise.
4080         * config/arm/arm_neon.h (vgetq_lane_p64): New.
4081         (vset_lane_p64): New.
4082         (vsetq_lane_p64): New.
4084 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
4086         PR tree-optimization/79411
4087         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
4088         stmt operands are SSA_NAMEs used in abnormal phis.
4089         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
4090         phis.
4092 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
4094         PR ipa/70795
4095         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
4096         flag if needed.
4098 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
4100         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
4102 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
4104         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
4105         to avoid warning.
4107         PR c/79413
4108         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
4109         not arbitrary TREE_CONSTANT.
4111         PR c/79431
4112         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
4113         "omp declare target link" attribute unless is_global_var.
4114         * omp-offload.c (find_link_var_op): Likewise.
4116 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
4117             Chung-Lin Tang  <cltang@codesourcery.com>
4119         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
4120         OMP_CLAUSE_TILE.
4121         (gimplify_adjust_omp_clauses): Don't delete TILE.
4122         (gimplify_omp_for): Deal with TILE.
4123         * internal-fn.c (expand_GOACC_TILE): New function.
4124         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
4125         (GOACC_TILE): New.
4126         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
4127         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
4128         element fields.
4129         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
4130         avoid DIV for outermost collapse var.
4131         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
4132         Remove out of date comments, fix whitespace.
4133         * omp-general.c (omp_extract_for_data): Deal with tiling.
4134         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
4135         adjust OLF_DIM_BASE value.
4136         (struct omp_for_data): Add tiling field.
4137         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
4138         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
4139         for auto loops.  Remove default auto determining, moved to
4140         oacc_loop_fixed_partitions.
4141         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
4142         stmts, add e_mask field.
4143         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
4144         (oacc_thread_numbers): Use oacc_dim_call.
4145         (oacc_xform_tile): New.
4146         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
4147         (finish_oacc_loop): Adjust for ifns vector.
4148         (oacc_loop_discover_walk): Append loop abstraction sites to list,
4149         add case for GOACC_TILE fns.
4150         (oacc_loop_xform_loop): Delete.
4151         (oacc_loop_process): Iterate over call list directly, and add
4152         handling for GOACC_TILE fns.
4153         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
4154         dump partitioning.
4155         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
4156         vector partitioning to outer loops.  Assign 2 partitions to loops
4157         when available. Add TILE handling.
4158         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
4159         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
4160         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
4161         * tree.c (omp_clause_num_ops): Adjust TILE ops.
4162         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
4164 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
4166         * configure.ac (ACX_BUGURL): Update.
4167         * configure: Regenerate.
4169 2017-02-09  Richard Biener  <rguenther@suse.de>
4171         PR tree-optimization/69823
4172         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4173         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
4175 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4177         * config/arc/arc-c.def: Add __NPS400__ definition.
4178         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
4179         (TARGET_NPS400): Define.
4181 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4183         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
4184         file.
4185         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
4186         pointer, arch_info.
4187         (arc_cpu_types): Fill the arch_info field with a pointer into the
4188         arc_arch_types table.
4189         (arc_selected_cpu): Declare.
4190         * config/arc/arc.c (arc_selected_cpu): Make global.
4191         (arc_selected_arch): Delete.
4192         (arc_base_cpu): Delete.
4193         (arc_override_options): Remove references to deleted variables,
4194         update access to arch information.
4195         (ARC_OPT): Update access to arch information.
4196         (ARC_OPTX): Likewise.
4197         * config/arc/arc.h (arc_base_cpu): Remove declaration.
4198         (TARGET_ARC600): Update access to arch information.
4199         (TARGET_ARC601): Likewise.
4200         (TARGET_ARC700): Likewise.
4201         (TARGET_EM): Likewise.
4202         (TARGET_HS): Likewise.
4203         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
4204         information.
4206 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
4208         PR target/78604
4209         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
4210         condition/operands for integer GE/LE/GEU/LEU operations.
4212 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
4214         PR translation/79397
4215         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
4216         of AltiVec.
4218 2017-02-08  Martin Jambor  <mjambor@suse.cz>
4220         PR ipa/79375
4221         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
4222         whether allocation happened.
4223         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
4224         nothing was allocated.
4226 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
4228         PR tree-optimization/79408
4229         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
4230         constant, but SSA_NAME with a known integer range, use the minimum
4231         of that range instead of op1 to determine if modulo can be replaced
4232         with its first operand.
4234 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4236         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4238 2017-02-08  Richard Biener  <rguenther@suse.de>
4240         PR tree-optimization/71824
4241         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4242         Check all loops contained in the merged region.
4244 2017-02-07  Andrew Pinski  <apinski@cavium.com>
4246         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4248 2017-02-07  Andrew Pinski  <apinski@cavium.com>
4250         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4251         (thunderxt88): Likewise.
4252         (thunderxt81): Disable LSE and change v8.1 to v8.
4253         (thunderxt83): Likewise.
4255 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
4256             Richard Biener  <rguenther@suse.de>
4258         PR middle-end/79399
4259         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4260         type from int to size_t.
4261         * ira-costs.c (struct_costs_size): Change type from int to size_t.
4263 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
4265         PR rtl-optimization/79386
4266         * cprop.c (bypass_conditional_jumps): Initialize
4267         bypass_last_basic_block already before splitting bbs after
4268         unconditional traps...
4269         (bypass_conditional_jumps): ... rather than here.
4271         PR target/79299
4272         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4273         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4274         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4275         fix -masm=intel patterns.
4277 2017-02-07  Richard Biener  <rguenther@suse.de>
4279         PR tree-optimization/79256
4280         PR middle-end/79278
4281         * builtins.c (get_object_alignment_2): Use min_align_of_type
4282         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4283         and ADJUST_FIELD_ALIGN.
4285         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4286         type parameter.
4287         * doc/tm.texi: Regenerate.
4288         * stor-layout.c (layout_decl): Adjust.
4289         (update_alignment_for_field): Likewise.
4290         (place_field): Likewise.
4291         (min_align_of_type): Likewise.
4292         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4293         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4294         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4295         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4296         * config/frv/frv.c (frv_adjust_field_align): Likewise.
4297         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4298         * config/i386/i386.c (x86_field_alignment): Likewise.
4299         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4300         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4301         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4302         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4303         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4304         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4305          Likewise.
4307         Revert
4308         2017-01-30  Richard Biener  <rguenther@suse.de>
4310         PR tree-optimization/79256
4311         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4312         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4313         alignment on TYPE.
4315 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
4317         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4318         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4319         builtins to SImode and emit a zero-extend, if necessary.
4321 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4323         * docs/invoke.texi (RISC-V Options): Alphabetize.
4325 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4327         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4328         options.
4330 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4332         * config/riscv/riscv.c: New file.
4333         * gcc/common/config/riscv/riscv-common.c: Likewise.
4334         * config.gcc: Likewise.
4335         * config/riscv/constraints.md: Likewise.
4336         * config/riscv/elf.h: Likewise.
4337         * config/riscv/generic.md: Likewise.
4338         * config/riscv/linux.h: Likewise.
4339         * config/riscv/multilib-generator: Likewise.
4340         * config/riscv/peephole.md: Likewise.
4341         * config/riscv/pic.md: Likewise.
4342         * config/riscv/predicates.md: Likewise.
4343         * config/riscv/riscv-builtins.c: Likewise.
4344         * config/riscv/riscv-c.c: Likewise.
4345         * config/riscv/riscv-ftypes.def: Likewise.
4346         * config/riscv/riscv-modes.def: Likewise.
4347         * config/riscv/riscv-opts.h: Likewise.
4348         * config/riscv/riscv-protos.h: Likewise.
4349         * config/riscv/riscv.h: Likewise.
4350         * config/riscv/riscv.md: Likewise.
4351         * config/riscv/riscv.opt: Likewise.
4352         * config/riscv/sync.md: Likewise.
4353         * config/riscv/t-elf-multilib: Likewise.
4354         * config/riscv/t-linux: Likewise.
4355         * config/riscv/t-linux-multilib: Likewise.
4356         * config/riscv/t-riscv: Likewise.
4357         * configure.ac: Likewise.
4358         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4359         Waterman as RISC-V maintainers.
4360         * doc/install.texi: Add RISC-V entries.
4361         * doc/invoke.texi: Add RISC-V options section.
4362         * doc/md.texi: Add RISC-V constraints section.
4363         * configure: Regenerated.
4365 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4367         PR target/66144
4368         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4369         false values to be constant vectors with all 0 or all 1 bits set.
4370         (vcondu<mode><mode>): Likewise.
4371         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4372         predicate.
4373         (fpmask_comparison_operator): Update comment.
4374         (vecint_comparison_operator): New predicate.
4375         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4376         vector conditionals when the true and false values are constant
4377         vectors with all 0 bits or all 1 bits set.
4379 2017-02-06  Martin Sebor  <msebor@redhat.com>
4381         PR  tree-optimization/79376
4382         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4384 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
4386         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4387         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
4388         to simplify split condition.
4390 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
4392         * omp-expand.c (oxpand_omp_atomic_fetch_op,
4393         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4394         false.
4396 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
4398         PR rtl-optimization/68664
4399         * target.def (can_speculate_insn): New hook.
4400         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4401         * doc/tm.texi: Regenerate.
4402         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4403         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4404         (rs6000_sched_can_speculate_insn): New function.
4406 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
4408         PR tree-optimization/79284
4409         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4410         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4411         vectorizable_mask_load_store, vectorizable_operation,
4412         vect_is_simple_cond, get_same_sized_vectype): Use it instead
4413         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4414         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4415         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4416         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4417         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4418         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4419         is_gimple_assign (stmt).  Replace another such test with
4420         is_gimple_assign (stmt).
4422 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
4424         PR target/78883
4425         * config/avr/avr.c (rtl-iter.h): Include it.
4426         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4427         (avr_legitimate_combined_insn): ...and implementation.
4429 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4431         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4432         * config/s390/s390.c (s390_const_operand_ok)
4433         (s390_canonicalize_comparison, s390_extract_part)
4434         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4435         (s390_contiguous_bitmask_p, s390_rtx_costs)
4436         (legitimize_pic_address): Likewise.
4437         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4438         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4439         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4440         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4441         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4443 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
4445         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4446         REGNO($0) == REGNO($1).
4448 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4450         * config/s390/linux.h(SIZE_TYPE): Add comment.
4452 2017-02-06  Julian Brown  <julian@codesourcery.com>
4453             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4454             Virendra Pathak  <virendra.pathak@broadcom.com>
4456         * config/aarch64/aarch64-cores.def: Change the scheduler
4457         to Thunderx2t99.
4458         * config/aarch64/aarch64.md: Include thunderx2t99.md.
4459         * config/aarch64/thunderx2t99.md: New file.
4461 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4463         * doc/standards.texi (Go Language): Update link to language
4464         standard.
4466 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
4468         * tree-eh.c (lower_resx): Sanitize profile.
4469         (cleanup_empty_eh_move_lp): Likewise.
4471 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
4473         PR tree-ssa/79347
4474         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4475         ELSE_PROB.
4476         * cfgloopmanip.h (loop_version): Update prototype.
4477         * modulo-sched.c (sms_schedule): Update call of loop_version.
4478         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4479         * tree-parloops.c (gen_parallel_loop): Likewise.
4480         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4481         * tree-ssa-loop-split.c (split_loop): Likewise.
4482         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4483         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4485 2017-02-05  Martin Liska  <mliska@suse.cz>
4487         PR bootstrap/78985
4488         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4489         variable to NULL.
4490         (print_operand_address): Initialize a struct to zero.
4492 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4494         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4495         garbage collector only in textual form.
4497 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4498         
4499         * doc/extend.texi (x86 specific memory model extensions for
4500         transactional memory): Simplify a phrase.
4502 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
4504         PR target/79353
4505         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4506         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4507         (atomic_storedi_1): Likewise.
4509 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
4511         PR tree-optimization/79338
4512         * tree-parloops.c (gather_scalar_reductions): Don't call
4513         vect_analyze_loop_form for loop->inner before destroying loop's
4514         loop_vinfo.
4516 2017-02-03  Martin Sebor  <msebor@redhat.com>
4518         PR tree-optimization/79327
4519         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4520         when precision has resulted in leading zeros.
4521         (format_integer): Adjust the likely counter to assume an unknown
4522         argument that may be zero is non-zero.
4524 2017-02-03  Jason Merrill  <jason@redhat.com>
4526         PR c++/78689
4527         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4528         avoid copying non-taken branch.
4530 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
4532         PR tree-optimization/79340
4533         * tree-vect-loop.c (vectorizable_reduction): Release
4534         vec_defs elements after safe_splicing them into other vectors.
4535         Formatting fixes.
4537         PR tree-optimization/79327
4538         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4539         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4540         dirtype.
4541         (format_integer): Use wide_int_to_tree instead of build_int_cst
4542         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
4543         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
4544         of shortest and longest sequence.
4546 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
4548         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4549         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4551 2017-02-03  Walter Lee  <walt@tilera.com>
4553         PR target/78862
4554         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4555         after initial stackframe link reg save.
4556         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4558 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
4560         PR target/79354
4561         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4562         wu for stxssp alternative.
4564 2017-02-03  Martin Sebor  <msebor@redhat.com>
4566         PR tree-optimization/79352
4567         * gimple-fold.c (get_range_strlen): Add argument.
4568         (get_range_strlen): Change return type to bool.
4569         (get_maxval_strlen): Pass in a dummy argument.
4570         * gimple-fold.h (get_range_strlen): Change return type to bool.
4571         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4572         * tree.h (array_at_struct_end_p): Add argument.
4573         * tree.c (array_at_struct_end_p): Handle it.
4575 2017-02-03  Martin Liska  <mliska@suse.cz>
4577         PR lto/66295
4578         * multiple_target.c (create_dispatcher_calls): Redirect edge
4579         from a caller of a dispatcher.
4580         (expand_target_clones): Make the clones local.
4581         (ipa_target_clone): Do both target clones and resolvers.
4582         (ipa_dispatcher_calls): Remove the pass.
4583         (pass_dispatcher_calls::gate): Likewise.
4584         (make_pass_dispatcher_calls): Likewise.
4585         * passes.def (pass_target_clone): Put as very first IPA early
4586         pass.
4588 2017-02-03  Martin Liska  <mliska@suse.cz>
4590         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4591         in case of a function with ifunc attribute.
4593 2017-02-03  Martin Liska  <mliska@suse.cz>
4595         * cgraph.c (cgraph_node::dump): Dump function version info.
4596         * symtab.c (symtab_node::dump_base): Add missing new line.
4598 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
4600         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4601         (ifcombine_ifandif): Use it.
4603 2017-02-03  Martin Liska  <mliska@suse.cz>
4605         * doc/invoke.texi: Document default value for
4606         use-after-scope-direct-emission-threshold.
4608 2017-02-03  Martin Liska  <mliska@suse.cz>
4610         PR tree-optimization/79339
4611         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4612         (format_floating): Likewise.
4614 2017-02-03  Martin Liska  <mliska@suse.cz>
4616         PR ipa/79337
4617         * ipa-prop.c (ipa_node_params_t::insert): Remove current
4618         implementation.
4619         (ipa_node_params_t::remove): Likewise.
4620         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4621         initialization from removed ipa_node_params_t::insert.
4622         (ipa_node_params::~ipa_node_params): Move from removed
4623         ipa_node_params_t::release.
4624         * symbol-summary.h (symbol_summary::m_released): New member.
4625         Do not release a summary twice.  Do not allow to call finalizer
4626         for types of a summary that live in GGC memory.
4628 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4630         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4631         cmp_branch fusion.
4633 2017-02-02  Martin Sebor  <msebor@redhat.com>
4635         PR middle-end/79275
4636         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4637         (format_string): Tighten up the range of output for non-constant
4638         strings and correct the expected range for wide non-constant strings.
4640 2017-02-02  Martin Sebor  <msebor@redhat.com>
4642         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4644         PR middle-end/32003
4645         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4646         index.
4647         (-fdump-tree-@var): Add to index and document how to come up
4648         with pass-specific option and dump file names.
4649         (-fdump-passes): Clarify where to look for output.
4651 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
4653         PR middle-end/77445
4654         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4655         statistics of the analyzed path; allow threading for speed when
4656         any of BBs along the path are optimized for speed.
4658 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
4660         PR middle-end/78468
4661         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4662         settings of the virtual registers.
4664         Revert again
4665         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4667         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4668         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4669         needed.
4671 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4673         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4674         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4676 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4678         * config/s390/s390.md: Add missing comments with the expanded
4679         mnemonics.
4680         * config/s390/vector.md: Likewise.
4681         * config/s390/vx-builtins.md: Likewise.
4683 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
4685         PR target/79197
4686         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4687         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
4688         conditions on a single line.
4690 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4692         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4693         __S390_VX__ to __VX__.
4695 2017-02-01  Andrew Pinski  <apinski@cavium.com>
4697         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4698         stmt_info to record_stmt_cost.
4699         (vect_get_known_peeling_cost): Pass stmt_info if known to
4700         record_stmt_cost.
4701         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4702         cpu_vector_cost field into
4703         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
4704         field into vec_int_stmt_cost and vec_fp_stmt_cost.
4705         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4706         splitting of scalar_stmt_cost and vec_stmt_cost.
4707         (thunderx_vector_cost): Likewise.
4708         (cortexa57_vector_cost): LIkewise.
4709         (exynosm1_vector_cost): Likewise.
4710         (xgene1_vector_cost): Likewise.
4711         (thunderx2t99_vector_cost): Improve after the splitting of the two
4712         fields.
4713         (aarch64_builtin_vectorization_cost): Update for the splitting of
4714         scalar_stmt_cost and vec_stmt_cost.
4716 2017-02-01  Torvald Riegel  <triegel@redhat.com>
4717             Richard Henderson  <rth@redhat.com>
4719         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4720         conditional on existance of a fast atomic load.
4721         * optabs-query.c (can_atomic_load_p): New function.
4722         * optabs-query.h (can_atomic_load_p): Declare it.
4723         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4724         no fast atomic load is available for the particular size of access.
4725         (expand_atomic_compare_and_swap): Likewise.
4726         (expand_atomic_load): Likewise.
4727         (expand_atomic_store): Likewise.
4728         (expand_atomic_fetch_op): Likewise.
4729         * testsuite/lib/target-supports.exp
4730         (check_effective_target_sync_int_128): Remove x86 because it provides
4731         no fast atomic load.
4732         (check_effective_target_sync_int_128_runtime): Likewise.
4734 2017-02-01  Richard Biener  <rguenther@suse.de>
4736         * graphite.c: Include tree-vectorizer.h for find_loop_location.
4737         (graphite_transform_loops): Provide opt-info for optimized nests.
4738         * tree-parloop.c (parallelize_loops): Provide opt-info for
4739         parallelized loops.
4741 2017-02-01  Richard Biener  <rguenther@suse.de>
4743         PR middle-end/79315
4744         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
4745         was not set before.
4747 2017-02-01  Richard Biener  <rguenther@suse.de>
4749         PR tree-optimization/71824
4750         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4751         Verify the loops are valid in the merged SESE region.
4752         (scop_detection::can_represent_loop_1): Check analyzing the
4753         evolution of the number of iterations in the region succeeds.
4755 2017-01-31  Ian Lance Taylor  <iant@golang.org>
4757         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
4758         REG_ARGS_SIZE note to 32-bit push insns and call insn.
4760 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
4762         PR preprocessor/79210
4763         * input.c (get_substring_ranges_for_loc): Replace line_width
4764         assertion with error-handling.
4766 2017-01-31  Richard Biener  <rguenther@suse.de>
4768         PR tree-optimization/77318
4769         * graphite-sese-to-poly.c (extract_affine): Fix assert.
4770         (create_pw_aff_from_tree): Take loop parameter.
4771         (add_condition_to_pbb): Pass loop of the condition to
4772         create_pw_aff_from_tree.
4774 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
4776         * config/s390/s390.c (s390_asan_shadow_offset): New function.
4777         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
4779 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
4781         PR target/78597
4782         PR target/79038
4783         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
4784         no longer used.
4785         (convert_int_to_float128): Likewise.
4786         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
4787         (convert_int_to_float128): Likewise.
4788         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
4789         (UNSPEC_IEEE128_CONVERT): Likewise.
4790         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
4791         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
4792         Use local variables for IBM extended format.
4793         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
4794         (fix_trunc<mode>si2_fprs): Likewise.
4795         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4796         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
4797         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
4798         to know that we can now have integers of all sizes in vector
4799         registers.
4800         (fix<uns>_<mode>di2_hw): Likewise.
4801         (float<uns>_<mode>si2_hw): Likewise.
4802         (fix_<mode>si2_hw): Likewise.
4803         (fixuns_<mode>si2_hw): Likewise.
4804         (float<uns>_<mode>di2_hw): Likewise.
4805         (float_<mode>di2_hw): Likewise.
4806         (float_<mode>si2_hw): Likewise.
4807         (floatuns_<mode>di2_hw): Likewise.
4808         (floatuns_<mode>si2_hw): Likewise.
4809         (xscvqp<su>wz_<mode>): Delete, no longer used.
4810         (xscvqp<su>dz_<mode>): Likewise.
4811         (xscv<su>dqp_<mode>): Likewise.
4812         (ieee128_mfvsrd_64bit): Likewise.
4813         (ieee128_mfvsrd_32bit): Likewise.
4814         (ieee128_mfvsrwz): Likewise.
4815         (ieee128_mtvsrw): Likewise.
4816         (ieee128_mtvsrd_64bit): Likewise.
4817         (ieee128_mtvsrd_32bit): Likewise.
4819 2017-01-31  Martin Liska  <mliska@suse.cz>
4821         PR ipa/79285
4822         * ipa-prop.c (ipa_free_all_node_params): Call release method
4823         instead of ~sumbol_summary to not to trigger double times
4824         dtor of hash_map.
4826 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
4828         PR tree-optimization/71691
4829         * bitmap.h (class auto_bitmap): New.
4830         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
4831         is_maybe_undefined instead of ssa_undefined_value_p.
4833 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4835         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4836         __S390_ARCH_LEVEL__ to __ARCH__.
4838 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
4840         PR tree-optimization/79267
4841         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
4842         if should_remove_lhs_p is true.
4844 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
4846         PR debug/63238
4847         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
4848         (add_alignment_attribute): New.
4849         (base_type_die): Add alignment attribute.
4850         (subrange_type_die): Likewise.
4851         (modified_type_die): Likewise.
4852         (gen_array_type_die): Likewise.
4853         (gen_descr_array_type_die: Likewise.
4854         (gen_enumeration_type_die): Likewise.
4855         (gen_subprogram_die): Likewise.
4856         (gen_variable_die): Likewise.
4857         (gen_field_die): Likewise.
4858         (gen_ptr_to_mbr_type_die): Likewise.
4859         (gen_struct_or_union_type_die): Likewise.
4860         (gen_subroutine_type_die): Likewise.
4861         (gen_typedef_die): Likewise.
4862         (base_type_cmp): Compare alignment attribute.
4864 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4866         PR target/79170
4867         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
4868         (setb_unsigned) New pattern for setb with CCUNS.
4869         * config/rs6000/rs6000.c (expand_block_compare): Use a different
4870         subfc./subfe sequence to avoid overflow problems.  Generate a
4871         shorter sequence with cmpld/setb for power9.
4872         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
4873         for generating subfc. instruction.
4874         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
4875         now uses this instruction.
4877 2017-01-30  Ian Lance Taylor  <iant@google.com>
4879         PR debug/79289
4880         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
4881         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
4883 2017-01-30  Martin Sebor  <msebor@redhat.com>
4885         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
4886         Move constant to the right of a relational operator.
4887         (get_mpfr_format_length, format_character, format_string): Ditto.
4888         (should_warn_p, maybe_warn): Same.
4890         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
4892 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
4894         PR lto/79061
4895         * asan.c (get_translation_unit_decl): Remove function.
4896         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
4898 2017-01-30  Martin Liska  <mliska@suse.cz>
4900         PR gcov-profile/79259
4901         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
4902         -fprofile-generate.
4904 2017-01-30  Martin Liska  <mliska@suse.cz>
4906         PR bootstrap/78985
4907         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
4908         Initialize variables with NULL value.
4910 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
4912         PR target/79260
4913         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
4914         tm_p_file.
4915         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
4917 2017-01-30  Richard Biener  <rguenther@suse.de>
4919         PR tree-optimization/79276
4920         * tree-vrp.c (process_assert_insertions): Properly adjust common
4921         when removing a duplicate.
4923         * gcc.dg/torture/pr79276.c: New testcase.
4925 2017-01-30  Richard Biener  <rguenther@suse.de>
4927         PR tree-optimization/79256
4928         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4929         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4930         alignment on TYPE.
4931         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
4933 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4935         PR target/79240
4936         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
4937         ("*r<noxa>sbg_<mode>_sll_bitmask")
4938         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
4939         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
4940         Use contiguous_bitmask_nowrap_operand.
4942 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4944         PR target/79268
4945         * config/rs6000/altivec.h (vec_xl): Revise #define.
4946         (vec_xst): Likewise.
4948 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
4950         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
4952 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
4954         PR rtl-optimization/79194
4955         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
4956         traps before call to bypass_conditional_jumps.
4958 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
4960         PR tree-optimization/71374
4961         * lra-constraints.c (check_conflict_input_operands): New.
4962         (match_reload): Use it.
4964 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
4966         PR target/79131
4967         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
4968         account to calculate conflict_set.
4970 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
4972         PR rtl-optimization/78559
4973         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
4974         other_insn in combine.
4976 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
4978         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
4979         uint16_type_node for BT_UINT16.
4981 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
4983         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
4984         "RTL Tests" to menu.
4985         (GIMPLE Tests): New node.
4986         (RTL Tests): New node.
4988 2017-01-27  Richard Biener  <rguenther@suse.de>
4990         PR tree-optimization/79245
4991         * tree-loop-distribution.c (distribute_loop): Apply cost
4992         modeling also to detected patterns.
4994 2017-01-27  Richard Biener  <rguenther@suse.de>
4996         PR tree-optimization/71433
4997         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
4998         (compare_assert_loc): New function.
4999         (process_assert_insertions): Sort and optimize assert locations
5000         to remove duplicates and push down identical assertions on
5001         edges to their destination block.
5003 2017-01-27  Richard Biener  <rguenther@suse.de>
5005         PR tree-optimization/79244
5006         * tree-vrp.c (remove_range_assertions): Forcefully propagate
5007         out SSA names even if abnormal.
5009 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
5011         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
5012         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
5013         instead of MPFR_RNDN.
5015 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
5017         PR target/79239
5018         * arm.c (arm_option_override): Don't call build_target_option_node
5019         until after doing all option overrides.
5020         (arm_valid_target_attribute_tree): Likewise.
5022 2017-01-27  Martin Liska  <mliska@suse.cz>
5024         * doc/invoke.texi (-fprofile-arcs): Document profiling support
5025         for {cd}tors and C++ {cd}tors.
5027 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5029         * config/s390/s390.md ("*setmem_long_and")
5030         ("*setmem_long_and_31z"): Use zero_extend instead of and.
5032 2017-01-26  Martin Sebor  <msebor@redhat.com>
5034         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
5035         of precision.
5037 2017-01-26  Martin Sebor  <msebor@redhat.com>
5039         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
5040         HAVE_DFmode before using XFmode or DFmode.
5041         (parse_directive): Avoid using the z length modifier to avoid
5042         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
5044         PR middle-end/78703
5045         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
5046         to accept adjustment as an array.
5047         (get_int_range): New function.
5048         (struct directive): Make width and prec arrays.
5049         (directive::set_width, directive::set_precision): Call get_int_range.
5050         (format_integer, format_floating): Handle width and precision ranges.
5051         (format_string, parse_directive): Same.
5053 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5055         PR debug/79129
5056         * dwarf2out.c (generate_skeleton_bottom_up): For children with
5057         comdat_type_p set, just clone them, but keep the children in the
5058         original DIE.
5060         PR debug/78835
5061         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
5062         which have direct callers with -fvar-tracking-assignments enabled
5063         in the current TU.
5064         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
5065         inside of type units.
5067 2017-01-26  Martin Sebor  <msebor@redhat.com>
5069         PR middle-end/78703
5070         * gimple-ssa-sprintf.c (struct result_range): Add likely and
5071         unlikely counters.
5072         (struct format_result): Replace number_chars, number_chars_min,
5073         and number_chars_max with a single member of struct result_range.
5074         Remove bounded.
5075         (format_result::operator+=): Adjust.
5076         (struct fmtresult): Remove bounded.  Handle likely and unlikely
5077         counters.
5078         (fmtresult::adjust_for_width_or_precision): New function.
5079         (fmtresult:type_max_digits): New function.
5080         (bytes_remaining): Handle likely and unlikely counters.
5081         (min_bytes_remaining): Remove.
5082         (format_percent): Simplify.
5083         (format_integer, format_floating): Set likely and unlikely counters.
5084         (get_string_length, format_character, format_string): Same.
5085         (format_plain, should_warn_p): New function.
5086         (maybe_warn): Call should_warn_p.  Update diagnostic messages
5087         and handle those for all directives, including plain strings.
5088         (format_directive): Handle likely and unlikely counters.
5089         Remove unnecessary quoting from diagnostics.  Add an informational
5090         note.
5091         (add_bytes): Remove.
5092         (pass_sprintf_length::compute_format_length): Simplify.
5093         (try_substitute_return_value): Handle likely and unlikely counters.
5095 2017-01-26  Carl Love  <cel@us.ibm.com>
5097         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
5098         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
5100 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
5102         PR target/79131
5103         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
5104         endianess for subregs into account.
5105         * lra-constraints.c (lra_constraints): Do risky transformations
5106         always on the first iteration.
5107         * lra-lives.c (check_pseudos_live_through_calls): Add arg
5108         last_call_used_reg_set.
5109         (process_bb_lives): Define and use last_call_used_reg_set.
5110         * lra.c (lra): Always continue after lra_constraints on the first
5111         iteration.
5113 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
5115         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
5116         constant.
5117         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
5119 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5121         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
5122         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
5123         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
5124         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
5125         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
5126         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
5127         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
5128         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
5129         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
5131 2017-01-26  Marek Polacek  <polacek@redhat.com>
5133         PR c/79199
5134         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
5135         for the third operand.
5137 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5139         PR middle-end/79236
5140         * omp-low.c (struct omp_context): Add simt_stmt field.
5141         (scan_omp_for): Return omp_context *.
5142         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
5143         context to the _simt_ SIMD stmt.
5144         (lower_omp_for): For combined SIMD with sibling _simt_
5145         SIMD, make sure to use the same decls in _looptemp_
5146         clauses as in the sibling.
5148 2017-01-26  David Sherwood  <david.sherwood@arm.com>
5150         PR middle-end/79212
5151         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
5152         all contexts.
5154 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5156         PR target/70465
5157         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
5158         emit fld b; fld a; if possible.
5160         * brig-builtins.def: Update copyright years.
5161         * config/arm/arm_acle_builtins.def: Update copyright years.
5163 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5165         PR target/79179
5166         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
5167         constraint instead of o for the stxsd instruction.
5169 2017-01-25  Carl Love  <cel@us.ibm.com>
5171         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
5172         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
5174 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
5176         * doc/invoke.texi (C++ Dialect Options): Fix typo.
5178 2017-01-25  Richard Biener  <rguenther@suse.de>
5180         PR tree-optimization/69264
5181         * target.def (vector_alignment_reachable): Improve documentation.
5182         * doc/tm.texi: Regenerate.
5183         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
5184         and add a comment.
5185         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
5186         earlier changes with respect to TYPE_USER_ALIGN.
5187         (vector_alignment_reachable_p): Likewise.  Improve dumping.
5189 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5191         PR target/79145
5192         * config/arm/arm.md (xordi3): Force constant operand into a register
5193         for TARGET_IWMMXT.
5195 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5197         * doc/invoke.texi (-fstore-merging): Correct default optimization
5198         levels at which it is enabled.
5199         (-O): Move -fstore-merging from list to...
5200         (-O2): ... Here.
5202 2017-01-25  Richard Biener  <rguenther@suse.de>
5204         PR debug/78363
5205         * omp-expand.c: Include debug.h.
5206         (expand_omp_taskreg): Make sure to generate early debug before
5207         outlining anything from a function.
5208         (expand_omp_target): Likewise.
5209         (grid_expand_target_grid_body): Likewise.
5211 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
5213         PR lto/79061
5214         * asan.c (get_translation_unit_decl): New function.
5215         (asan_add_global): Extract modules file name from globals
5216         TRANSLATION_UNIT_DECL name.
5218 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
5220         PR target/77439
5221         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
5222         for long calls with APCS frame and VFP.
5224 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
5226         * cfg.c (original_copy_tables_initialized_p): New function.
5227         * cfg.h (original_copy_tables_initialized_p): New decl.
5228         * cfgrtl.c (relink_block_chain): Guard the call to
5229         free_original_copy_tables with a call to
5230         original_copy_tables_initialized_p.
5231         * cgraph.h (symtab_node::native_rtl_p): New decl.
5232         * cgraphunit.c (symtab_node::native_rtl_p): New function.
5233         (symtab_node::needed_p): Don't assert for early assembly output
5234         for __RTL functions.
5235         (cgraph_node::finalize_function): Set "force_output" for __RTL
5236         functions.
5237         (cgraph_node::analyze): Bail out early for __RTL functions.
5238         (analyze_functions): Update assertion to support __RTL functions.
5239         (cgraph_node::expand): Bail out early for __RTL functions.
5240         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5241         __RTL functions.
5242         * function.h (struct function): Update comment for field
5243         "pass_startwith".
5244         * gimple-expr.c: Include "tree-pass.h".
5245         (gimple_has_body_p): Return false for __RTL functions.
5246         * Makefile.in (OBJS): Add run-rtl-passes.o.
5247         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5248         accessor.
5249         (gcc::pass_manager::get_clean_slate): New accessor.
5250         * passes.c: Include "insn-addr.h".
5251         (should_skip_pass_p): Add logging.  Update logic for running
5252         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
5253         property-provider override so it is only done for gimple passes.
5254         Don't skip dfinit.
5255         (skip_pass): New function.
5256         (execute_one_pass): Call skip_pass when skipping passes.
5257         * read-md.c (md_reader::read_char): Support filtering
5258         the input to a subset of line numbers.
5259         (md_reader::md_reader): Initialize fields
5260         m_first_line and m_last_line.
5261         (md_reader::read_file_fragment): New function.
5262         * read-md.h (md_reader::read_file_fragment): New decl.
5263         (md_reader::m_first_line): New field.
5264         (md_reader::m_last_line): New field.
5265         * read-rtl-function.c (function_reader::create_function): Only
5266         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
5267         curr_properties.  Set DECL_INITIAL to a dummy block.
5268         (read_rtl_function_body_from_file_range): New function.
5269         * read-rtl-function.h (read_rtl_function_body_from_file_range):
5270         New decl.
5271         * run-rtl-passes.c: New file.
5272         * run-rtl-passes.h: New file.
5274 2017-01-24 Jeff Law  <law@redhat.com>
5276         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5277         buffer size.
5279 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
5281         PR tree-optimization/79159
5282         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5283         (record_nonwrapping_iv): Improve boundary using above function if no
5284         value range information.
5286 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
5287             Martin Jambor  <mjambor@suse.cz>
5289         * brig-builtins.def: New file.
5290         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5291         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5292         (DEF_HSAIL_SAT_BUILTIN): Likewise.
5293         (DEF_HSAIL_INTR_BUILTIN): Likewise.
5294         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5295         * builtin-types.def (BT_INT8): New.
5296         (BT_INT16): Likewise.
5297         (BT_UINT8): Likewise.
5298         (BT_UINT16): Likewise.
5299         (BT_FN_ULONG): Likewise.
5300         (BT_FN_UINT_INT): Likewise.
5301         (BT_FN_UINT_ULONG): Likewise.
5302         (BT_FN_UINT_LONG): Likewise.
5303         (BT_FN_UINT_PTR): Likewise.
5304         (BT_FN_ULONG_PTR): Likewise.
5305         (BT_FN_INT8_FLOAT): Likewise.
5306         (BT_FN_INT16_FLOAT): Likewise.
5307         (BT_FN_UINT32_FLOAT): Likewise.
5308         (BT_FN_UINT16_FLOAT): Likewise.
5309         (BT_FN_UINT8_FLOAT): Likewise.
5310         (BT_FN_UINT64_FLOAT): Likewise.
5311         (BT_FN_UINT16_UINT32): Likewise.
5312         (BT_FN_UINT32_UINT16): Likewise.
5313         (BT_FN_UINT16_UINT16_UINT16): Likewise.
5314         (BT_FN_INT_PTR_INT): Likewise.
5315         (BT_FN_UINT_PTR_UINT): Likewise.
5316         (BT_FN_LONG_PTR_LONG): Likewise.
5317         (BT_FN_ULONG_PTR_ULONG): Likewise.
5318         (BT_FN_VOID_UINT64_UINT64): Likewise.
5319         (BT_FN_UINT8_UINT8_UINT8): Likewise.
5320         (BT_FN_INT8_INT8_INT8): Likewise.
5321         (BT_FN_INT16_INT16_INT16): Likewise.
5322         (BT_FN_INT_INT_INT): Likewise.
5323         (BT_FN_UINT_FLOAT_UINT): Likewise.
5324         (BT_FN_FLOAT_UINT_UINT): Likewise.
5325         (BT_FN_ULONG_UINT_UINT): Likewise.
5326         (BT_FN_ULONG_UINT_PTR): Likewise.
5327         (BT_FN_ULONG_ULONG_ULONG): Likewise.
5328         (BT_FN_UINT_UINT_UINT): Likewise.
5329         (BT_FN_VOID_UINT_PTR): Likewise.
5330         (BT_FN_UINT_UINT_PTR: Likewise.
5331         (BT_FN_UINT32_UINT64_PTR): Likewise.
5332         (BT_FN_INT_INT_UINT_UINT): Likewise.
5333         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5334         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5335         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5336         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5337         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5338         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5339         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5340         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5341         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5342         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5343         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5344         * doc/frontends.texi: List BRIG FE.
5345         * doc/install.texi (Testing): Add BRIG tesring requirements.
5346         * doc/invoke.texi (Overall Options): Mention BRIG.
5347         * doc/standards.texi (Standards): Doucment BRIG HSA version.
5349 2017-01-24  Richard Biener  <rguenther@suse.de>
5351         PR translation/79208
5352         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5354 2017-01-24  Martin Jambor  <mjambor@suse.cz>
5356         PR bootstrap/79198
5357         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5358         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5359         and known_contexts.
5361 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
5363         PR middle-end/79123
5364         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5365         casts from signed to unsigned really don't have a range.
5367 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
5369         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5370         GMP_RNDx for compatiblity.
5372 2017-01-24  Martin Liska  <mliska@suse.cz>
5374         PR bootstrap/79132
5375         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5376         that would prevent us to call alloca with -1 as argument.
5378 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
5380         * dwarf2out.c (output_compilation_unit_header, output_file_names):
5381         Avoid -Wformat-security warning.
5383 2017-01-23  Andrew Pinski  <apinski@cavium.com>
5385         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5386         cost table.
5388 2017-01-23  Martin Sebor  <msebor@redhat.com>
5390         PR middle-end/78703
5391         * gimple-ssa-sprintf.c (warn_level): New global.
5392         (format_integer): Use it here and throughout the rest of the file.
5393         Use the same switch to compute sign as base.
5394         (maybe_warn): New function.
5395         (format_directive): Factor out warnings into maybe_warn.
5396         Add debugging output.  Use warn_level.
5397         (add_bytes): Use warn_level.
5398         (pass_sprintf_length::compute_format_length): Add debugging output.
5399         (try_substitute_return_value): Same.
5400         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5402         PR middle-end/78703
5403         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5404         (struct fmtresult, format_integer, format_floating): Adjust.
5405         (fmtresult::fmtresult): Set max correctly in two argument ctor.
5406         (get_string_length, format_string,format_directive): Same.
5407         (pass_sprintf_length::compute_format_length): Same.
5408         (try_substitute_return_value): Simplify slightly.
5410         PR middle-end/78703
5411         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5412         (fmtresult::operator+=): Outlined.
5413         (struct fmtresult): Add ctors.
5414         (struct conversion_spec): Rename...
5415         (struct directive): ...to this.  Add and remove data members.
5416         (directive::set_width, directive::set_precision): New functions.
5417         (format_percent): Use fmtresult ctor.
5418         (get_width_and_precision): Remove.
5419         (format_integer): Make naming changes.  Avoid computing width and
5420         precision.
5421         (format_floating): Same.  Adjust indentation.
5422         (format_character, format_none): New functions.
5423         (format_string): Moved character handling to format_character.
5424         (format_directive): Remove arguments, change return type.
5425         (parse_directive): New function.
5426         (pass_sprintf_length::compute_format_length): Move directive
5427         parsing to parse_directive.
5429 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
5431         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5432         (assign_assembler_name_if_needed): ... this.
5433         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5434         (assign_assembler_name_if_needed): ... this.
5435         (free_lang_data_in_cgraph): Adjust callers.
5436         * cgraphunit.c (cgraph_node::analyze): Likewise.
5437         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5438         Likewise.
5440 2017-01-23  Richard Biener  <rguenther@suse.de>
5442         PR tree-optimization/79088
5443         PR tree-optimization/79188
5444         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5445         resetting loop bounds after last path deletion.  Reset loop
5446         bounds of the target loop, make code match the comments.
5447         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5448         Make sure loops need no fixups.
5450 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5452         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5453         exponent support with double type for first argument.
5454         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5455         type returned by __builtin_vec_extract_sig,
5456         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5457         functions from "vector int" to "vector unsigned int" or from
5458         "vector long long int" to "vector unsigned long long int".
5459         Changed type returned by __builtin_vec_extract_exp,
5460         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5461         functions from "vector int" to "vector unsigned int" or from
5462         "vector long long int" to "vector unsigned long long int".
5463         Changed return type of __builtin_vec_test_data_class,
5464         __builtin_vec_test_data_class_sp, and
5465         __builtin_vec_test_data_class_dp from "vector int" to
5466         "vector bool int" or from "vector long long int" to "vector bool
5467         long long int" and changed second argument type from "unsigned
5468         int" to "int".  Added new overloaded function forms "vector float
5469         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5470         "vector float __builtin_vec_insert_exp_sp (vector float, vector
5471         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5472         double, vector unsigned long long int)" and "vector double
5473         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5474         long int)".  Changed return type of
5475         __builtin_scalar_test_data_class and
5476         __builtin_scalar_test_data_class_sp and
5477         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5478         int" and changed second argument from "unsigned int" to "int".
5479         Changed type returned by __builtin_scalar_test_neg,
5480         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5481         from "int" to "bool int".  Added new overloaded function form
5482         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5483         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5484         exponent double-precision with floating point first argument.
5485         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5486         documentation of scalar_test_data_class, scalar_test_neg,
5487         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5488         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5489         vec_test_data_class built-in functions to reflect refinements in
5490         their type signatures.
5492 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
5494         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5495         size of buf.
5496         (aarch64_elf_asm_destructor): Likewise.
5498 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
5500         PR rtl-optimization/78634
5501         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5502         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5503         * ifcvt.c (noce_try_cmove): Add missing cost check.
5505         PR rtl-optimization/71724
5506         * combine.c (if_then_else_cond): Look for situations where it is
5507         beneficial to undo the work of one of the recursive calls.
5509 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
5511         PR tree-optimization/70754
5512         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5513         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
5514         combined stmt before it if not NULL.
5515         (combine_chains): Process refs reversely and compute dominance point
5516         for root ref.
5518 2017-01-23  Martin Liska  <mliska@suse.cz>
5520         PR tree-optimization/79196
5521         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5522         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
5523         instead of memcmp.
5524         (strlen_optimize_stmt): Call the renamed function.
5526 2017-01-23  Michael Matz  <matz@suse.de>
5528         PR tree-optimization/78384
5529         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5531 2017-01-23  Richard Biener  <rguenther@suse.de>
5533         PR tree-optimization/79186
5534         * tree-vrp.c (register_new_assert_for): Make sure we've seen
5535         both incoming edges before moving an assert.
5537 2017-01-23  Martin Jambor  <mjambor@suse.cz>
5539         * ipa-prop.c (load_from_param_1): Removed.
5540         (load_from_unmodified_param): Bits from load_from_param_1 put back
5541         here.
5542         (load_from_param): Removed.
5543         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5544         with stmt.  Reverted back to use of load_from_unmodified_param.
5546 2017-01-23  Martin Jambor  <mjambor@suse.cz>
5548         PR ipa/79108
5549         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5550         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
5551         field a pointer to garbage collected vector, mark lattices and
5552         ipcp_orig_node with GTY((skip)).
5553         (ipa_get_param_count): Adjust to descriptors being a pointer.
5554         (ipa_get_param): Likewise.
5555         (ipa_get_type): Likewise.
5556         (ipa_get_param_move_cost): Likewise.
5557         (ipa_set_param_used): Likewise.
5558         (ipa_get_controlled_uses): Likewise.
5559         (ipa_set_controlled_uses): Likewise.
5560         (ipa_is_param_used): Likewise.
5561         (ipa_node_params_t): Move into garbage collector.  New methods insert
5562         and remove.
5563         (ipa_node_params_sum): Annotate wth GTY(()).
5564         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5565         garbage collected.
5566         (ipa_load_from_parm_agg): Adjust declaration.
5567         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5568         * ipa-profile.c (ipa_profile): Likewise.
5569         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5570         (ipa_populate_param_decls): Make descriptors parameter garbage
5571         collected.
5572         (ipa_dump_param): Adjust to descriptors being a pointer.
5573         (ipa_alloc_node_params): Likewise.
5574         (ipa_initialize_node_params): Likewise.
5575         (load_from_param_1): Make descriptors parameter garbage collected.
5576         (load_from_unmodified_param): Likewise.
5577         (load_from_param): Likewise.
5578         (ipa_load_from_parm_agg): Likewise.
5579         (ipa_node_params::~ipa_node_params): Removed.
5580         (ipa_free_all_node_params): Remove call to delete operator.
5581         (ipa_node_params_t::insert): New.
5582         (ipa_node_params_t::remove): Likewise.
5583         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5584         copy known_csts and known_contexts vectors.
5585         (ipa_read_node_info): Adjust to descriptors being a pointer.
5586         (ipcp_modif_dom_walker): Make m_descriptors field garbage
5587         collected.
5588         (ipcp_transform_function): Make descriptors variable garbage
5589         collected.
5591 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
5593         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5594         * config/i386/avx512dqintrin.h: Ditto.
5595         * config/i386/avx512fintrin.h: Ditto.
5596         * gcc/config/i386/i386.c: Handle new builtins.
5597         * config/i386/i386-builtin.def: Add new builtins.
5598         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5599         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5601 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
5602             Martin Liska  <mliska@suse.cz>
5604         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5605         * asan.c (asan_expand_poison_ifn): Support stores and use
5606         appropriate ASAN report function.
5607         * internal-fn.c (expand_ASAN_POISON_USE): New function.
5608         * internal-fn.def (ASAN_POISON_USE): Declare.
5609         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5610         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5611         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5612         ASAN_POISON calls w/o LHS.
5613         * tree-ssa.c (execute_update_addresses_taken): Create clobber
5614         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5615         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5616         * gimplify.c (asan_poison_variables): Add attribute
5617         use_after_scope_memory to variables that really needs to live
5618         in memory.
5619         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5620         having the attribute.
5622 2017-01-23  Martin Liska  <mliska@suse.cz>
5624         * asan.c (create_asan_shadow_var): New function.
5625         (asan_expand_poison_ifn): Likewise.
5626         * asan.h (asan_expand_poison_ifn): New declaration.
5627         * internal-fn.c (expand_ASAN_POISON): Likewise.
5628         * internal-fn.def (ASAN_POISON): New builtin.
5629         * sanopt.c (pass_sanopt::execute): Expand
5630         asan_expand_poison_ifn.
5631         * tree-inline.c (copy_decl_for_dup_finish): Make function
5632         external.
5633         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5634         * tree-ssa.c (is_asan_mark_p): New function.
5635         (execute_update_addresses_taken): Rewrite local variables
5636         (identified just by use-after-scope as addressable) into SSA.
5638 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
5640         * doc/install.texi (Specific): opensource.apple.com uses https
5641         now. Remove trailing slash.
5643 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
5645         * README.Portability: Remove note on an Irix compatibility issue.
5647 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
5649         * gcov.c (INCLUDE_ALGORITHM): Define.
5650         (INCLUDE_VECTOR): Define.
5651         No longer include <vector> and <algorithm> directly.
5653 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
5655         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5656         to https.
5657         * doc/invoke.texi (Code Gen Options): Ditto.
5659 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
5661         PR lto/78407
5662         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5664 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
5666         rtl-optimization/79125
5667         * cprop.c (local_cprop_pass): Handle cases where we make an
5668         unconditional trap.
5670 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
5672         PR target/61729
5673         PR target/77850
5674         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5675         read from, for big endian.
5677 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
5679         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5680         register pauth builtins for LP64 only.
5682 2017-01-20  Marek Polacek  <polacek@redhat.com>
5684         PR c/79152
5685         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5686         non-case labels.
5688 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
5690         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5691         of safelen status.
5692         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5693         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5694         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5696 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5698         PR target/71270
5699         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5700         in big-endian mode when they are not a single duplicated value.
5702 2017-01-20  Richard Biener  <rguenther@suse.de>
5704         * BASE-VER: Bump to 7.0.1.
5706 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
5708         * omp-low.c (omplow_simd_context): New struct.  Use it...
5709         (lower_rec_simd_input_clauses): ...here and...
5710         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
5711         references to idx, lane, max_vf, is_simt.
5713 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
5715         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5716         mcpu=nps400.
5718 2017-01-20  Martin Jambor  <mjambor@suse.cz>
5720         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
5721         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
5722         gt-hsa-common.h.
5723         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5724         (GTFILES): Rename hsa.c to hsa-common.c.
5725         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5726         * hsa-dump.c: Likewise.
5727         * hsa-gen.c: Likewise.
5728         * hsa-regalloc.c: Likewise.
5729         * ipa-hsa.c: Likewise.
5730         * omp-expand.c: Likewise.
5731         * omp-low.c: Likewise.
5732         * toplev.c: Likewise.
5734 2017-01-20  Marek Polacek  <polacek@redhat.com>
5736         PR c/64279
5737         * doc/invoke.texi: Document -Wduplicated-branches.
5738         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
5739         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
5740         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
5741         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
5742         return 0 only when not OEP_LEXICOGRAPHIC.
5743         (fold_build_cleanup_point_expr): Use the expression
5744         location when building CLEANUP_POINT_EXPR.
5745         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
5746         * tree.c (add_expr): Handle error_mark_node.
5748 2017-01-20  Martin Liska  <mliska@suse.cz>
5750         PR lto/69188
5751         * tree-profile.c (init_ic_make_global_vars): Do not call
5752         finalize_decl.
5753         (gimple_init_gcov_profiler): Likewise.
5755 2017-01-20  Martin Liska  <mliska@suse.cz>
5757         PR ipa/71190
5758         * cgraph.h (maybe_create_reference): Remove argument and
5759         update comment.
5760         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
5761         argument.
5762         * ipa-cp.c (create_specialized_node): Likewise.
5763         * symtab.c (symtab_node::maybe_create_reference): Handle
5764         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
5766 2017-01-20  Martin Liska  <mliska@suse.cz>
5768         * read-rtl-function.c (function_reader::create_function): Use
5769         build_decl instread of build_decl_stat.
5771 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
5773         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
5774         * config/i386/avx512dqintrin.h: Ditto.
5775         * config/i386/avx512fintrin.h: Ditto.
5776         * config/i386/i386-builtin-types.def: Add new types.
5777         * gcc/config/i386/i386.c: Handle new types.
5778         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
5779         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
5780         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
5781         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
5782         (__builtin_ia32_kshiftridi): New.
5783         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
5785 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
5787         PR target/78875
5788         PR target/79140
5789         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
5790         define to rs6000_init_stack_protect_guard.
5791         (rs6000_init_stack_protect_guard): New function.
5793 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
5794             Yunqiang Su  <yunqiang.su@imgtec.com>
5796         * config.gcc (supported_defaults): Add madd4.
5797         (with_madd4): Add validation.
5798         (all_defaults): Add madd4.
5799         * config/mips/mips.opt (mmadd4): New option.
5800         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5801         mmadd4.
5802         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5803         __mips_no_madd4.
5804         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
5805         (ISA_HAS_FUSED_MADD4): Likewise.
5806         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
5807         * gcc/doc/install.texi (--with-madd4): Document the new option.
5809 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5811         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
5812         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
5813         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
5814         (aarch64_init_pauth_hint_builtins): New.
5815         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
5816         (aarch64_expand_builtin): Expand new builtins.
5818 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5820         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
5821         * combine-stack-adj.c (no_unhandled_cfa): Handle
5822         REG_CFA_TOGGLE_RA_MANGLE.
5823         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
5824         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
5825         info for return address signing.
5826         (aarch64_expand_epilogue): Likewise.
5828 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5830         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
5831         * config/aarch64/aarch64-protos.h
5832         (aarch64_return_address_signing_enabled): New declaration.
5833         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
5834         New function.
5835         (aarch64_expand_prologue): Sign return address before it's pushed onto
5836         stack.
5837         (aarch64_expand_epilogue): Authenticate return address fetched from
5838         stack.
5839         (aarch64_override_options): Sanity check for ILP32 and ISA level.
5840         (aarch64_attributes): New function attributes for "sign-return-address".
5841         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
5842         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
5843         ("*do_return"): Generate combined instructions according to key index.
5844         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
5845         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
5846         iterators.
5847         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
5848         * config/aarch64/aarch64.opt (msign-return-address=): New.
5849         * doc/extend.texi (AArch64 Function Attributes): Documents
5850         "sign-return-address=".
5851         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
5853 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
5855         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
5856         overall option summary.
5858 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
5860         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
5861         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
5862         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
5863         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
5865 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
5867         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
5868         -mpower9-minmax by default for -mcpu=power9.
5869         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
5870         128-bit floating point.
5872 2017-01-20  Alan Modra  <amodra@gmail.com>
5874         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
5875         optimizing for size.
5877 2017-01-20  Alan Modra  <amodra@gmail.com>
5879         PR target/79144
5880         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
5881         for strcmp and strncmp from corresponding builtin decl.
5883 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
5885         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
5886         instead of i386/rtems-64.h.
5887         * config/i386/rtems-64.h: Remove.
5889 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
5891         PR target/78478
5892         Revert:
5893         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5895         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
5897 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
5899         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
5900         Change int to HOST_WIDE_INT.
5901         * config/aarch64/aarch64-protos.h
5902         (aarch64_simd_gen_const_vector_dup): Likewise.
5903         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
5905 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
5907         * langhooks-def.h (lhd_type_for_size): New decl.
5908         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
5909         * langhooks.c (lhd_type_for_size): New function, taken from
5910         lto_type_for_size.
5912 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
5914         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
5915         define_bypass for CR latency.
5916         (power9-cracked-alu): Update bypass latency and remove power9-branch.
5917         (power9-alu2): Add define_bypass for CR latency.
5918         (power9-cmp): New.
5919         (power9-mul): Update insn latency.
5920         (power9-mul-compare): Update insn latency, bypass latency and remove
5921         power9-branch.
5923 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5925         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5926         Delete.
5927         * config/aarch64/aarch64.md
5928         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
5929         aarch64_nopcrelative_literal_loads.
5930         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5932 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
5934         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
5935         TARGET_LOONGSON_3A.
5936         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
5938 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
5940         PR target/78176
5941         * config.gcc (supported_defaults): Add lxc1-sxc1.
5942         (with_lxc1_sxc1): Add validation.
5943         (all_defaults): Add lxc1-sxc1.
5944         * config/mips/mips.opt (mlxc1-sxc1): New option.
5945         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5946         mlxc1-sxc1.
5947         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5948         __mips_no_lxc1_sxc1.
5949         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
5950         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
5951         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
5953 2017-01-19  Richard Biener  <rguenther@suse.de>
5955         PR tree-optimization/72488
5956         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
5957         sure to restore SSA info.
5958         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
5960 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
5962         PR rtl-optimization/79121
5963         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
5964         of the inner type when shifting an extended value.
5966 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
5968         PR lto/78407
5969         * symtab.c (symtab_node::equal_address_to): Fix comparing of
5970         interposable aliases.
5972 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
5974         PR target/78516
5975         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
5976         Use the evmergelohi instruction.
5977         (mov_si<mode>_e500_subreg4_2_le): Likewise.
5978         (mov_sitf_e500_subreg8_2_be): Likewise.
5979         (mov_sitf_e500_subreg12_2_le): Likewise.
5980         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
5981         (mov_si<mode>_e500_subreg4_2_be): Likewise.
5982         (mov_sitf_e500_subreg8_2_le): Likewise.
5983         (mov_sitf_e500_subreg12_2_be): Likewise.
5985 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5987         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
5988         attribute from vecsimple to vecperm.
5989         (altivec_vbpermq2): Likewise.
5991 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5993         PR target/79040
5994         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
5996 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5997         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
5998         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
5999         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
6000         case where N arg is SIZE_MAX.
6001         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
6002         (cmpstrsi): Add pattern.
6004 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6006         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6007         __builtin_vec_revb builtins.
6008         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
6009         built-in functions to support generation of the ISA 3.0 XXBR<x>
6010         vector byte reverse instructions.
6011         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
6012         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
6013         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
6014         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
6015         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
6016         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
6017         (P9V_BUILTIN_VEC_REVB): Likewise.
6018         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
6019         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
6020         (p9_xxbrq_v16qi): Likewise.
6021         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
6022         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
6023         (p9_xxbrh_v8hi): Likewise.
6024         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
6025         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
6026         vec_revb built-in functions.
6028 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
6030         PR rtl-optimization/78952
6031         * config/i386/i386.md (any_extract): New code iterator.
6032         (*insvqi_2): Use any_extract for source operand.
6033         (*insvqi_3): Use any_shiftrt for source operand.
6035 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
6037         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
6038         New function.
6039         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
6041 2017-01-18  Matthias Klose  <doko@ubuntu.com>
6043         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
6045 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6047         * config/rs6000/altivec.h (vec_bperm): Change #define.
6048         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
6049         (altivec_vbpermq2): New define_insn.
6050         (altivec_vbpermd): Likewise.
6051         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
6052         function interface.
6053         (VBPERMD): Likewise.
6054         (VBPERM): New polymorphic function interface.
6055         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
6056         Add entries for P9V_BUILTIN_VEC_VBPERM.
6057         * doc/extend.texi: Add interfaces for vec_bperm.
6059 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6061         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
6062         first letter of error messages.
6063         (s390_resolve_overloaded_builtin): Likewise.
6064         * config/s390/s390.c (s390_expand_builtin): Likewise.
6065         (s390_invalid_arg_for_unprototyped_fn): Likewise.
6066         (s390_valid_target_attribute_inner_p): Likewise.
6067         * config/s390/s390.md ("tabort"): Likewise.
6069 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
6071         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
6072         (ISA_AVOID_DIV_HILO): New macro.
6073         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
6074         (ISA_HAS_DDIV): Likewise.
6076 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6078         * doc/invoke.texi (fabi-version): Correct number of occurrences.
6080 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6082         * doc/invoke.texi (fabi-version): Spelling fix.
6084 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6086         PR c++/70182
6087         * doc/invoke.texi (fabi-version): Mention mangling fix for
6088         operator names.
6090 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6092         PR c++/77489
6093         * doc/invoke.texi (fabi-version): Document discriminator mangling.
6095 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
6097         PR target/78875
6098         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
6099         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
6100         the new options.
6101         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
6102         flexible settings.
6103         (stack_protect_test): Ditto.
6104         * config/rs6000/rs6000.opt (mstack-protector-guard=,
6105         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
6106         options.
6107         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
6108         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
6109         -mstack-protector-guard-offset=.
6110         (RS/6000 and PowerPC Options): Ditto.
6112 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
6114         * config/i386/i386.h (MASK_CLASS_P): New define.
6115         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
6116         there are no registers from different register sets also when
6117         mask registers are used.  Update function comment.
6118         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
6119         to (*k/*r) and (*k/*km) alternatives.
6121 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
6123         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
6124         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
6125         (EH_RETURN_HANDLER_RTX): New define.
6126         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
6127         Force frame pointer in EH return functions.
6128         (aarch64_expand_epilogue): Add barrier for eh_return.
6129         (aarch64_final_eh_return_addr): Remove.
6130         (aarch64_eh_return_handler_rtx): New function.
6131         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
6132         Remove.
6133         (aarch64_eh_return_handler_rtx): New prototype.
6135 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6137         * config/rs6000/altivec.h (vec_rlmi): New #define.
6138         (vec_vrlnm): Likewise.
6139         (vec_rlnm): Likewise.
6140         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
6141         (UNSPEC_VRLNM): Likewise.
6142         (VIlong): New mode iterator.
6143         (altivec_vrl<VI_char>mi): New define_insn.
6144         (altivec_vrl<VI_char>nm): Likewise.
6145         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
6146         function entry.
6147         (VRLDNM): Likewise.
6148         (RLNM): New polymorphic function entry.
6149         (VRLWMI): New monomorphic function entry.
6150         (VRLDMI): Likewise.
6151         (RLMI): New polymorphic function entry.
6152         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
6153         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
6154         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
6155         vec_vrlnm.
6157 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6159         PR debug/78839
6160         * dwarf2out.c (field_byte_offset): Restore the
6161         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
6162         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
6163         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
6164         of build2 + fold.
6166 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6168         PR ada/67205
6169         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
6171 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6173         PR debug/71669
6174         * dwarf2out.c (add_data_member_location_attribute): For constant
6175         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
6176         instead of DW_AT_data_member_location, DW_AT_bit_offset and
6177         DW_AT_byte_size attributes.
6179 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6181         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
6182         after forcing to constant memory when the code model is medium.
6184 2017-01-17  Julia Koval  <julia.koval@intel.com>
6186         PR target/76731
6187         * config/i386/avx512fintrin.h
6188         (_mm512_i32gather_ps): Change __addr type to void const*.
6189         (_mm512_mask_i32gather_ps): Ditto.
6190         (_mm512_i32gather_pd): Ditto.
6191         (_mm512_mask_i32gather_pd): Ditto.
6192         (_mm512_i64gather_ps): Ditto.
6193         (_mm512_mask_i64gather_ps): Ditto.
6194         (_mm512_i64gather_pd): Ditto.
6195         (_mm512_mask_i64gather_pd): Ditto.
6196         (_mm512_i32gather_epi32): Ditto.
6197         (_mm512_mask_i32gather_epi32): Ditto.
6198         (_mm512_i32gather_epi64): Ditto.
6199         (_mm512_mask_i32gather_epi64): Ditto.
6200         (_mm512_i64gather_epi32): Ditto.
6201         (_mm512_mask_i64gather_epi32): Ditto.
6202         (_mm512_i64gather_epi64): Ditto.
6203         (_mm512_mask_i64gather_epi64): Ditto.
6204         (_mm512_i32scatter_ps): Change __addr type to void*.
6205         (_mm512_mask_i32scatter_ps): Ditto.
6206         (_mm512_i32scatter_pd): Ditto.
6207         (_mm512_mask_i32scatter_pd): Ditto.
6208         (_mm512_i64scatter_ps): Ditto.
6209         (_mm512_mask_i64scatter_ps): Ditto.
6210         (_mm512_i64scatter_pd): Ditto.
6211         (_mm512_mask_i64scatter_pd): Ditto.
6212         (_mm512_i32scatter_epi32): Ditto.
6213         (_mm512_mask_i32scatter_epi32): Ditto.
6214         (_mm512_i32scatter_epi64): Ditto.
6215         (_mm512_mask_i32scatter_epi64): Ditto.
6216         (_mm512_i64scatter_epi32): Ditto.
6217         (_mm512_mask_i64scatter_epi32): Ditto.
6218         (_mm512_i64scatter_epi64): Ditto.
6219         (_mm512_mask_i64scatter_epi64): Ditto.
6220         * config/i386/avx512pfintrin.h
6221         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
6222         (_mm512_mask_prefetch_i32gather_ps): Ditto.
6223         (_mm512_mask_prefetch_i64gather_pd): Ditto.
6224         (_mm512_mask_prefetch_i64gather_ps): Ditto.
6225         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
6226         (_mm512_prefetch_i32scatter_ps): Ditto.
6227         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
6228         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
6229         (_mm512_prefetch_i64scatter_pd): Ditto.
6230         (_mm512_prefetch_i64scatter_ps): Ditto.
6231         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6232         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6233         * config/i386/avx512vlintrin.h
6234         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6235         (_mm_mmask_i32gather_ps): Ditto.
6236         (_mm256_mmask_i32gather_pd): Ditto.
6237         (_mm_mmask_i32gather_pd): Ditto.
6238         (_mm256_mmask_i64gather_ps): Ditto.
6239         (_mm_mmask_i64gather_ps): Ditto.
6240         (_mm256_mmask_i64gather_pd): Ditto.
6241         (_mm_mmask_i64gather_pd): Ditto.
6242         (_mm256_mmask_i32gather_epi32): Ditto.
6243         (_mm_mmask_i32gather_epi32): Ditto.
6244         (_mm256_mmask_i32gather_epi64): Ditto.
6245         (_mm_mmask_i32gather_epi64): Ditto.
6246         (_mm256_mmask_i64gather_epi32): Ditto.
6247         (_mm_mmask_i64gather_epi32): Ditto.
6248         (_mm256_mmask_i64gather_epi64): Ditto.
6249         (_mm_mmask_i64gather_epi64): Ditto.
6250         (_mm256_i32scatter_ps): Change __addr type to void*.
6251         (_mm256_mask_i32scatter_ps): Ditto.
6252         (_mm_i32scatter_ps): Ditto.
6253         (_mm_mask_i32scatter_ps): Ditto.
6254         (_mm256_i32scatter_pd): Ditto.
6255         (_mm256_mask_i32scatter_pd): Ditto.
6256         (_mm_i32scatter_pd): Ditto.
6257         (_mm_mask_i32scatter_pd): Ditto.
6258         (_mm256_i64scatter_ps): Ditto.
6259         (_mm256_mask_i64scatter_ps): Ditto.
6260         (_mm_i64scatter_ps): Ditto.
6261         (_mm_mask_i64scatter_ps): Ditto.
6262         (_mm256_i64scatter_pd): Ditto.
6263         (_mm256_mask_i64scatter_pd): Ditto.
6264         (_mm_i64scatter_pd): Ditto.
6265         (_mm_mask_i64scatter_pd): Ditto.
6266         (_mm256_i32scatter_epi32): Ditto.
6267         (_mm256_mask_i32scatter_epi32): Ditto.
6268         (_mm_i32scatter_epi32): Ditto.
6269         (_mm_mask_i32scatter_epi32): Ditto.
6270         (_mm256_i32scatter_epi64): Ditto.
6271         (_mm256_mask_i32scatter_epi64): Ditto.
6272         (_mm_i32scatter_epi64): Ditto.
6273         (_mm_mask_i32scatter_epi64): Ditto.
6274         (_mm256_i64scatter_epi32): Ditto.
6275         (_mm256_mask_i64scatter_epi32): Ditto.
6276         (_mm_i64scatter_epi32): Ditto.
6277         (_mm_mask_i64scatter_epi32): Ditto.
6278         (_mm256_i64scatter_epi64): Ditto.
6279         (_mm256_mask_i64scatter_epi64): Ditto.
6280         (_mm_i64scatter_epi64): Ditto.
6281         (_mm_mask_i64scatter_epi64): Ditto.
6282         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6283         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6284         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6285         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6286         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6287         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6288         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6289         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6290         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6291         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6292         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6293         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6294         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6295         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6296         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6297         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6298         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6299         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6300         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6301         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6302         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6303         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6304         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6305         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6306         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6307         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6308         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6309         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
6310         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6311         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6312         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6313         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6314         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6315         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6316         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6317         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6318         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6319         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6320         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6321         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6322         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6323         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6324         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6325         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6326         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6327         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6328         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6329         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6330         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6331         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6332         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6333         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6334         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6335         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6336         definitions accordingly.
6338 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
6339             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
6341         PR target/79079
6342         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6343         gen_lowpart.
6345 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
6347         PR target/79058
6348         * ira-conflicts.c (ira_build_conflicts): Update total conflict
6349         hard regs for inner regno.
6351 2017-01-17  Martin Liska  <mliska@suse.cz>
6353         PR ipa/71207
6354         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6355         assumption and add comment.
6357 2017-01-17  Nathan Sidwell  <nathan@acm.org>
6359         * ipa-visibility.c (localize_node): New function, broken out of ...
6360         (function_and_variable_visibility): ... here. Call it.
6362 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
6364         PR middle-end/77445
6365         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6366         correctly set frequency of oudgoing edge.
6367         (duplicate_thread_path): Fix profile updating.
6369 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6371         PR other/79046
6372         * configure.ac: Add GCC_BASE_VER.
6373         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6374         version from BASE-VER file.
6375         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6376         (gcc.o): Depend on $(BASEVER).
6377         * common.opt (dumpfullversion): New option.
6378         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6379         * doc/invoke.texi: Document -dumpfullversion.
6380         * doc/install.texi: Document --with-gcc-major-version-only.
6381         * configure: Regenerated.
6383 2017-01-17  Richard Biener  <rguenther@suse.de>
6385         PR tree-optimization/71433
6386         * tree-vrp.c (register_new_assert_for): Merge same asserts
6387         on all incoming edges.
6388         (process_assert_insertions_for): Handle insertions at the
6389         beginning of BBs.
6391 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
6393         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6394         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6396 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6398         PR target/78633
6399         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6400         RTL sharing.
6402 2017-01-17  Alan Modra  <amodra@gmail.com>
6404         PR target/79066
6405         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6406         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6407         symbolic stack limit when pic.
6409 2017-01-16  Martin Sebor  <msebor@redhat.com>
6411         PR tree-optimization/78608
6412         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6414 2017-01-16  Jeff Law  <law@redhat.com>
6416         Revert:
6417         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
6418         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6419         for several include directories that may be relative to sysroot.
6420         * config/i386/x-mingw32 (gplus_includedir): Define.
6421         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6422         (native_system_includedir): Likewise.
6423         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6424         override if TARGET_SYSTEM_ROOT is defined.
6425         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6427         PR tree-optimization/79090
6428         PR tree-optimization/33562
6429         PR tree-optimization/61912
6430         PR tree-optimization/77485
6431         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
6432         and computed trims into the dump file.
6434 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
6436         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6438 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
6440         PR c/79089
6441         * gimplify.c (gimplify_init_constructor): If want_value and
6442         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
6443         fix.
6445         PR target/79080
6446         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6447         sequence.  Formatting fixes.
6448         (doloop_optimize): Formatting fixes.
6450         PR driver/49726
6451         * gcc.c (debug_level_greater_than_spec_func): New function.
6452         (static_spec_functions): Add debug-level-gt spec function.
6453         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6454         !g0.
6455         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6456         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6457         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6458         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6459         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6460         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6462 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
6464         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6465         QImode fixups to general and mask registers only.
6467 2017-01-16  Carl Love  <cel@us.ibm.com>
6469         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6470         for built-in functions
6471         vector signed char vec_nabs (vector signed char)
6472         vector signed short vec_nabs (vector signed short)
6473         vector signed int vec_nabs (vector signed int)
6474         vector signed long long vec_nabs (vector signed long long)
6475         vector float vec_nabs (vector float)
6476         vector double vec_nabs (vector double)
6477         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6478         and NABS overload.
6479         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6480         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6481         * doc/extend.texi: Update the documentation file for the new built-in
6482         functions.
6484 2017-01-16  Martin Sebor  <msebor@redhat.com>
6486         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6487         message.
6489 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6491         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6492         UNSPEC_VSX__XXSPLTD to require special splat handling.
6494 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
6496         PR bootstrap/78616
6497         * system.h: Poison strndup.
6499 2017-01-16  Alan Modra  <amodra@gmail.com>
6501         PR target/79098
6502         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6503         use a switch.
6505 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
6507         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6509 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
6511         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6512         call recog here.  Assert that INSN_CODE (insn) is non-negative.
6514 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
6516         PR target/72749
6517         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6518         fallthrough.
6519         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6520         in the currently scheduled RTL fragment.
6522 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
6524         PR rtl-optimization/78751
6525         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6526         give up.
6528 2017-01-14  Jeff Law  <law@redhat.com>
6530         PR tree-optimization/79090
6531         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6532         variable length stores.
6533         (compute_trims): Delete dead assignment to *trim_tail.
6534         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6535         zero length.
6537 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
6539         PR rtl-optimization/78626
6540         PR rtl-optimization/78727
6541         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6542         of a block, and split such blocks after everything else is finished.
6544 2017-01-14  Alan Modra  <amodra@gmail.com>
6546         PR target/72749
6547         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6548         target legitimate_combined_insn.
6549         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6550         (rs6000_legitimate_combined_insn): New function.
6551         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6552         all uses.
6553         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6554         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6555         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6557 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
6559         * doc/frontends.texi (G++ and GCC): Remove references to Java.
6561 2017-01-13  Jeff Law  <law@redhat.com>
6563         PR tree-optimization/33562
6564         PR tree-optimization/61912
6565         PR tree-optimization/77485
6566         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6567         a statement.
6568         (delete_dead_assignment): Likewise.
6569         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6570         statement to delete_dead_call and delete_dead_assignment.
6572 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
6574         PR c/78304
6575         * substring-locations.c (format_warning_va): Strengthen case 1 so
6576         that both endpoints of the substring must be within the format
6577         range for just the substring to be printed.
6579 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
6581         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6582         * config/i386/i386.c (ix86_target_string): Add missing options
6583         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
6584         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6585         flags_other and ix86_target_other to flags2_other.  Display unknown
6586         isa2 options.
6587         (ix86_valid_target_attribute_inner_p): Add missing options and
6588         reorder options by implied ISAs, as in ix86_target_string.
6590 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
6592         * hash-table.h (hash_table::too_empty_p): New function.
6593         (hash_table::expand): Use it.
6594         (hash_table::traverse): Likewise.
6595         (hash_table::empty_slot): Use sizeof (value_type) instead of
6596         sizeof (PTR) to convert bytes to elements.  Shrink the table
6597         if the current size is excessive for the current number of
6598         elements.
6600 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
6602         * ira-costs.c (record_reg_classes): Break from the inner loop
6603         early once alt_fail is known to be true.  Update outer loop
6604         handling accordingly.
6606 2017-01-13  Jeff Law  <law@redhat.com>
6608         * tree-ssa-dse.c (decrement_count): New function.
6609         (increment_start_addr, maybe_trim_memstar_call): Likewise.
6610         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6611         when we know the partially dead statement is a mem* function.
6613         PR tree-optimization/61912
6614         PR tree-optimization/77485
6615         * tree-ssa-dse.c: Include expr.h.
6616         (maybe_trim_constructor_store): New function.
6617         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6619         PR tree-optimization/33562
6620         PR tree-optimization/61912
6621         PR tree-optimization/77485
6622         * doc/invoke.texi: Document new dse-max-object-size param.
6623         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6624         * tree-ssa-dse.c: Include params.h.
6625         (dse_store_status): New enum.
6626         (initialize_ao_ref_for_dse): New, partially extracted from
6627         dse_optimize_stmt.
6628         (valid_ao_ref_for_dse, normalize_ref): New.
6629         (setup_live_bytes_from_ref, compute_trims): Likewise.
6630         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6631         (maybe_trim_partially_dead_store): Likewise.
6632         (maybe_trim_complex_store): Likewise.
6633         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6634         Track what bytes live from the original store.  Return tri-state
6635         for dead, partially dead or live.
6636         (dse_dom_walker): Add constructor, destructor and new private members.
6637         (delete_dead_call, delete_dead_assignment): New extracted from
6638         dse_optimize_stmt.
6639         (dse_optimize_stmt): Make a member of dse_dom_walker.
6640         Use initialize_ao_ref_for_dse.
6642         PR tree-optimization/33562
6643         PR tree-optimization/61912
6644         PR tree-optimization/77485
6645         * sbitmap.h (bitmap_count_bits): Prototype.
6646         (bitmap_clear_range, bitmap_set_range): Likewise.
6647         * sbitmap.c (bitmap_clear_range): New function.
6648         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6650 2017-01-13  Martin Liska  <mliska@suse.cz>
6652         PR ipa/79043
6653         * function.c (set_cfun): Add new argument force.
6654         * function.h (set_cfun): Likewise.
6655         * ipa-inline-transform.c (inline_call): Use the function when
6656         strict alising from is dropped for function we inline to.
6658 2017-01-13  Richard Biener  <rguenther@suse.de>
6660         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6661         for dumping GIMPLE INTEGER_CSTs.
6663 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6665         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6666         to 201112L since C++17.
6668 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
6670         PR sanitizer/78887
6671         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6672         if -fsanitize=kernel-address is present.
6674 2017-01-13  Richard Biener  <rguenther@suse.de>
6676         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6677         as _Literal ( type ) number in case usual suffixes do not
6678         preserve all information.
6680 2017-01-13  Richard Biener  <rguenther@suse.de>
6682         PR tree-optimization/77283
6683         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6684         and ssa-iterators.h.
6685         (is_feasible_trace): Implement a cost model based on joiner
6686         PHI node uses.
6688 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6690         PR target/79004
6691         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6692         char or short to __float128/_Float128 directly.
6694 2017-01-12  Martin Sebor  <msebor@redhat.com>
6696         to -Wformat-overflow.
6697         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6698         (min_bytes_remaining): Same.
6699         (get_string_length): Same.
6700         (format_string): Same.
6701         (format_directive): Same.
6702         (add_bytes): Same.
6703         (pass_sprintf_length::handle_gimple_call): Same.
6705 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
6707         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6708         info.nowrite calls with no lhs that can't throw.  Return bool
6709         whether gsi_remove has been called or not.
6710         (pass_sprintf_length::handle_gimple_call): Return bool whether
6711         try_substitute_return_value called gsi_remove.  Formatting fix.
6712         (pass_sprintf_length::execute): Don't use gsi_remove if
6713         handle_gimple_call returned true.
6715         PR bootstrap/79069
6716         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6717         be removed due to side-effects, don't remove following barrier nor
6718         turn the successor edge into fallthru edge.
6720 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6722         PR target/79044
6723         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6724         element-reversing loads and stores as not swappable.
6726 2017-01-12  Nathan Sidwell  <nathan@acm.org>
6727             Nicolai Stange  <nicstange@gmail.com>
6729         * combine.c (try_combine): Don't ignore result of overlap checking
6730         loop.  Combine overlap & asm check into single loop.
6732 2017-01-12  Richard Biener  <rguenther@suse.de>
6734         * tree-pretty-print.c (dump_generic_node): Provide -gimple
6735         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
6737 2017-01-12  Richard Biener  <rguenther@suse.de>
6739         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
6740         and TS_TARGET_OPTION directly derive from TS_BASE.
6741         * tree-core.h (tree_optimization_option): Derive from tree_base.
6742         (tree_target_option): Likewise.
6744 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
6746         * config/i386/i386.c (memory_address_length): Increase len
6747         only when rip_relative_addr_p returns false.
6749 2017-01-11  Julia Koval  <julia.koval@intel.com>
6751         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
6752         (OPTION_MASK_ISA_SGX_SET): New.
6753         (ix86_handle_option): Handle OPT_msgx.
6754         * config.gcc: Added sgxintrin.h.
6755         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
6756         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
6757         * config/i386/i386.c (ix86_target_string): Add -msgx.
6758         (PTA_SGX): New.
6759         (ix86_option_override_internal): Handle new options.
6760         (ix86_valid_target_attribute_inner_p): Add sgx.
6761         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
6762         * config/i386/i386.opt: Add msgx.
6763         * config/i386/sgxintrin.h: New file.
6764         * config/i386/x86intrin.h: Add sgxintrin.h.
6766 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
6768         PR c++/71537
6769         * fold-const.c (maybe_nonzero_address): Return 1 for function
6770         local objects.
6771         (tree_single_nonzero_warnv_p): Don't handle function local objects
6772         here.
6774         PR c++/72813
6775         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
6776         of c-header.
6778 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
6780         PR driver/78877
6781         * opts.c: Include "spellcheck.h"
6782         (struct string_fragment): New struct.
6783         (struct edit_distance_traits<const string_fragment &>): New
6784         struct.
6785         (get_closest_sanitizer_option): New function.
6786         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
6788 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
6790         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
6791         by 12.
6792         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
6793         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
6794         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
6795         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
6796         for initial die_offset if dwarf_split_debug_info.
6797         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
6798         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
6799         fields.
6800         (output_skeleton_debug_sections): Formatting fix.  Use
6801         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
6802         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
6804 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
6806         * config/arm/cortex-a53.md: Add bypasses for
6807         cortex_a53_r2f_cvt.
6808         (cortex_a53_r2f): Only use for transfers.
6809         (cortex_a53_f2r): Likewise.
6810         (cortex_a53_r2f_cvt): Add reservation for conversions.
6811         (cortex_a53_f2r_cvt): Likewise.
6813 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
6815         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
6816         to all inlined functions, change static to extern.
6818 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
6820         PR target/78253
6821         * config/arm/arm.c (legitimize_pic_address): Handle reference to
6822         weak symbol.
6823         (arm_assemble_integer): Likewise.
6825 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
6827         * config.gcc: Use new awk script to check CPU, FPU and architecture
6828         parameters for --with-... options.
6829         * config/arm/parsecpu.awk: New file
6830         * config/arm/arm-cpus.in: New file.
6831         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
6832         files.
6833         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
6834         files.
6835         * config/arm/t-arm: Update dependency rules.
6836         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
6837         of processing .def files.
6838         * config/arm/genopt.sh: Deleted.
6839         * config/arm/gentune.sh: Deleted.
6840         * config/arm/arm-cores.def: Deleted.
6841         * config/arm/arm-arches.def: Deleted.
6842         * config/arm/arm-fpus.def: Deleted.
6843         * config/arm/arm-tune.md: Regenerated.
6844         * config/arm/arm-tables.opt: Regenerated.
6845         * config/arm/arm-cpu.h: New generated file.
6846         * config/arm/arm-cpu-data.h: New generated file.
6847         * config/arm/arm-cpu-cdata.h: New generated file.
6849 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
6851         PR lto/79042
6852         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
6853         bit.
6854         (input_varpool_node): Unpack dynamically_initialized bit.
6856 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6858         PR rtl-optimization/79032
6859         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
6860         the alignment of the adjusted memory reference against that of MODE,
6861         instead of the alignment of the original memory reference.
6863 2017-01-11  Martin Jambor  <mjambor@suse.cz>
6865         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
6866         test.
6867         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
6868         decorated functions.
6870 2017-01-11  Richard Biener  <rguenther@suse.de>
6872         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
6873         set range/nonnull info for PHI results.  Do not set it on
6874         stmts marked for removal.
6876 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
6878         * expr.c (store_field): In the bitfield case, fetch the return value
6879         from the registers before applying a single big-endian adjustment.
6880         Always do a final load for a BLKmode value not larger than a word.
6882 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
6884         PR c++/77949
6885         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6886         that we correctly handle column numbers greater than
6887         LINE_MAP_MAX_COLUMN_NUMBER.
6889 2017-01-10  Martin Sebor  <msebor@redhat.com>
6891         PR middle-end/78245
6892         * gimple-ssa-sprintf.c (get_destination_size): Call
6893         {init,fini}object_sizes.
6894         * tree-object-size.c (addr_object_size): Adjust.
6895         (pass_through_call): Adjust.
6896         (pass_object_sizes::execute): Adjust.
6897         * tree-object-size.h (fini_object_sizes): Declare.
6899 2017-01-10  Martin Sebor  <msebor@redhat.com>
6901         PR tree-optimization/78775
6902         * builtins.c (get_size_range): Move...
6903         * calls.c: ...to here.
6904         (alloc_max_size): Accept zero argument.
6905         (operand_signed_p): Remove.
6906         (maybe_warn_alloc_args_overflow): Call get_size_range.
6907         * calls.h (get_size_range): Declare.
6909 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
6911         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
6912         from TI's devices.csv file as of September 2016.
6913         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
6915 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
6917         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
6918         * doc/invoke.texi: Likewise.
6919         * doc/md.texi: Likewise.
6920         * doc/objc.texi: Likewise.
6922 2017-01-10  Joshua Conner  <joshconner@google.com>
6924         * config/arm/fuchsia-elf.h: New file.
6925         * config/fuchsia.h: New file.
6926         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
6927         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
6928         targets.
6929         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
6931 2016-01-10  Richard Biener  <rguenther@suse.de>
6933         PR tree-optimization/79034
6934         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6935         Propagate out degenerate PHIs in the joiner.
6937 2017-01-10  Martin Liska  <mliska@suse.cz>
6939         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
6940         (sort_congruence_classes_by_decl_uid): Likewise.
6941         (sort_congruence_class_groups_by_decl_uid): Likewise.
6942         (sem_item_optimizer::merge_classes): Sort class, groups in these
6943         classes and members in the groups by DECL_UID of declarations.
6944         This would make merge operations stable.
6946 2017-01-10  Martin Liska  <mliska@suse.cz>
6948         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
6949         usage of m_classes_vec.
6950         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
6951         (sem_item_optimizer::get_group_by_hash): Likewise.
6952         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6953         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
6954         (sem_item_optimizer::verify_classes): Likewise.
6955         (sem_item_optimizer::process_cong_reduction): Likewise.
6956         (sem_item_optimizer::dump_cong_classes): Likewise.
6957         (sem_item_optimizer::merge_classes): Likewise.
6958         * ipa-icf.h (congruence_class_hash): Rename from
6959         congruence_class_group_hash.  Remove declaration of m_classes_vec.
6961 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
6963         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
6964         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
6965         * config.gcc: Add avx512vpopcntdqintrin.h.
6966         * config/i386/avx512vpopcntdqintrin.h: New.
6967         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
6968         * config/i386/i386-builtin-types.def: Add new types.
6969         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
6970         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
6971         __builtin_ia32_vpopcountq_v8di_mask): New.
6972         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6973         __AVX512VPOPCNTDQ__.
6974         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
6975         (PTA_AVX512VPOPCNTDQ): Define.
6976         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
6977         TARGET_AVX512VPOPCNTDQ_P): Define.
6978         * config/i386/i386.opt: Add mavx512vpopcntdq.
6979         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
6980         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
6982 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
6984         PR middle-end/77484
6985         * predict.def (PRED_CALL): Set to 67.
6987 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
6989         * expr.c (store_field): In the bitfield case, if the value comes from
6990         a function call and is of an aggregate type returned in registers, do
6991         not modify the field mode; extract the value in all cases if the mode
6992         is BLKmode and the size is not larger than a word.
6994 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
6996         PR target/71017
6997         * config/i386/cpuid.h: Fix undefined behavior.
6999 2017-01-04  Jeff Law  <law@redhat.com>
7001         PR tree-optimization/79007
7002         PR tree-optimization/67955
7003         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
7004         conservative for pt.null when flag_non_call_exceptions is on.
7006 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
7008         PR translation/79019
7009         PR translation/79020
7010         * params.def (PARAM_INLINE_MIN_SPEEDUP,
7011         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
7012         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
7013         in descriptions.
7014         * config/avr/avr.opt (maccumulate-args): Likewise.
7015         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
7016         * common.opt (freport-bug): Likewise.
7017         * cif-code.def (CIF_FINAL_ERROR): Likewise.
7018         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
7019         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
7020         translatable string.
7021         * config/i386/i386.c (function_value_32): Likewise.
7022         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
7023         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
7024         Likewise.
7025         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
7026         * common/config/msp430/msp430-common.c (msp430_handle_option):
7027         Likewise.
7028         * symtab.c (symtab_node::verify_base): Likewise.
7029         * opts.c (set_debug_level): Likewise.
7030         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
7031         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7032         missing whitespace to translatable strings.
7033         * config/avr/avr.md (bswapsi2): Fix typo in comment.
7034         * config/sh/superh.h: Likewise.
7035         * config/i386/xopintrin.h: Likewise.
7036         * config/i386/znver1.md: Likewise.
7037         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
7038         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7039         * double-int.h (struct double_int): Likewise.
7040         * double-int.c (div_and_round_double): Likewise.
7041         * wide-int.cc: Likewise.
7042         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7043         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7044         * cfgcleanup.c (crossjumps_occured): Renamed to ...
7045         (crossjumps_occurred): ... this.
7046         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
7047         Adjust all uses.
7049         PR tree-optimization/78899
7050         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
7051         returning bool return struct loop *, NULL for failure and the new
7052         loop on success.
7053         (versionable_outer_loop_p): Don't version outer loop if it has
7054         dont_vectorized bit set.
7055         (tree_if_conversion): When versioning outer loop, ensure
7056         tree_if_conversion is performed also on the inner loop of the
7057         non-vectorizable outer loop copy.
7058         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
7059         LOOP_VECTORIZED in inner loop of the scalar outer loop and
7060         prevent vectorization of it.
7061         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
7062         the outer loop vectorization of the non-scalar version is attempted
7063         before vectorization of the inner loop in scalar version.  If
7064         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
7065         vectorization of its inner loop.
7066         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
7067         has 2 inner loops, rename also on edges from bb whose single pred
7068         is outer_loop->header.  Fix typo in function comment.
7070 2017-01-09  Martin Sebor  <msebor@redhat.com>
7072         PR bootstrap/79033
7073         * asan.c (asan_emit_stack_protection): Increase local buffer size
7074         to avoid snprintf truncation warning.
7076 2017-01-09  Andrew Pinski  <apinski@cavium.com>
7078         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
7079         to reference thunderx2t99 for the tuning structure
7080         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
7081         Rename to ...
7082         (thunderx2t99_extra_costs): This.
7083         * config/aarch64/aarch64-tune.md: Regenerate.
7084         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
7085         (vulcan_addrcost_table): This.
7086         (vulcan_regmove_cost): Rename to ...
7087         (thunderx2t99_regmove_cost): This.
7088         (vulcan_vector_cost): Rename to ...
7089         (thunderx2t99_vector_cost): this.
7090         (vulcan_branch_cost): Rename to ...
7091         (thunderx2t99_branch_cost): This.
7092         (vulcan_tunings): Rename to ...
7093         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
7094         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
7096 2017-01-09  Martin Jambor  <mjambor@suse.cz>
7098         PR ipa/78365
7099         PR ipa/78599
7100         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
7101         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
7102         (propagate_vr_accross_jump_function): Use the above function for all
7103         value range computations for pass-through jump functions and type
7104         converasion from explicit value range values.
7105         (ipcp_propagate_stage): Do not attempt to deduce types of formal
7106         parameters from TYPE_ARG_TYPES.
7107         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
7108         (ipa_write_node_info): Stream type of the actual argument.
7109         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
7111 2017-01-09  Martin Liska  <mliska@suse.cz>
7113         PR pch/78970
7114         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
7115         (lookup_compiler): Do not show error message with have_E.
7117 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
7119         PR tree-optimization/78938
7120         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
7121         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
7122         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
7123         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
7124         fixes.
7126 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7128         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
7129         is const0_rtx.
7131 2017-01-09  Richard Biener  <rguenther@suse.de>
7133         PR tree-optimization/78997
7134         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
7135         name condition properly.
7137 2017-01-09  Richard Biener  <rguenther@suse.de>
7139         PR debug/79000
7140         * dwarf2out.c (is_cxx): New overload with context.
7141         (is_naming_typedef_decl): Use it.
7143 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
7145         * invoke.texi (Option Summary): Correct spacing in option lists
7146         and add line breaks to fix over-long lines.
7148 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
7150         PR middle-end/17660
7152         * extend.texi (Common Variable Attributes): Add xref to GCC
7153         Internals manual to explain mode attribute keywords.
7155 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
7157         PR other/16519
7158         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
7159         and Preprocessor Options.
7160         (Options for Linking): Document -pthread here....
7161         (RS/6000 and PowerPC Options): ...not here.
7162         (Solaris 2 Options): ...or here.
7163         * doc/cppopts.texi: Document -pthread.
7165 2017-01-08  Martin Sebor  <msebor@redhat.com>
7167         PR middle-end/77708
7168         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
7169         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
7170         New member functions.
7171         (format_directive): Used them.
7172         (add_bytes): Same.
7173         (pass_sprintf_length::handle_gimple_call): Same.
7174         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
7175         to avoid truncation for any argument.
7176         (extract_affine_mul): Same.
7177         * tree.c (get_file_function_name): Same.
7179 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7181         PR middle-end/77484
7182         * predict.def (PRED_INDIR_CALL): Set to 86.
7184 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7186         PR preprocessor/54124
7187         * doc/cppopts.texi: Reformat -d subtable to list the full name
7188         of the options.  Add cross-reference to the docs for the general
7189         compiler -d options.
7190         * doc/invoke.texi (Developer Options): Add cross-reference to the
7191         preprocessor-specific -d option documentation.
7193 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7195         PR preprocessor/13498
7196         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
7197         redudant material, and reflect new command-line options.
7198         (System Headers): Likewise.
7200 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7202         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
7203         -isystem, and -idirafter.  Copy-edit.
7204         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
7205         default for -ftrack-macro-expansion.  Delete obsolete and
7206         badly-formatted implementation details about -fdebug-cpp output.
7207         * doc/cppwarnopts.texi: Copy-edit.
7209 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
7211         PR c++/72803
7212         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7213         that the transition from a max line width >= 1<<10 to narrower
7214         lines works correctly.
7216 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
7218         * doc/options.texi (PerFunction): New.
7219         * opt-functions.awk (switch_flags): Map both Optimization and
7220         PerFunction to CL_OPTIMIZATION.
7221         * opth-gen.awk: Test for PerFunction flag along with
7222         Optimization.
7223         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
7224         it only when the latter is present.  Skip those that don't in
7225         the hash function generator.
7226         * common.opt (fvar-tracking): Mark as PerFunction instead of
7227         Optimization.
7228         (fvar-tracking-assignments): Likewise.
7229         (fvar-tracking-assignments-toggle): Likewise.
7230         (fvar-tracking-uninit): Likewise.
7232 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
7234         PR translation/79018
7235         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7236         the and store.
7238 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
7240         PR target/57583
7241         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7242         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7243         TARGET_LONG_JUMP_TABLE_OFFSETS.
7244         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7245         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7246         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7247         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7248         * config/m68k/m68k.md (tablejump expander): Likewise.
7249         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7250         TARGET_LONG_JUMP_TABLE_OFFSETS.
7251         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7252         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7254 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7255             David Holsgrove <david.holsgrove@xilinx.com>
7257         * common/config/microblaze/microblaze-common.c
7258         (TARGET_EXCEPT_UNWIND_INFO): Remove.
7259         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7260         New prototype.
7261         * config/microblaze/microblaze.c (microblaze_must_save_register)
7262         (microblaze_expand_epilogue, microblaze_return_addr): Handle
7263         calls_eh_return.
7264         (microblaze_eh_return): New function.
7265         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7266         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7267         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7268         * config/microblaze/microblaze.md (eh_return): New pattern.
7270 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
7272         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7273         GCC_DIAGNOSTIC_STRINGIFY): Define.
7275         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7277 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7279         * config/arm/arm.md (<mcrr>): New.
7280         (<mrrc>): New.
7281         * config/arm/arm.c (arm_arch5te): New.
7282         (arm_option_override): Set arm_arch5te.
7283         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7284         and mrrc2.
7285         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7286         (arm_mcrr_qualifiers): ... this. New.
7287         (MRRC_QUALIFIERS): Define to...
7288         (arm_mrrc_qualifiers): ... this. New.
7289         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7290         __arm_mrrc2): New.
7291         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7292         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7293         (MRRCI, mrrc, MRRC): New.
7294         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7295         VUNSPEC_MRRC2): New.
7297 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7299         * config/arm/arm.md (<mcr>): New.
7300         (<mrc>): New.
7301         * config/arm/arm.c (arm_coproc_builtin_available): Add
7302         support for mcr, mrc, mcr2 and mrc2.
7303         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7304         (arm_mcr_qualifiers): ... this. New.
7305         (MRC_QUALIFIERS): Define to ...
7306         (arm_mrc_qualifiers): ... this. New.
7307         (MCR_QUALIFIERS): Define to ...
7308         (arm_mcr_qualifiers): ... this. New.
7309         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7310         __arm_mrc2): New.
7311         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7312         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7313         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7314         VUNSPEC_MRC2): New.
7316 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7318         * config/arm/arm.md (*ldc): New.
7319         (*stc): New.
7320         (<ldc>): New.
7321         (<stc>): New.
7322         * config/arm/arm.c (arm_coproc_builtin_available): Add
7323         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7324         (arm_coproc_ldc_stc_legitimate_address): New.
7325         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7326         'qualifier_const_pointer'.
7327         (LDC_QUALIFIERS): Define to...
7328         (arm_ldc_qualifiers): ... this. New.
7329         (STC_QUALIFIERS): Define to...
7330         (arm_stc_qualifiers): ... this. New.
7331         * config/arm/arm-protos.h
7332         (arm_coproc_ldc_stc_legitimate_address): New.
7333         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7334         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7335         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7336         stc2, stcl, stc2l): New.
7337         * config/arm/constraints.md (Uz): New.
7338         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7339         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7340         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7341         VUNSPEC_STC2L): New.
7343 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7345         * config/arm/arm.md (<cdp>): New.
7346         * config/arm/arm.c (neon_const_bounds): Rename this ...
7347         (arm_const_bounds): ... this.
7348         (arm_coproc_builtin_available): New.
7349         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7350         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7351         (CDP_QUALIFIERS): Define to...
7352         (arm_cdp_qualifiers): ... this. New.
7353         (void_UP): Define.
7354         (arm_expand_builtin_args): Add case for 6 arguments.
7355         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7356         (arm_const_bounds): ... this.
7357         (arm_coproc_builtin_available): New.
7358         * config/arm/arm_acle.h (__arm_cdp): New.
7359         (__arm_cdp2): New.
7360         * config/arm/arm_acle_builtins.def (cdp): New.
7361         (cdp2): New.
7362         * config/arm/iterators.md (CDPI,CDP,cdp): New.
7363         * config/arm/neon.md: Rename all 'neon_const_bounds' to
7364         'arm_const_bounds'.
7365         * config/arm/types.md (coproc): New.
7366         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7367         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7368         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7369         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7371 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7373         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7374         (UBINOP_QUALIFIERS): New.
7375         (si_UP): Define.
7376         (acle_builtin_data): New. Change comment.
7377         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7378         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7379         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7380         arm_acle_builtins.def.
7381         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7382         (arm_init_acle_builtins): New.
7383         (CRC32_BUILTIN): Remove.
7384         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7385         crc32cb, crc32ch and crc32cw.
7386         (arm_init_crc32_builtins): Remove.
7387         (arm_init_builtins): Use arm_init_acle_builtins rather
7388         than arm_init_crc32_builtins.
7389         (arm_expand_acle_builtin): New.
7390         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7391         * config/arm/arm_acle_builtins.def: New.
7393 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7395         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7396         (arm_builtin_datum): ... this.
7397         (arm_init_neon_builtin): Rename to ...
7398         (arm_init_builtin): ... this. Add a new parameters PREFIX
7399         and USE_SIG_IN_NAME.
7400         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7401         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7402         'arm_builtin_datum'.
7403         (arm_init_vfp_builtins): Likewise.
7404         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7405         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7406         (arm_expand_neon_args): Rename to ...
7407         (arm_expand_builtin_args): ... this. Rename builtin_arg
7408         enum values and differentiate between ARG_BUILTIN_MEMORY
7409         and ARG_BUILTIN_NEON_MEMORY.
7410         (arm_expand_neon_builtin_1): Rename to ...
7411         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7412         values, arm_expand_builtin_args and add bool parameter NEON.
7413         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7414         (arm_expand_vfp_builtin): Likewise.
7415         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7417 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7419         PR middle-end/77484
7420         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7421         * predict.c (tree_estimate_probability_bb): Reverse direction of
7422         polymorphic call predictor.
7424 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
7426         * passes.c (execute_one_pass): Split out pass-skipping logic into...
7427         (determine_pass_name_match): ...this new function and...
7428         (should_skip_pass_p): ...this new function.
7430 2017-01-06  Nathan Sidwell  <nathan@acm.org>
7432         * ipa-visibility.c (function_and_variable_visibility): Reformat
7433         comments and long lines.  Remove extrneous if.
7434         * symtab.c (symtab_node::make_decl_local): Fix code format.
7435         (symtab_node::set_section_for_node): Fix comment typo.
7437 2017-01-06  Martin Liska  <mliska@suse.cz>
7439         PR bootstrap/79003
7440         * lra-constraints.c: Rename invariant to lra_invariant.
7441         * predict.c (set_even_probabilities): Initialize e to NULL.
7443 2017-01-05  Martin Sebor  <msebor@redhat.com>
7445         PR tree-optimization/78910
7446         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7447         (format_integer): Correct off-by-one error in the handling
7448         of precision with negative numbers in signed conversions..
7450 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7452         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7454 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
7456         PR tree-optimization/71016
7457         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7458         factor_out_conditional_conversion.  Formatting fix.
7459         (factor_out_conditional_conversion): Add cond_stmt argument.
7460         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7461         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7462         Formatting fix.
7464 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
7466         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7467         read-rtl-function.o, and selftest-rtl.o.
7468         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7469         (selftest::aarch64_test_loading_full_dump): New function.
7470         (selftest::aarch64_run_selftests): New function.
7471         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7472         selftest::aarch64_run_selftests.
7473         * config/i386/i386.c
7474         (selftest::ix86_test_loading_dump_fragment_1): New function.
7475         (selftest::ix86_test_loading_call_insn): New function.
7476         (selftest::ix86_test_loading_full_dump): New function.
7477         (selftest::ix86_test_loading_unspec): New function.
7478         (selftest::ix86_run_selftests): Call the new functions.
7479         * emit-rtl.c (maybe_set_max_label_num): New function.
7480         * emit-rtl.h (maybe_set_max_label_num): New decl.
7481         * function.c (instantiate_decls): Guard call to
7482         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7483         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7484         "static".
7485         * gensupport.c (gen_reader::gen_reader): Pass "false"
7486         for new "compact" param of rtx_reader.
7487         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7488         rather than an empty string for NULL strings.
7489         * read-md.c: Potentially include config.h rather than bconfig.h.
7490         Wrap include of errors.h with #ifdef GENERATOR_FILE.
7491         (have_error): New global, copied from errors.c.
7492         (md_reader::read_name): Rename to...
7493         (md_reader::read_name_1): ...this, adding "out_loc" param,
7494         and converting "missing name or number" to returning false, rather
7495         than failing.
7496         (md_reader::read_name): Reimplement in terms of read_name_1.
7497         (md_reader::read_name_or_nil): New function.
7498         (md_reader::read_string): Handle "(nil)" by returning NULL.
7499         (md_reader::md_reader): Add new param "compact".
7500         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7501         (md_reader::read_file): New method.
7502         * read-md.h (md_reader::md_reader): Add new param "compact".
7503         (md_reader::read_file): New method.
7504         (md_reader::is_compact): New accessor.
7505         (md_reader::read_name): Convert return type from void to file_location.
7506         (md_reader::read_name_or_nil): New decl.
7507         (md_reader::read_name_1): New decl.
7508         (md_reader::m_compact): New field.
7509         (noop_reader::noop_reader): Pass "false" for new "compact" param
7510         of rtx_reader.
7511         (rtx_reader::rtx_reader): Add new "compact" param.
7512         (rtx_reader::read_rtx_operand): Make virtual and convert return
7513         type from void to rtx.
7514         (rtx_reader::read_until): New decl.
7515         (rtx_reader::handle_any_trailing_information): New virtual function.
7516         (rtx_reader::postprocess): New virtual function.
7517         (rtx_reader::finalize_string): New virtual function.
7518         (rtx_reader::m_in_call_function_usage): New field.
7519         (rtx_reader::m_reuse_rtx_by_id): New field.
7520         * read-rtl-function.c: New file.
7521         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7522         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7523         (selftest::verify_three_block_rtl_cfg): New decl.
7524         * read-rtl-function.h: New file.
7525         * read-rtl.c: Potentially include config.h rather than bconfig.h.
7526         For host, include function.h, memmodel.h, and emit-rtl.h.
7527         (one_time_initialization): New function.
7528         (struct compact_insn_name): New struct.
7529         (compact_insn_names): New array.
7530         (find_code): Handle insn codes in compact dumps.
7531         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7532         (bind_subst_iter_and_attr): Likewise.
7533         (add_condition_to_string): Likewise.
7534         (add_condition_to_rtx): Likewise.
7535         (apply_attribute_uses): Likewise.
7536         (add_current_iterators): Likewise.
7537         (apply_iterators): Likewise.
7538         (initialize_iterators): Guard usage of apply_subst_iterator with
7539         #ifdef GENERATOR_FILE.
7540         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7541         (md_reader::read_mapping): Likewise.
7542         (add_define_attr_for_define_subst): Likewise.
7543         (add_define_subst_attr): Likewise.
7544         (read_subst_mapping): Likewise.
7545         (check_code_iterator): Likewise.
7546         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
7547         logic to...
7548         (one_time_initialization): New function.
7549         (rtx_reader::read_until): New method.
7550         (read_flags): New function.
7551         (parse_reg_note_name): New function.
7552         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7553         Handle reuse_rtx ids.
7554         Wrap iterator lookup within #ifdef GENERATOR_FILE.
7555         Add parsing support for RTL dumps, mirroring the special-cases in
7556         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7557         values, and calling handle_any_trailing_information.
7558         (rtx_reader::read_rtx_operand): Convert return type from void
7559         to rtx, returning return_rtx.  Handle case 'e'.  Call
7560         finalize_string on XSTR and XTMPL fields.
7561         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
7562          "(nil)" values were omitted.  Call the postprocess vfunc on the
7563         return_rtx.
7564         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7565         class ctor.  Initialize m_in_call_function_usage.  Call
7566         one_time_initialization.
7567         * rtl-tests.c (selftest::test_uncond_jump): Call
7568         set_new_first_and_last_insn.
7569         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7570         * selftest-rtl.c: New file.
7571         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7572         (selftest::get_insn_by_uid): New decl.
7573         * selftest-run-tests.c (selftest::run_tests): Call
7574         read_rtl_function_c_tests.
7575         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
7576         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7577         dumps.
7579 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
7581         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7582         operands in a special way.  Assert that pos+len <= mode precision.
7584 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
7586         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7587         3 argument Alias with unlimited for the negative form.
7588         (fno-vect-cost-model): Removed.
7590 2017-01-05  Martin Liska  <mliska@suse.cz>
7592         * hsa-gen.c (gen_hsa_divmod): New function.
7593         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7595 2017-01-05  Martin Liska  <mliska@suse.cz>
7597         PR pch/78970
7598         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7599         header.
7601 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7603         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7604         small constant length operands.
7606 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7608         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7609         between loop iterations.
7611 2017-01-05  Martin Liska  <mliska@suse.cz>
7613         PR sanitizer/78815
7614         * gimplify.c (gimplify_decl_expr): Compare to
7615         asan_poisoned_variables instread of checking flags.
7616         (gimplify_target_expr): Likewise.
7617         (gimplify_expr): Likewise.
7618         (gimplify_function_tree): Conditionally initialize
7619         asan_poisoned_variables.
7621 2017-01-04  Jeff Law  <law@redhat.com>
7623         PR tree-optimizatin/78812
7624         * rtl.h (contains_mem_rtx_p): Prototype.
7625         * ifcvt.c (containts_mem_rtx_p): Move from here to...
7626         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7627         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7628         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
7629         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7631 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7633         * input.c (assert_char_at_range): Default-initialize actual_range.
7635 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7637         * df-scan.c (df_ref_create_structure): Make regno unsigned,
7638         to match the caller.
7640 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7642         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7643         insns after final jump in test to emit dummy move.
7645 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7647         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7648         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7650 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7652         * multiple_target.c (create_dispatcher_calls): Init e_next.
7653         * tree-ssa-loop-split.c (split_loop): Init border.
7654         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7655         scalar_type.
7657 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
7659         PR target/71977
7660         PR target/70568
7661         PR target/78823
7662         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7663         (altivec_register_operand): Do not return true if the operand
7664         contains a SUBREG mixing SImode and SFmode.
7665         (vsx_register_operand): Likewise.
7666         (vsx_reg_sfsubreg_ok): New predicate.
7667         (vfloat_operand): Do not return true if the operand contains a
7668         SUBREG mixing SImode and SFmode.
7669         (vint_operand): Likewise.
7670         (vlogical_operand): Likewise.
7671         (gpc_reg_operand): Likewise.
7672         (int_reg_operand): Likewise.
7673         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7674         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7675         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7676         SImode and SFmode.
7677         (rs6000_emit_move_si_sf_subreg): New helper function.
7678         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7679         fixup SUBREGs involving SImode and SFmode.
7680         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7681         numbers for the new peephole2 optimization.
7682         (peephole2 for SFmode unions): New peephole2 to optimize cases in
7683         the GLIBC math library that do AND/IOR/XOR operations on single
7684         precision floating point.
7685         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7686         target macros to say whether we need to avoid SUBREGs mixing
7687         SImode and SFmode.
7688         (TARGET_ALLOW_SF_SUBREG): Likewise.
7689         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7690         (UNSPEC_SI_FROM_SF): Likewise.
7691         (iorxor): Change spacing.
7692         (and_ior_xor): New iterator for AND, IOR, and XOR.
7693         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7694         (movdi_from_sf_zero_ext): Likewise.
7695         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7696         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
7697         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7698         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7699         (fms<mode>4): Likewise.
7700         (fnma<mode>4): Likewise.
7701         (fnms<mode>4): Likewise.
7702         (nfma<mode>4): Likewise.
7703         (nfms<mode>4): Likewise.
7705 2017-01-04  Marek Polacek  <polacek@redhat.com>
7707         PR c++/64767
7708         * doc/invoke.texi: Document -Wpointer-compare.
7710 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7712         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7713         RejectNegative.
7715         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7716         descriptions for -gdwarf-5 and emit them as uleb128 instead of
7717         2-byte data.
7719 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7721         PR target/78056
7722         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7723         documentation of the powerpc_popcntb_ok attribute.
7724         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7725         code to issue warning messages if a requested CPU configuration is
7726         not supported by the binary (assembler and loader) toolchain.
7727         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7728         made to define a built-in function that has been disabled.
7729         (paired_init_builtins): Add assertion to prevent ICE if attempt is
7730         made to define a built-in function that has been disabled.
7731         (altivec_init_builtins): Add comment explaining why definition
7732         of the DST built-in functions is not preceded by an assertion
7733         check.  Add assertions to prevent ICE if attempts are made to
7734         define an altivec predicate or an abs* built-in function that has
7735         been disabled.
7736         (htm_init_builtins): Add comment explaining why definition of the
7737         htm built-in functions is not preceded by an assertion check.
7739 2017-01-04  Jeff Law  <law@redhat.com>
7741         PR tree-optimizatin/67955
7742         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
7743         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
7744         the points-to solution does not include pt_null.  Use DECL_PT_UID
7745         unconditionally.
7747 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
7749         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
7750         Use gen_int_mode instead of gen_lopwart for const_int operands.
7752 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7754         PR tree-optimization/71563
7755         * match.pd: Simplify X << Y into X if Y is known to be 0 or
7756         out of range value - has low bits known to be zero.
7758 2017-01-04  Alan Modra  <amodra@gmail.com>
7760         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
7761         * configure: Regenerate.
7762         * config.in: Regenerate.
7764 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
7766         PR bootstrap/77569
7767         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
7768         a substring of the message, but strcmp with the whole message.  Ifdef
7769         ENABLE_NLS, translate the message first using dgettext.
7771 2017-01-03  Jeff Law  <law@redhat.com>
7773         PR tree-optimizatin/78856
7774         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
7775         (mark_threaded_blocks): Remove code to truncate thread paths that
7776         cross multiple loop headers.  Instead invalidate the cached loop
7777         iteration information and handle case of a thread path walking
7778         into an irreducible region.
7780 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7782         PR target/78900
7783         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
7784         assertions.  Add support for doing the signbit if the IEEE 128-bit
7785         floating point value is in a GPR.
7786         * config/rs6000/rs6000.md (Fsignbit): Delete.
7787         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
7788         Update the length attribute if the value is in a GPR.
7789         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
7790         the sign or zero extension instruction, since the value is always 0/1.
7791         (signbit<mode>2_dm2): Delete using <Fsignbit>.
7793         PR target/78953
7794         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
7795         extracting SImode to a GPR register so that we can generate a
7796         store, limit the vector to be in a traditional Altivec register
7797         for the vextuwrx instruction.
7799 2017-01-03  Ian Lance Taylor  <iant@google.com>
7801         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
7803 2017-01-03  Martin Sebor  <msebor@redhat.com>
7805         PR tree-optimization/78696
7806         * gimple-ssa-sprintf.c (format_floating): Correct handling of
7807         precision.  Use MPFR for %f for greater fidelity.  Correct handling
7808         of %g.
7809         (pass_sprintf_length::compute_format_length): Set width and precision
7810         specified by asrerisk to void_node for vararg functions.
7811         (try_substitute_return_value): Adjust dump output.
7813 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
7815         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
7817 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7819         * doc/invoke.texi (SPARC options): Document -mlra as the default.
7820         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
7821         -mlra/-mno-lra was passed to the compiler.
7823 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
7825         PR rtl-optimization/65618
7826         * emit-rtl.c (try_split): Move initialization of "before" and
7827         "after" to just before the call to emit_insn_after_setloc.
7829 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
7831         * doc/md.texi (Standard Names): Remove reference to Java frontend.
7833 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7835         * dwarf2out.c (gen_enumeration_type_die): When
7836         -gno-strict-dwarf, add a DW_AT_encoding attribute.
7838 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
7840         PR tree-optimization/78965
7841         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
7842         Change first argument from const call_info & to call_info &.  For %n
7843         set info.nowrite to false.
7845         PR middle-end/78901
7846         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
7847         possibly throwing calls.
7849         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
7850         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
7851         and fns handling, rather than in a separate case SSA_NAME.
7853 2017-01-02  Jeff Law  <law@redhat.com>
7855         * config/darwin-driver.c (darwin_driver_init): Const-correctness
7856         fixes for first_period and second_period variables.
7858 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
7860         PR target/78967
7861         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
7862         (*insvqi_1): New insn pattern.
7863         (*insvqi_1_mem_rex64): Ditto.
7864         (*insvqi_2): Ditto.
7865         (*insvqi_3): Rename from *insvqi.
7867         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
7869 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7871         * doc/cfg.texi (Edges): Remove reference to Java.
7872         (Maintaining the CFG): Ditto.
7874 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7876         PR middle-end/77674
7877         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
7878         transparent aliases.
7880 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7882         PR middle-end/77484
7883         * predict.def (PRED_CALL): Update hitrate.
7884         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
7885         * predict.c (tree_estimate_probability_bb): Split CALL predictor
7886         into direct/indirect/polymorphic variants.
7888 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7890         Update copyright years.
7892         * gcc.c (process_command): Update copyright notice dates.
7893         * gcov-dump.c (print_version): Ditto.
7894         * gcov.c (print_version): Ditto.
7895         * gcov-tool.c (print_version): Ditto.
7896         * gengtype.c (create_file): Ditto.
7897         * doc/cpp.texi: Bump @copying's copyright year.
7898         * doc/cppinternals.texi: Ditto.
7899         * doc/gcc.texi: Ditto.
7900         * doc/gccint.texi: Ditto.
7901         * doc/gcov.texi: Ditto.
7902         * doc/install.texi: Ditto.
7903         * doc/invoke.texi: Ditto.
7905 Copyright (C) 2017 Free Software Foundation, Inc.
7907 Copying and distribution of this file, with or without modification,
7908 are permitted in any medium without royalty provided the copyright
7909 notice and this notice are preserved.