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