1 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
3 PR rtl-optimization/70478
4 * lra-constraints.c (process_alt_operands): Check memory for
5 disfavoring memory insn operand.
7 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
11 left shift in unsigned HOST_WIDE_INT type.
13 PR rtl-optimization/80385
14 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
15 (not (neg X)) into (plus X -1) for complex or non-integral modes.
18 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
19 if they have any depend clauses.
21 2017-04-11 Martin Liska <mliska@suse.cz>
24 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
25 * ipa-split.c (split_function): Create a local comdat symbol
26 if caller is in a comdat group.
28 2017-04-11 Martin Liska <mliska@suse.cz>
31 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
34 2017-04-11 Martin Sebor <msebor@redhat.com>
37 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
38 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
40 (directive::set_width, directive::set_precision, format_character):
42 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
45 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
48 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
49 conflict, set target->arch_name instead of target->cpu_name.
51 2017-04-11 Richard Biener <rguenther@suse.de>
53 PR tree-optimization/80374
54 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
55 build_zero_cst, remove fold_convertible_p check again.
57 2017-04-11 Martin Liska <mliska@suse.cz>
60 * ubsan.c (instrument_object_size): Do not instrument register
63 2017-04-11 Jakub Jelinek <jakub@redhat.com>
66 * config/i386/i386-builtin-types.def
67 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
68 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
69 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
70 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
71 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
72 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
73 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
74 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
75 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
76 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
77 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
78 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
79 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
80 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
81 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
82 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
83 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
84 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
85 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
86 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
87 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
88 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
89 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
90 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
91 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
92 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
93 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
94 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
95 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
96 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
97 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
98 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
99 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
100 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
101 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
102 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
103 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
104 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
105 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
106 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
107 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
108 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
109 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
110 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
111 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
112 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
114 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
115 flag to second_arg_count, handle 4 argument function type _COUNT
116 aliases, handle second_arg_count on second argument rather than last.
118 2017-04-10 Jeff Law <law@redhat.com>
120 PR tree-optimization/80374
121 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
122 record anything if we can not convert integer_zero_node to the
125 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
128 * config/rs6000/rs6000.c (rs6000_option_override_internal):
129 Enhance special handling given to the TARGET_P9_MINMAX option in
130 relation to certain other options.
132 2017-04-10 Bin Cheng <bin.cheng@arm.com>
134 PR tree-optimization/80153
135 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
136 remove POINTER_PLUS_EXPR's base part directly, rather than through
139 2017-04-10 Richard Biener <rguenther@suse.de>
140 Bin Cheng <bin.cheng@arm.com>
142 PR tree-optimization/80153
143 * tree-affine.c (aff_combination_to_tree): Get base pointer from
144 the first element of pointer type aff_tree. Build result expr in
146 (add_elt_to_tree): Convert to type unconditionally. Remove other
148 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
149 (rewrite_use_nonlinear_expr): Check invariant using iv information.
151 2017-04-10 Richard Biener <rguenther@suse.de>
153 * tree-ssa-structalias.c (find_func_aliases): Properly handle
156 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
158 PR rtl-optimization/70478
159 * lra-constraints.c (curr_small_class_check): New.
160 (update_and_check_small_class_inputs): New.
161 (process_alt_operands): Update curr_small_class_check. Disfavor
162 alternative insn memory operands. Check available regs for small
165 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
168 * config/mips/mips.opt (-mvirt): Update description.
169 * doc/invoke.texi (-mvirt): Likewise.
171 2017-04-10 Richard Biener <rguenther@suse.de>
174 * fold-const.c (fold_binary_loc): Look at unstripped ops when
175 looking for NEGATE_EXPR in -A / -B to A / B folding.
177 2017-04-10 Martin Liska <mliska@suse.cz>
179 PR gcov-profile/80224
180 * gcov.c (print_usage): Fix usage string.
181 (get_gcov_intermediate_filename): Remove.
182 (output_gcov_file): Use both for normal and intermediate format.
183 (generate_results): Do not initialize special file for
186 2017-04-10 Richard Biener <rguenther@suse.de>
188 PR tree-optimization/80304
189 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
192 2017-04-10 Nathan Sidwell <nathan@acm.org>
195 * config/rs6000/rs6000.c (rs6000_vector_type): New.
196 (rs6000_init_builtins): Use it.
198 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
200 * config/arm/arm.md (<mrc>): Add mode to SET source.
203 2017-04-10 Richard Biener <rguenther@suse.de>
206 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
208 2017-04-10 Jakub Jelinek <jakub@redhat.com>
211 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
212 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
213 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
214 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
215 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
216 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
217 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
218 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
219 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
220 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
221 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
222 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
223 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
224 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
225 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
226 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
227 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
228 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
229 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
230 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
231 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
232 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
233 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
235 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
237 PR rtl-optimization/70478
238 * lra-constraints.c: Reverse the last patch.
240 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
242 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
243 Add comment for WCHAR_T.
245 2017-04-08 Martin Liska <mliska@suse.cz>
248 2017-04-07 Martin Liska <mliska@suse.cz>
251 * ipa-split.c (split_function): Add function part to a same comdat
254 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
257 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
259 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
261 * rs6000/rs6000.c (vec_load_pendulum): Rename...
262 (vec_pairing): ...to this.
263 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
264 (rs6000_sched_init): Adjust for name change.
265 (struct rs6000_sched_context): Likewise.
266 (rs6000_init_sched_context): Likewise.
267 (rs6000_set_sched_context): Likewise.
269 2017-04-07 Jakub Jelinek <jakub@redhat.com>
275 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
277 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
278 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
279 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
281 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
283 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
285 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
287 PR rtl-optimization/70703
288 * ira-color.c (update_conflict_hard_regno_costs): Use
289 int64_t instead of HOST_WIDE_INT.
291 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
293 PR rtl-optimization/70478
294 * lra-constraints.c (process_alt_operands): Disfavor alternative
295 insn memory operands.
297 2017-04-07 Jeff Law <law@redhat.com>
299 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
300 CALL and NOTE_INSN_CALL_ARG_LOCATION.
302 2017-04-07 Martin Liska <mliska@suse.cz>
305 * config/aarch64/aarch64.c (aarch64_process_target_attr):
306 Show error message instead of an ICE.
308 2017-04-07 Martin Liska <mliska@suse.cz>
311 * ipa-split.c (split_function): Add function part to a same comdat
314 2017-04-07 Richard Biener <rguenther@suse.de>
317 * tree.c (get_unwidened): Also handle ! for_type case for
319 * convert.c (do_narrow): Split out from ...
320 (convert_to_integer_1): ... here. Do not pass final truncation
321 type to get_unwidened for TRUNC_DIV_EXPR.
323 2017-04-07 Richard Biener <rguenther@suse.de>
325 * tree-affine.c (wide_int_ext_for_comb): Take type rather
327 (aff_combination_const): Adjust.
328 (aff_combination_scale): Likewise.
329 (aff_combination_add_elt): Likewise.
330 (aff_combination_add_cst): Likewise.
331 (aff_combination_convert): Likewise.
332 (add_elt_to_tree): Likewise. Remove unused argument.
333 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
335 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
337 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
339 * config/arm/arm.c (arm_default_short_enums): Use
340 ARM_DEFAULT_SHORT_ENUMS.
341 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
343 2017-04-06 Jakub Jelinek <jakub@redhat.com>
346 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
347 members with redundant out-of-class redeclaration.
349 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
352 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
353 * config/i386/i386.md (*zero_extendsidi2):
354 Add (?*x,*x) and (?*v,*v) alternatives.
356 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
359 * config/i386/i386.c (ix86_expand_builtin)
360 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
361 mode from insn data. Convert operands to insn operand mode.
362 Copy operands that don't satisfy insn predicate to a register.
364 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
366 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
369 2017-04-06 Richard Biener <rguenther@suse.de>
371 PR tree-optimization/80334
372 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
373 preserve alignment of accesses.
375 2017-04-06 Richard Biener <rguenther@suse.de>
377 PR tree-optimization/80262
378 * tree-sra.c (build_ref_for_offset): Preserve address-space
380 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
381 Drop useless address-space information on MEM_REF offsets.
383 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
385 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
387 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
389 PR rtl-optimization/70703
390 * ira-color.c (update_conflict_hard_regno_costs): Use
391 HOST_WIDE_INT instead of long.
393 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
396 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
397 not defined for x86_64 target. Add -mmmx target option when __SSE2__
399 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
400 for x86_64 target. Handle -m3dnowa option.
402 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
404 PR rtl-optimization/70703
405 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
406 (update_conflict_hard_regno_costs): Use long instead of unsigned
407 arithmetic for cost calculation.
409 2017-04-05 Jakub Jelinek <jakub@redhat.com>
410 Bernd Edlinger <bernd.edlinger@hotmail.de>
413 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
416 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
419 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
420 ptr_mode with Pmode throughout.
421 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
422 into probe_stack_range and use DImode.
424 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
427 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
428 call_eh_return is true.
430 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
432 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
433 Initialize last_match_fntype_index.
435 2017-04-05 Jakub Jelinek <jakub@redhat.com>
438 * tree-nvr.c: Include internal-fn.h.
439 (pass_return_slot::execute): Ignore internal calls without
442 2017-04-04 Jakub Jelinek <jakub@redhat.com>
443 Richard Biener <rguenther@suse.de>
446 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
447 captures used multiple times, except for the last use.
448 * generic-match-head.c: Include gimplify.h.
450 2017-04-04 Jakub Jelinek <jakub@redhat.com>
452 PR tree-optimization/79390
453 * target.h (struct noce_if_info): Declare.
454 * targhooks.h (default_noce_conversion_profitable_p): Declare.
455 * target.def (noce_conversion_profitable_p): New target hook.
456 * ifcvt.h (struct noce_if_info): New type, moved from ...
457 * ifcvt.c (struct noce_if_info): ... here.
458 (noce_conversion_profitable_p): Renamed to ...
459 (default_noce_conversion_profitable_p): ... this. No longer
461 (noce_try_store_flag_constants, noce_try_addcc,
462 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
463 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
464 instead of noce_conversion_profitable_p.
465 * config/i386/i386.c: Include ifcvt.h.
466 (ix86_option_override_internal): Don't override
467 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
468 (ix86_noce_conversion_profitable_p): New function.
469 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
470 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
471 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
472 * doc/tm.texi: Regenerated.
474 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
476 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
479 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
482 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
483 instructions for small multiply cores.
485 2017-04-04 Jeff Law <law@redhat.com>
487 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
489 (mips_expand_vec_perm_const): Initialize elements in orig_perm
490 that are not set by the loop over the elements.
492 2017-04-04 Jakub Jelinek <jakub@redhat.com>
495 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
496 int mode, convert_modes it to mode as unsigned, otherwise use
497 lowpart_subreg to mode rather than SImode.
498 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
499 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
500 Use DImode instead of SImode for the shift count operand.
501 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
504 2017-04-04 Richard Biener <rguenther@suse.de>
507 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
508 arithmetic done for the negate or the plus. Simplify.
509 (A - (-B) -> A + B): Likewise.
510 * fold-const.c (split_tree): Make sure to not negate pointers.
512 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
514 PR rtl-optimization/60818
515 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
516 a compare of comparisons with the thing compared if this results
517 in a different machine mode.
519 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
521 * alias.c (base_alias_check): Fix typo in comment.
522 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
523 * cgraphunit.c (symbol_table::compile): Likewise.
524 * collect2.c (maybe_run_lto_and_relink): Likewise.
525 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
526 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
527 * config/avr/avr.c (avr_map_op_t): Likewise.
528 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
529 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
530 * config/epiphany/epiphany.md (movcc): Likewise.
531 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
532 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
534 * config/mips/mips.c (mips_save_restore_reg): Likewise.
535 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
536 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
537 * config/sh/sh.c (sh_rtx_costs): Likewise.
538 * fold-const.c (fold_truth_andor): Likewise.
539 * genautomata.c (collapse_flag): Likewise.
540 * gengtype.h (struct type::u::s): Likewise.
541 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
542 * input.c (FORMAT_AMOUNT): Likewise.
543 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
544 (known_aggs_to_agg_replacement_list): Likewise.
545 * ipa-inline-analysis.c: Likewise.
546 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
547 * ipa-polymorphic-call.c
548 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
549 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
550 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
552 * modulo-sched.c (apply_reg_moves): Likewise.
553 * omp-expand.c (build_omp_regions_1): Likewise.
554 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
555 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
556 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
557 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
558 * value-prof.c: Likewise.
559 * var-tracking.c (val_reset): Likewise.
561 2017-04-03 Richard Biener <rguenther@suse.de>
563 PR tree-optimization/80275
564 * fold-const.c (split_address_to_core_and_offset): Handle
567 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
569 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
570 descriptors is at least equal to that of functions.
572 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
574 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
576 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
579 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
580 (mov<IMOD4:mode>): New expander.
581 (*mov<IMOD4:mode>_internal): New insn and split pattern.
583 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
585 PR rtl-optimization/79405
586 * fwprop.c (propagations_left): New variable.
587 (forward_propagate_into): Decrement it.
588 (fwprop_init): Initialize it.
589 (fw_prop): If the variable has reached zero, stop propagating.
590 (fwprop_addr): Ditto.
592 2017-03-31 Jakub Jelinek <jakub@redhat.com>
595 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
596 a FUNCTION_DECL, pass it as decl instead of origin to
599 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
601 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
604 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
607 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
608 TARGET_VSX_SMALL_INTEGER.
610 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
612 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
613 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
615 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
617 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
618 extraction from odd-numbered MSA register.
620 2017-03-31 Jakub Jelinek <jakub@redhat.com>
623 * expmed.c (store_bit_field_1): Don't attempt to create
624 a word subreg out of hard registers wider than word if they
625 have HARD_REGNO_NREGS of 1 for their mode.
628 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
629 conversions to integer types wider than word and pointer.
632 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
633 (rtx_equal_for_cselib_p): Pass 0 to it.
634 * cselib.c (cselib_hasher::equal): Likewise.
635 (rtx_equal_for_cselib_1): Add depth argument. If depth
636 is 128, don't look up VALUE locs and punt. Increment
637 depth in recursive calls when walking VALUE locs.
639 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
641 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
642 (make_gcov_file_name): Use the canonical path name for generating
644 (read_line): Fix handling of files with ascii null bytes.
646 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
648 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
649 to initialise a vector register instead
650 of using a const_int.
652 2017-03-30 Jakub Jelinek <jakub@redhat.com>
655 * gimplify.c (omp_default_clause): Use %qs instead of %s in
658 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
661 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
662 (dfp_diex_<mode>): Update mode of operand 1.
663 * doc/extend.texi (dxex, dxexq): Document change to return type.
664 (diex, diexq): Document change to argument type.
666 2017-03-30 Martin Jambor <mjambor@suse.cz>
669 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
670 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
671 it reflects the signature changes performed at the callee side.
672 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
673 to cgraph_build_function_type_skip_args.
674 (build_function_decl_skip_args): Adjust call to the above function.
676 2017-03-30 Jakub Jelinek <jakub@redhat.com>
680 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
681 register as dest whenever it is a MEM not rtx_equal_p to the
682 corresponding dup operand, and when forcing into reg move the
683 reg into the memory afterwards.
684 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
685 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
686 for the force_reg mode.
687 (avx512vl_vextractf128<mode>): Use register as dest either
688 always when a MEM, or when it is a MEM not rtx_equal_p to the
689 corresponding dup operand, or even not when it is a CONST_VECTOR
690 depending on the mode and lo vs. hi.
691 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
693 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
694 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
695 Likewise. Require that operands[2] is even.
696 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
697 Remove extraneous parens. Require that operands[2] is a multiple
699 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
700 operands[0] is a MEM if <mask_applied>, the predicates/constraints
701 disallow memory then.
703 2017-03-30 Richard Biener <rguenther@suse.de>
705 PR tree-optimization/77498
706 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
707 to non-constants over backedges.
709 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
711 PR rtl-optimization/80233
712 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
713 as last_combined_insn. Do not test for BARRIER_P separately.
715 2017-03-29 Andreas Schwab <schwab@suse.de>
718 * calls.c (prepare_call_address): Convert funexp to Pmode before
721 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
723 PR tree-optimization/80158
724 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
725 Handle possible future case of more than one alternate
727 (replace_rhs_if_not_dup): Likewise.
728 (replace_one_candidate): Likewise.
730 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
732 PR rtl-optimization/80193
733 * ira.c (ira): Do not check allocation for LRA.
735 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
737 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
738 (nvptx_output_simt_exit): Declare.
739 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
740 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
741 (init_softstack_frame): Move initialization of crtl->is_leaf to...
742 (nvptx_declare_function_name): ...here. Emit declaration of local
743 memory space buffer for omp_simt_enter insn.
744 (nvptx_output_unisimt_switch): New.
745 (nvptx_output_softstack_switch): New.
746 (nvptx_output_simt_enter): New.
747 (nvptx_output_simt_exit): New.
748 * config/nvptx/nvptx.h (struct machine_function): New fields
749 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
750 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
751 (UNSPECV_SIMT_EXIT): Ditto.
752 (omp_simt_enter_insn): New insn.
753 (omp_simt_enter): New expansion.
754 (omp_simt_exit): New insn.
755 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
757 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
758 (expand_GOMP_SIMT_ENTER_ALLOC): New.
759 (expand_GOMP_SIMT_EXIT): New.
760 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
761 (GOMP_SIMT_ENTER_ALLOC): Ditto.
762 (GOMP_SIMT_EXIT): Ditto.
763 * target-insns.def (omp_simt_enter): New insn.
764 (omp_simt_exit): Ditto.
765 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
767 (lower_rec_simd_input_clauses): Implement SIMT privatization.
768 (lower_rec_input_clauses): Likewise.
769 (lower_lastprivate_clauses): Handle SIMT privatization.
771 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
772 (ompdevlow_adjust_simt_enter): New.
773 (find_simtpriv_var_op): New.
774 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
775 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
777 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
778 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
779 (copy_decl_for_dup_finish): Ditto.
781 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
783 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
786 * config/i386/i386.c (ix86_option_override_internal): Always
787 allow -mpreferred-stack-boundary=3 for 64-bit targets.
789 2017-03-28 Bin Cheng <bin.cheng@arm.com>
791 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
793 2017-03-28 Bin Cheng <bin.cheng@arm.com>
795 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
796 mark new edge's irreducible flag accordign to it.
797 (vect_do_peeling): Check loop preheader edge's irreducible flag
798 and pass it to function slpeel_add_loop_guard.
800 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
802 PR tree-optimization/80218
803 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
804 Update block frequencies and counts.
806 2017-03-28 Richard Biener <rguenther@suse.de>
808 PR tree-optimization/78644
809 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
810 of a simplification result we may not use it at all.
812 2017-03-28 Richard Biener <rguenther@suse.de>
815 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
816 without arguments, generate default definition of a SSA name.
818 2017-03-28 Richard Biener <rguenther@suse.de>
821 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
822 TYPE_REF_CAN_ALIAS_ALL references.
823 * fold-const.c (fold_indirect_ref_1): Likewise.
825 2017-03-28 Martin Liska <mliska@suse.cz>
828 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
829 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
831 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
832 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
834 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
835 (EXTRA_SPECS): Define.
836 (SUBTARGET_EXTRA_SPECS): Likewise.
837 (SUBTARGET_CPP_SPEC): Likewise.
838 * config/arc/elf.h (EXTRA_SPECS): Renamed to
839 SUBTARGET_EXTRA_SPECS.
840 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
842 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
844 * config/arc/simdext.md (vst64_insn): Update pattern.
845 (vld32wh_insn): Likewise.
846 (vld32wl_insn): Likewise.
847 (vld64_insn): Likewise.
848 (vld32_insn): Likewise.
850 2017-03-28 Marek Polacek <polacek@redhat.com>
853 * fold-const.c (fold_comparison): Use protected_set_expr_location
854 instead of SET_EXPR_LOCATION.
856 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
858 * tree.c (add_expr): Avoid name lookup warning.
860 2017-03-27 Jeff Law <law@redhat.com>
862 PR tree-optimization/80216
863 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
864 function name. Limit recursion depth.
865 (record_temporary_equivalences): Corresponding changes.
867 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
869 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
872 2017-03-27 Jakub Jelinek <jakub@redhat.com>
875 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
877 * cfgcleanup.c (reg_note_cfa_p): New array.
878 (insns_have_identical_cfa_notes): New function.
879 (old_insns_match_p): Don't cross-jump in between /f
880 and non-/f instructions. If both i1 and i2 are frame related,
881 verify all CFA notes, their order and content.
883 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
886 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
887 HImode and SImode with zero extend to DImode to one insn.
888 (bswap<mode>2_extenddi): Likewise.
889 (bswapsi2_extenddi): Likewise.
890 (bswaphi2_extendsi): Likewise.
891 (bswaphi2): Combine bswap HImode and SImode into one insn.
892 Separate memory insns from swapping register.
893 (bswapsi2): Likewise.
894 (bswap<mode>2): Likewise.
895 (bswaphi2_internal): Delete, no longer used.
896 (bswapsi2_internal): Likewise.
897 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
898 store, and gpr<-gpr swap insns.
899 (bswap<mode>2_store): Likewise.
900 (bswaphi2_reg): Register only splitter, combine with the splitter.
901 (bswaphi2 splitter): Likewise.
902 (bswapsi2_reg): Likewise.
903 (bswapsi2 splitter): Likewise.
904 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
905 the insns into load, store, and register/register insns.
906 (bswapdi2_ldbrx): Likewise.
907 (bswapdi2_load): Likewise.
908 (bswapdi2_store): Likewise.
909 (bswapdi2_reg): Likewise.
911 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
913 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
914 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
916 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
919 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
921 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
922 special handling for target option conflicts between dform
923 options (-mpower9-dform, -mpower9-dform-vector,
924 -mpower9-dform-scalar) and -mno-direct-move.
926 2017-03-27 Richard Biener <rguenther@suse.de>
928 PR tree-optimization/80181
929 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
931 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
933 * config/arc/predicates.md (move_double_src_operand): Replace the
934 call to move_double_src_operand with a call to address_operand.
936 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
938 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
939 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
940 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
942 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
944 * config/arc/predicates.md (long_immediate_loadstore_operand):
945 Consider scaled addresses cases.
947 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
949 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
950 restored when in interrupt.
951 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
952 doesn't have delay slot.
954 2017-03-27 Richard Biener <rguenther@suse.de>
957 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
958 inlined thunk clones.
960 2017-03-27 Jakub Jelinek <jakub@redhat.com>
963 * asan.c (instrument_derefs): Copy over last operand from
964 original COMPONENT_REF to the new COMPONENT_REF with
965 DECL_BIT_FIELD_REPRESENTATIVE.
966 * ubsan.c (instrument_object_size): Likewise.
968 2017-03-27 Richard Biener <rguenther@suse.de>
970 PR tree-optimization/80170
971 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
972 sure DR/SCEV didnt fold in constants we do not see when looking
973 at the reference base alignment.
975 2017-03-27 Richard Biener <rguenther@suse.de>
978 * gimple-fold.c (fold_ctor_reference): Properly guard against
979 NULL return value from canonicalize_constructor_val.
981 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
984 * config/i386/i386.c (ix86_expand_builtin)
985 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
986 flags reg setting and flags reg using instructions.
987 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
988 clobbering instructions to zero extend op2.
990 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
992 * doc/install.texi (Configuration) <--with-aix-soname>:
993 Update link to AIX ld.
995 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
997 PR rtl-optimization/80160
998 PR rtl-optimization/80159
999 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
1000 reg_alternate_class into account.
1002 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
1005 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
1006 to consider in curr_insn_transform.
1008 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1010 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
1011 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
1012 and emit_mode_inner.
1014 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1016 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
1017 argument to the overloaded builtin variants. Use the new flag to
1018 deprecate certain builtin variants.
1019 * config/s390/s390-builtin-types.def: Add new builtin types.
1020 * config/s390/s390-builtins.h: Support new flags field for
1021 overloaded builtins.
1022 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
1023 (s390_macro_to_expand): Enable vector float data type.
1024 (s390_cpu_cpp_builtins_internal): Indicate support of the new
1025 builtins by incrementing the __VEC__ version number.
1026 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
1028 (s390_resolve_overloaded_builtin): Emit error messages depending
1029 on the builtin flags.
1030 * config/s390/s390.c (s390_expand_builtin): Support additional
1031 flags argument. Change error message to match the messages
1032 emitted in s390-c.c.
1033 * config/s390/s390.md: New UNSPEC_* constants.
1034 (op_type): Add new instruction types.
1035 * config/s390/vecintrin.h: Add new builtins and test data class
1037 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
1038 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
1039 (VEC_INEXACT, VEC_NOINEXACT): New constants.
1040 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
1041 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
1042 ("vec_mergel<mode>"): V_HW -> VEC_HW.
1044 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
1045 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
1046 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
1047 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
1049 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
1050 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
1051 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
1052 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
1054 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
1055 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
1056 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
1057 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
1058 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
1059 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
1060 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
1062 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
1063 ("vec_scatter_element<V_HW_4:mode>_DI")
1064 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
1065 ("vec_fpint<mode>", "vflls")
1066 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
1067 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
1068 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
1069 ("*vec_cmphe<mode>_cc"): ... these.
1071 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
1072 mode constant instead of magic value.
1074 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1076 * config/s390/s390.c (s390_expand_vec_compare): Support other
1077 vector floating point modes than just V2DF.
1078 (s390_expand_vcond): Likewise.
1079 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
1080 (s390_cannot_change_mode_class): Prevent mode changes between TF
1081 and V1TF in vector registers.
1082 * config/s390/s390.md (DF, SF): New mode attributes.
1083 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
1084 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
1085 SFmode support for VRs.
1086 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
1088 (VFT, VF_HW): New mode iterators.
1089 (vw, sdx): New mode attributes.
1090 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
1091 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
1092 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
1093 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
1094 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
1095 also the new vector floating point modes. Renaming to ...
1097 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
1098 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
1099 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
1100 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
1101 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
1102 ("vec_unordered<mode>"): ... these.
1104 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
1105 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
1106 ("*vec_extendv2df"): New insn definitions.
1108 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1110 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
1111 ("mulditi3_2", "*muldi3_sign"): New patterns.
1112 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
1113 rename the pattern definition.
1115 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1117 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
1119 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
1121 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1123 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
1124 instruction if possible.
1125 * config/s390/vector.md (vec_halfnumelts): New mode
1127 ("*vec_vllezlf<mode>"): New pattern.
1129 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1131 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
1132 ("popcountv4si2", "popcountv2di2"): Rename to ...
1133 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
1134 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
1136 ("popcount<mode>2_vxe"): New pattern.
1138 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1140 * common/config/s390/s390-common.c (processor_flags_table): Add
1142 * config.gcc: Add arch12.
1143 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1144 Default to arch12 for unknown CPU model numbers.
1145 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
1146 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
1147 PROCESSOR_max sanity check.
1148 * config/s390/s390-opts.h (enum processor_type): Add
1150 * config/s390/s390.c (processor_table): Add arch12.
1151 (s390_expand_builtin): Add check for B_VXE flag.
1152 (s390_issue_rate): Add PROCESSOR_ARCH12.
1153 (s390_get_sched_attrmask): Likewise.
1154 (s390_get_unit_mask): Likewise.
1155 (s390_sched_score): Enable z13 scheduling for arch12.
1156 (s390_sched_reorder): Likewise.
1157 (s390_sched_variable_issue): Likewise.
1158 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
1160 (s390_tune_attr): Use z13 scheduling also for arch12.
1161 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
1162 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
1163 (TARGET_VXE_P): New macros.
1164 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
1165 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
1166 * config/s390/s390.opt: Add arch12 as processor_type.
1168 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1170 * config/s390/s390.md
1171 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1172 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
1173 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
1175 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
1176 Rename expanders to ...
1178 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
1179 ("fixuns_truncdddi2_emu"): ... these.
1181 ("fixuns_trunc<mode>si2_emu"): New expander.
1183 ("*fixuns_truncdfdi2_z13"): Rename to ...
1184 ("*fixuns_truncdfdi2_vx"): ... this.
1186 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1188 * config/s390/2964.md: Remove the single element vector compare
1189 instructions which are no longer used.
1190 * config/s390/s390.c (s390_select_ccmode): Remove handling of
1192 (s390_canonicalize_comparison): Remove handling of DFmode
1194 (s390_expand_vec_compare_scalar): Remove function.
1195 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
1196 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
1198 ("*cmp<mode>_ccs"): Add wfcdb instruction.
1200 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1202 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
1204 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
1205 will anyway by matched by mov<mode>_64dfp.
1207 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1209 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1210 vlef/vstef. Add missing operand to vleif.
1212 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1214 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1215 pair for all vector types with 64 bit elements.
1216 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1217 * config/s390/vector.md (V_HW_64): ... here.
1218 (V_128_NOSINGLE): New mode iterator.
1219 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1220 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1221 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1222 ("*vec_load_pairv2di"): Change to ...
1223 ("*vec_load_pair<mode>"): ... this one.
1225 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1227 * config/s390/constraints.md: Add comments.
1228 (jKK): Reject element sizes > 8 bytes.
1229 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1231 * config/s390/s390.md: Add the s_operand checks formerly in
1232 s390_split_ok_p to various splitters where they are still
1234 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1235 for 128 bit vectors. Plus two splitters.
1237 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1239 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1242 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1245 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1246 error if the boundary argument is not constant.
1248 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1250 PR rtl-optimization/80112
1251 * loop-doloop.c (doloop_condition_get): Don't check condition
1252 if cmp isn't SET with IF_THEN_ELSE src.
1254 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1256 PR tree-optimization/80158
1257 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1258 replacing a candidate statement, also replace it for the
1259 candidate's alternate interpretation.
1260 (replace_rhs_if_not_dup): Likewise.
1261 (replace_one_candidate): Likewise.
1263 2017-03-24 Richard Biener <rguenther@suse.de>
1265 PR tree-optimization/80167
1266 * graphite-isl-ast-to-gimple.c
1267 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1269 (translate_isl_ast_to_gimple::get_rename): Likewise.
1271 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
1273 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1274 handling of certain combinations of target options, including the
1275 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1276 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1278 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1281 * config/arm/arm.md (*load_multiple): Add reload_completed to
1284 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1285 Richard Biener <rguenth@suse.de>
1287 PR tree-optimization/79908
1288 PR tree-optimization/80136
1289 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1290 been cast away, gimplify_and_add suffices.
1292 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
1294 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1296 2017-03-23 Richard Biener <rguenther@suse.de>
1298 PR tree-optimization/80032
1299 * gimplify.c (gimple_push_cleanup): Forced unconditional
1300 cleanups still have to go to the conditional_cleanups
1303 2017-03-22 Jakub Jelinek <jakub@redhat.com>
1305 PR tree-optimization/80072
1306 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1308 (next_operand_entry_id): Change type to unsigned int.
1309 (sort_by_operand_rank): Make sure to return the right return value
1310 even if unsigned fields are bigger than INT_MAX.
1311 (struct oecount): Change cnt and id type to unsigned int.
1312 (oecount_hasher::equal): Formatting fix.
1313 (oecount_cmp): Make sure to return the right return value
1314 even if unsigned fields are bigger than INT_MAX.
1315 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1318 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1319 TREE_READONLY on result if writing it more than once.
1322 * doc/invoke.texi (-fsanitize=thread): Document that with
1323 -fnon-call-exceptions atomics are not able to throw
1327 * tsan.c: Include tree-eh.h.
1328 (instrument_builtin_call): Call maybe_clean_eh_stmt or
1329 maybe_clean_or_replace_eh_stmt where needed.
1330 (instrument_memory_accesses): Add cfg_changed argument.
1331 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1332 if it returned true.
1333 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
1335 PR rtl-optimization/63191
1336 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1337 wrapper function, moved the whole old content into ...
1338 (ix86_delegitimize_address_1): ... this. New inline function.
1339 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1340 true as last argument instead of ix86_delegitimize_address.
1342 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1344 * config/aarch64/aarch64.c (generic_branch_cost): Copy
1345 cortexa57_branch_cost.
1347 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1349 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1351 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1354 * doc/md.texi (Constraints): Document wA constraint.
1355 * config/rs6000/constraints.md (wA): New.
1356 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1357 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1358 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1359 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1361 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
1364 * gimplify.c (is_oacc_declared): New function.
1365 (oacc_default_clause): Use it to set default flags for acc declared
1366 variables inside parallel regions.
1367 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1369 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
1370 declare attribute to any decl as necessary.
1372 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1375 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1376 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1377 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1378 (arm_arch_lpae): This.
1379 * config/arm/arm.c (arm_arch7ve): Rename into ...
1380 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
1381 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1384 2017-03-22 Martin Liska <mliska@suse.cz>
1387 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1388 error message instead of an ICE.
1390 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1392 * doc/extend.texi (6.11 Additional Floating Types): Revise.
1394 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
1396 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1398 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1401 2017-03-21 Martin Sebor <msebor@redhat.com>
1403 * doc/extend.texi: Use "cannot" instead of "can't."
1404 * doc/hostconfig.texi: Same.
1405 * doc/install.texi: Same.
1406 * doc/invoke.texi: Same.
1407 * doc/loop.texi: Same.
1408 * doc/md.texi: Same.
1409 * doc/objc.texi: Same.
1410 * doc/rtl.texi: Same.
1411 * doc/tm.texi: Same.
1412 * doc/tm.texi.in: Same.
1413 * doc/trouble.texi: Same.
1415 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
1418 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1419 (collect_checksum_attributes): Set it.
1420 (die_checksum_ordered): Use it.
1422 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1424 PR tree-optimization/79908
1425 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1426 change: For a VA_ARG whose LHS has been cast away, use
1427 force_gimple_operand to construct the side effects.
1429 2017-03-21 David Malcolm <dmalcolm@redhat.com>
1431 PR translation/80001
1432 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1433 more amenable to translation.
1434 (oacc_loop_auto_partitions): Likewise.
1436 2017-03-21 Marek Polacek <polacek@redhat.com>
1437 Martin Sebor <msebor@redhat.com>
1439 PR tree-optimization/80109
1440 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1443 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1444 Segher Boessenkool <segher@kernel.crashing.org>
1447 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1448 check reg_used_between_p between insn and one of succ or succ2
1449 depending on if succ is artificial insn not inserted into insn
1452 2017-03-21 Martin Liska <mliska@suse.cz>
1454 PR gcov-profile/80081
1455 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1456 * doc/gcc.texi: Include gcov-dump stuff.
1457 * doc/gcov-dump.texi: New file.
1459 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
1461 PR rtl-optimization/79150
1462 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1463 conditional jump, if the jump is the last insn of the loop.
1465 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1466 Richard Biener <rguenth@suse.de>
1468 PR tree-optimization/79908
1469 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1470 been cast away, use force_gimple_operand to construct the side
1473 2017-03-21 Martin Liska <mliska@suse.cz>
1476 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1479 2017-03-21 Brad Spengler <spender@grsecurity.net>
1482 * plugin.c (htab_hash_plugin): New function.
1483 (add_new_plugin): Use it and adjust.
1484 (parse_plugin_arg_opt): Adjust.
1485 (init_one_plugin): Likewise.
1487 2017-03-21 Richard Biener <rguenther@suse.de>
1489 PR tree-optimization/80032
1490 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1491 if set force the cleanup to happen unconditionally.
1492 (gimplify_target_expr): Push inserted clobbers with force_uncond
1493 to avoid them being removed by control-dependent DCE.
1495 2017-03-21 Richard Biener <rguenther@suse.de>
1497 PR tree-optimization/80122
1498 * tree-inline.c (copy_bb): Do not expans va-arg packs or
1499 va_arg_pack_len when the inlined call stmt requires pack
1501 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1503 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1506 * tsan.c (instrument_builtin_call): If the memory model argument
1507 is not a constant, assume it is valid.
1510 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1513 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1515 PR rtl-optimization/79910
1516 * combine.c (can_combine_p): Do not allow combining an I0 or I1
1517 if its dest is used by an insn before I2 (other than the combined
1518 insns themselves, which are properly handled already).
1520 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1523 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1525 * combine.c (record_used_regs): New static function.
1526 (try_combine): Handle situations where there is an additional
1527 instruction between I2 and I3 which needs to have a LOG_LINK
1531 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1533 * combine.c (try_combine): Delete redundant i1 test. Call
1534 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1536 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1539 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1542 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1544 PR tree-optimization/80054
1545 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1546 the optimization if a PHI or any of its arguments is not dominated
1547 by the candidate's basis. Use gphi* rather than gimple* as
1549 (replace_profitable_candidates): Clean up a gimple* variable that
1550 should be a gphi* variable.
1552 2017-03-20 Martin Sebor <msebor@redhat.com>
1555 * doc/extend.texi (attribute constructor): Document present limitation.
1557 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
1560 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1561 __POWER9_VECTOR__ #ifdef control, change template definition to
1562 use Power9-specific built-in function.
1563 (vec_any_eq): Likewise.
1564 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1565 to control outcomes from this test.
1566 (vector_ae_<mode>p): For VEC_F modes, likewise.
1568 2017-03-20 Ian Lance Taylor <iant@google.com>
1570 * config/i386/i386.c (ix86_function_regparm): Save an extra
1571 register for -fsplit-stack with DECL_STATIC_CHAIN.
1573 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1576 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1577 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1579 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1581 * config/riscv/riscv.c (riscv_print_operand): Use "fence
1583 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1586 2017-03-20 Marek Polacek <polacek@redhat.com>
1589 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1591 2017-03-20 Richard Biener <rguenther@suse.de>
1593 PR tree-optimization/80113
1594 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1595 allocate extra SSA name for PHI def.
1596 (add_close_phis_to_outer_loops): Likewise.
1597 (add_close_phis_to_merge_points): Likewise.
1598 (copy_loop_close_phi_args): Likewise.
1599 (copy_cond_phi_nodes): Likewise.
1601 2017-03-20 Martin Liska <mliska@suse.cz>
1604 * tree-chkp.c (chkp_build_returned_bound): Do not build
1605 returned bounds for a LHS that's not a BOUNDED_P type.
1607 2017-03-20 Martin Liska <mliska@suse.cz>
1611 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1612 COMPLEX_CST and VECTOR_CST.
1614 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1617 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1618 target operand. A new splitter adds the clobber statement in case
1619 the target operand is dead anyway.
1621 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1623 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1624 to age-old versions of binutils and glibc.
1626 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
1628 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1630 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1632 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1634 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1636 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1637 requirement for binutils 2.13.
1639 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1641 * combine.c (try_combine): Delete redundant i1 test. Call
1642 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1644 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
1646 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1647 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1649 <riscv64-*-elf>: Re-arrange section
1650 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1651 <riscv32-*-linux>: Likewise.
1652 <riscv64-*-elf>: Likewise
1653 <riscv64-*-linux>: Likewise.
1655 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
1658 * aarch64.opt(verbose-cost-dump): Fix typo.
1660 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
1663 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1664 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1666 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1668 * reload.c (find_reloads): When reloading a nonoffsettable address,
1669 use RELOAD_OTHER for it and its address reloads.
1671 PR rtl-optimization/79910
1672 * combine.c (record_used_regs): New static function.
1673 (try_combine): Handle situations where there is an additional
1674 instruction between I2 and I3 which needs to have a LOG_LINK
1677 2017-03-17 Jeff Law <law@redhat.com>
1679 PR tree-optimization/71437
1680 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1681 conditional in the hash table first.
1682 (vrp_dom_walker::before_dom_children): Extract condition from
1683 ASSERT_EXPR. Record condition, its inverion and any implied
1686 2017-03-17 Marek Polacek <polacek@redhat.com>
1687 Markus Trippelsdorf <markus@trippelsdorf.de>
1689 PR tree-optimization/80079
1690 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1693 2017-03-17 Richard Biener <rguenther@suse.de>
1696 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1697 Properly verify the LHS before the RHS possibly claims to be
1699 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
1702 2017-03-17 Martin Jambor <mjambor@suse.cz>
1704 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1705 (List of -O2 options): Likewise.
1706 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1709 2017-03-17 Tom de Vries <tom@codesourcery.com>
1711 * gcov-dump.c (print_usage): Print bug_report_url.
1713 2017-03-17 Richard Biener <rguenther@suse.de>
1716 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
1717 (parser::peek): Likewise.
1719 2017-03-17 Richard Biener <rguenther@suse.de>
1721 PR tree-optimization/80048
1722 * sese.c (free_sese_info): Properly release rename_map and
1723 copied_bb_map elements.
1725 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
1727 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
1728 Add linked-list forward and backlinks. Insert on
1729 construction, remove on destruction.
1730 (class pass_store_merging): Add m_stores_head field.
1731 (pass_store_merging::terminate_and_process_all_chains):
1732 Iterate over m_stores_head list.
1733 (pass_store_merging::terminate_all_aliasing_chains):
1735 (pass_store_merging::execute): Check for debug stmts first.
1736 Push new chains onto the m_stores_head stack.
1738 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1741 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1742 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1743 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1745 2017-03-16 Jeff Law <law@redhat.com>
1747 PR tree-optimization/71437
1748 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
1749 member function. Implementation moved into after_dom_children
1750 member function and into the threader's thread_outgoing_edges
1752 (dom_opt_dom_walker::after_dom_children): Simplify by moving
1753 some code into new thread_outgoing_edges.
1754 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
1755 definition. Simplify marker handling (do it here). Assume we always
1756 have the available expression and the const/copies tables.
1757 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
1759 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
1760 * tree-vrp.c (equiv_stack): No longer file scoped.
1761 (vrp_dom_walker): New class.
1762 (vrp_dom_walker::before_dom_children): New member function.
1763 (vrp_dom_walker::after_dom_children): Likewise.
1764 (identify_jump_threads): Setup domwalker. Use it rather than
1765 walking edges in a random order by hand. Simplify setup/finalization.
1766 (finalize_jump_threads): Remove.
1767 (vrp_finalize): Do not call identify_jump_threads here.
1768 (execute_vrp): Do it here instead and call thread_through_all_blocks
1771 PR tree-optimization/71437
1772 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
1774 (simplify_stmt_for_jump_threading): Add basic_block argument. All
1776 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
1777 (dom_opt_dom_walker::thread_across_edge): Remove
1778 handle_dominating_asserts argument. All callers changed.
1779 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
1780 changes. Remove calls to lhs_of_dominating_assert. Other
1781 uses of handle_dominating_asserts turn into unconditional code
1782 (simplify_control_stmt_condition_1): Likewise.
1783 (simplify_control_stmt_condition): Likewise.
1784 (thread_through_normal_block, thread_across_edge): Likewise.
1785 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
1786 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
1787 object if it is not an SSA_NAME.
1788 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
1789 before calling into the VRP specific simplifiers.
1790 (identify_jump_threads): Remove handle_dominating_asserts
1793 2017-03-16 Jakub Jelinek <jakub@redhat.com>
1796 * tree-diagnostic.c (default_tree_printer): No longer static.
1797 * tree-diagnostic.h (default_tree_printer): New prototype.
1799 2017-03-16 Tamar Christina <tamar.christina@arm.com>
1801 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
1802 Change ins into fmov.
1804 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1806 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
1807 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
1808 Use h_con constraint for operand 1.
1809 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1810 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
1812 2017-03-15 Jeff Law <law@redhat.com>
1814 PR tree-optimization/71437
1815 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
1816 (record_temporary_equivalences): Use it.
1818 PR tree-optimization/71437
1819 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
1820 tree-ssa-scopedtables.
1821 (lookup_avail_expr, build_and_record_new_cond): Likewise.
1822 (record_conditions, record_cond, vuse_eq): Likewise.
1823 (record_edge_info): Adjust to API tweak of record_conditions.
1824 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
1825 (record_temporary_equivalences, optimize_stmt): Likewise.
1826 (eliminate_redundant_computations): Likewise.
1827 (record_equivalences_from_stmt): Likewise.
1828 * tree-ssa-scopedtables.c: Include options.h and params.h.
1829 (vuse_eq): New function, moved from tree-ssa-dom.c
1830 (build_and_record_new_cond): Likewise.
1831 (record_conditions): Likewise. Accept vector of conditions rather
1832 than edge_equivalence structure for first argument.
1833 for the first argument.
1834 (avail_exprs_stack::lookup_avail_expr): New member function, moved
1835 from tree-ssa-dom.c.
1836 (avail_exprs_stack::record_cond): Likewise.
1837 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
1838 from tree-ssa-dom.c.
1839 (avail_exprs_stack): Add new member functions lookup_avail_expr
1841 (record_conditions): Declare.
1843 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
1846 * lra-constraints.c (process_alt_operands): Increase reject for
1847 reloading an input/output operand.
1849 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1852 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
1853 insns to convert from signed/unsigned char/short to IEEE 128-bit
1855 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
1857 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
1860 * config/i386/i386.c (ix86_vector_duplicate_value): Create
1861 subreg of inner mode for values already in registers.
1863 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
1865 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
1866 iteration reg is used after the loop.
1868 2017-03-14 Martin Sebor <msebor@redhat.com>
1870 PR tree-optimization/79800
1871 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
1872 precision in negative-positive range.
1873 (format_floating): Call non-const overload with adjusted precision.
1875 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1878 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
1881 2017-03-14 Martin Sebor <msebor@redhat.com>
1884 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
1885 * builtins.def (aligned_alloc): Use it.
1888 * Makefile.in (GTFILES): Add calls.c.
1889 * calls.c: Include "gt-calls.h".
1891 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
1893 PR rtl-optimization/79728
1894 * regs.h (struct target_regs): New field
1895 x_contains_allocatable_regs_of_mode.
1896 (contains_allocatable_regs_of_mode): New macro.
1897 * reginfo.c (init_reg_sets_1): Initialize it, and change
1898 contains_reg_of_mode so it includes global regs as well.
1899 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
1900 rather than contains_regs_of_mode.
1902 2017-03-14 Martin Liska <mliska@suse.cz>
1904 * doc/invoke.texi: Document options that can't be combined with
1905 -fcheck-pointer-bounds.
1907 2017-03-14 Martin Liska <mliska@suse.cz>
1910 * doc/invoke.texi (-Wchkp): Document the option.
1912 2017-03-14 Martin Liska <mliska@suse.cz>
1914 * Makefile.in: Install gcov-dump.
1916 2017-03-14 Martin Liska <mliska@suse.cz>
1918 * multiple_target.c (expand_target_clones): Bail out for
1919 an invalid attribute.
1921 2017-03-14 Richard Biener <rguenther@suse.de>
1923 * alias.c (struct alias_set_entry): Pack properly.
1924 * cfgloop.h (struct loop): Likewise.
1925 * cse.c (struct set): Likewise.
1926 * ipa-utils.c (struct searchc_env): Likewise.
1927 * loop-invariant.c (struct invariant): Likewise.
1928 * lra-remat.c (struct cand): Likewise.
1929 * recog.c (struct change_t): Likewise.
1930 * rtl.h (struct address_info): Likewise.
1931 * symbol-summary.h (function_summary): Likewise.
1932 * tree-loop-distribution.c (struct partition): Likewise.
1933 * tree-object-size.c (struct object_size_info): Likewise.
1934 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
1935 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
1936 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
1937 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
1938 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
1939 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
1940 (struct _stmt_vec_info): Likewise.
1942 2017-03-14 Martin Liska <mliska@suse.cz>
1945 * multiple_target.c (create_dispatcher_calls): Check that
1946 a target can create a function dispatcher.
1948 2017-03-14 Martin Liska <mliska@suse.cz>
1951 * multiple_target.c (expand_target_clones): Drop local.local
1952 flag for default implementation.
1954 2017-03-14 Richard Biener <rguenther@suse.de>
1956 PR tree-optimization/80030
1957 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
1959 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
1961 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
1962 gcc_fallthrough() instead of __attribute__((fallthrough));
1964 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
1966 * doc/gcc.texi: Remove "up" link to (DIR).
1967 * doc/gccint.texi: Ditto.
1969 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
1971 * doc/install.texi (Specific) <avr>: Remove reference to
1974 2017-03-13 Jeff Law <law@redhat.com>
1976 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
1977 attribute rather than comments.
1979 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
1980 match_scratch operand is highest.
1982 2017-03-13 Martin Liska <mliska@suse.cz>
1985 * ipa-pure-const.c (warn_function_noreturn): If the declarations
1986 is a CHKP clone, use original declaration.
1988 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1990 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
1991 (arc_conditional_register_usage): Use a different allocation order
1992 when optimizing for size.
1993 * common/config/arc/arc-common.c (arc_option_optimization_table):
1994 Section anchors default on when optimizing for size.
1996 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1998 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
2000 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2002 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
2003 * config/arc/arc.md (cpu_facility): Add cd variant.
2004 (*movqi_insn): Add code density variant.
2005 (*movhi_insn): Likewise.
2006 (*movqi_insn): Likewise.
2007 (*addsi3_mixed): Likewise.
2008 (subsi3_insn): Likewise.
2010 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2012 * config/arc/arc.md (movsi_cond_exec): Update constraint.
2014 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2016 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
2017 expressions with MINUS and UNARY ops.
2019 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2022 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
2024 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
2025 between vec_select and vector argument.
2026 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
2027 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
2028 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
2029 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
2030 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
2031 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
2033 2017-03-13 Richard Biener <rguenther@suse.de>
2036 * params.def (vect-max-peeling-for-alignment): Fix typo.
2038 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2040 * doc/install.texi (Specific) <mips-*-*>: Remove description of
2041 issue that only occurred with binutils below 2.18.
2043 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2045 * doc/install.texi (Specific) <cris-axis-elf>: No longer
2046 refer to binutils 2.11/2.12 minimum.
2048 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2050 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
2051 ftp.kernel.org and simplify binutils requirement.
2053 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
2055 * doc/invoke.texi (Warning Options): Fix spelling of link-time
2057 (Optimize Options): Ditto. Also remove redundancy.
2059 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2061 PR translation/79848
2062 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
2064 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
2065 to G_ to avoid double translation.
2067 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2069 PR translation/79923
2070 * auto-profile.c (get_combined_location): Convert leading
2071 character of diagnostics to lower case and remove trailing period.
2072 (read_profile): Likewise for various diagnostics.
2073 * config/arm/arm.c (arm_option_override): Remove trailing period
2074 from various diagnostics.
2075 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
2076 (msp430_expand_delay_cycles): Likewise.
2078 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2081 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
2082 full command-line argument, rather than just "str".
2083 (aarch64_validate_march): Likewise.
2084 (aarch64_validate_mtune): Likewise.
2086 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
2088 PR rtl-optimization/78911
2089 * lra-assigns.c (must_not_spill_p): New function.
2090 (spill_for): Use it.
2092 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2094 PR tree-optimization/79981
2095 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
2096 ATOMIC_COMPARE_EXCHANGE ifn result.
2097 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
2098 IFN_ATOMIC_COMPARE_EXCHANGE.
2100 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2103 * opts.c (parse_sanitizer_options): Add missing question mark to
2104 "did you mean" message.
2106 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2108 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
2110 (VMULEUH_UNS): Likewise.
2111 (VMULOUB_UNS): Likewise.
2112 (VMULOUH_UNS): Likewise.
2113 * config/rs6000/rs6000.c (builtin_function_type): Remove
2114 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
2116 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2119 * read-rtl-function.c (function_reader::read_rtx_operand): Update
2120 x with result of extra_parsing_for_operand_code_0.
2121 (function_reader::extra_parsing_for_operand_code_0): Convert
2122 return type from void to rtx, returning x. When reading
2123 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
2124 larger size containing struct block_symbol.
2126 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
2128 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
2129 -mfloat128-hardware without -m64.
2131 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
2134 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
2135 entries to the case statement that marks unsigned arguments to
2136 overloaded functions.
2138 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
2140 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2141 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
2143 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
2146 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
2147 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
2149 2017-03-10 Martin Liska <mliska@suse.cz>
2153 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
2154 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
2157 2017-03-10 Olivier Hainque <hainque@adacore.com>
2159 * tree-switch-conversion (array_value_type): Start by resetting
2160 candidate type to it's main variant.
2162 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2164 PR rtl-optimization/79909
2165 * combine.c (try_combine): Use simplify_replace_rtx on individual
2166 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
2167 of the whole CALL_INSN_FUNCTION_USAGE.
2169 PR tree-optimization/79972
2170 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
2171 get_range_info on SSA_NAMEs. Formatting fixes.
2173 2017-03-10 Richard Biener <rguenther@suse.de>
2174 Jakub Jelinek <jakub@redhat.com>
2176 PR tree-optimization/77975
2177 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
2178 edge to be constant.
2179 (get_val_for): For constant x return it. Formatting fix.
2180 (loop_niter_by_eval): Avoid pointless looping if the next iteration
2181 would use the same bases as the current one.
2183 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2185 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
2186 instead of vec_select for V1TImode.
2187 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
2189 (VSX_LE_128): Add V1TI to this mode iterator.
2190 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
2191 (*vsx_le_perm_store_<mode>): Likewise.
2192 (pre-reload splitter for VSX stores): Likewise.
2193 (post-reload splitter for VSX stores): Likewise.
2194 (*vsx_xxpermdi2_le_<mode>): Likewise.
2195 (*vsx_lxvd2x2_le_<mode>): Likewise.
2196 (*vsx_stxvd2x2_le_<mode>): Likewise.
2198 2017-03-09 Michael Eager <eager@eagercon.com>
2200 Correct failures with --enable-checking=yes,rtl.
2202 * config/microblaze/microblaze.c (microblaze_expand_shift):
2203 Replace GET_CODE test with CONST_INT_P and INTVAL test with
2204 test for const0_rtx.
2205 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
2206 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2208 2017-03-09 Richard Biener <rguenther@suse.de>
2210 PR tree-optimization/79977
2211 * graphite-scop-detection.c (scop_detection::merge_sese):
2212 Handle the case of extra exits to blocks dominating the entry.
2214 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
2216 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2219 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
2221 PR rtl-optimization/79949
2222 * lra-constraints.c (process_alt_operands): Check memory when
2223 trying to predict a cycle. Print about the overall increase.
2225 2017-03-09 Richard Biener <rguenther@suse.de>
2228 * gimple-expr.c (useless_type_conversion_p): Preserve
2229 TYPE_SATURATING for fixed-point types.
2231 2017-03-09 Richard Biener <rguenther@suse.de>
2234 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2235 alignment of BLKmode params.
2237 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2240 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2241 (VALL_NO_V2Q): Likewise.
2243 * config/aarch64/aarch64-simd.md
2244 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2246 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2247 VALL_NO_V2Q mode iterator.
2248 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2250 2017-03-09 Martin Liska <mliska@suse.cz>
2252 PR tree-optimization/79631
2253 * tree-chkp-opt.c (chkp_is_constant_addr): Call
2254 tree_int_cst_sign_bit just for INTEGER constants.
2256 2017-03-09 Martin Liska <mliska@suse.cz>
2260 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2263 2017-03-09 Marek Polacek <polacek@redhat.com>
2266 * tree.c (inchash::add_expr): Handle TREE_VEC.
2268 2017-03-09 Martin Liska <mliska@suse.cz>
2271 (chkp_narrow_size_and_offset): New function.
2272 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2273 (void chkp_parse_bit_field_ref): New function.
2274 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2275 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2277 2017-03-09 Martin Liska <mliska@suse.cz>
2280 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2281 (chkp_find_bounds_1): Remove gcc_unreachable.
2283 2017-03-09 Jakub Jelinek <jakub@redhat.com>
2286 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2287 BUILT_IN_SYNC*, determine the access type from the size suffix and
2288 always build a MEM_REF with that type. Handle forgotten
2289 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2292 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2293 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2294 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2295 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2296 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2297 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2298 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2299 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2300 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2301 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2302 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2303 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2304 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2305 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2306 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2307 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2308 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2309 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2310 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2311 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2312 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2313 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2314 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2315 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2316 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2317 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2318 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2319 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2320 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2321 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2322 definitions outside of __OPTIMIZE__ guarded section.
2325 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2326 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2327 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2328 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2331 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2333 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2334 ("vfenez<mode>"): Add missing constraints.
2336 2017-03-08 Martin Sebor <msebor@redhat.com>
2339 * config/nds32/nds32.c (nds32_option_override):
2341 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2344 * gimplify.c (gimplify_omp_for): Replace index var in outer
2345 taskloop statement with an artificial variable and add
2346 OMP_CLAUSE_PRIVATE clause for it.
2348 2017-03-08 Richard Biener <rguenther@suse.de>
2350 PR tree-optimization/79955
2351 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2352 for accesses that are completely outside of the variable.
2354 2017-03-08 Andrew Haley <aph@redhat.com>
2356 PR tree-optimization/79943
2357 * tree-ssa-loop-split.c (compute_new_first_bound): When
2358 calculating the new upper bound, (END-BEG) should be added, not
2361 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2363 * config/avr/avr.md (setmemhi): Make sure match_dup
2364 operand number comes before match_scratch.
2366 2017-03-08 Richard Biener <rguenther@suse.de>
2368 PR tree-optimization/79920
2369 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2370 with ncopies == 1 to ...
2371 (vect_transform_slp_perm_load): ... here. Properly compute
2372 all element loads by iterating VF times over the group. Do
2373 not handle ncopies (computed in a broken way) in
2374 vect_create_mask_and_perm.
2376 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2379 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2380 is a uniform vector, use uniform_vector_p return value instead of
2381 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2383 2017-03-07 Marek Polacek <polacek@redhat.com>
2386 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2387 (alloca_call_type): Likewise.
2389 2017-03-07 Martin Liska <mliska@suse.cz>
2391 * gcov.c (process_args): Put comment to correct location.
2393 2017-03-07 Martin Liska <mliska@suse.cz>
2396 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2397 Use array_at_struct_end_p instead of DECL_CHAIN (field).
2398 (chkp_narrow_bounds_for_field): Likewise.
2399 (chkp_parse_array_and_component_ref): Pass one more argument to
2402 2017-03-07 Richard Biener <rguenther@suse.de>
2404 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2407 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
2409 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2410 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2412 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2415 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2416 to end of description.
2417 (PARAM_MAX_STORES_TO_MERGE): Likewise.
2419 2017-03-07 Jakub Jelinek <jakub@redhat.com>
2421 PR rtl-optimization/79901
2422 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2424 (*avx512f_<code><mode>3<mask_name>): ... this.
2425 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2426 iterator instead of VI8_AVX2_AVX512BW.
2428 PR rtl-optimization/79901
2429 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2430 min/max expander, expand it using expand_vec_cond_expr.
2433 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2436 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2439 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2440 to void * for PCH reasons.
2441 * dwarf2out.c (output_loc_operands, output_die): Cast
2442 v.val_vec.array to unsigned char *.
2444 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
2447 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2450 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
2452 PR rtl-optimization/79571
2453 * lra-constraints.c (process_alt_operands): Calculate static
2454 reject and subtract it from overall when only addresses will be
2457 2017-03-06 Julia Koval <julia.koval@intel.com>
2460 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2461 incoming stack boundary to 128 for 64-bit targets.
2463 2017-03-06 Richard Biener <rguenther@suse.de>
2465 PR tree-optimization/79894
2466 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2467 to NULL after folding it.
2469 2017-03-06 Richard Biener <rguenther@suse.de>
2471 PR tree-optimization/79824
2472 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2473 check disabling peeling for gaps.
2475 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
2477 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2478 attributes): Document gettimeofday.
2480 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2482 * config/s390/s390.c (s390_option_override_internal): Set
2483 PARAM_MIN_VECT_LOOP_BOUND
2485 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2487 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2488 * config/s390/s390.md: Likewise.
2490 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2493 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2494 (<avx2_avx512>_perm<mode>): Rename to ...
2495 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
2497 (<avx512>_perm<mode>_mask): Rename to ...
2498 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
2500 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2501 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
2502 instead of VI8F_256_512.
2503 (avx512f_perm<mode>): New define_expand.
2504 (avx512f_perm<mode>_mask): Likewise.
2505 (avx512f_perm<mode>_1<mask_name>): New define_insn.
2506 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2508 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2510 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2511 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2513 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2515 2017-03-06 Martin Liska <mliska@suse.cz>
2518 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2519 when having a SSA NAME w/o VAR_DECL assigned to it.
2521 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2523 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2524 msa_dpsub_<su>_d): Fix MODE for vec_select.
2526 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2528 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2530 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2532 2017-03-06 Richard Biener <rguenther@suse.de>
2534 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2535 * plugin.c (register_plugin_info): Likewise.
2536 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2538 2017-03-05 Jakub Jelinek <jakub@redhat.com>
2540 * config/i386/sse.md (sse_storehps, sse_storelps,
2541 avx_<castmode><avxsizesuffix>_<castmode>,
2542 avx512f_<castmode><avxsizesuffix>_<castmode>,
2543 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2544 in condition that at least one operand is not a MEM.
2546 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2549 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2550 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2552 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2553 gimple_call_nothrow_p flag based on whether original builtin can throw.
2554 If it can, emit following stmts on the fallthrough edge.
2555 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2556 don't create new bb if inserting just debug stmts on the edge, try to
2557 insert them on the fallthru bb or just reset debug stmts.
2559 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
2562 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2563 restore recog_data (including the operand rtxes inside it) around
2564 the call to get_insn_template.
2566 2017-03-03 Martin Sebor <msebor@redhat.com>
2568 PR tree-optimization/79699
2569 * context.c (context::~context): Free MPFR caches to avoid
2570 a memory leak on program exit.
2572 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2574 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2575 Use wide_int::ulow () instead of .elt (0).
2577 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2579 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2580 (*pushxf): Limit oF constraint to 32bit targets and add oC
2581 constraint for 64bit targets.
2582 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2583 (*pushdf): Change rmF constraint to rmC.
2585 2017-03-03 Martin Liska <mliska@suse.cz>
2587 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2588 Remove unused variable.
2590 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2593 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2594 is a memory operand, increase num_memory.
2595 (ix86_expand_args_builtin): Likewise.
2597 2017-03-03 Jan Hubicka <jh@suse.cz>
2600 * ipa-devirt.c (maybe_record_node): Properly handle
2601 __cxa_pure_virtual visibility.
2603 2017-03-03 Martin Liska <mliska@suse.cz>
2605 PR tree-optimization/79803
2606 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2608 (pass_loop_prefetch::execute): Disabled optimization if an
2609 assumption about L1 cache size is not met.
2611 2017-03-03 Martin Liska <mliska@suse.cz>
2613 PR rtl-optimization/79574
2614 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2615 (hash_scan_set): Likewise.
2616 (dump_hash_table): Likewise.
2617 (hoist_code): Likewise.
2619 2017-03-03 Richard Biener <rguenther@suse.de>
2621 * fixed-value.c (fixed_from_string): Restore use of elt (1)
2622 in place of uhigh ().
2623 (fixed_convert_from_real): Likewise.
2625 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2628 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2630 2017-03-03 Richard Biener <rguenther@suse.de>
2633 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2634 TYPE_OVERFLOW_UNDEFINED check.
2636 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2638 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2640 (vector_ae_<mode>_p): Likewise.
2641 (vector_nez_<mode>_p): Likewise.
2642 (vector_ne_v2di_p): Likewise.
2643 (vector_ae_v2di_p): Likewise.
2644 (vector_ne_<mode>_p): Likewise.
2645 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2647 (vsx_tsqrt<mode>2_fe): Likewise.
2649 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
2652 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2654 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2656 PR rtl-optimization/79780
2657 * cprop.c (one_cprop_pass): When second and further conditional trap
2658 in a single basic block is turned into an unconditional trap, turn it
2659 into a deleted note to avoid RTL verification failures.
2661 2017-03-02 Richard Biener <rguenther@suse.de>
2663 * fold-const.c (const_binop): Use ulow () instead of elt (0).
2665 2017-03-02 Richard Biener <rguenther@suse.de>
2667 PR tree-optimization/79345
2669 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2670 param and abort the walk, returning -1 if it is hit.
2671 (walk_aliased_vdefs): Take a limit param and pass it on.
2672 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2673 defaulting to 0 and return a signed int.
2674 * tree-ssa-uninit.c (struct check_defs_data): New struct.
2675 (check_defs): New helper.
2676 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2677 about uninitialized memory.
2678 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2679 bogus uninitialized warning.
2680 (fixed_convert_from_real): Likewise.
2682 2017-03-02 Bin Cheng <bin.cheng@arm.com>
2684 PR tree-optimization/66768
2685 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2686 iv_use if base object can't be determined.
2688 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2690 PR tree-optimization/79345
2691 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2692 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2693 (get_pattern_stats): Initialize it.
2694 * genemit.c (gen_expand): Verify match_scratch numbers come after
2695 match_operand/match_dup numbers.
2696 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2697 match_scratch numbers.
2698 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2700 * config/s390/s390.md (trunctdsd2): Likewise.
2702 2017-03-02 Richard Biener <rguenther@suse.de>
2704 * wide-int.h (wide_int_storage::operator=): Implement in terms
2707 2017-03-02 Richard Biener <rguenther@suse.de>
2709 PR tree-optimization/79777
2710 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
2711 the to insert expression to sth existing.
2713 2017-03-01 Martin Sebor <msebor@redhat.com>
2716 * gimple-ssa-sprintf.c
2717 (directive::known_width_and_precision): New function.
2718 (format_integer): Use it.
2719 (get_mpfr_format_length): Consider the full range of precision
2720 when computing %g output with the # flag. Set the likely byte
2721 count to 3 rather than 1 when precision is indeterminate.
2722 (format_floating): Correct the lower bound of precision.
2724 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2726 * doc/invoke.texi: Document default code model for 64-bit Linux.
2728 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2731 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
2732 udiv rather than div since input pattern is unsigned.
2734 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
2736 * config/i386/i386.c (print_reg): Warn for values of
2737 unsupported size in integer register.
2739 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2742 * config/rs6000/predicates.md (current_file_function_operand): Do
2743 not allow self calls to be local if the function is replaceable.
2745 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2748 * config/rs6000/altivec.h (vec_ctz and others): Change the
2749 preprocessor macro that controls conditional compilation from
2750 _ARCH_PWR9 to __POWER9_VECTOR__.
2751 (vec_all_ne): Change parameterization of __altivec_scalar_pred
2752 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
2753 control (instead of _ARCH_PWR9 control) so that template
2754 definition uses power9-specific function.
2755 (vec_any_eq): Likewise.
2756 (vec_all_ne): Change macro definition to use a power9-specific
2757 expansion under #ifdef __POWER9_VECTOR__ control (instead of
2758 _ARCH_PWR9 control).
2759 (vec_any_eq) Likewise.
2760 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
2761 expansion for CMPNEF to remove support for xvcmpnesp instruction.
2762 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
2763 support for xvcmpnedp instruction.
2764 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
2765 macro expansion so that Power9 implementation of vec_all_ne does
2766 not use the AltiVec predicate framework.
2767 (VCMPNEH_P): Likewise.
2768 (VCMPNEW_P): Likewise.
2769 (VCMPNED_P): Likewise.
2770 (VCMPNEFP_P): Likewise.
2771 (VCMPNEDP_P): Likewise.
2772 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
2773 implementation of vec_any_eq to not use AltiVec predicate
2775 (VCMPAEH_P): Likewise.
2776 (VCMPAEW_P): Likewise.
2777 (VCMPAED_P): Likewise.
2778 (VCMPAEFP_P): Likewise.
2779 (VCMPAEDP_P): Likewise.
2780 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
2781 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
2782 not use the AltiVec predicate framework.
2783 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
2784 of vec_any_eq to not use AltiVec predicate framework.
2785 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
2786 support for predefined __POWER9_VECTOR__ macro to indicate that
2787 Power9 instruction selection is enabled.
2788 (altivec_overloaded_builtins): Remove extraneous
2789 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
2790 function argument types RS6000_BTI_bool_V16QI and
2791 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
2792 entry for overloaded function argument types RS6000_BTI_bool_V4SI
2793 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
2794 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
2795 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
2796 Power9 for implementations of vec_cmpne. Change the signature for
2797 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
2798 (representing vec_all_ne) to remove the previously described first
2799 argument of type RS6000_BTI_INTSI, as this was an artifact of
2800 reliance on the AltiVec predicate framework, which is no longer
2801 used in the implementation of these functions. Add
2802 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
2803 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
2804 since, unlike the AltiVec predicate framework implementation, we
2805 do not share function descriptors between vec_alle and vec_anyeq.
2806 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
2807 set of modes that receive special treatment even when
2808 TARGET_P9_VECTOR is true. The special treatment emits code that
2809 does not depend on Power9 instructions.
2810 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
2811 define_expand to not rely on AltiVec predicate framework.
2812 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2814 (vector_ne_v2di_p): Change this define_expand to not rely on
2815 AltiVec predicate framework.
2816 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
2818 (vector_ne_<mode>_p): Change this define_expand to not rely on
2819 AltiVec predicate framework.
2820 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2822 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
2823 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
2824 define_insn pattern.
2825 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
2826 define_insn pattern because the xvcmpne<VSs>. instruction is not
2828 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
2829 instruction is not supported.
2831 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2833 * config/nvptx/nvptx.c: Include intl.h.
2835 2017-03-01 Martin Jambor <mjambor@suse.cz>
2838 * ipa-prop.h (ipa_bits): Removed field known.
2839 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
2840 to pointers. Adjusted their comments to warn about their sharing.
2841 (ipcp_transformation_summary): Change bits to a vector of pointers.
2842 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
2843 (ipa_get_ipa_bits_for_value): Declare.
2844 * tree-vrp.h (value_range): Mark as GTY((for_user)).
2845 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
2846 (ipa_bits_hash_table): Likewise.
2847 (ipa_vr_ggc_hash_traits): Likewise.
2848 (ipa_vr_hash_table): Likewise.
2849 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
2850 being pointers and vr_known being removed.
2851 (ipa_set_jf_unknown): Likewise.
2852 (ipa_get_ipa_bits_for_value): New function.
2853 (ipa_set_jfunc_bits): Likewise.
2854 (ipa_get_value_range): New overloaded functions.
2855 (ipa_set_jfunc_vr): Likewise.
2856 (ipa_compute_jump_functions_for_edge): Use the above functions to
2857 construct bits and vr parts of jump functions.
2858 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
2859 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2861 (ipcp_grow_transformations_if_necessary): Also allocate
2862 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2864 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
2865 them. Fix too long lines.
2866 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
2867 vr_known being removed.
2868 (ipa_read_jump_function): Use new setter functions to construct bits
2869 and vr parts of jump functions or set them to NULL.
2870 (write_ipcp_transformation_info): Adjust for bits being pointers.
2871 (read_ipcp_transformation_info): Likewise.
2872 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
2874 Include gt-ipa-prop.h.
2875 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
2877 (ipcp_store_bits_results): Likewise.
2878 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
2879 Do not write to existing jump functions but use a temporary instead.
2881 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2884 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
2885 attempt to use its first operand as BIT_FIELD_REF base.
2887 2017-03-01 Richard Biener <rguenther@suse.de>
2890 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
2891 interpolating formula in wrapping arithmetic.
2892 (chrec_apply): Convert chrec_evaluate return value to wanted type.
2894 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2896 PR tree-optimization/79734
2897 * tree-vect-generic.c (expand_vector_condition): Optimize
2898 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
2899 Handle VEC_COND_EXPR where comparison has different inner width from
2902 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
2904 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
2905 markup, and similar issues. Remove @opindex entries for things
2906 that aren't options. Add missing -mmpy-option entries.
2908 2017-02-28 Jakub Jelinek <jakub@redhat.com>
2910 PR tree-optimization/79737
2911 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
2912 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
2913 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
2914 instead of byte_size. Formatting fix.
2915 (shift_bytes_in_array_right): Formatting fix.
2917 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
2920 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
2921 condition on optimize for the leaf function test.
2923 2017-02-28 Martin Liska <mliska@suse.cz>
2926 * read-rtl-function.c (function_reader::handle_unknown_directive):
2927 Bail out when one uses -flto.
2929 2017-02-28 Martin Liska <mliska@suse.cz>
2931 * common.opt: Replace space with tabular for options of <number>
2933 * config/i386/i386.opt: Show <number> value for
2934 -mlarge-data-threshold.
2935 * opts.c (print_filtered_help): Do not display number in hexadecimal
2938 2017-02-28 Martin Liska <mliska@suse.cz>
2940 * common.opt: Fix --help=option -Q for options which are of
2943 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
2945 * config/i386/i386.c (print_reg): Error out for values
2946 of 8-bit size in invalid integer register.
2948 2017-02-28 Martin Sebor <msebor@redhat.com>
2950 PR tree-optimization/79691
2951 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
2953 2017-02-28 Jakub Jelinek <jakub@redhat.com>
2956 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
2957 gcc_unreachable with output_operand_lossage.
2959 2017-02-28 Richard Biener <rguenther@suse.de>
2961 PR tree-optimization/79740
2962 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
2964 (visit_nary_op): Insert the nary into the hashtable if we
2965 pattern-matched sth.
2966 * tree-ssa-pre.c (eliminate_insert): Robustify.
2968 2017-02-28 Richard Biener <rguenther@suse.de>
2971 * fold-const.c (decode_field_reference): Reject out-of-bound
2974 2017-02-28 Jakub Jelinek <jakub@redhat.com>
2976 * config/i386/i386.c: Include intl.h.
2977 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
2978 instead of just cond ? "..." : "...".
2979 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
2980 * coverage.c (read_counts_file): Likewise.
2981 * omp-offload.c: Include intl.h.
2982 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
2983 of just cond ? "..." : "...".
2984 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
2985 of just cond ? "..." : "...".
2987 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
2990 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
2992 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
2993 'tune for' CPU name.
2994 * config/arm/arm-cpu-data.h: Regenerated.
2996 2017-02-28 Richard Biener <rguenther@suse.de>
2998 PR tree-optimization/79732
2999 * tree-inline.c (expand_call_inline): Do not shadow var.
3001 2017-02-28 Richard Biener <rguenther@suse.de>
3003 PR tree-optimization/79723
3004 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
3005 address-space properly.
3007 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
3009 * doc/optinfo.texi (Optimization groups): Fix option used for
3011 * doc/invoke.texi (-fopt-info): Document "omp".
3012 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
3013 (OPTGROUP_ALL): Add OPTGROUP_OMP.
3014 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
3015 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
3016 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
3018 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
3020 * dumpfile.c (optgroup_options): Instead of "openmp", associate
3021 OPTGROUP_OMP with "omp".
3023 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
3026 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
3027 for arithmetic shift of unsigned V2DI.
3029 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
3031 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
3032 arc/linux.h headers.
3033 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
3034 (LINK_SPEC): Likewise.
3035 (ARC_TLS_EXTRA_START_SPEC): Likewise.
3036 (EXTRA_SPECS): Likewise.
3037 (STARTFILE_SPEC): Likewise.
3038 (ENDFILE_SPEC): Likewise.
3039 (LIB_SPEC): Likewise.
3040 (TARGET_SDATA_DEFAULT): Likewise.
3041 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
3042 (MULTILIB_DEFAULTS): Likewise.
3043 (DWARF2_UNWIND_INFO): Likewise.
3044 * config/arc/big.h: New file.
3045 * config/arc/elf.h: Likewise.
3046 * config/arc/linux.h: Likewise.
3047 * config/arc/t-uClibc: Remove.
3049 2017-02-27 Bin Cheng <bin.cheng@arm.com>
3051 PR tree-optimization/77536
3052 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
3053 (tree_transform_and_unroll_loop): Use above function to compute the
3054 estimated niter of unrolled loop and use it when scaling profile.
3055 Also use count info rather than frequency if it's non-zero.
3056 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
3057 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
3058 (vect_transform_loop): Call above function.
3060 2017-02-27 Richard Biener <rguenther@suse.de>
3062 PR tree-optimization/45397
3063 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
3064 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
3065 (visit_nary_op): Add pattern matching for CSEing sign-changed
3066 or truncated operations with wider ones.
3068 2017-02-27 Richard Biener <rguenther@suse.de>
3070 PR tree-optimization/79690
3071 * tree-vect-stmts.c (vectorizable_store): Use vector type
3072 built from the DR with address-space.
3074 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3076 * doc/invoke.texi (Optimize Options): Refine the description
3077 of asan-use-after-return.
3079 2017-02-25 Alan Modra <amodra@gmail.com>
3081 PR rtl-optimization/79584
3082 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
3083 base, not ad->base_term, the reg within base. Remove assertion
3084 that ad->base == ad->base_term. Replace gen_int_mode using
3085 bogus mode with const0_rtx.
3087 2017-02-25 Jakub Jelinek <jakub@redhat.com>
3090 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
3091 FMA_EXPR like tcc_binary or tcc_unary.
3093 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
3096 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
3098 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
3099 (output_loc_operands): Handle DW_OP_call_ref and
3100 DW_OP_GNU_variable_value.
3101 (struct variable_value_struct): New type.
3102 (struct variable_value_hasher): Likewise.
3103 (variable_value_hash): New variable.
3104 (string_types): Remove.
3105 (copy_loc_descr): New function.
3106 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
3107 (prepend_loc_descr_to_each): New function.
3108 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
3109 instead of add_loc_descr_to_each if the first argument is single
3110 location list and the second has multiple.
3111 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
3112 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
3113 when looking for variable value which doesn't have other location info.
3114 (loc_list_from_tree): Formatting fix.
3115 (gen_array_type_die): Simplify DW_AT_string_length handling.
3116 (adjust_string_types): Remove.
3117 (gen_subprogram_die): Don't call adjust_string_types nor test/set
3118 string_types. Call resolve_variable_values.
3119 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
3120 (resolve_addr_in_expr): Likewise. Add A argument.
3121 (copy_deref_exprloc): Remove deref argument. Adjust for the
3122 original expression being DW_OP_GNU_variable_value with optionally
3123 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
3124 optionally after it.
3125 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
3126 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
3127 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
3128 (variable_value_hasher::hash, variable_value_hasher::equal): New
3130 (resolve_variable_value_in_expr, resolve_variable_value,
3131 resolve_variable_values, note_variable_value_in_expr,
3132 note_variable_value): New functions.
3133 (dwarf2out_early_finish): Call note_variable_value on all toplevel
3136 2017-02-24 Jakub Jelinek <jakub@redhat.com>
3139 * opts.h (handle_generated_option): Add GENERATED_P argument.
3140 * opts-common.c (handle_option): Adjust function comment.
3141 (handle_generated_option): Add GENERATED_P argument, pass it to
3143 (control_warning_option): Pass false to handle_generated_option
3145 * opts.c (maybe_default_option): Pass true to handle_generated_option
3147 * optc-gen.awk: Likewise.
3149 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3151 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
3152 a REG, look at the REG it is a SUBREG of.
3153 (splitter for cmpeqsi_t): Ditto.
3155 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3157 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
3158 the special USEs with the pattern of the insn, not the insn itself.
3160 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
3163 * doc/invoke.texi: Document -mload-store-pairs.
3165 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3166 Sandra Loosemore <sandra@codesourcery.com>
3168 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
3169 argument isn't a CONST_INT.
3170 (nios2_alternate_compare_const): Assert op is a CONST_INT.
3171 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
3172 (nios2_validate_compare): Bypass alternate compare logic if *op2
3174 (ldstwm_operation_p): Return false if first_base is not a REG or
3175 if first_offset is not a CONST_INT.
3177 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3179 * config/cris/cris.md: Use correct operand in a define_peephole2.
3181 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3183 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
3185 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3187 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
3188 this_insn if it is an INSN or JUMP_INSN.
3189 (force_offsettable): Look at base, not at addr.
3190 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
3191 on things that aren't necessarily CONST_INTs.
3193 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
3195 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
3196 -mfpmath=sse is the default also for x86-32 targets with SSE2
3197 instruction set when @option{-ffast-math} is enabled
3199 2017-02-24 Jeff Law <law@redhat.com>
3201 PR rtl-optimizatoin/79286
3202 * ira.c (update_equiv_regs): Drop may_trap_p exception to
3205 2017-02-24 Richard Biener <rguenther@suse.de>
3207 PR tree-optimization/79389
3208 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3211 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
3213 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3214 function comment to reflect reality.
3215 (loop_exits_before_overflow): Fix typo in function description.
3217 2017-02-24 Richard Biener <rguenther@suse.de>
3219 PR tree-optimization/79389
3220 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3221 properly that a threading opportunity exists. Detect conditional
3222 copy/constant propagation opportunities.
3224 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
3226 * config/visium/visium.md (type): Add trap.
3227 (b): New mode attribute.
3228 (*btst): Rename into...
3229 (*btst<mode>): ...this and adjust.
3230 (*cbranchsi4_btst_insn): Rename into...
3231 (*cbranch<mode>4_btst_insn): ...this and adjust.
3232 (trap): New define_insn.
3234 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3236 PR tree-optimization/79389
3237 * ifcvt.c (struct noce_if_info): Add rev_cond field.
3238 (noce_reversed_cond_code): New function.
3239 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3240 reversed_comparison_code. Formatting fix.
3241 (noce_try_store_flag): Test rev_cond != NULL in addition to
3242 reversed_comparison_code.
3243 (noce_try_store_flag_constants): Likewise.
3244 (noce_try_store_flag_mask): Likewise.
3245 (noce_try_addcc): Use rev_cond if non-NULL instead of
3246 reversed_comparison_code.
3247 (noce_try_cmove_arith): Likewise. Formatting fixes.
3248 (noce_try_minmax, noce_try_abs): Clear rev_cond.
3249 (noce_find_if_block): Initialize rev_cond.
3250 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3251 instead of false as last argument never attempt to reverse it
3254 2017-02-23 Bin Cheng <bin.cheng@arm.com>
3256 PR tree-optimization/79663
3257 * tree-predcom.c (combine_chains): Process refs in reverse order
3258 only for ZERO length chains, and add explaining comment.
3260 2017-02-23 Jeff Law <law@redhat.com>
3262 PR tree-optimization/79578
3263 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3264 in call to operand_equal_p.
3266 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
3269 * config/i386/cpuid.h: Fix another undefined behavior.
3271 2017-02-23 Richard Biener <rguenther@suse.de>
3273 PR tree-optimization/79683
3274 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3275 vector types for data-refs.
3277 2017-02-23 Martin Liska <mliska@suse.cz>
3279 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3281 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3284 * internal-fn.c (get_range_pos_neg): Moved to ...
3285 * tree.c (get_range_pos_neg): ... here. No longer static.
3286 * tree.h (get_range_pos_neg): New prototype.
3287 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3288 are known to be in between 0 and signed maximum inclusive, try to
3289 expand both unsigned and signed divmod and use the cheaper one from
3292 2017-02-22 Jeff Law <law@redhat.com>
3294 PR tree-optimization/79578
3295 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3296 to compare base operands.
3298 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
3301 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3302 gpc_reg_operand instead of fpr_reg_operand.
3304 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
3306 * config/mips/mips.c (mips_return_in_memory): Force FP
3307 vector types to be returned in memory for o32 ABI.
3309 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3311 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3312 instead of DW_TAG_member for static data member declarations and don't
3313 set no_linkage_name for static inline data members.
3314 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3317 2017-02-22 Martin Liska <mliska@suse.cz>
3319 * doc/invoke.texi: Replace inequality signs with square brackets
3322 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3324 PR tree-optimization/68644
3325 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3327 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
3330 * lra-constraints.c (simplify_operand_subreg): Handle
3331 WORD_REGISTER_OPERATIONS targets.
3333 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3336 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3337 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3338 elimination by swapping fld*.
3340 2017-02-22 Richard Biener <rguenther@suse.de>
3342 PR tree-optimization/79673
3343 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3344 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3345 irrelevant address-space qualifiers and avoiding a
3346 ADDR_SPACE_CONVERT_EXPR from fold_convert.
3348 2017-02-22 Richard Biener <rguenther@suse.de>
3350 PR tree-optimization/79666
3351 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3352 to not symbolically negate if that may introduce undefined
3355 2017-02-22 Martin Liska <mliska@suse.cz>
3358 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3359 * data-streamer-out.c (streamer_write_gcov_count_stream):
3361 * value-prof.c (stream_out_histogram_value): Make assert more
3362 precise based on type of counter.
3364 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
3367 * config/i386/i386.md (standard_x87sse_constant_load splitter):
3368 Use nonimmediate_operand instead of memory_operand for operand 1.
3369 (float-extend standard_x87sse_constant_load splitter): Ditto.
3371 2017-02-21 Jeff Law <law@redhat.com>
3373 PR tree-optimization/79621
3374 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3375 blocks with edges to themselves.
3377 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3380 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3381 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3382 Use gimple_call_builtin_p.
3385 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3386 on temporarily removed DEBUG_INSNs.
3388 PR tree-optimization/79649
3389 * tree-loop-distribution.c (classify_partition): Give up on
3390 non-generic address space loads/stores.
3392 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
3394 * doc/loop.texi (Loop manipulation): Remove nonexistent
3395 tree_ssa_loop_version from the documentation.
3396 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3398 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3401 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3402 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3403 * config/rs6000/rs6000.c: Include except.h.
3404 (rs6000_expand_split_stack_prologue): Call
3405 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3407 2017-02-21 Martin Jambor <mjambor@suse.cz>
3410 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3413 2017-02-21 Martin Jambor <mjambor@suse.cz>
3415 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3416 for backward compatibility only.
3417 * doc/invoke.texi (Option Summary): Remove all references to
3420 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
3424 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3426 * lra-constraints.c (curr_insn_transform): Handle
3427 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3429 2017-02-21 Martin Liska <mliska@suse.cz>
3431 * config/i386/i386.opt: Replace -masm-dialect with -masm.
3433 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
3435 PR translation/79638
3436 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3438 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
3441 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3442 (arm_function_ok_for_sibcall): Return false for an indirect call by
3443 descriptor if all the argument registers are used.
3444 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3445 alignment of the function.
3447 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3449 PR tree-optimization/61441
3450 * simplify-rtx.c (simplify_const_unary_operation): For
3451 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3452 the sNaN unmodified.
3454 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3456 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3457 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3458 instead of SYSTEM_HEADER_DIR.
3460 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
3461 Martin Liška <mliska@suse.cz>
3463 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3464 Fix typos and grammar, use active voice, and clarify.
3466 2017-02-20 Marek Polacek <polacek@redhat.com>
3469 * gimplify.c (gimplify_expr): Handle unused *&&L;.
3472 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3474 2017-02-20 Jakub Jelinek <jakub@redhat.com>
3477 * config/i386/i386.c (ix86_expand_builtin): Handle
3478 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3479 ix86_builtins_isa[fcode].isa as a requirement of those
3480 flags and any other flag in the bitmask.
3481 (ix86_init_mmx_sse_builtins): Use 0 instead of
3482 ~OPTION_MASK_ISA_64BIT as mask.
3483 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3484 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3485 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3486 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3488 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3491 * lra-constraints.c (split_reg): Check requested split mode
3492 is supported by the register.
3494 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3496 * lra-constraints.c (simplify_operand_subreg): Remove early
3499 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3502 * lra-constraints.c (curr_insn_transform): Tighten condition
3503 for converting SUBREG reloads from OP_OUT to OP_INOUT.
3505 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3508 * lra-constraints.c (curr_insn_transform): Handle
3509 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3511 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
3514 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
3516 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3518 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
3521 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3524 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3526 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3529 2017-02-18 Jakub Jelinek <jakub@redhat.com>
3531 * final.c (last_columnnum, override_columnnum): New variables.
3532 (final_start_function): Set last_columnnum, pass it to begin_prologue
3533 hook and pass 0 to dwarf2out_begin_prologue.
3534 (final_scan_insn): Update override_columnnum. Pass last_columnnum
3535 to source_line debug hook.
3536 (notice_source_line): Compute last_columnnum and for debug_column_info
3537 return true on column changes.
3538 * debug.h (struct gcc_debug_hooks): Add column argument to
3539 source_line and begin_prologue hooks.
3540 (debug_nothing_int_charstar_int_bool): Remove prototype.
3541 (debug_nothing_int_int_charstar,
3542 debug_nothing_int_int_charstar_int_bool): New prototypes.
3543 (dwarf2out_begin_prologue): Add column argument.
3544 * debug.c (do_nothing_debug_hooks): Adjust source_line and
3545 begin_prologue hooks.
3546 (debug_nothing_int_charstar_int_bool): Remove.
3547 (debug_nothing_int_int_charstar,
3548 debug_nothing_int_int_charstar_int_bool): New functions.
3549 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3550 through to dwarf2out_source_line.
3551 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3552 (dwarf2out_source_line): Add column argument, emit it if requested.
3553 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3555 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3556 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3557 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3558 through to dwarf2out_begin_prologue.
3559 (vmsdbgout_source_line): Add column argument, pass it through to
3560 dwarf2out_source_line.
3561 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3562 dbxout_source_line caller.
3563 (dbxout_source_line): Add column argument.
3565 * common.opt (gno-column-info, gcolumn-info): New options.
3566 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3567 (check_die): Also test for multiple DW_AT_decl_column attributes.
3568 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3569 DW_AT_decl_column if requested.
3570 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3572 (gen_variable_die): Likewise.
3573 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3574 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3577 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3578 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3579 (ix86_handle_option): Handle OPT_m3dnowa.
3580 * doc/invoke.texi (-m3dnowa): Document.
3581 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3582 -m3dnowa instead of -m3dnow -march=athlon.
3585 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3586 instead of gcc_assert for K, r and R code checks. Formatting fixes.
3588 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3591 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3592 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3593 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3594 generator for vsx_xxpermdi_<mode>_be.
3595 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3596 force big-endian semantics.
3597 (vsx_xxpermdi_<mode>_be): New define_expand with same
3598 implementation as previous version of vsx_xxpermdi_<mode>.
3600 2017-02-17 Jakub Jelinek <jakub@redhat.com>
3602 PR tree-optimization/79327
3603 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3604 variable, its initialization and use.
3606 2017-02-17 Julia Koval <julia.koval@intel.com>
3608 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3609 (OPTION_MASK_ISA_PKU_UNSET): New.
3610 (ix86_handle_option): Handle -mrdpid.
3611 * config/i386/cpuid.h (bit_RDPID): New.
3612 * config/i386/driver-i386.c (host_detect_local_cpu):
3613 Detect RDPID feature.
3614 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3615 * config/i386/i386-c.c (ix86_target_macros_internal):
3617 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3618 (ix86_valid_target_attribute_inner_p): Add "rdpid".
3619 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3620 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3621 * config/i386/i386.md (define_insn "rdpid"): New.
3622 * config/i386/i386.opt Add -mrdpid.
3623 * config/i386/immintrin.h (_rdpid_u32): New.
3625 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
3627 PR rtl-optimization/79541
3628 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3629 instead of transforming it into USE.
3631 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
3633 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3634 If HONOR_SNANS (SFmode) force the input to a register.
3635 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3636 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3637 an frsp or similar insn.
3639 2017-02-17 Martin Liska <mliska@suse.cz>
3641 PR rtl-optimization/79577
3642 * params.def (selsched-max-sched-times): Increase minimum to 1.
3644 2017-02-17 Martin Liska <mliska@suse.cz>
3646 PR rtl-optimization/79574
3647 * gcse.c (want_to_gcse_p): Prevent integer overflow.
3649 2017-02-17 Martin Liska <mliska@suse.cz>
3651 PR tree-optimization/79529
3652 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3653 ssa_defined_default_def_p to handle cases which are implicitly
3655 * tree-ssa.c (ssa_defined_default_def_p): New function.
3656 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3657 which are implicitly defined.
3658 * tree-ssa.h (ssa_defined_default_def_p): Declare.
3660 2017-02-17 Richard Biener <rguenther@suse.de>
3663 * params.def (max-ssa-name-query-depth): Limit to 10.
3665 2017-02-17 Richard Biener <rguenther@suse.de>
3667 PR tree-optimization/79552
3668 * tree-ssa-structalias.c (visit_loadstore): Properly verify
3671 2017-02-17 Richard Biener <rguenther@suse.de>
3674 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3676 2017-02-17 Marek Polacek <polacek@redhat.com>
3679 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3680 (fold_negate_expr): New wrapper.
3682 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
3684 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
3685 Correct terminology and de-emphasize pre-standard behavior.
3687 2017-02-16 Alan Modra <amodra@gmail.com>
3689 PR rtl-optimization/79286
3690 * ira.c (def_dominates_uses): New function.
3691 (update_equiv_regs): Don't create an equivalence for insns that
3692 may trap where the register def does not dominate the use.
3694 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
3696 PR rtl-optimization/78127
3697 * lra.c (lra): Call lra_eliminate before finish the loop after
3700 2017-02-16 Richard Biener <rguenther@suse.de>
3702 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3704 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3705 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3706 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3707 (isl_val_int_from_wi): New function.
3708 (extract_affine_gmp): Rename to ...
3709 (extract_affine_wi): ... this, take a widest_int.
3710 (extract_affine_int): Just wrap extract_affine_wi.
3711 (add_param_constraints): Use isl_val_int_from_wi.
3712 (add_loop_constraints): Likewise, and extract_affine_wi.
3714 2017-02-15 Jeff Law <law@redhat.com>
3717 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
3718 ira_init_register_move_cost_if_necessary.
3720 2017-02-15 Martin Sebor <msebor@redhat.com>
3723 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
3724 removed in a prior commit.
3726 2017-02-15 Bin Cheng <bin.cheng@arm.com>
3728 PR tree-optimization/79347
3729 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
3730 counters during peeling.
3732 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
3734 * Makefile.in (site.exp): Remove "set ISLVER".
3736 2017-02-15 Jakub Jelinek <jakub@redhat.com>
3739 * real.c (real_from_integer): Call real_convert even for decimal.
3741 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3744 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3746 2017-02-14 Andrew Pinski <apinski@cavium.com>
3748 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
3749 cores and change the partno/implementer to be correct.
3750 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
3751 the 'B" as the implementer.
3752 * config/aarch64/aarch64-tune.md: Regenerate.
3754 2017-02-14 Carl Love <cel@us.ibm.com>
3756 * config/rs6000/rs6000.c: Add case statement entry to make the
3757 xvcvuxdsp built-in argument unsigned.
3758 * config/rs6000/vsx.md: Fix the source and return operand types so they
3759 match the instruction definitions from the ISA document. Fix typo
3760 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
3763 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
3766 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
3767 member early_clobber_alts.
3768 * lra-lives.c (reg_early_clobber_p): New.
3769 (process_bb_lives): Use it.
3770 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
3771 (debug_operand_data): Initialize early_clobber_alts.
3772 (setup_operand_alternative): Set up early_clobber_alts.
3773 (collect_non_operand_hard_regs): Ditto. Pass early clobber
3774 alternatives to new_insn_reg.
3775 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
3777 (lra_update_insn_regno_info): Pass the new arg.
3779 2017-02-14 Jakub Jelinek <jakub@redhat.com>
3782 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
3783 (new_oacc_loop_raw): Don't clear already cleared fields.
3786 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
3787 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
3788 _mm512_prefetch_i64gather_ps): New inline functions and macros.
3790 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
3793 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
3795 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
3798 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
3799 the extra instruction to the right place to store 128-bit constant
3802 2017-02-14 Martin Sebor <msebor@redhat.com>
3805 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
3806 warning for strings of unknown length.
3808 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
3810 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
3812 2017-02-14 Jeff Law <law@redhat.com>
3815 * ira-costs.c (scan_one_insn): Initialize register move costs
3816 for pseudos seen in USE/CLOBBER insns.
3818 PR tree-optimization/79095
3819 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
3820 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
3821 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
3822 if the operands are known to be not equal, then the resulting range
3824 (intersect_ranges): If the new range is ~[0,0] and the old range is
3825 wide, then prefer ~[0,0].
3826 * tree-vrp.c (overflow_comparison_p_1): New function.
3827 (overflow_comparison_p): New function.
3828 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
3829 if NAME is used in an overflow test.
3830 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
3831 overflow check that can be expressed as an equality test, then adjust
3832 ops to be that equality test.
3834 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3836 * config/s390/s390-builtin-types.def: Remove flags argument.
3837 * config/s390/s390.c (s390_init_builtins): Likewise.
3839 2017-02-14 Martin Liska <mliska@suse.cz>
3841 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
3842 vector. Fix trailing white spaces.
3844 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
3846 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
3849 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3851 PR rtl-optimization/68664
3852 * config/arm/arm.c (arm_sched_can_speculate_insn):
3853 New function. Declare prototype.
3854 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3856 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3858 PR rtl-optimization/68664
3859 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
3861 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3863 2017-02-14 Amit Pawar <amit.pawar@amd.com>
3865 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
3866 max skip bytes for function, loop and jump.
3868 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3870 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
3871 ABS_EXPR for gimple dump.
3873 2017-02-14 Jakub Jelinek <jakub@redhat.com>
3876 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
3878 PR tree-optimization/79408
3879 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
3880 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
3881 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3882 also if rhs1 is INTEGER_CST.
3884 2017-02-14 Richard Biener <rguenther@suse.de>
3887 * tree-into-ssa.c (insert_phi_nodes): When the function can
3888 have abnormal edges rewrite SSA names with broken use-def
3889 dominance out of SSA and register them for PHI insertion.
3891 2017-02-13 Martin Sebor <msebor@redhat.com>
3894 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
3895 clearing info.nowrite flag when snprintf size argument is a range.
3897 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3899 * cprop.c (cprop_jump): Add missing space in string literal.
3900 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3901 (get_constraint_for_component_ref): Likewise.
3902 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3903 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
3904 * lra-constraints.c (process_alt_operands): Likewise.
3905 * ipa-inline.c (inline_small_functions): Likewise.
3906 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
3907 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3908 * trans-mem.c (diagnose_tm_1_op): Likewise.
3909 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
3910 (grid_parallel_clauses_gridifiable): Likewise.
3912 * config/nvptx/mkoffload.c (process): Add space in between
3915 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
3916 "MOD4_SSE_REGS" and "ALL_REGS".
3918 * spellcheck.c (test_data): Add , in between "foo" and "food".
3920 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3923 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
3924 boundary crossing check and subsequent code generation agree.
3926 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3928 * config/aarch64/aarch64.c (has_memory_op): Delete.
3929 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
3932 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3934 PR rtl-optimization/79388
3935 PR rtl-optimization/79450
3936 * combine.c (distribute_notes): When removing TEM_INSN for which
3937 corresponding dest has last value recorded, invalidate that last
3940 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3942 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
3943 of explicit '@'. Add missing assembly comment marker on branch costs
3946 2017-02-13 Nathan Sidwell <nathan@acm.org>
3948 * gengtype-lex.l (<in_struct>): Add '/'.
3950 2017-02-13 Martin Liska <mliska@suse.cz>
3953 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
3955 2017-02-13 Richard Biener <rguenther@suse.de>
3957 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
3959 * configure: Re-generate.
3960 * config.in: Likewise.
3961 * graphite-dependences.c: Simplify as if
3962 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
3963 * graphite-isl-ast-to-gimple.c: Likewise.
3964 * graphite-optimize-isl.c: Likewise.
3965 * graphite-poly.c: Likewise.
3966 * graphite-sese-to-poly.c: Likewise.
3967 * graphite.h: Likewise.
3968 * toplev.c: Include isl/version.h and use isl_version () for
3969 printing the ISL version.
3970 * doc/install.texi: Update ISL requirement.
3972 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3974 * doc/standards.texi (Standards): Update reference to
3977 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3979 * doc/extend.texi (Named Address Spaces): sourceware.org now
3981 * doc/install.texi (Binaries): Ditto.
3984 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
3986 * doc/cpp.texi: Replace "stringify"/"stringification" with C
3987 standard terminology "stringize"/"stringizing" throughout.
3988 * doc/cppinternals.texi: Likewise.
3990 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
3992 * doc/extend.texi: Fix some spelling mistakes and typos.
3993 * doc/invoke.texi: Likewise.
3995 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
3998 * params.def (inline-min-speedup) Change from 10 to 8.
4000 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4002 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
4005 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4008 * ipa-inline-analysis.c (get_minimal_bb): New function.
4009 (record_modified): Use it.
4010 (remap_edge_change_prob): Handle also ancestor functions.
4012 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
4014 * doc/contrib.texi (Contributors): Remove broken link into
4015 the Mauve CVS repository.
4017 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4020 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
4021 result computation whenever lhs doesn't have vector mode, not
4022 just when it has BLKmode.
4024 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4026 * doc/makefile.texi (profiledbootstrap): Refer to the
4027 installation instructions only in textual form.
4029 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4032 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
4034 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4036 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
4037 (Specific): Update mingw-w64 reference.
4039 (Specific): Remove broken link to Renesas RX processor.
4041 2017-02-10 Richard Biener <rguenther@suse.de>
4043 * toplev.c (process_options): Do not mention obsolete graphite
4044 options when printing sorry message about missing graphite support.
4045 Mention -floop-nest-optimize.
4047 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
4049 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
4050 (vtst_p16): Likewise.
4051 (vtstq_p8): Likewise.
4052 (vtstq_p16): Likewise.
4054 (vtstq_p64): Likewise.
4055 * config/arm/arm_neon.h (vgetq_lane_p64): New.
4056 (vset_lane_p64): New.
4057 (vsetq_lane_p64): New.
4059 2017-02-10 Jakub Jelinek <jakub@redhat.com>
4061 PR tree-optimization/79411
4062 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
4063 stmt operands are SSA_NAMEs used in abnormal phis.
4064 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
4067 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4070 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
4073 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4075 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
4077 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4079 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
4083 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
4084 not arbitrary TREE_CONSTANT.
4087 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
4088 "omp declare target link" attribute unless is_global_var.
4089 * omp-offload.c (find_link_var_op): Likewise.
4091 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4092 Chung-Lin Tang <cltang@codesourcery.com>
4094 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
4096 (gimplify_adjust_omp_clauses): Don't delete TILE.
4097 (gimplify_omp_for): Deal with TILE.
4098 * internal-fn.c (expand_GOACC_TILE): New function.
4099 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
4101 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
4102 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
4104 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
4105 avoid DIV for outermost collapse var.
4106 (expand_oacc_for): Insert tile element loop as needed. Adjust.
4107 Remove out of date comments, fix whitespace.
4108 * omp-general.c (omp_extract_for_data): Deal with tiling.
4109 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
4110 adjust OLF_DIM_BASE value.
4111 (struct omp_for_data): Add tiling field.
4112 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
4113 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
4114 for auto loops. Remove default auto determining, moved to
4115 oacc_loop_fixed_partitions.
4116 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
4117 stmts, add e_mask field.
4118 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
4119 (oacc_thread_numbers): Use oacc_dim_call.
4120 (oacc_xform_tile): New.
4121 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
4122 (finish_oacc_loop): Adjust for ifns vector.
4123 (oacc_loop_discover_walk): Append loop abstraction sites to list,
4124 add case for GOACC_TILE fns.
4125 (oacc_loop_xform_loop): Delete.
4126 (oacc_loop_process): Iterate over call list directly, and add
4127 handling for GOACC_TILE fns.
4128 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
4130 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
4131 vector partitioning to outer loops. Assign 2 partitions to loops
4132 when available. Add TILE handling.
4133 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
4134 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
4135 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
4136 * tree.c (omp_clause_num_ops): Adjust TILE ops.
4137 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
4139 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
4141 * configure.ac (ACX_BUGURL): Update.
4142 * configure: Regenerate.
4144 2017-02-09 Richard Biener <rguenther@suse.de>
4146 PR tree-optimization/69823
4147 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4148 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
4150 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4152 * config/arc/arc-c.def: Add __NPS400__ definition.
4153 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
4154 (TARGET_NPS400): Define.
4156 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4158 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
4160 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
4162 (arc_cpu_types): Fill the arch_info field with a pointer into the
4163 arc_arch_types table.
4164 (arc_selected_cpu): Declare.
4165 * config/arc/arc.c (arc_selected_cpu): Make global.
4166 (arc_selected_arch): Delete.
4167 (arc_base_cpu): Delete.
4168 (arc_override_options): Remove references to deleted variables,
4169 update access to arch information.
4170 (ARC_OPT): Update access to arch information.
4171 (ARC_OPTX): Likewise.
4172 * config/arc/arc.h (arc_base_cpu): Remove declaration.
4173 (TARGET_ARC600): Update access to arch information.
4174 (TARGET_ARC601): Likewise.
4175 (TARGET_ARC700): Likewise.
4176 (TARGET_EM): Likewise.
4177 (TARGET_HS): Likewise.
4178 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
4181 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
4184 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
4185 condition/operands for integer GE/LE/GEU/LEU operations.
4187 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
4189 PR translation/79397
4190 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
4193 2017-02-08 Martin Jambor <mjambor@suse.cz>
4196 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
4197 whether allocation happened.
4198 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
4199 nothing was allocated.
4201 2017-02-08 Jakub Jelinek <jakub@redhat.com>
4203 PR tree-optimization/79408
4204 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
4205 constant, but SSA_NAME with a known integer range, use the minimum
4206 of that range instead of op1 to determine if modulo can be replaced
4207 with its first operand.
4209 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4211 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4213 2017-02-08 Richard Biener <rguenther@suse.de>
4215 PR tree-optimization/71824
4216 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4217 Check all loops contained in the merged region.
4219 2017-02-07 Andrew Pinski <apinski@cavium.com>
4221 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4223 2017-02-07 Andrew Pinski <apinski@cavium.com>
4225 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4226 (thunderxt88): Likewise.
4227 (thunderxt81): Disable LSE and change v8.1 to v8.
4228 (thunderxt83): Likewise.
4230 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4231 Richard Biener <rguenther@suse.de>
4234 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4235 type from int to size_t.
4236 * ira-costs.c (struct_costs_size): Change type from int to size_t.
4238 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4240 PR rtl-optimization/79386
4241 * cprop.c (bypass_conditional_jumps): Initialize
4242 bypass_last_basic_block already before splitting bbs after
4243 unconditional traps...
4244 (bypass_conditional_jumps): ... rather than here.
4247 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4248 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4249 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4250 fix -masm=intel patterns.
4252 2017-02-07 Richard Biener <rguenther@suse.de>
4254 PR tree-optimization/79256
4256 * builtins.c (get_object_alignment_2): Use min_align_of_type
4257 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4258 and ADJUST_FIELD_ALIGN.
4260 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4262 * doc/tm.texi: Regenerate.
4263 * stor-layout.c (layout_decl): Adjust.
4264 (update_alignment_for_field): Likewise.
4265 (place_field): Likewise.
4266 (min_align_of_type): Likewise.
4267 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4268 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4269 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4270 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4271 * config/frv/frv.c (frv_adjust_field_align): Likewise.
4272 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4273 * config/i386/i386.c (x86_field_alignment): Likewise.
4274 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4275 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4276 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4277 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4278 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4279 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4283 2017-01-30 Richard Biener <rguenther@suse.de>
4285 PR tree-optimization/79256
4286 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4287 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4290 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
4292 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4293 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4294 builtins to SImode and emit a zero-extend, if necessary.
4296 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4298 * docs/invoke.texi (RISC-V Options): Alphabetize.
4300 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4302 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4305 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4307 * config/riscv/riscv.c: New file.
4308 * gcc/common/config/riscv/riscv-common.c: Likewise.
4309 * config.gcc: Likewise.
4310 * config/riscv/constraints.md: Likewise.
4311 * config/riscv/elf.h: Likewise.
4312 * config/riscv/generic.md: Likewise.
4313 * config/riscv/linux.h: Likewise.
4314 * config/riscv/multilib-generator: Likewise.
4315 * config/riscv/peephole.md: Likewise.
4316 * config/riscv/pic.md: Likewise.
4317 * config/riscv/predicates.md: Likewise.
4318 * config/riscv/riscv-builtins.c: Likewise.
4319 * config/riscv/riscv-c.c: Likewise.
4320 * config/riscv/riscv-ftypes.def: Likewise.
4321 * config/riscv/riscv-modes.def: Likewise.
4322 * config/riscv/riscv-opts.h: Likewise.
4323 * config/riscv/riscv-protos.h: Likewise.
4324 * config/riscv/riscv.h: Likewise.
4325 * config/riscv/riscv.md: Likewise.
4326 * config/riscv/riscv.opt: Likewise.
4327 * config/riscv/sync.md: Likewise.
4328 * config/riscv/t-elf-multilib: Likewise.
4329 * config/riscv/t-linux: Likewise.
4330 * config/riscv/t-linux-multilib: Likewise.
4331 * config/riscv/t-riscv: Likewise.
4332 * configure.ac: Likewise.
4333 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4334 Waterman as RISC-V maintainers.
4335 * doc/install.texi: Add RISC-V entries.
4336 * doc/invoke.texi: Add RISC-V options section.
4337 * doc/md.texi: Add RISC-V constraints section.
4338 * configure: Regenerated.
4340 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4343 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4344 false values to be constant vectors with all 0 or all 1 bits set.
4345 (vcondu<mode><mode>): Likewise.
4346 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4348 (fpmask_comparison_operator): Update comment.
4349 (vecint_comparison_operator): New predicate.
4350 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4351 vector conditionals when the true and false values are constant
4352 vectors with all 0 bits or all 1 bits set.
4354 2017-02-06 Martin Sebor <msebor@redhat.com>
4356 PR tree-optimization/79376
4357 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4359 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
4361 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4362 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
4363 to simplify split condition.
4365 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4367 * omp-expand.c (oxpand_omp_atomic_fetch_op,
4368 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4371 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
4373 PR rtl-optimization/68664
4374 * target.def (can_speculate_insn): New hook.
4375 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4376 * doc/tm.texi: Regenerate.
4377 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4378 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4379 (rs6000_sched_can_speculate_insn): New function.
4381 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4383 PR tree-optimization/79284
4384 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4385 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4386 vectorizable_mask_load_store, vectorizable_operation,
4387 vect_is_simple_cond, get_same_sized_vectype): Use it instead
4388 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4389 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4390 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4391 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4392 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4393 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4394 is_gimple_assign (stmt). Replace another such test with
4395 is_gimple_assign (stmt).
4397 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4400 * config/avr/avr.c (rtl-iter.h): Include it.
4401 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4402 (avr_legitimate_combined_insn): ...and implementation.
4404 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
4406 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4407 * config/s390/s390.c (s390_const_operand_ok)
4408 (s390_canonicalize_comparison, s390_extract_part)
4409 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4410 (s390_contiguous_bitmask_p, s390_rtx_costs)
4411 (legitimize_pic_address): Likewise.
4412 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4413 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4414 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4415 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4416 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4418 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4420 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4421 REGNO($0) == REGNO($1).
4423 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4425 * config/s390/linux.h(SIZE_TYPE): Add comment.
4427 2017-02-06 Julian Brown <julian@codesourcery.com>
4428 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4429 Virendra Pathak <virendra.pathak@broadcom.com>
4431 * config/aarch64/aarch64-cores.def: Change the scheduler
4433 * config/aarch64/aarch64.md: Include thunderx2t99.md.
4434 * config/aarch64/thunderx2t99.md: New file.
4436 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4438 * doc/standards.texi (Go Language): Update link to language
4441 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4443 * tree-eh.c (lower_resx): Sanitize profile.
4444 (cleanup_empty_eh_move_lp): Likewise.
4446 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4449 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4451 * cfgloopmanip.h (loop_version): Update prototype.
4452 * modulo-sched.c (sms_schedule): Update call of loop_version.
4453 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4454 * tree-parloops.c (gen_parallel_loop): Likewise.
4455 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4456 * tree-ssa-loop-split.c (split_loop): Likewise.
4457 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4458 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4460 2017-02-05 Martin Liska <mliska@suse.cz>
4463 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4465 (print_operand_address): Initialize a struct to zero.
4467 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4469 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4470 garbage collector only in textual form.
4472 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4474 * doc/extend.texi (x86 specific memory model extensions for
4475 transactional memory): Simplify a phrase.
4477 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
4480 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4481 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4482 (atomic_storedi_1): Likewise.
4484 2017-02-04 Jakub Jelinek <jakub@redhat.com>
4486 PR tree-optimization/79338
4487 * tree-parloops.c (gather_scalar_reductions): Don't call
4488 vect_analyze_loop_form for loop->inner before destroying loop's
4491 2017-02-03 Martin Sebor <msebor@redhat.com>
4493 PR tree-optimization/79327
4494 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4495 when precision has resulted in leading zeros.
4496 (format_integer): Adjust the likely counter to assume an unknown
4497 argument that may be zero is non-zero.
4499 2017-02-03 Jason Merrill <jason@redhat.com>
4502 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4503 avoid copying non-taken branch.
4505 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4507 PR tree-optimization/79340
4508 * tree-vect-loop.c (vectorizable_reduction): Release
4509 vec_defs elements after safe_splicing them into other vectors.
4512 PR tree-optimization/79327
4513 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4514 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4516 (format_integer): Use wide_int_to_tree instead of build_int_cst
4517 + to_?hwi. If argmin is NULL, just set argmin and argmax to
4518 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
4519 of shortest and longest sequence.
4521 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
4523 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4524 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4526 2017-02-03 Walter Lee <walt@tilera.com>
4529 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4530 after initial stackframe link reg save.
4531 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4533 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4536 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4537 wu for stxssp alternative.
4539 2017-02-03 Martin Sebor <msebor@redhat.com>
4541 PR tree-optimization/79352
4542 * gimple-fold.c (get_range_strlen): Add argument.
4543 (get_range_strlen): Change return type to bool.
4544 (get_maxval_strlen): Pass in a dummy argument.
4545 * gimple-fold.h (get_range_strlen): Change return type to bool.
4546 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4547 * tree.h (array_at_struct_end_p): Add argument.
4548 * tree.c (array_at_struct_end_p): Handle it.
4550 2017-02-03 Martin Liska <mliska@suse.cz>
4553 * multiple_target.c (create_dispatcher_calls): Redirect edge
4554 from a caller of a dispatcher.
4555 (expand_target_clones): Make the clones local.
4556 (ipa_target_clone): Do both target clones and resolvers.
4557 (ipa_dispatcher_calls): Remove the pass.
4558 (pass_dispatcher_calls::gate): Likewise.
4559 (make_pass_dispatcher_calls): Likewise.
4560 * passes.def (pass_target_clone): Put as very first IPA early
4563 2017-02-03 Martin Liska <mliska@suse.cz>
4565 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4566 in case of a function with ifunc attribute.
4568 2017-02-03 Martin Liska <mliska@suse.cz>
4570 * cgraph.c (cgraph_node::dump): Dump function version info.
4571 * symtab.c (symtab_node::dump_base): Add missing new line.
4573 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4575 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4576 (ifcombine_ifandif): Use it.
4578 2017-02-03 Martin Liska <mliska@suse.cz>
4580 * doc/invoke.texi: Document default value for
4581 use-after-scope-direct-emission-threshold.
4583 2017-02-03 Martin Liska <mliska@suse.cz>
4585 PR tree-optimization/79339
4586 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4587 (format_floating): Likewise.
4589 2017-02-03 Martin Liska <mliska@suse.cz>
4592 * ipa-prop.c (ipa_node_params_t::insert): Remove current
4594 (ipa_node_params_t::remove): Likewise.
4595 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4596 initialization from removed ipa_node_params_t::insert.
4597 (ipa_node_params::~ipa_node_params): Move from removed
4598 ipa_node_params_t::release.
4599 * symbol-summary.h (symbol_summary::m_released): New member.
4600 Do not release a summary twice. Do not allow to call finalizer
4601 for types of a summary that live in GGC memory.
4603 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4605 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4608 2017-02-02 Martin Sebor <msebor@redhat.com>
4611 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4612 (format_string): Tighten up the range of output for non-constant
4613 strings and correct the expected range for wide non-constant strings.
4615 2017-02-02 Martin Sebor <msebor@redhat.com>
4617 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4620 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4622 (-fdump-tree-@var): Add to index and document how to come up
4623 with pass-specific option and dump file names.
4624 (-fdump-passes): Clarify where to look for output.
4626 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4629 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4630 statistics of the analyzed path; allow threading for speed when
4631 any of BBs along the path are optimized for speed.
4633 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
4636 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4637 settings of the virtual registers.
4640 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4642 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4643 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4646 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4648 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4649 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4651 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4653 * config/s390/s390.md: Add missing comments with the expanded
4655 * config/s390/vector.md: Likewise.
4656 * config/s390/vx-builtins.md: Likewise.
4658 2017-02-02 Jakub Jelinek <jakub@redhat.com>
4661 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4662 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
4663 conditions on a single line.
4665 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4667 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4668 __S390_VX__ to __VX__.
4670 2017-02-01 Andrew Pinski <apinski@cavium.com>
4672 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4673 stmt_info to record_stmt_cost.
4674 (vect_get_known_peeling_cost): Pass stmt_info if known to
4676 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4677 cpu_vector_cost field into
4678 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
4679 field into vec_int_stmt_cost and vec_fp_stmt_cost.
4680 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4681 splitting of scalar_stmt_cost and vec_stmt_cost.
4682 (thunderx_vector_cost): Likewise.
4683 (cortexa57_vector_cost): LIkewise.
4684 (exynosm1_vector_cost): Likewise.
4685 (xgene1_vector_cost): Likewise.
4686 (thunderx2t99_vector_cost): Improve after the splitting of the two
4688 (aarch64_builtin_vectorization_cost): Update for the splitting of
4689 scalar_stmt_cost and vec_stmt_cost.
4691 2017-02-01 Torvald Riegel <triegel@redhat.com>
4692 Richard Henderson <rth@redhat.com>
4694 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4695 conditional on existance of a fast atomic load.
4696 * optabs-query.c (can_atomic_load_p): New function.
4697 * optabs-query.h (can_atomic_load_p): Declare it.
4698 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4699 no fast atomic load is available for the particular size of access.
4700 (expand_atomic_compare_and_swap): Likewise.
4701 (expand_atomic_load): Likewise.
4702 (expand_atomic_store): Likewise.
4703 (expand_atomic_fetch_op): Likewise.
4704 * testsuite/lib/target-supports.exp
4705 (check_effective_target_sync_int_128): Remove x86 because it provides
4706 no fast atomic load.
4707 (check_effective_target_sync_int_128_runtime): Likewise.
4709 2017-02-01 Richard Biener <rguenther@suse.de>
4711 * graphite.c: Include tree-vectorizer.h for find_loop_location.
4712 (graphite_transform_loops): Provide opt-info for optimized nests.
4713 * tree-parloop.c (parallelize_loops): Provide opt-info for
4716 2017-02-01 Richard Biener <rguenther@suse.de>
4719 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
4722 2017-02-01 Richard Biener <rguenther@suse.de>
4724 PR tree-optimization/71824
4725 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4726 Verify the loops are valid in the merged SESE region.
4727 (scop_detection::can_represent_loop_1): Check analyzing the
4728 evolution of the number of iterations in the region succeeds.
4730 2017-01-31 Ian Lance Taylor <iant@golang.org>
4732 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
4733 REG_ARGS_SIZE note to 32-bit push insns and call insn.
4735 2017-01-31 David Malcolm <dmalcolm@redhat.com>
4737 PR preprocessor/79210
4738 * input.c (get_substring_ranges_for_loc): Replace line_width
4739 assertion with error-handling.
4741 2017-01-31 Richard Biener <rguenther@suse.de>
4743 PR tree-optimization/77318
4744 * graphite-sese-to-poly.c (extract_affine): Fix assert.
4745 (create_pw_aff_from_tree): Take loop parameter.
4746 (add_condition_to_pbb): Pass loop of the condition to
4747 create_pw_aff_from_tree.
4749 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4751 * config/s390/s390.c (s390_asan_shadow_offset): New function.
4752 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
4754 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
4758 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
4760 (convert_int_to_float128): Likewise.
4761 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
4762 (convert_int_to_float128): Likewise.
4763 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
4764 (UNSPEC_IEEE128_CONVERT): Likewise.
4765 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
4766 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
4767 Use local variables for IBM extended format.
4768 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
4769 (fix_trunc<mode>si2_fprs): Likewise.
4770 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4771 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
4772 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
4773 to know that we can now have integers of all sizes in vector
4775 (fix<uns>_<mode>di2_hw): Likewise.
4776 (float<uns>_<mode>si2_hw): Likewise.
4777 (fix_<mode>si2_hw): Likewise.
4778 (fixuns_<mode>si2_hw): Likewise.
4779 (float<uns>_<mode>di2_hw): Likewise.
4780 (float_<mode>di2_hw): Likewise.
4781 (float_<mode>si2_hw): Likewise.
4782 (floatuns_<mode>di2_hw): Likewise.
4783 (floatuns_<mode>si2_hw): Likewise.
4784 (xscvqp<su>wz_<mode>): Delete, no longer used.
4785 (xscvqp<su>dz_<mode>): Likewise.
4786 (xscv<su>dqp_<mode>): Likewise.
4787 (ieee128_mfvsrd_64bit): Likewise.
4788 (ieee128_mfvsrd_32bit): Likewise.
4789 (ieee128_mfvsrwz): Likewise.
4790 (ieee128_mtvsrw): Likewise.
4791 (ieee128_mtvsrd_64bit): Likewise.
4792 (ieee128_mtvsrd_32bit): Likewise.
4794 2017-01-31 Martin Liska <mliska@suse.cz>
4797 * ipa-prop.c (ipa_free_all_node_params): Call release method
4798 instead of ~sumbol_summary to not to trigger double times
4801 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
4803 PR tree-optimization/71691
4804 * bitmap.h (class auto_bitmap): New.
4805 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
4806 is_maybe_undefined instead of ssa_undefined_value_p.
4808 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4810 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4811 __S390_ARCH_LEVEL__ to __ARCH__.
4813 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4815 PR tree-optimization/79267
4816 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
4817 if should_remove_lhs_p is true.
4819 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
4822 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
4823 (add_alignment_attribute): New.
4824 (base_type_die): Add alignment attribute.
4825 (subrange_type_die): Likewise.
4826 (modified_type_die): Likewise.
4827 (gen_array_type_die): Likewise.
4828 (gen_descr_array_type_die: Likewise.
4829 (gen_enumeration_type_die): Likewise.
4830 (gen_subprogram_die): Likewise.
4831 (gen_variable_die): Likewise.
4832 (gen_field_die): Likewise.
4833 (gen_ptr_to_mbr_type_die): Likewise.
4834 (gen_struct_or_union_type_die): Likewise.
4835 (gen_subroutine_type_die): Likewise.
4836 (gen_typedef_die): Likewise.
4837 (base_type_cmp): Compare alignment attribute.
4839 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4842 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
4843 (setb_unsigned) New pattern for setb with CCUNS.
4844 * config/rs6000/rs6000.c (expand_block_compare): Use a different
4845 subfc./subfe sequence to avoid overflow problems. Generate a
4846 shorter sequence with cmpld/setb for power9.
4847 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
4848 for generating subfc. instruction.
4849 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
4850 now uses this instruction.
4852 2017-01-30 Ian Lance Taylor <iant@google.com>
4855 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
4856 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
4858 2017-01-30 Martin Sebor <msebor@redhat.com>
4860 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
4861 Move constant to the right of a relational operator.
4862 (get_mpfr_format_length, format_character, format_string): Ditto.
4863 (should_warn_p, maybe_warn): Same.
4865 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
4867 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
4870 * asan.c (get_translation_unit_decl): Remove function.
4871 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
4873 2017-01-30 Martin Liska <mliska@suse.cz>
4875 PR gcov-profile/79259
4876 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
4879 2017-01-30 Martin Liska <mliska@suse.cz>
4882 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
4883 Initialize variables with NULL value.
4885 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
4888 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
4890 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
4892 2017-01-30 Richard Biener <rguenther@suse.de>
4894 PR tree-optimization/79276
4895 * tree-vrp.c (process_assert_insertions): Properly adjust common
4896 when removing a duplicate.
4898 * gcc.dg/torture/pr79276.c: New testcase.
4900 2017-01-30 Richard Biener <rguenther@suse.de>
4902 PR tree-optimization/79256
4903 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4904 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4906 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
4908 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
4911 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
4912 ("*r<noxa>sbg_<mode>_sll_bitmask")
4913 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
4914 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
4915 Use contiguous_bitmask_nowrap_operand.
4917 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4920 * config/rs6000/altivec.h (vec_xl): Revise #define.
4921 (vec_xst): Likewise.
4923 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
4925 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
4927 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
4929 PR rtl-optimization/79194
4930 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
4931 traps before call to bypass_conditional_jumps.
4933 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
4935 PR tree-optimization/71374
4936 * lra-constraints.c (check_conflict_input_operands): New.
4937 (match_reload): Use it.
4939 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
4942 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
4943 account to calculate conflict_set.
4945 2017-01-27 Bin Cheng <bin.cheng@arm.com>
4947 PR rtl-optimization/78559
4948 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
4949 other_insn in combine.
4951 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
4953 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
4954 uint16_type_node for BT_UINT16.
4956 2017-01-27 David Malcolm <dmalcolm@redhat.com>
4958 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
4959 "RTL Tests" to menu.
4960 (GIMPLE Tests): New node.
4961 (RTL Tests): New node.
4963 2017-01-27 Richard Biener <rguenther@suse.de>
4965 PR tree-optimization/79245
4966 * tree-loop-distribution.c (distribute_loop): Apply cost
4967 modeling also to detected patterns.
4969 2017-01-27 Richard Biener <rguenther@suse.de>
4971 PR tree-optimization/71433
4972 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
4973 (compare_assert_loc): New function.
4974 (process_assert_insertions): Sort and optimize assert locations
4975 to remove duplicates and push down identical assertions on
4976 edges to their destination block.
4978 2017-01-27 Richard Biener <rguenther@suse.de>
4980 PR tree-optimization/79244
4981 * tree-vrp.c (remove_range_assertions): Forcefully propagate
4982 out SSA names even if abnormal.
4984 2017-01-27 Jakub Jelinek <jakub@redhat.com>
4986 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
4987 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
4988 instead of MPFR_RNDN.
4990 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
4993 * arm.c (arm_option_override): Don't call build_target_option_node
4994 until after doing all option overrides.
4995 (arm_valid_target_attribute_tree): Likewise.
4997 2017-01-27 Martin Liska <mliska@suse.cz>
4999 * doc/invoke.texi (-fprofile-arcs): Document profiling support
5000 for {cd}tors and C++ {cd}tors.
5002 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5004 * config/s390/s390.md ("*setmem_long_and")
5005 ("*setmem_long_and_31z"): Use zero_extend instead of and.
5007 2017-01-26 Martin Sebor <msebor@redhat.com>
5009 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
5012 2017-01-26 Martin Sebor <msebor@redhat.com>
5014 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
5015 HAVE_DFmode before using XFmode or DFmode.
5016 (parse_directive): Avoid using the z length modifier to avoid
5017 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
5020 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
5021 to accept adjustment as an array.
5022 (get_int_range): New function.
5023 (struct directive): Make width and prec arrays.
5024 (directive::set_width, directive::set_precision): Call get_int_range.
5025 (format_integer, format_floating): Handle width and precision ranges.
5026 (format_string, parse_directive): Same.
5028 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5031 * dwarf2out.c (generate_skeleton_bottom_up): For children with
5032 comdat_type_p set, just clone them, but keep the children in the
5036 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
5037 which have direct callers with -fvar-tracking-assignments enabled
5039 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
5040 inside of type units.
5042 2017-01-26 Martin Sebor <msebor@redhat.com>
5045 * gimple-ssa-sprintf.c (struct result_range): Add likely and
5047 (struct format_result): Replace number_chars, number_chars_min,
5048 and number_chars_max with a single member of struct result_range.
5050 (format_result::operator+=): Adjust.
5051 (struct fmtresult): Remove bounded. Handle likely and unlikely
5053 (fmtresult::adjust_for_width_or_precision): New function.
5054 (fmtresult:type_max_digits): New function.
5055 (bytes_remaining): Handle likely and unlikely counters.
5056 (min_bytes_remaining): Remove.
5057 (format_percent): Simplify.
5058 (format_integer, format_floating): Set likely and unlikely counters.
5059 (get_string_length, format_character, format_string): Same.
5060 (format_plain, should_warn_p): New function.
5061 (maybe_warn): Call should_warn_p. Update diagnostic messages
5062 and handle those for all directives, including plain strings.
5063 (format_directive): Handle likely and unlikely counters.
5064 Remove unnecessary quoting from diagnostics. Add an informational
5066 (add_bytes): Remove.
5067 (pass_sprintf_length::compute_format_length): Simplify.
5068 (try_substitute_return_value): Handle likely and unlikely counters.
5070 2017-01-26 Carl Love <cel@us.ibm.com>
5072 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
5073 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
5075 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
5078 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
5079 endianess for subregs into account.
5080 * lra-constraints.c (lra_constraints): Do risky transformations
5081 always on the first iteration.
5082 * lra-lives.c (check_pseudos_live_through_calls): Add arg
5083 last_call_used_reg_set.
5084 (process_bb_lives): Define and use last_call_used_reg_set.
5085 * lra.c (lra): Always continue after lra_constraints on the first
5088 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
5090 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
5092 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
5094 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5096 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
5097 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
5098 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
5099 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
5100 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
5101 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
5102 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
5103 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
5104 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
5106 2017-01-26 Marek Polacek <polacek@redhat.com>
5109 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
5110 for the third operand.
5112 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5115 * omp-low.c (struct omp_context): Add simt_stmt field.
5116 (scan_omp_for): Return omp_context *.
5117 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
5118 context to the _simt_ SIMD stmt.
5119 (lower_omp_for): For combined SIMD with sibling _simt_
5120 SIMD, make sure to use the same decls in _looptemp_
5121 clauses as in the sibling.
5123 2017-01-26 David Sherwood <david.sherwood@arm.com>
5126 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
5129 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5132 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
5133 emit fld b; fld a; if possible.
5135 * brig-builtins.def: Update copyright years.
5136 * config/arm/arm_acle_builtins.def: Update copyright years.
5138 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5141 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
5142 constraint instead of o for the stxsd instruction.
5144 2017-01-25 Carl Love <cel@us.ibm.com>
5146 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
5147 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
5149 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
5151 * doc/invoke.texi (C++ Dialect Options): Fix typo.
5153 2017-01-25 Richard Biener <rguenther@suse.de>
5155 PR tree-optimization/69264
5156 * target.def (vector_alignment_reachable): Improve documentation.
5157 * doc/tm.texi: Regenerate.
5158 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
5160 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
5161 earlier changes with respect to TYPE_USER_ALIGN.
5162 (vector_alignment_reachable_p): Likewise. Improve dumping.
5164 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5167 * config/arm/arm.md (xordi3): Force constant operand into a register
5170 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5172 * doc/invoke.texi (-fstore-merging): Correct default optimization
5173 levels at which it is enabled.
5174 (-O): Move -fstore-merging from list to...
5177 2017-01-25 Richard Biener <rguenther@suse.de>
5180 * omp-expand.c: Include debug.h.
5181 (expand_omp_taskreg): Make sure to generate early debug before
5182 outlining anything from a function.
5183 (expand_omp_target): Likewise.
5184 (grid_expand_target_grid_body): Likewise.
5186 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
5189 * asan.c (get_translation_unit_decl): New function.
5190 (asan_add_global): Extract modules file name from globals
5191 TRANSLATION_UNIT_DECL name.
5193 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
5196 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
5197 for long calls with APCS frame and VFP.
5199 2017-01-24 David Malcolm <dmalcolm@redhat.com>
5201 * cfg.c (original_copy_tables_initialized_p): New function.
5202 * cfg.h (original_copy_tables_initialized_p): New decl.
5203 * cfgrtl.c (relink_block_chain): Guard the call to
5204 free_original_copy_tables with a call to
5205 original_copy_tables_initialized_p.
5206 * cgraph.h (symtab_node::native_rtl_p): New decl.
5207 * cgraphunit.c (symtab_node::native_rtl_p): New function.
5208 (symtab_node::needed_p): Don't assert for early assembly output
5209 for __RTL functions.
5210 (cgraph_node::finalize_function): Set "force_output" for __RTL
5212 (cgraph_node::analyze): Bail out early for __RTL functions.
5213 (analyze_functions): Update assertion to support __RTL functions.
5214 (cgraph_node::expand): Bail out early for __RTL functions.
5215 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5217 * function.h (struct function): Update comment for field
5219 * gimple-expr.c: Include "tree-pass.h".
5220 (gimple_has_body_p): Return false for __RTL functions.
5221 * Makefile.in (OBJS): Add run-rtl-passes.o.
5222 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5224 (gcc::pass_manager::get_clean_slate): New accessor.
5225 * passes.c: Include "insn-addr.h".
5226 (should_skip_pass_p): Add logging. Update logic for running
5227 "expand" to be compatible with both __GIMPLE and __RTL. Guard
5228 property-provider override so it is only done for gimple passes.
5230 (skip_pass): New function.
5231 (execute_one_pass): Call skip_pass when skipping passes.
5232 * read-md.c (md_reader::read_char): Support filtering
5233 the input to a subset of line numbers.
5234 (md_reader::md_reader): Initialize fields
5235 m_first_line and m_last_line.
5236 (md_reader::read_file_fragment): New function.
5237 * read-md.h (md_reader::read_file_fragment): New decl.
5238 (md_reader::m_first_line): New field.
5239 (md_reader::m_last_line): New field.
5240 * read-rtl-function.c (function_reader::create_function): Only
5241 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
5242 curr_properties. Set DECL_INITIAL to a dummy block.
5243 (read_rtl_function_body_from_file_range): New function.
5244 * read-rtl-function.h (read_rtl_function_body_from_file_range):
5246 * run-rtl-passes.c: New file.
5247 * run-rtl-passes.h: New file.
5249 2017-01-24 Jeff Law <law@redhat.com>
5251 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5254 2017-01-24 Bin Cheng <bin.cheng@arm.com>
5256 PR tree-optimization/79159
5257 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5258 (record_nonwrapping_iv): Improve boundary using above function if no
5259 value range information.
5261 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5262 Martin Jambor <mjambor@suse.cz>
5264 * brig-builtins.def: New file.
5265 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5266 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5267 (DEF_HSAIL_SAT_BUILTIN): Likewise.
5268 (DEF_HSAIL_INTR_BUILTIN): Likewise.
5269 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5270 * builtin-types.def (BT_INT8): New.
5271 (BT_INT16): Likewise.
5272 (BT_UINT8): Likewise.
5273 (BT_UINT16): Likewise.
5274 (BT_FN_ULONG): Likewise.
5275 (BT_FN_UINT_INT): Likewise.
5276 (BT_FN_UINT_ULONG): Likewise.
5277 (BT_FN_UINT_LONG): Likewise.
5278 (BT_FN_UINT_PTR): Likewise.
5279 (BT_FN_ULONG_PTR): Likewise.
5280 (BT_FN_INT8_FLOAT): Likewise.
5281 (BT_FN_INT16_FLOAT): Likewise.
5282 (BT_FN_UINT32_FLOAT): Likewise.
5283 (BT_FN_UINT16_FLOAT): Likewise.
5284 (BT_FN_UINT8_FLOAT): Likewise.
5285 (BT_FN_UINT64_FLOAT): Likewise.
5286 (BT_FN_UINT16_UINT32): Likewise.
5287 (BT_FN_UINT32_UINT16): Likewise.
5288 (BT_FN_UINT16_UINT16_UINT16): Likewise.
5289 (BT_FN_INT_PTR_INT): Likewise.
5290 (BT_FN_UINT_PTR_UINT): Likewise.
5291 (BT_FN_LONG_PTR_LONG): Likewise.
5292 (BT_FN_ULONG_PTR_ULONG): Likewise.
5293 (BT_FN_VOID_UINT64_UINT64): Likewise.
5294 (BT_FN_UINT8_UINT8_UINT8): Likewise.
5295 (BT_FN_INT8_INT8_INT8): Likewise.
5296 (BT_FN_INT16_INT16_INT16): Likewise.
5297 (BT_FN_INT_INT_INT): Likewise.
5298 (BT_FN_UINT_FLOAT_UINT): Likewise.
5299 (BT_FN_FLOAT_UINT_UINT): Likewise.
5300 (BT_FN_ULONG_UINT_UINT): Likewise.
5301 (BT_FN_ULONG_UINT_PTR): Likewise.
5302 (BT_FN_ULONG_ULONG_ULONG): Likewise.
5303 (BT_FN_UINT_UINT_UINT): Likewise.
5304 (BT_FN_VOID_UINT_PTR): Likewise.
5305 (BT_FN_UINT_UINT_PTR: Likewise.
5306 (BT_FN_UINT32_UINT64_PTR): Likewise.
5307 (BT_FN_INT_INT_UINT_UINT): Likewise.
5308 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5309 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5310 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5311 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5312 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5313 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5314 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5315 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5316 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5317 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5318 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5319 * doc/frontends.texi: List BRIG FE.
5320 * doc/install.texi (Testing): Add BRIG tesring requirements.
5321 * doc/invoke.texi (Overall Options): Mention BRIG.
5322 * doc/standards.texi (Standards): Doucment BRIG HSA version.
5324 2017-01-24 Richard Biener <rguenther@suse.de>
5326 PR translation/79208
5327 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5329 2017-01-24 Martin Jambor <mjambor@suse.cz>
5332 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5333 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5336 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
5339 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5340 casts from signed to unsigned really don't have a range.
5342 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
5344 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5345 GMP_RNDx for compatiblity.
5347 2017-01-24 Martin Liska <mliska@suse.cz>
5350 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5351 that would prevent us to call alloca with -1 as argument.
5353 2017-01-24 Jakub Jelinek <jakub@redhat.com>
5355 * dwarf2out.c (output_compilation_unit_header, output_file_names):
5356 Avoid -Wformat-security warning.
5358 2017-01-23 Andrew Pinski <apinski@cavium.com>
5360 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5363 2017-01-23 Martin Sebor <msebor@redhat.com>
5366 * gimple-ssa-sprintf.c (warn_level): New global.
5367 (format_integer): Use it here and throughout the rest of the file.
5368 Use the same switch to compute sign as base.
5369 (maybe_warn): New function.
5370 (format_directive): Factor out warnings into maybe_warn.
5371 Add debugging output. Use warn_level.
5372 (add_bytes): Use warn_level.
5373 (pass_sprintf_length::compute_format_length): Add debugging output.
5374 (try_substitute_return_value): Same.
5375 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5378 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5379 (struct fmtresult, format_integer, format_floating): Adjust.
5380 (fmtresult::fmtresult): Set max correctly in two argument ctor.
5381 (get_string_length, format_string,format_directive): Same.
5382 (pass_sprintf_length::compute_format_length): Same.
5383 (try_substitute_return_value): Simplify slightly.
5386 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5387 (fmtresult::operator+=): Outlined.
5388 (struct fmtresult): Add ctors.
5389 (struct conversion_spec): Rename...
5390 (struct directive): ...to this. Add and remove data members.
5391 (directive::set_width, directive::set_precision): New functions.
5392 (format_percent): Use fmtresult ctor.
5393 (get_width_and_precision): Remove.
5394 (format_integer): Make naming changes. Avoid computing width and
5396 (format_floating): Same. Adjust indentation.
5397 (format_character, format_none): New functions.
5398 (format_string): Moved character handling to format_character.
5399 (format_directive): Remove arguments, change return type.
5400 (parse_directive): New function.
5401 (pass_sprintf_length::compute_format_length): Move directive
5402 parsing to parse_directive.
5404 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5406 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5407 (assign_assembler_name_if_needed): ... this.
5408 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5409 (assign_assembler_name_if_needed): ... this.
5410 (free_lang_data_in_cgraph): Adjust callers.
5411 * cgraphunit.c (cgraph_node::analyze): Likewise.
5412 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5415 2017-01-23 Richard Biener <rguenther@suse.de>
5417 PR tree-optimization/79088
5418 PR tree-optimization/79188
5419 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5420 resetting loop bounds after last path deletion. Reset loop
5421 bounds of the target loop, make code match the comments.
5422 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5423 Make sure loops need no fixups.
5425 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
5427 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5428 exponent support with double type for first argument.
5429 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5430 type returned by __builtin_vec_extract_sig,
5431 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5432 functions from "vector int" to "vector unsigned int" or from
5433 "vector long long int" to "vector unsigned long long int".
5434 Changed type returned by __builtin_vec_extract_exp,
5435 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5436 functions from "vector int" to "vector unsigned int" or from
5437 "vector long long int" to "vector unsigned long long int".
5438 Changed return type of __builtin_vec_test_data_class,
5439 __builtin_vec_test_data_class_sp, and
5440 __builtin_vec_test_data_class_dp from "vector int" to
5441 "vector bool int" or from "vector long long int" to "vector bool
5442 long long int" and changed second argument type from "unsigned
5443 int" to "int". Added new overloaded function forms "vector float
5444 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5445 "vector float __builtin_vec_insert_exp_sp (vector float, vector
5446 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5447 double, vector unsigned long long int)" and "vector double
5448 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5449 long int)". Changed return type of
5450 __builtin_scalar_test_data_class and
5451 __builtin_scalar_test_data_class_sp and
5452 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5453 int" and changed second argument from "unsigned int" to "int".
5454 Changed type returned by __builtin_scalar_test_neg,
5455 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5456 from "int" to "bool int". Added new overloaded function form
5457 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5458 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5459 exponent double-precision with floating point first argument.
5460 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5461 documentation of scalar_test_data_class, scalar_test_neg,
5462 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5463 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5464 vec_test_data_class built-in functions to reflect refinements in
5465 their type signatures.
5467 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
5469 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5471 (aarch64_elf_asm_destructor): Likewise.
5473 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
5475 PR rtl-optimization/78634
5476 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5477 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5478 * ifcvt.c (noce_try_cmove): Add missing cost check.
5480 PR rtl-optimization/71724
5481 * combine.c (if_then_else_cond): Look for situations where it is
5482 beneficial to undo the work of one of the recursive calls.
5484 2017-01-23 Bin Cheng <bin.cheng@arm.com>
5486 PR tree-optimization/70754
5487 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5488 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
5489 combined stmt before it if not NULL.
5490 (combine_chains): Process refs reversely and compute dominance point
5493 2017-01-23 Martin Liska <mliska@suse.cz>
5495 PR tree-optimization/79196
5496 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5497 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
5499 (strlen_optimize_stmt): Call the renamed function.
5501 2017-01-23 Michael Matz <matz@suse.de>
5503 PR tree-optimization/78384
5504 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5506 2017-01-23 Richard Biener <rguenther@suse.de>
5508 PR tree-optimization/79186
5509 * tree-vrp.c (register_new_assert_for): Make sure we've seen
5510 both incoming edges before moving an assert.
5512 2017-01-23 Martin Jambor <mjambor@suse.cz>
5514 * ipa-prop.c (load_from_param_1): Removed.
5515 (load_from_unmodified_param): Bits from load_from_param_1 put back
5517 (load_from_param): Removed.
5518 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5519 with stmt. Reverted back to use of load_from_unmodified_param.
5521 2017-01-23 Martin Jambor <mjambor@suse.cz>
5524 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5525 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
5526 field a pointer to garbage collected vector, mark lattices and
5527 ipcp_orig_node with GTY((skip)).
5528 (ipa_get_param_count): Adjust to descriptors being a pointer.
5529 (ipa_get_param): Likewise.
5530 (ipa_get_type): Likewise.
5531 (ipa_get_param_move_cost): Likewise.
5532 (ipa_set_param_used): Likewise.
5533 (ipa_get_controlled_uses): Likewise.
5534 (ipa_set_controlled_uses): Likewise.
5535 (ipa_is_param_used): Likewise.
5536 (ipa_node_params_t): Move into garbage collector. New methods insert
5538 (ipa_node_params_sum): Annotate wth GTY(()).
5539 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5541 (ipa_load_from_parm_agg): Adjust declaration.
5542 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5543 * ipa-profile.c (ipa_profile): Likewise.
5544 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5545 (ipa_populate_param_decls): Make descriptors parameter garbage
5547 (ipa_dump_param): Adjust to descriptors being a pointer.
5548 (ipa_alloc_node_params): Likewise.
5549 (ipa_initialize_node_params): Likewise.
5550 (load_from_param_1): Make descriptors parameter garbage collected.
5551 (load_from_unmodified_param): Likewise.
5552 (load_from_param): Likewise.
5553 (ipa_load_from_parm_agg): Likewise.
5554 (ipa_node_params::~ipa_node_params): Removed.
5555 (ipa_free_all_node_params): Remove call to delete operator.
5556 (ipa_node_params_t::insert): New.
5557 (ipa_node_params_t::remove): Likewise.
5558 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5559 copy known_csts and known_contexts vectors.
5560 (ipa_read_node_info): Adjust to descriptors being a pointer.
5561 (ipcp_modif_dom_walker): Make m_descriptors field garbage
5563 (ipcp_transform_function): Make descriptors variable garbage
5566 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
5568 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5569 * config/i386/avx512dqintrin.h: Ditto.
5570 * config/i386/avx512fintrin.h: Ditto.
5571 * gcc/config/i386/i386.c: Handle new builtins.
5572 * config/i386/i386-builtin.def: Add new builtins.
5573 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5574 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5576 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5577 Martin Liska <mliska@suse.cz>
5579 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5580 * asan.c (asan_expand_poison_ifn): Support stores and use
5581 appropriate ASAN report function.
5582 * internal-fn.c (expand_ASAN_POISON_USE): New function.
5583 * internal-fn.def (ASAN_POISON_USE): Declare.
5584 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5585 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5586 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5587 ASAN_POISON calls w/o LHS.
5588 * tree-ssa.c (execute_update_addresses_taken): Create clobber
5589 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5590 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5591 * gimplify.c (asan_poison_variables): Add attribute
5592 use_after_scope_memory to variables that really needs to live
5594 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5595 having the attribute.
5597 2017-01-23 Martin Liska <mliska@suse.cz>
5599 * asan.c (create_asan_shadow_var): New function.
5600 (asan_expand_poison_ifn): Likewise.
5601 * asan.h (asan_expand_poison_ifn): New declaration.
5602 * internal-fn.c (expand_ASAN_POISON): Likewise.
5603 * internal-fn.def (ASAN_POISON): New builtin.
5604 * sanopt.c (pass_sanopt::execute): Expand
5605 asan_expand_poison_ifn.
5606 * tree-inline.c (copy_decl_for_dup_finish): Make function
5608 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5609 * tree-ssa.c (is_asan_mark_p): New function.
5610 (execute_update_addresses_taken): Rewrite local variables
5611 (identified just by use-after-scope as addressable) into SSA.
5613 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5615 * doc/install.texi (Specific): opensource.apple.com uses https
5616 now. Remove trailing slash.
5618 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5620 * README.Portability: Remove note on an Irix compatibility issue.
5622 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
5624 * gcov.c (INCLUDE_ALGORITHM): Define.
5625 (INCLUDE_VECTOR): Define.
5626 No longer include <vector> and <algorithm> directly.
5628 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
5630 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5632 * doc/invoke.texi (Code Gen Options): Ditto.
5634 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
5637 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5639 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
5641 rtl-optimization/79125
5642 * cprop.c (local_cprop_pass): Handle cases where we make an
5645 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
5649 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5650 read from, for big endian.
5652 2017-01-20 Jiong Wang <jiong.wang@arm.com>
5654 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5655 register pauth builtins for LP64 only.
5657 2017-01-20 Marek Polacek <polacek@redhat.com>
5660 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5663 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5665 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5667 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5668 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5669 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5671 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5674 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5675 in big-endian mode when they are not a single duplicated value.
5677 2017-01-20 Richard Biener <rguenther@suse.de>
5679 * BASE-VER: Bump to 7.0.1.
5681 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5683 * omp-low.c (omplow_simd_context): New struct. Use it...
5684 (lower_rec_simd_input_clauses): ...here and...
5685 (lower_rec_input_clauses): ...here to hold common data. Adjust all
5686 references to idx, lane, max_vf, is_simt.
5688 2017-01-20 Graham Markall <graham.markall@embecosm.com>
5690 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5693 2017-01-20 Martin Jambor <mjambor@suse.cz>
5695 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
5696 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
5698 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5699 (GTFILES): Rename hsa.c to hsa-common.c.
5700 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5701 * hsa-dump.c: Likewise.
5702 * hsa-gen.c: Likewise.
5703 * hsa-regalloc.c: Likewise.
5704 * ipa-hsa.c: Likewise.
5705 * omp-expand.c: Likewise.
5706 * omp-low.c: Likewise.
5707 * toplev.c: Likewise.
5709 2017-01-20 Marek Polacek <polacek@redhat.com>
5712 * doc/invoke.texi: Document -Wduplicated-branches.
5713 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
5714 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
5715 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
5716 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
5717 return 0 only when not OEP_LEXICOGRAPHIC.
5718 (fold_build_cleanup_point_expr): Use the expression
5719 location when building CLEANUP_POINT_EXPR.
5720 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
5721 * tree.c (add_expr): Handle error_mark_node.
5723 2017-01-20 Martin Liska <mliska@suse.cz>
5726 * tree-profile.c (init_ic_make_global_vars): Do not call
5728 (gimple_init_gcov_profiler): Likewise.
5730 2017-01-20 Martin Liska <mliska@suse.cz>
5733 * cgraph.h (maybe_create_reference): Remove argument and
5735 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
5737 * ipa-cp.c (create_specialized_node): Likewise.
5738 * symtab.c (symtab_node::maybe_create_reference): Handle
5739 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
5741 2017-01-20 Martin Liska <mliska@suse.cz>
5743 * read-rtl-function.c (function_reader::create_function): Use
5744 build_decl instread of build_decl_stat.
5746 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
5748 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
5749 * config/i386/avx512dqintrin.h: Ditto.
5750 * config/i386/avx512fintrin.h: Ditto.
5751 * config/i386/i386-builtin-types.def: Add new types.
5752 * gcc/config/i386/i386.c: Handle new types.
5753 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
5754 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
5755 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
5756 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
5757 (__builtin_ia32_kshiftridi): New.
5758 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
5760 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
5764 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
5765 define to rs6000_init_stack_protect_guard.
5766 (rs6000_init_stack_protect_guard): New function.
5768 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5769 Yunqiang Su <yunqiang.su@imgtec.com>
5771 * config.gcc (supported_defaults): Add madd4.
5772 (with_madd4): Add validation.
5773 (all_defaults): Add madd4.
5774 * config/mips/mips.opt (mmadd4): New option.
5775 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5777 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5779 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
5780 (ISA_HAS_FUSED_MADD4): Likewise.
5781 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
5782 * gcc/doc/install.texi (--with-madd4): Document the new option.
5784 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5786 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
5787 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
5788 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
5789 (aarch64_init_pauth_hint_builtins): New.
5790 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
5791 (aarch64_expand_builtin): Expand new builtins.
5793 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5795 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
5796 * combine-stack-adj.c (no_unhandled_cfa): Handle
5797 REG_CFA_TOGGLE_RA_MANGLE.
5798 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
5799 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
5800 info for return address signing.
5801 (aarch64_expand_epilogue): Likewise.
5803 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5805 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
5806 * config/aarch64/aarch64-protos.h
5807 (aarch64_return_address_signing_enabled): New declaration.
5808 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
5810 (aarch64_expand_prologue): Sign return address before it's pushed onto
5812 (aarch64_expand_epilogue): Authenticate return address fetched from
5814 (aarch64_override_options): Sanity check for ILP32 and ISA level.
5815 (aarch64_attributes): New function attributes for "sign-return-address".
5816 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
5817 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
5818 ("*do_return"): Generate combined instructions according to key index.
5819 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
5820 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
5822 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
5823 * config/aarch64/aarch64.opt (msign-return-address=): New.
5824 * doc/extend.texi (AArch64 Function Attributes): Documents
5825 "sign-return-address=".
5826 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
5828 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5830 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
5831 overall option summary.
5833 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5835 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
5836 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
5837 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
5838 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
5840 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
5842 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
5843 -mpower9-minmax by default for -mcpu=power9.
5844 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
5845 128-bit floating point.
5847 2017-01-20 Alan Modra <amodra@gmail.com>
5849 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
5850 optimizing for size.
5852 2017-01-20 Alan Modra <amodra@gmail.com>
5855 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
5856 for strcmp and strncmp from corresponding builtin decl.
5858 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
5860 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
5861 instead of i386/rtems-64.h.
5862 * config/i386/rtems-64.h: Remove.
5864 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
5868 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5870 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
5872 2017-01-19 Tamar Christina <tamar.christina@arm.com>
5874 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
5875 Change int to HOST_WIDE_INT.
5876 * config/aarch64/aarch64-protos.h
5877 (aarch64_simd_gen_const_vector_dup): Likewise.
5878 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
5880 2017-01-19 David Malcolm <dmalcolm@redhat.com>
5882 * langhooks-def.h (lhd_type_for_size): New decl.
5883 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
5884 * langhooks.c (lhd_type_for_size): New function, taken from
5887 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
5889 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
5890 define_bypass for CR latency.
5891 (power9-cracked-alu): Update bypass latency and remove power9-branch.
5892 (power9-alu2): Add define_bypass for CR latency.
5894 (power9-mul): Update insn latency.
5895 (power9-mul-compare): Update insn latency, bypass latency and remove
5898 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5900 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5902 * config/aarch64/aarch64.md
5903 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
5904 aarch64_nopcrelative_literal_loads.
5905 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5907 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
5909 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
5911 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
5913 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
5916 * config.gcc (supported_defaults): Add lxc1-sxc1.
5917 (with_lxc1_sxc1): Add validation.
5918 (all_defaults): Add lxc1-sxc1.
5919 * config/mips/mips.opt (mlxc1-sxc1): New option.
5920 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5922 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5923 __mips_no_lxc1_sxc1.
5924 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
5925 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
5926 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
5928 2017-01-19 Richard Biener <rguenther@suse.de>
5930 PR tree-optimization/72488
5931 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
5932 sure to restore SSA info.
5933 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
5935 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
5937 PR rtl-optimization/79121
5938 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
5939 of the inner type when shifting an extended value.
5941 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
5944 * symtab.c (symtab_node::equal_address_to): Fix comparing of
5945 interposable aliases.
5947 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
5950 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
5951 Use the evmergelohi instruction.
5952 (mov_si<mode>_e500_subreg4_2_le): Likewise.
5953 (mov_sitf_e500_subreg8_2_be): Likewise.
5954 (mov_sitf_e500_subreg12_2_le): Likewise.
5955 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
5956 (mov_si<mode>_e500_subreg4_2_be): Likewise.
5957 (mov_sitf_e500_subreg8_2_le): Likewise.
5958 (mov_sitf_e500_subreg12_2_be): Likewise.
5960 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5962 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
5963 attribute from vecsimple to vecperm.
5964 (altivec_vbpermq2): Likewise.
5966 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5969 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
5971 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5972 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
5973 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
5974 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
5975 case where N arg is SIZE_MAX.
5976 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
5977 (cmpstrsi): Add pattern.
5979 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5981 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5982 __builtin_vec_revb builtins.
5983 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
5984 built-in functions to support generation of the ISA 3.0 XXBR<x>
5985 vector byte reverse instructions.
5986 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
5987 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
5988 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
5989 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
5990 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
5991 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
5992 (P9V_BUILTIN_VEC_REVB): Likewise.
5993 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
5994 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
5995 (p9_xxbrq_v16qi): Likewise.
5996 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
5997 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
5998 (p9_xxbrh_v8hi): Likewise.
5999 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
6000 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
6001 vec_revb built-in functions.
6003 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
6005 PR rtl-optimization/78952
6006 * config/i386/i386.md (any_extract): New code iterator.
6007 (*insvqi_2): Use any_extract for source operand.
6008 (*insvqi_3): Use any_shiftrt for source operand.
6010 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
6012 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
6014 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
6016 2017-01-18 Matthias Klose <doko@ubuntu.com>
6018 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
6020 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6022 * config/rs6000/altivec.h (vec_bperm): Change #define.
6023 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
6024 (altivec_vbpermq2): New define_insn.
6025 (altivec_vbpermd): Likewise.
6026 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
6028 (VBPERMD): Likewise.
6029 (VBPERM): New polymorphic function interface.
6030 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
6031 Add entries for P9V_BUILTIN_VEC_VBPERM.
6032 * doc/extend.texi: Add interfaces for vec_bperm.
6034 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6036 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
6037 first letter of error messages.
6038 (s390_resolve_overloaded_builtin): Likewise.
6039 * config/s390/s390.c (s390_expand_builtin): Likewise.
6040 (s390_invalid_arg_for_unprototyped_fn): Likewise.
6041 (s390_valid_target_attribute_inner_p): Likewise.
6042 * config/s390/s390.md ("tabort"): Likewise.
6044 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
6046 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
6047 (ISA_AVOID_DIV_HILO): New macro.
6048 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
6049 (ISA_HAS_DDIV): Likewise.
6051 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6053 * doc/invoke.texi (fabi-version): Correct number of occurrences.
6055 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6057 * doc/invoke.texi (fabi-version): Spelling fix.
6059 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6062 * doc/invoke.texi (fabi-version): Mention mangling fix for
6065 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6068 * doc/invoke.texi (fabi-version): Document discriminator mangling.
6070 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
6073 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
6074 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
6076 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
6078 (stack_protect_test): Ditto.
6079 * config/rs6000/rs6000.opt (mstack-protector-guard=,
6080 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
6082 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
6083 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
6084 -mstack-protector-guard-offset=.
6085 (RS/6000 and PowerPC Options): Ditto.
6087 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6089 * config/i386/i386.h (MASK_CLASS_P): New define.
6090 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
6091 there are no registers from different register sets also when
6092 mask registers are used. Update function comment.
6093 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
6094 to (*k/*r) and (*k/*km) alternatives.
6096 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
6098 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
6099 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
6100 (EH_RETURN_HANDLER_RTX): New define.
6101 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
6102 Force frame pointer in EH return functions.
6103 (aarch64_expand_epilogue): Add barrier for eh_return.
6104 (aarch64_final_eh_return_addr): Remove.
6105 (aarch64_eh_return_handler_rtx): New function.
6106 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
6108 (aarch64_eh_return_handler_rtx): New prototype.
6110 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6112 * config/rs6000/altivec.h (vec_rlmi): New #define.
6113 (vec_vrlnm): Likewise.
6114 (vec_rlnm): Likewise.
6115 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
6116 (UNSPEC_VRLNM): Likewise.
6117 (VIlong): New mode iterator.
6118 (altivec_vrl<VI_char>mi): New define_insn.
6119 (altivec_vrl<VI_char>nm): Likewise.
6120 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
6123 (RLNM): New polymorphic function entry.
6124 (VRLWMI): New monomorphic function entry.
6126 (RLMI): New polymorphic function entry.
6127 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
6128 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
6129 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
6132 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6135 * dwarf2out.c (field_byte_offset): Restore the
6136 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
6137 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
6138 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
6141 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6144 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
6146 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6149 * dwarf2out.c (add_data_member_location_attribute): For constant
6150 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
6151 instead of DW_AT_data_member_location, DW_AT_bit_offset and
6152 DW_AT_byte_size attributes.
6154 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6156 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
6157 after forcing to constant memory when the code model is medium.
6159 2017-01-17 Julia Koval <julia.koval@intel.com>
6162 * config/i386/avx512fintrin.h
6163 (_mm512_i32gather_ps): Change __addr type to void const*.
6164 (_mm512_mask_i32gather_ps): Ditto.
6165 (_mm512_i32gather_pd): Ditto.
6166 (_mm512_mask_i32gather_pd): Ditto.
6167 (_mm512_i64gather_ps): Ditto.
6168 (_mm512_mask_i64gather_ps): Ditto.
6169 (_mm512_i64gather_pd): Ditto.
6170 (_mm512_mask_i64gather_pd): Ditto.
6171 (_mm512_i32gather_epi32): Ditto.
6172 (_mm512_mask_i32gather_epi32): Ditto.
6173 (_mm512_i32gather_epi64): Ditto.
6174 (_mm512_mask_i32gather_epi64): Ditto.
6175 (_mm512_i64gather_epi32): Ditto.
6176 (_mm512_mask_i64gather_epi32): Ditto.
6177 (_mm512_i64gather_epi64): Ditto.
6178 (_mm512_mask_i64gather_epi64): Ditto.
6179 (_mm512_i32scatter_ps): Change __addr type to void*.
6180 (_mm512_mask_i32scatter_ps): Ditto.
6181 (_mm512_i32scatter_pd): Ditto.
6182 (_mm512_mask_i32scatter_pd): Ditto.
6183 (_mm512_i64scatter_ps): Ditto.
6184 (_mm512_mask_i64scatter_ps): Ditto.
6185 (_mm512_i64scatter_pd): Ditto.
6186 (_mm512_mask_i64scatter_pd): Ditto.
6187 (_mm512_i32scatter_epi32): Ditto.
6188 (_mm512_mask_i32scatter_epi32): Ditto.
6189 (_mm512_i32scatter_epi64): Ditto.
6190 (_mm512_mask_i32scatter_epi64): Ditto.
6191 (_mm512_i64scatter_epi32): Ditto.
6192 (_mm512_mask_i64scatter_epi32): Ditto.
6193 (_mm512_i64scatter_epi64): Ditto.
6194 (_mm512_mask_i64scatter_epi64): Ditto.
6195 * config/i386/avx512pfintrin.h
6196 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
6197 (_mm512_mask_prefetch_i32gather_ps): Ditto.
6198 (_mm512_mask_prefetch_i64gather_pd): Ditto.
6199 (_mm512_mask_prefetch_i64gather_ps): Ditto.
6200 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
6201 (_mm512_prefetch_i32scatter_ps): Ditto.
6202 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
6203 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
6204 (_mm512_prefetch_i64scatter_pd): Ditto.
6205 (_mm512_prefetch_i64scatter_ps): Ditto.
6206 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6207 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6208 * config/i386/avx512vlintrin.h
6209 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6210 (_mm_mmask_i32gather_ps): Ditto.
6211 (_mm256_mmask_i32gather_pd): Ditto.
6212 (_mm_mmask_i32gather_pd): Ditto.
6213 (_mm256_mmask_i64gather_ps): Ditto.
6214 (_mm_mmask_i64gather_ps): Ditto.
6215 (_mm256_mmask_i64gather_pd): Ditto.
6216 (_mm_mmask_i64gather_pd): Ditto.
6217 (_mm256_mmask_i32gather_epi32): Ditto.
6218 (_mm_mmask_i32gather_epi32): Ditto.
6219 (_mm256_mmask_i32gather_epi64): Ditto.
6220 (_mm_mmask_i32gather_epi64): Ditto.
6221 (_mm256_mmask_i64gather_epi32): Ditto.
6222 (_mm_mmask_i64gather_epi32): Ditto.
6223 (_mm256_mmask_i64gather_epi64): Ditto.
6224 (_mm_mmask_i64gather_epi64): Ditto.
6225 (_mm256_i32scatter_ps): Change __addr type to void*.
6226 (_mm256_mask_i32scatter_ps): Ditto.
6227 (_mm_i32scatter_ps): Ditto.
6228 (_mm_mask_i32scatter_ps): Ditto.
6229 (_mm256_i32scatter_pd): Ditto.
6230 (_mm256_mask_i32scatter_pd): Ditto.
6231 (_mm_i32scatter_pd): Ditto.
6232 (_mm_mask_i32scatter_pd): Ditto.
6233 (_mm256_i64scatter_ps): Ditto.
6234 (_mm256_mask_i64scatter_ps): Ditto.
6235 (_mm_i64scatter_ps): Ditto.
6236 (_mm_mask_i64scatter_ps): Ditto.
6237 (_mm256_i64scatter_pd): Ditto.
6238 (_mm256_mask_i64scatter_pd): Ditto.
6239 (_mm_i64scatter_pd): Ditto.
6240 (_mm_mask_i64scatter_pd): Ditto.
6241 (_mm256_i32scatter_epi32): Ditto.
6242 (_mm256_mask_i32scatter_epi32): Ditto.
6243 (_mm_i32scatter_epi32): Ditto.
6244 (_mm_mask_i32scatter_epi32): Ditto.
6245 (_mm256_i32scatter_epi64): Ditto.
6246 (_mm256_mask_i32scatter_epi64): Ditto.
6247 (_mm_i32scatter_epi64): Ditto.
6248 (_mm_mask_i32scatter_epi64): Ditto.
6249 (_mm256_i64scatter_epi32): Ditto.
6250 (_mm256_mask_i64scatter_epi32): Ditto.
6251 (_mm_i64scatter_epi32): Ditto.
6252 (_mm_mask_i64scatter_epi32): Ditto.
6253 (_mm256_i64scatter_epi64): Ditto.
6254 (_mm256_mask_i64scatter_epi64): Ditto.
6255 (_mm_i64scatter_epi64): Ditto.
6256 (_mm_mask_i64scatter_epi64): Ditto.
6257 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6258 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6259 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6260 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6261 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6262 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6263 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6264 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6265 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6266 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6267 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6268 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6269 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6270 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6271 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6272 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6273 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6274 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6275 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6276 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6277 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6278 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6279 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6280 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6281 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6282 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6283 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6284 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
6285 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6286 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6287 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6288 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6289 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6290 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6291 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6292 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6293 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6294 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6295 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6296 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6297 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6298 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6299 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6300 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6301 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6302 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6303 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6304 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6305 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6306 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6307 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6308 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6309 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6310 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6311 definitions accordingly.
6313 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
6314 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6317 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6320 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
6323 * ira-conflicts.c (ira_build_conflicts): Update total conflict
6324 hard regs for inner regno.
6326 2017-01-17 Martin Liska <mliska@suse.cz>
6329 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6330 assumption and add comment.
6332 2017-01-17 Nathan Sidwell <nathan@acm.org>
6334 * ipa-visibility.c (localize_node): New function, broken out of ...
6335 (function_and_variable_visibility): ... here. Call it.
6337 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6340 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6341 correctly set frequency of oudgoing edge.
6342 (duplicate_thread_path): Fix profile updating.
6344 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6347 * configure.ac: Add GCC_BASE_VER.
6348 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6349 version from BASE-VER file.
6350 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6351 (gcc.o): Depend on $(BASEVER).
6352 * common.opt (dumpfullversion): New option.
6353 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6354 * doc/invoke.texi: Document -dumpfullversion.
6355 * doc/install.texi: Document --with-gcc-major-version-only.
6356 * configure: Regenerated.
6358 2017-01-17 Richard Biener <rguenther@suse.de>
6360 PR tree-optimization/71433
6361 * tree-vrp.c (register_new_assert_for): Merge same asserts
6362 on all incoming edges.
6363 (process_assert_insertions_for): Handle insertions at the
6366 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
6368 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6369 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6371 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
6374 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6377 2017-01-17 Alan Modra <amodra@gmail.com>
6380 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6381 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6382 symbolic stack limit when pic.
6384 2017-01-16 Martin Sebor <msebor@redhat.com>
6386 PR tree-optimization/78608
6387 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6389 2017-01-16 Jeff Law <law@redhat.com>
6392 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
6393 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6394 for several include directories that may be relative to sysroot.
6395 * config/i386/x-mingw32 (gplus_includedir): Define.
6396 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6397 (native_system_includedir): Likewise.
6398 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6399 override if TARGET_SYSTEM_ROOT is defined.
6400 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6402 PR tree-optimization/79090
6403 PR tree-optimization/33562
6404 PR tree-optimization/61912
6405 PR tree-optimization/77485
6406 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
6407 and computed trims into the dump file.
6409 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6411 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6413 2017-01-16 Jakub Jelinek <jakub@redhat.com>
6416 * gimplify.c (gimplify_init_constructor): If want_value and
6417 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
6421 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6422 sequence. Formatting fixes.
6423 (doloop_optimize): Formatting fixes.
6426 * gcc.c (debug_level_greater_than_spec_func): New function.
6427 (static_spec_functions): Add debug-level-gt spec function.
6428 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6430 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6431 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6432 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6433 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6434 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6435 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6437 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
6439 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6440 QImode fixups to general and mask registers only.
6442 2017-01-16 Carl Love <cel@us.ibm.com>
6444 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6445 for built-in functions
6446 vector signed char vec_nabs (vector signed char)
6447 vector signed short vec_nabs (vector signed short)
6448 vector signed int vec_nabs (vector signed int)
6449 vector signed long long vec_nabs (vector signed long long)
6450 vector float vec_nabs (vector float)
6451 vector double vec_nabs (vector double)
6452 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6454 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6455 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6456 * doc/extend.texi: Update the documentation file for the new built-in
6459 2017-01-16 Martin Sebor <msebor@redhat.com>
6461 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6464 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6466 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6467 UNSPEC_VSX__XXSPLTD to require special splat handling.
6469 2017-01-16 David Malcolm <dmalcolm@redhat.com>
6472 * system.h: Poison strndup.
6474 2017-01-16 Alan Modra <amodra@gmail.com>
6477 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6480 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
6482 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6484 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
6486 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6487 call recog here. Assert that INSN_CODE (insn) is non-negative.
6489 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6492 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6494 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6495 in the currently scheduled RTL fragment.
6497 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6499 PR rtl-optimization/78751
6500 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6503 2017-01-14 Jeff Law <law@redhat.com>
6505 PR tree-optimization/79090
6506 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6507 variable length stores.
6508 (compute_trims): Delete dead assignment to *trim_tail.
6509 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6512 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
6514 PR rtl-optimization/78626
6515 PR rtl-optimization/78727
6516 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6517 of a block, and split such blocks after everything else is finished.
6519 2017-01-14 Alan Modra <amodra@gmail.com>
6522 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6523 target legitimate_combined_insn.
6524 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6525 (rs6000_legitimate_combined_insn): New function.
6526 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6528 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6529 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6530 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6532 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
6534 * doc/frontends.texi (G++ and GCC): Remove references to Java.
6536 2017-01-13 Jeff Law <law@redhat.com>
6538 PR tree-optimization/33562
6539 PR tree-optimization/61912
6540 PR tree-optimization/77485
6541 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6543 (delete_dead_assignment): Likewise.
6544 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6545 statement to delete_dead_call and delete_dead_assignment.
6547 2017-01-13 David Malcolm <dmalcolm@redhat.com>
6550 * substring-locations.c (format_warning_va): Strengthen case 1 so
6551 that both endpoints of the substring must be within the format
6552 range for just the substring to be printed.
6554 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
6556 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6557 * config/i386/i386.c (ix86_target_string): Add missing options
6558 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
6559 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6560 flags_other and ix86_target_other to flags2_other. Display unknown
6562 (ix86_valid_target_attribute_inner_p): Add missing options and
6563 reorder options by implied ISAs, as in ix86_target_string.
6565 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6567 * hash-table.h (hash_table::too_empty_p): New function.
6568 (hash_table::expand): Use it.
6569 (hash_table::traverse): Likewise.
6570 (hash_table::empty_slot): Use sizeof (value_type) instead of
6571 sizeof (PTR) to convert bytes to elements. Shrink the table
6572 if the current size is excessive for the current number of
6575 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6577 * ira-costs.c (record_reg_classes): Break from the inner loop
6578 early once alt_fail is known to be true. Update outer loop
6579 handling accordingly.
6581 2017-01-13 Jeff Law <law@redhat.com>
6583 * tree-ssa-dse.c (decrement_count): New function.
6584 (increment_start_addr, maybe_trim_memstar_call): Likewise.
6585 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6586 when we know the partially dead statement is a mem* function.
6588 PR tree-optimization/61912
6589 PR tree-optimization/77485
6590 * tree-ssa-dse.c: Include expr.h.
6591 (maybe_trim_constructor_store): New function.
6592 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6594 PR tree-optimization/33562
6595 PR tree-optimization/61912
6596 PR tree-optimization/77485
6597 * doc/invoke.texi: Document new dse-max-object-size param.
6598 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6599 * tree-ssa-dse.c: Include params.h.
6600 (dse_store_status): New enum.
6601 (initialize_ao_ref_for_dse): New, partially extracted from
6603 (valid_ao_ref_for_dse, normalize_ref): New.
6604 (setup_live_bytes_from_ref, compute_trims): Likewise.
6605 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6606 (maybe_trim_partially_dead_store): Likewise.
6607 (maybe_trim_complex_store): Likewise.
6608 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6609 Track what bytes live from the original store. Return tri-state
6610 for dead, partially dead or live.
6611 (dse_dom_walker): Add constructor, destructor and new private members.
6612 (delete_dead_call, delete_dead_assignment): New extracted from
6614 (dse_optimize_stmt): Make a member of dse_dom_walker.
6615 Use initialize_ao_ref_for_dse.
6617 PR tree-optimization/33562
6618 PR tree-optimization/61912
6619 PR tree-optimization/77485
6620 * sbitmap.h (bitmap_count_bits): Prototype.
6621 (bitmap_clear_range, bitmap_set_range): Likewise.
6622 * sbitmap.c (bitmap_clear_range): New function.
6623 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6625 2017-01-13 Martin Liska <mliska@suse.cz>
6628 * function.c (set_cfun): Add new argument force.
6629 * function.h (set_cfun): Likewise.
6630 * ipa-inline-transform.c (inline_call): Use the function when
6631 strict alising from is dropped for function we inline to.
6633 2017-01-13 Richard Biener <rguenther@suse.de>
6635 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6636 for dumping GIMPLE INTEGER_CSTs.
6638 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6640 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6641 to 201112L since C++17.
6643 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
6646 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6647 if -fsanitize=kernel-address is present.
6649 2017-01-13 Richard Biener <rguenther@suse.de>
6651 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6652 as _Literal ( type ) number in case usual suffixes do not
6653 preserve all information.
6655 2017-01-13 Richard Biener <rguenther@suse.de>
6657 PR tree-optimization/77283
6658 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6659 and ssa-iterators.h.
6660 (is_feasible_trace): Implement a cost model based on joiner
6663 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6666 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6667 char or short to __float128/_Float128 directly.
6669 2017-01-12 Martin Sebor <msebor@redhat.com>
6671 to -Wformat-overflow.
6672 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6673 (min_bytes_remaining): Same.
6674 (get_string_length): Same.
6675 (format_string): Same.
6676 (format_directive): Same.
6678 (pass_sprintf_length::handle_gimple_call): Same.
6680 2017-01-12 Jakub Jelinek <jakub@redhat.com>
6682 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6683 info.nowrite calls with no lhs that can't throw. Return bool
6684 whether gsi_remove has been called or not.
6685 (pass_sprintf_length::handle_gimple_call): Return bool whether
6686 try_substitute_return_value called gsi_remove. Formatting fix.
6687 (pass_sprintf_length::execute): Don't use gsi_remove if
6688 handle_gimple_call returned true.
6691 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6692 be removed due to side-effects, don't remove following barrier nor
6693 turn the successor edge into fallthru edge.
6695 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6698 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6699 element-reversing loads and stores as not swappable.
6701 2017-01-12 Nathan Sidwell <nathan@acm.org>
6702 Nicolai Stange <nicstange@gmail.com>
6704 * combine.c (try_combine): Don't ignore result of overlap checking
6705 loop. Combine overlap & asm check into single loop.
6707 2017-01-12 Richard Biener <rguenther@suse.de>
6709 * tree-pretty-print.c (dump_generic_node): Provide -gimple
6710 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
6712 2017-01-12 Richard Biener <rguenther@suse.de>
6714 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
6715 and TS_TARGET_OPTION directly derive from TS_BASE.
6716 * tree-core.h (tree_optimization_option): Derive from tree_base.
6717 (tree_target_option): Likewise.
6719 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
6721 * config/i386/i386.c (memory_address_length): Increase len
6722 only when rip_relative_addr_p returns false.
6724 2017-01-11 Julia Koval <julia.koval@intel.com>
6726 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
6727 (OPTION_MASK_ISA_SGX_SET): New.
6728 (ix86_handle_option): Handle OPT_msgx.
6729 * config.gcc: Added sgxintrin.h.
6730 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
6731 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
6732 * config/i386/i386.c (ix86_target_string): Add -msgx.
6734 (ix86_option_override_internal): Handle new options.
6735 (ix86_valid_target_attribute_inner_p): Add sgx.
6736 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
6737 * config/i386/i386.opt: Add msgx.
6738 * config/i386/sgxintrin.h: New file.
6739 * config/i386/x86intrin.h: Add sgxintrin.h.
6741 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6744 * fold-const.c (maybe_nonzero_address): Return 1 for function
6746 (tree_single_nonzero_warnv_p): Don't handle function local objects
6750 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
6753 2017-01-11 David Malcolm <dmalcolm@redhat.com>
6756 * opts.c: Include "spellcheck.h"
6757 (struct string_fragment): New struct.
6758 (struct edit_distance_traits<const string_fragment &>): New
6760 (get_closest_sanitizer_option): New function.
6761 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
6763 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6765 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
6767 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
6768 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
6769 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
6770 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
6771 for initial die_offset if dwarf_split_debug_info.
6772 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
6773 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
6775 (output_skeleton_debug_sections): Formatting fix. Use
6776 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
6777 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
6779 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
6781 * config/arm/cortex-a53.md: Add bypasses for
6783 (cortex_a53_r2f): Only use for transfers.
6784 (cortex_a53_f2r): Likewise.
6785 (cortex_a53_r2f_cvt): Add reservation for conversions.
6786 (cortex_a53_f2r_cvt): Likewise.
6788 2017-01-11 Tamar Christina <tamar.christina@arm.com>
6790 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
6791 to all inlined functions, change static to extern.
6793 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
6796 * config/arm/arm.c (legitimize_pic_address): Handle reference to
6798 (arm_assemble_integer): Likewise.
6800 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
6802 * config.gcc: Use new awk script to check CPU, FPU and architecture
6803 parameters for --with-... options.
6804 * config/arm/parsecpu.awk: New file
6805 * config/arm/arm-cpus.in: New file.
6806 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
6808 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
6810 * config/arm/t-arm: Update dependency rules.
6811 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
6812 of processing .def files.
6813 * config/arm/genopt.sh: Deleted.
6814 * config/arm/gentune.sh: Deleted.
6815 * config/arm/arm-cores.def: Deleted.
6816 * config/arm/arm-arches.def: Deleted.
6817 * config/arm/arm-fpus.def: Deleted.
6818 * config/arm/arm-tune.md: Regenerated.
6819 * config/arm/arm-tables.opt: Regenerated.
6820 * config/arm/arm-cpu.h: New generated file.
6821 * config/arm/arm-cpu-data.h: New generated file.
6822 * config/arm/arm-cpu-cdata.h: New generated file.
6824 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
6827 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
6829 (input_varpool_node): Unpack dynamically_initialized bit.
6831 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
6833 PR rtl-optimization/79032
6834 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
6835 the alignment of the adjusted memory reference against that of MODE,
6836 instead of the alignment of the original memory reference.
6838 2017-01-11 Martin Jambor <mjambor@suse.cz>
6840 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
6842 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
6843 decorated functions.
6845 2017-01-11 Richard Biener <rguenther@suse.de>
6847 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
6848 set range/nonnull info for PHI results. Do not set it on
6849 stmts marked for removal.
6851 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
6853 * expr.c (store_field): In the bitfield case, fetch the return value
6854 from the registers before applying a single big-endian adjustment.
6855 Always do a final load for a BLKmode value not larger than a word.
6857 2017-01-10 David Malcolm <dmalcolm@redhat.com>
6860 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6861 that we correctly handle column numbers greater than
6862 LINE_MAP_MAX_COLUMN_NUMBER.
6864 2017-01-10 Martin Sebor <msebor@redhat.com>
6867 * gimple-ssa-sprintf.c (get_destination_size): Call
6868 {init,fini}object_sizes.
6869 * tree-object-size.c (addr_object_size): Adjust.
6870 (pass_through_call): Adjust.
6871 (pass_object_sizes::execute): Adjust.
6872 * tree-object-size.h (fini_object_sizes): Declare.
6874 2017-01-10 Martin Sebor <msebor@redhat.com>
6876 PR tree-optimization/78775
6877 * builtins.c (get_size_range): Move...
6878 * calls.c: ...to here.
6879 (alloc_max_size): Accept zero argument.
6880 (operand_signed_p): Remove.
6881 (maybe_warn_alloc_args_overflow): Call get_size_range.
6882 * calls.h (get_size_range): Declare.
6884 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
6886 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
6887 from TI's devices.csv file as of September 2016.
6888 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
6890 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
6892 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
6893 * doc/invoke.texi: Likewise.
6894 * doc/md.texi: Likewise.
6895 * doc/objc.texi: Likewise.
6897 2017-01-10 Joshua Conner <joshconner@google.com>
6899 * config/arm/fuchsia-elf.h: New file.
6900 * config/fuchsia.h: New file.
6901 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
6902 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
6904 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
6906 2016-01-10 Richard Biener <rguenther@suse.de>
6908 PR tree-optimization/79034
6909 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6910 Propagate out degenerate PHIs in the joiner.
6912 2017-01-10 Martin Liska <mliska@suse.cz>
6914 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
6915 (sort_congruence_classes_by_decl_uid): Likewise.
6916 (sort_congruence_class_groups_by_decl_uid): Likewise.
6917 (sem_item_optimizer::merge_classes): Sort class, groups in these
6918 classes and members in the groups by DECL_UID of declarations.
6919 This would make merge operations stable.
6921 2017-01-10 Martin Liska <mliska@suse.cz>
6923 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
6924 usage of m_classes_vec.
6925 (sem_item_optimizer::~sem_item_optimizer): Likewise.
6926 (sem_item_optimizer::get_group_by_hash): Likewise.
6927 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6928 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
6929 (sem_item_optimizer::verify_classes): Likewise.
6930 (sem_item_optimizer::process_cong_reduction): Likewise.
6931 (sem_item_optimizer::dump_cong_classes): Likewise.
6932 (sem_item_optimizer::merge_classes): Likewise.
6933 * ipa-icf.h (congruence_class_hash): Rename from
6934 congruence_class_group_hash. Remove declaration of m_classes_vec.
6936 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
6938 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
6939 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
6940 * config.gcc: Add avx512vpopcntdqintrin.h.
6941 * config/i386/avx512vpopcntdqintrin.h: New.
6942 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
6943 * config/i386/i386-builtin-types.def: Add new types.
6944 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
6945 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
6946 __builtin_ia32_vpopcountq_v8di_mask): New.
6947 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6948 __AVX512VPOPCNTDQ__.
6949 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
6950 (PTA_AVX512VPOPCNTDQ): Define.
6951 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
6952 TARGET_AVX512VPOPCNTDQ_P): Define.
6953 * config/i386/i386.opt: Add mavx512vpopcntdq.
6954 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
6955 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
6957 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
6960 * predict.def (PRED_CALL): Set to 67.
6962 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
6964 * expr.c (store_field): In the bitfield case, if the value comes from
6965 a function call and is of an aggregate type returned in registers, do
6966 not modify the field mode; extract the value in all cases if the mode
6967 is BLKmode and the size is not larger than a word.
6969 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
6972 * config/i386/cpuid.h: Fix undefined behavior.
6974 2017-01-04 Jeff Law <law@redhat.com>
6976 PR tree-optimization/79007
6977 PR tree-optimization/67955
6978 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
6979 conservative for pt.null when flag_non_call_exceptions is on.
6981 2017-01-09 Jakub Jelinek <jakub@redhat.com>
6983 PR translation/79019
6984 PR translation/79020
6985 * params.def (PARAM_INLINE_MIN_SPEEDUP,
6986 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
6987 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
6989 * config/avr/avr.opt (maccumulate-args): Likewise.
6990 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
6991 * common.opt (freport-bug): Likewise.
6992 * cif-code.def (CIF_FINAL_ERROR): Likewise.
6993 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
6994 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
6995 translatable string.
6996 * config/i386/i386.c (function_value_32): Likewise.
6997 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
6998 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
7000 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
7001 * common/config/msp430/msp430-common.c (msp430_handle_option):
7003 * symtab.c (symtab_node::verify_base): Likewise.
7004 * opts.c (set_debug_level): Likewise.
7005 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
7006 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7007 missing whitespace to translatable strings.
7008 * config/avr/avr.md (bswapsi2): Fix typo in comment.
7009 * config/sh/superh.h: Likewise.
7010 * config/i386/xopintrin.h: Likewise.
7011 * config/i386/znver1.md: Likewise.
7012 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
7013 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7014 * double-int.h (struct double_int): Likewise.
7015 * double-int.c (div_and_round_double): Likewise.
7016 * wide-int.cc: Likewise.
7017 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7018 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7019 * cfgcleanup.c (crossjumps_occured): Renamed to ...
7020 (crossjumps_occurred): ... this.
7021 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
7024 PR tree-optimization/78899
7025 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
7026 returning bool return struct loop *, NULL for failure and the new
7028 (versionable_outer_loop_p): Don't version outer loop if it has
7029 dont_vectorized bit set.
7030 (tree_if_conversion): When versioning outer loop, ensure
7031 tree_if_conversion is performed also on the inner loop of the
7032 non-vectorizable outer loop copy.
7033 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
7034 LOOP_VECTORIZED in inner loop of the scalar outer loop and
7035 prevent vectorization of it.
7036 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
7037 the outer loop vectorization of the non-scalar version is attempted
7038 before vectorization of the inner loop in scalar version. If
7039 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
7040 vectorization of its inner loop.
7041 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
7042 has 2 inner loops, rename also on edges from bb whose single pred
7043 is outer_loop->header. Fix typo in function comment.
7045 2017-01-09 Martin Sebor <msebor@redhat.com>
7048 * asan.c (asan_emit_stack_protection): Increase local buffer size
7049 to avoid snprintf truncation warning.
7051 2017-01-09 Andrew Pinski <apinski@cavium.com>
7053 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
7054 to reference thunderx2t99 for the tuning structure
7055 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
7057 (thunderx2t99_extra_costs): This.
7058 * config/aarch64/aarch64-tune.md: Regenerate.
7059 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
7060 (vulcan_addrcost_table): This.
7061 (vulcan_regmove_cost): Rename to ...
7062 (thunderx2t99_regmove_cost): This.
7063 (vulcan_vector_cost): Rename to ...
7064 (thunderx2t99_vector_cost): this.
7065 (vulcan_branch_cost): Rename to ...
7066 (thunderx2t99_branch_cost): This.
7067 (vulcan_tunings): Rename to ...
7068 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
7069 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
7071 2017-01-09 Martin Jambor <mjambor@suse.cz>
7075 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
7076 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
7077 (propagate_vr_accross_jump_function): Use the above function for all
7078 value range computations for pass-through jump functions and type
7079 converasion from explicit value range values.
7080 (ipcp_propagate_stage): Do not attempt to deduce types of formal
7081 parameters from TYPE_ARG_TYPES.
7082 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
7083 (ipa_write_node_info): Stream type of the actual argument.
7084 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
7086 2017-01-09 Martin Liska <mliska@suse.cz>
7089 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
7090 (lookup_compiler): Do not show error message with have_E.
7092 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7094 PR tree-optimization/78938
7095 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
7096 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
7097 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
7098 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
7101 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7103 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
7106 2017-01-09 Richard Biener <rguenther@suse.de>
7108 PR tree-optimization/78997
7109 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
7110 name condition properly.
7112 2017-01-09 Richard Biener <rguenther@suse.de>
7115 * dwarf2out.c (is_cxx): New overload with context.
7116 (is_naming_typedef_decl): Use it.
7118 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7120 * invoke.texi (Option Summary): Correct spacing in option lists
7121 and add line breaks to fix over-long lines.
7123 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7127 * extend.texi (Common Variable Attributes): Add xref to GCC
7128 Internals manual to explain mode attribute keywords.
7130 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7133 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
7134 and Preprocessor Options.
7135 (Options for Linking): Document -pthread here....
7136 (RS/6000 and PowerPC Options): ...not here.
7137 (Solaris 2 Options): ...or here.
7138 * doc/cppopts.texi: Document -pthread.
7140 2017-01-08 Martin Sebor <msebor@redhat.com>
7143 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
7144 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
7145 New member functions.
7146 (format_directive): Used them.
7148 (pass_sprintf_length::handle_gimple_call): Same.
7149 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
7150 to avoid truncation for any argument.
7151 (extract_affine_mul): Same.
7152 * tree.c (get_file_function_name): Same.
7154 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7157 * predict.def (PRED_INDIR_CALL): Set to 86.
7159 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7161 PR preprocessor/54124
7162 * doc/cppopts.texi: Reformat -d subtable to list the full name
7163 of the options. Add cross-reference to the docs for the general
7164 compiler -d options.
7165 * doc/invoke.texi (Developer Options): Add cross-reference to the
7166 preprocessor-specific -d option documentation.
7168 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7170 PR preprocessor/13498
7171 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
7172 redudant material, and reflect new command-line options.
7173 (System Headers): Likewise.
7175 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7177 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
7178 -isystem, and -idirafter. Copy-edit.
7179 * doc/cppopts.texi: Copy-edit. Remove contradiction about
7180 default for -ftrack-macro-expansion. Delete obsolete and
7181 badly-formatted implementation details about -fdebug-cpp output.
7182 * doc/cppwarnopts.texi: Copy-edit.
7184 2017-01-07 David Malcolm <dmalcolm@redhat.com>
7187 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7188 that the transition from a max line width >= 1<<10 to narrower
7189 lines works correctly.
7191 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
7193 * doc/options.texi (PerFunction): New.
7194 * opt-functions.awk (switch_flags): Map both Optimization and
7195 PerFunction to CL_OPTIMIZATION.
7196 * opth-gen.awk: Test for PerFunction flag along with
7198 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
7199 it only when the latter is present. Skip those that don't in
7200 the hash function generator.
7201 * common.opt (fvar-tracking): Mark as PerFunction instead of
7203 (fvar-tracking-assignments): Likewise.
7204 (fvar-tracking-assignments-toggle): Likewise.
7205 (fvar-tracking-uninit): Likewise.
7207 2017-01-07 Jakub Jelinek <jakub@redhat.com>
7209 PR translation/79018
7210 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7213 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
7216 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7217 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7218 TARGET_LONG_JUMP_TABLE_OFFSETS.
7219 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7220 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7221 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7222 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7223 * config/m68k/m68k.md (tablejump expander): Likewise.
7224 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7225 TARGET_LONG_JUMP_TABLE_OFFSETS.
7226 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7227 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7229 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7230 David Holsgrove <david.holsgrove@xilinx.com>
7232 * common/config/microblaze/microblaze-common.c
7233 (TARGET_EXCEPT_UNWIND_INFO): Remove.
7234 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7236 * config/microblaze/microblaze.c (microblaze_must_save_register)
7237 (microblaze_expand_epilogue, microblaze_return_addr): Handle
7239 (microblaze_eh_return): New function.
7240 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7241 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7242 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7243 * config/microblaze/microblaze.md (eh_return): New pattern.
7245 2017-01-06 Jakub Jelinek <jakub@redhat.com>
7247 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7248 GCC_DIAGNOSTIC_STRINGIFY): Define.
7250 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7252 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7254 * config/arm/arm.md (<mcrr>): New.
7256 * config/arm/arm.c (arm_arch5te): New.
7257 (arm_option_override): Set arm_arch5te.
7258 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7260 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7261 (arm_mcrr_qualifiers): ... this. New.
7262 (MRRC_QUALIFIERS): Define to...
7263 (arm_mrrc_qualifiers): ... this. New.
7264 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7266 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7267 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7268 (MRRCI, mrrc, MRRC): New.
7269 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7270 VUNSPEC_MRRC2): New.
7272 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7274 * config/arm/arm.md (<mcr>): New.
7276 * config/arm/arm.c (arm_coproc_builtin_available): Add
7277 support for mcr, mrc, mcr2 and mrc2.
7278 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7279 (arm_mcr_qualifiers): ... this. New.
7280 (MRC_QUALIFIERS): Define to ...
7281 (arm_mrc_qualifiers): ... this. New.
7282 (MCR_QUALIFIERS): Define to ...
7283 (arm_mcr_qualifiers): ... this. New.
7284 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7286 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7287 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7288 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7291 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7293 * config/arm/arm.md (*ldc): New.
7297 * config/arm/arm.c (arm_coproc_builtin_available): Add
7298 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7299 (arm_coproc_ldc_stc_legitimate_address): New.
7300 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7301 'qualifier_const_pointer'.
7302 (LDC_QUALIFIERS): Define to...
7303 (arm_ldc_qualifiers): ... this. New.
7304 (STC_QUALIFIERS): Define to...
7305 (arm_stc_qualifiers): ... this. New.
7306 * config/arm/arm-protos.h
7307 (arm_coproc_ldc_stc_legitimate_address): New.
7308 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7309 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7310 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7311 stc2, stcl, stc2l): New.
7312 * config/arm/constraints.md (Uz): New.
7313 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7314 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7315 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7316 VUNSPEC_STC2L): New.
7318 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7320 * config/arm/arm.md (<cdp>): New.
7321 * config/arm/arm.c (neon_const_bounds): Rename this ...
7322 (arm_const_bounds): ... this.
7323 (arm_coproc_builtin_available): New.
7324 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7325 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7326 (CDP_QUALIFIERS): Define to...
7327 (arm_cdp_qualifiers): ... this. New.
7329 (arm_expand_builtin_args): Add case for 6 arguments.
7330 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7331 (arm_const_bounds): ... this.
7332 (arm_coproc_builtin_available): New.
7333 * config/arm/arm_acle.h (__arm_cdp): New.
7335 * config/arm/arm_acle_builtins.def (cdp): New.
7337 * config/arm/iterators.md (CDPI,CDP,cdp): New.
7338 * config/arm/neon.md: Rename all 'neon_const_bounds' to
7340 * config/arm/types.md (coproc): New.
7341 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7342 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7343 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7344 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7346 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7348 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7349 (UBINOP_QUALIFIERS): New.
7351 (acle_builtin_data): New. Change comment.
7352 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7353 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7354 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7355 arm_acle_builtins.def.
7356 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7357 (arm_init_acle_builtins): New.
7358 (CRC32_BUILTIN): Remove.
7359 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7360 crc32cb, crc32ch and crc32cw.
7361 (arm_init_crc32_builtins): Remove.
7362 (arm_init_builtins): Use arm_init_acle_builtins rather
7363 than arm_init_crc32_builtins.
7364 (arm_expand_acle_builtin): New.
7365 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7366 * config/arm/arm_acle_builtins.def: New.
7368 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7370 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7371 (arm_builtin_datum): ... this.
7372 (arm_init_neon_builtin): Rename to ...
7373 (arm_init_builtin): ... this. Add a new parameters PREFIX
7374 and USE_SIG_IN_NAME.
7375 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7376 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7377 'arm_builtin_datum'.
7378 (arm_init_vfp_builtins): Likewise.
7379 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7380 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7381 (arm_expand_neon_args): Rename to ...
7382 (arm_expand_builtin_args): ... this. Rename builtin_arg
7383 enum values and differentiate between ARG_BUILTIN_MEMORY
7384 and ARG_BUILTIN_NEON_MEMORY.
7385 (arm_expand_neon_builtin_1): Rename to ...
7386 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7387 values, arm_expand_builtin_args and add bool parameter NEON.
7388 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7389 (arm_expand_vfp_builtin): Likewise.
7390 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7392 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7395 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7396 * predict.c (tree_estimate_probability_bb): Reverse direction of
7397 polymorphic call predictor.
7399 2017-01-06 David Malcolm <dmalcolm@redhat.com>
7401 * passes.c (execute_one_pass): Split out pass-skipping logic into...
7402 (determine_pass_name_match): ...this new function and...
7403 (should_skip_pass_p): ...this new function.
7405 2017-01-06 Nathan Sidwell <nathan@acm.org>
7407 * ipa-visibility.c (function_and_variable_visibility): Reformat
7408 comments and long lines. Remove extrneous if.
7409 * symtab.c (symtab_node::make_decl_local): Fix code format.
7410 (symtab_node::set_section_for_node): Fix comment typo.
7412 2017-01-06 Martin Liska <mliska@suse.cz>
7415 * lra-constraints.c: Rename invariant to lra_invariant.
7416 * predict.c (set_even_probabilities): Initialize e to NULL.
7418 2017-01-05 Martin Sebor <msebor@redhat.com>
7420 PR tree-optimization/78910
7421 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7422 (format_integer): Correct off-by-one error in the handling
7423 of precision with negative numbers in signed conversions..
7425 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
7427 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7429 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7431 PR tree-optimization/71016
7432 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7433 factor_out_conditional_conversion. Formatting fix.
7434 (factor_out_conditional_conversion): Add cond_stmt argument.
7435 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7436 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7439 2017-01-05 David Malcolm <dmalcolm@redhat.com>
7441 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7442 read-rtl-function.o, and selftest-rtl.o.
7443 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7444 (selftest::aarch64_test_loading_full_dump): New function.
7445 (selftest::aarch64_run_selftests): New function.
7446 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7447 selftest::aarch64_run_selftests.
7448 * config/i386/i386.c
7449 (selftest::ix86_test_loading_dump_fragment_1): New function.
7450 (selftest::ix86_test_loading_call_insn): New function.
7451 (selftest::ix86_test_loading_full_dump): New function.
7452 (selftest::ix86_test_loading_unspec): New function.
7453 (selftest::ix86_run_selftests): Call the new functions.
7454 * emit-rtl.c (maybe_set_max_label_num): New function.
7455 * emit-rtl.h (maybe_set_max_label_num): New decl.
7456 * function.c (instantiate_decls): Guard call to
7457 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7458 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7460 * gensupport.c (gen_reader::gen_reader): Pass "false"
7461 for new "compact" param of rtx_reader.
7462 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7463 rather than an empty string for NULL strings.
7464 * read-md.c: Potentially include config.h rather than bconfig.h.
7465 Wrap include of errors.h with #ifdef GENERATOR_FILE.
7466 (have_error): New global, copied from errors.c.
7467 (md_reader::read_name): Rename to...
7468 (md_reader::read_name_1): ...this, adding "out_loc" param,
7469 and converting "missing name or number" to returning false, rather
7471 (md_reader::read_name): Reimplement in terms of read_name_1.
7472 (md_reader::read_name_or_nil): New function.
7473 (md_reader::read_string): Handle "(nil)" by returning NULL.
7474 (md_reader::md_reader): Add new param "compact".
7475 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7476 (md_reader::read_file): New method.
7477 * read-md.h (md_reader::md_reader): Add new param "compact".
7478 (md_reader::read_file): New method.
7479 (md_reader::is_compact): New accessor.
7480 (md_reader::read_name): Convert return type from void to file_location.
7481 (md_reader::read_name_or_nil): New decl.
7482 (md_reader::read_name_1): New decl.
7483 (md_reader::m_compact): New field.
7484 (noop_reader::noop_reader): Pass "false" for new "compact" param
7486 (rtx_reader::rtx_reader): Add new "compact" param.
7487 (rtx_reader::read_rtx_operand): Make virtual and convert return
7488 type from void to rtx.
7489 (rtx_reader::read_until): New decl.
7490 (rtx_reader::handle_any_trailing_information): New virtual function.
7491 (rtx_reader::postprocess): New virtual function.
7492 (rtx_reader::finalize_string): New virtual function.
7493 (rtx_reader::m_in_call_function_usage): New field.
7494 (rtx_reader::m_reuse_rtx_by_id): New field.
7495 * read-rtl-function.c: New file.
7496 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7497 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7498 (selftest::verify_three_block_rtl_cfg): New decl.
7499 * read-rtl-function.h: New file.
7500 * read-rtl.c: Potentially include config.h rather than bconfig.h.
7501 For host, include function.h, memmodel.h, and emit-rtl.h.
7502 (one_time_initialization): New function.
7503 (struct compact_insn_name): New struct.
7504 (compact_insn_names): New array.
7505 (find_code): Handle insn codes in compact dumps.
7506 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7507 (bind_subst_iter_and_attr): Likewise.
7508 (add_condition_to_string): Likewise.
7509 (add_condition_to_rtx): Likewise.
7510 (apply_attribute_uses): Likewise.
7511 (add_current_iterators): Likewise.
7512 (apply_iterators): Likewise.
7513 (initialize_iterators): Guard usage of apply_subst_iterator with
7514 #ifdef GENERATOR_FILE.
7515 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7516 (md_reader::read_mapping): Likewise.
7517 (add_define_attr_for_define_subst): Likewise.
7518 (add_define_subst_attr): Likewise.
7519 (read_subst_mapping): Likewise.
7520 (check_code_iterator): Likewise.
7521 (rtx_reader::read_rtx): Likewise. Move one-time initialization
7523 (one_time_initialization): New function.
7524 (rtx_reader::read_until): New method.
7525 (read_flags): New function.
7526 (parse_reg_note_name): New function.
7527 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7528 Handle reuse_rtx ids.
7529 Wrap iterator lookup within #ifdef GENERATOR_FILE.
7530 Add parsing support for RTL dumps, mirroring the special-cases in
7531 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7532 values, and calling handle_any_trailing_information.
7533 (rtx_reader::read_rtx_operand): Convert return type from void
7534 to rtx, returning return_rtx. Handle case 'e'. Call
7535 finalize_string on XSTR and XTMPL fields.
7536 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
7537 "(nil)" values were omitted. Call the postprocess vfunc on the
7539 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7540 class ctor. Initialize m_in_call_function_usage. Call
7541 one_time_initialization.
7542 * rtl-tests.c (selftest::test_uncond_jump): Call
7543 set_new_first_and_last_insn.
7544 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7545 * selftest-rtl.c: New file.
7546 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7547 (selftest::get_insn_by_uid): New decl.
7548 * selftest-run-tests.c (selftest::run_tests): Call
7549 read_rtl_function_c_tests.
7550 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
7551 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7554 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
7556 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7557 operands in a special way. Assert that pos+len <= mode precision.
7559 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7561 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7562 3 argument Alias with unlimited for the negative form.
7563 (fno-vect-cost-model): Removed.
7565 2017-01-05 Martin Liska <mliska@suse.cz>
7567 * hsa-gen.c (gen_hsa_divmod): New function.
7568 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7570 2017-01-05 Martin Liska <mliska@suse.cz>
7573 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7576 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7578 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7579 small constant length operands.
7581 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7583 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7584 between loop iterations.
7586 2017-01-05 Martin Liska <mliska@suse.cz>
7589 * gimplify.c (gimplify_decl_expr): Compare to
7590 asan_poisoned_variables instread of checking flags.
7591 (gimplify_target_expr): Likewise.
7592 (gimplify_expr): Likewise.
7593 (gimplify_function_tree): Conditionally initialize
7594 asan_poisoned_variables.
7596 2017-01-04 Jeff Law <law@redhat.com>
7598 PR tree-optimizatin/78812
7599 * rtl.h (contains_mem_rtx_p): Prototype.
7600 * ifcvt.c (containts_mem_rtx_p): Move from here to...
7601 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7602 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7603 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
7604 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7606 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7608 * input.c (assert_char_at_range): Default-initialize actual_range.
7610 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7612 * df-scan.c (df_ref_create_structure): Make regno unsigned,
7613 to match the caller.
7615 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7617 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7618 insns after final jump in test to emit dummy move.
7620 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7622 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7623 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7625 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7627 * multiple_target.c (create_dispatcher_calls): Init e_next.
7628 * tree-ssa-loop-split.c (split_loop): Init border.
7629 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7632 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7637 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7638 (altivec_register_operand): Do not return true if the operand
7639 contains a SUBREG mixing SImode and SFmode.
7640 (vsx_register_operand): Likewise.
7641 (vsx_reg_sfsubreg_ok): New predicate.
7642 (vfloat_operand): Do not return true if the operand contains a
7643 SUBREG mixing SImode and SFmode.
7644 (vint_operand): Likewise.
7645 (vlogical_operand): Likewise.
7646 (gpc_reg_operand): Likewise.
7647 (int_reg_operand): Likewise.
7648 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7649 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7650 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7652 (rs6000_emit_move_si_sf_subreg): New helper function.
7653 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7654 fixup SUBREGs involving SImode and SFmode.
7655 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7656 numbers for the new peephole2 optimization.
7657 (peephole2 for SFmode unions): New peephole2 to optimize cases in
7658 the GLIBC math library that do AND/IOR/XOR operations on single
7659 precision floating point.
7660 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7661 target macros to say whether we need to avoid SUBREGs mixing
7663 (TARGET_ALLOW_SF_SUBREG): Likewise.
7664 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7665 (UNSPEC_SI_FROM_SF): Likewise.
7666 (iorxor): Change spacing.
7667 (and_ior_xor): New iterator for AND, IOR, and XOR.
7668 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7669 (movdi_from_sf_zero_ext): Likewise.
7670 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7671 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
7672 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7673 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7674 (fms<mode>4): Likewise.
7675 (fnma<mode>4): Likewise.
7676 (fnms<mode>4): Likewise.
7677 (nfma<mode>4): Likewise.
7678 (nfms<mode>4): Likewise.
7680 2017-01-04 Marek Polacek <polacek@redhat.com>
7683 * doc/invoke.texi: Document -Wpointer-compare.
7685 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7687 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7690 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7691 descriptions for -gdwarf-5 and emit them as uleb128 instead of
7694 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
7697 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7698 documentation of the powerpc_popcntb_ok attribute.
7699 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7700 code to issue warning messages if a requested CPU configuration is
7701 not supported by the binary (assembler and loader) toolchain.
7702 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7703 made to define a built-in function that has been disabled.
7704 (paired_init_builtins): Add assertion to prevent ICE if attempt is
7705 made to define a built-in function that has been disabled.
7706 (altivec_init_builtins): Add comment explaining why definition
7707 of the DST built-in functions is not preceded by an assertion
7708 check. Add assertions to prevent ICE if attempts are made to
7709 define an altivec predicate or an abs* built-in function that has
7711 (htm_init_builtins): Add comment explaining why definition of the
7712 htm built-in functions is not preceded by an assertion check.
7714 2017-01-04 Jeff Law <law@redhat.com>
7716 PR tree-optimizatin/67955
7717 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
7718 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
7719 the points-to solution does not include pt_null. Use DECL_PT_UID
7722 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
7724 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
7725 Use gen_int_mode instead of gen_lopwart for const_int operands.
7727 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7729 PR tree-optimization/71563
7730 * match.pd: Simplify X << Y into X if Y is known to be 0 or
7731 out of range value - has low bits known to be zero.
7733 2017-01-04 Alan Modra <amodra@gmail.com>
7735 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
7736 * configure: Regenerate.
7737 * config.in: Regenerate.
7739 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7742 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
7743 a substring of the message, but strcmp with the whole message. Ifdef
7744 ENABLE_NLS, translate the message first using dgettext.
7746 2017-01-03 Jeff Law <law@redhat.com>
7748 PR tree-optimizatin/78856
7749 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
7750 (mark_threaded_blocks): Remove code to truncate thread paths that
7751 cross multiple loop headers. Instead invalidate the cached loop
7752 iteration information and handle case of a thread path walking
7753 into an irreducible region.
7755 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7758 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
7759 assertions. Add support for doing the signbit if the IEEE 128-bit
7760 floating point value is in a GPR.
7761 * config/rs6000/rs6000.md (Fsignbit): Delete.
7762 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
7763 Update the length attribute if the value is in a GPR.
7764 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
7765 the sign or zero extension instruction, since the value is always 0/1.
7766 (signbit<mode>2_dm2): Delete using <Fsignbit>.
7769 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
7770 extracting SImode to a GPR register so that we can generate a
7771 store, limit the vector to be in a traditional Altivec register
7772 for the vextuwrx instruction.
7774 2017-01-03 Ian Lance Taylor <iant@google.com>
7776 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
7778 2017-01-03 Martin Sebor <msebor@redhat.com>
7780 PR tree-optimization/78696
7781 * gimple-ssa-sprintf.c (format_floating): Correct handling of
7782 precision. Use MPFR for %f for greater fidelity. Correct handling
7784 (pass_sprintf_length::compute_format_length): Set width and precision
7785 specified by asrerisk to void_node for vararg functions.
7786 (try_substitute_return_value): Adjust dump output.
7788 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
7790 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
7792 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
7794 * doc/invoke.texi (SPARC options): Document -mlra as the default.
7795 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
7796 -mlra/-mno-lra was passed to the compiler.
7798 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
7800 PR rtl-optimization/65618
7801 * emit-rtl.c (try_split): Move initialization of "before" and
7802 "after" to just before the call to emit_insn_after_setloc.
7804 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
7806 * doc/md.texi (Standard Names): Remove reference to Java frontend.
7808 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
7810 * dwarf2out.c (gen_enumeration_type_die): When
7811 -gno-strict-dwarf, add a DW_AT_encoding attribute.
7813 2017-01-03 Jakub Jelinek <jakub@redhat.com>
7815 PR tree-optimization/78965
7816 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
7817 Change first argument from const call_info & to call_info &. For %n
7818 set info.nowrite to false.
7821 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
7822 possibly throwing calls.
7824 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
7825 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
7826 and fns handling, rather than in a separate case SSA_NAME.
7828 2017-01-02 Jeff Law <law@redhat.com>
7830 * config/darwin-driver.c (darwin_driver_init): Const-correctness
7831 fixes for first_period and second_period variables.
7833 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
7836 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
7837 (*insvqi_1): New insn pattern.
7838 (*insvqi_1_mem_rex64): Ditto.
7840 (*insvqi_3): Rename from *insvqi.
7842 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
7844 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7846 * doc/cfg.texi (Edges): Remove reference to Java.
7847 (Maintaining the CFG): Ditto.
7849 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7852 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
7853 transparent aliases.
7855 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7858 * predict.def (PRED_CALL): Update hitrate.
7859 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
7860 * predict.c (tree_estimate_probability_bb): Split CALL predictor
7861 into direct/indirect/polymorphic variants.
7863 2017-01-01 Jakub Jelinek <jakub@redhat.com>
7865 Update copyright years.
7867 * gcc.c (process_command): Update copyright notice dates.
7868 * gcov-dump.c (print_version): Ditto.
7869 * gcov.c (print_version): Ditto.
7870 * gcov-tool.c (print_version): Ditto.
7871 * gengtype.c (create_file): Ditto.
7872 * doc/cpp.texi: Bump @copying's copyright year.
7873 * doc/cppinternals.texi: Ditto.
7874 * doc/gcc.texi: Ditto.
7875 * doc/gccint.texi: Ditto.
7876 * doc/gcov.texi: Ditto.
7877 * doc/install.texi: Ditto.
7878 * doc/invoke.texi: Ditto.
7880 Copyright (C) 2017 Free Software Foundation, Inc.
7882 Copying and distribution of this file, with or without modification,
7883 are permitted in any medium without royalty provided the copyright
7884 notice and this notice are preserved.