1 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
5 (VALL_NO_V2Q): Likewise.
7 * config/aarch64/aarch64-simd.md
8 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
10 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
11 VALL_NO_V2Q mode iterator.
12 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
14 2017-03-09 Martin Liska <mliska@suse.cz>
16 PR tree-optimization/79631
17 * tree-chkp-opt.c (chkp_is_constant_addr): Call
18 tree_int_cst_sign_bit just for INTEGER constants.
20 2017-03-09 Martin Liska <mliska@suse.cz>
24 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
27 2017-03-09 Marek Polacek <polacek@redhat.com>
30 * tree.c (inchash::add_expr): Handle TREE_VEC.
32 2017-03-09 Martin Liska <mliska@suse.cz>
35 (chkp_narrow_size_and_offset): New function.
36 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
37 (void chkp_parse_bit_field_ref): New function.
38 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
39 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
41 2017-03-09 Martin Liska <mliska@suse.cz>
44 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
45 (chkp_find_bounds_1): Remove gcc_unreachable.
47 2017-03-09 Jakub Jelinek <jakub@redhat.com>
50 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
51 BUILT_IN_SYNC*, determine the access type from the size suffix and
52 always build a MEM_REF with that type. Handle forgotten
53 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
56 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
57 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
58 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
59 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
60 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
61 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
62 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
63 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
64 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
65 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
66 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
67 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
68 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
69 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
70 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
71 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
72 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
73 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
74 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
75 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
76 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
77 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
78 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
79 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
80 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
81 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
82 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
83 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
84 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
85 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
86 definitions outside of __OPTIMIZE__ guarded section.
89 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
90 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
91 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
92 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
95 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
97 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
98 ("vfenez<mode>"): Add missing constraints.
100 2017-03-08 Martin Sebor <msebor@redhat.com>
103 * config/nds32/nds32.c (nds32_option_override):
105 2017-03-08 Jakub Jelinek <jakub@redhat.com>
108 * gimplify.c (gimplify_omp_for): Replace index var in outer
109 taskloop statement with an artificial variable and add
110 OMP_CLAUSE_PRIVATE clause for it.
112 2017-03-08 Richard Biener <rguenther@suse.de>
114 PR tree-optimization/79955
115 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
116 for accesses that are completely outside of the variable.
118 2017-03-08 Andrew Haley <aph@redhat.com>
120 PR tree-optimization/79943
121 * tree-ssa-loop-split.c (compute_new_first_bound): When
122 calculating the new upper bound, (END-BEG) should be added, not
125 2017-03-08 Jakub Jelinek <jakub@redhat.com>
127 * config/avr/avr.md (setmemhi): Make sure match_dup
128 operand number comes before match_scratch.
130 2017-03-08 Richard Biener <rguenther@suse.de>
132 PR tree-optimization/79920
133 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
134 with ncopies == 1 to ...
135 (vect_transform_slp_perm_load): ... here. Properly compute
136 all element loads by iterating VF times over the group. Do
137 not handle ncopies (computed in a broken way) in
138 vect_create_mask_and_perm.
140 2017-03-08 Jakub Jelinek <jakub@redhat.com>
143 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
144 is a uniform vector, use uniform_vector_p return value instead of
145 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
147 2017-03-07 Marek Polacek <polacek@redhat.com>
150 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
151 (alloca_call_type): Likewise.
153 2017-03-07 Martin Liska <mliska@suse.cz>
155 * gcov.c (process_args): Put comment to correct location.
157 2017-03-07 Martin Liska <mliska@suse.cz>
160 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
161 Use array_at_struct_end_p instead of DECL_CHAIN (field).
162 (chkp_narrow_bounds_for_field): Likewise.
163 (chkp_parse_array_and_component_ref): Pass one more argument to
166 2017-03-07 Richard Biener <rguenther@suse.de>
168 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
171 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
173 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
174 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
176 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
179 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
180 to end of description.
181 (PARAM_MAX_STORES_TO_MERGE): Likewise.
183 2017-03-07 Jakub Jelinek <jakub@redhat.com>
185 PR rtl-optimization/79901
186 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
188 (*avx512f_<code><mode>3<mask_name>): ... this.
189 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
190 iterator instead of VI8_AVX2_AVX512BW.
192 PR rtl-optimization/79901
193 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
194 min/max expander, expand it using expand_vec_cond_expr.
197 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
200 2017-03-06 Jakub Jelinek <jakub@redhat.com>
203 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
204 to void * for PCH reasons.
205 * dwarf2out.c (output_loc_operands, output_die): Cast
206 v.val_vec.array to unsigned char *.
208 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
211 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
214 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
216 PR rtl-optimization/79571
217 * lra-constraints.c (process_alt_operands): Calculate static
218 reject and subtract it from overall when only addresses will be
221 2017-03-06 Julia Koval <julia.koval@intel.com>
224 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
225 incoming stack boundary to 128 for 64-bit targets.
227 2017-03-06 Richard Biener <rguenther@suse.de>
229 PR tree-optimization/79894
230 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
231 to NULL after folding it.
233 2017-03-06 Richard Biener <rguenther@suse.de>
235 PR tree-optimization/79824
236 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
237 check disabling peeling for gaps.
239 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
241 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
242 attributes): Document gettimeofday.
244 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
246 * config/s390/s390.c (s390_option_override_internal): Set
247 PARAM_MIN_VECT_LOOP_BOUND
249 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
251 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
252 * config/s390/s390.md: Likewise.
254 2017-03-06 Jakub Jelinek <jakub@redhat.com>
257 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
258 (<avx2_avx512>_perm<mode>): Rename to ...
259 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
261 (<avx512>_perm<mode>_mask): Rename to ...
262 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
264 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
265 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
266 instead of VI8F_256_512.
267 (avx512f_perm<mode>): New define_expand.
268 (avx512f_perm<mode>_mask): Likewise.
269 (avx512f_perm<mode>_1<mask_name>): New define_insn.
270 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
272 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
274 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
275 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
277 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
279 2017-03-06 Martin Liska <mliska@suse.cz>
282 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
283 when having a SSA NAME w/o VAR_DECL assigned to it.
285 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
287 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
288 msa_dpsub_<su>_d): Fix MODE for vec_select.
290 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
292 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
294 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
296 2017-03-06 Richard Biener <rguenther@suse.de>
298 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
299 * plugin.c (register_plugin_info): Likewise.
300 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
302 2017-03-05 Jakub Jelinek <jakub@redhat.com>
304 * config/i386/sse.md (sse_storehps, sse_storelps,
305 avx_<castmode><avxsizesuffix>_<castmode>,
306 avx512f_<castmode><avxsizesuffix>_<castmode>,
307 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
308 in condition that at least one operand is not a MEM.
310 2017-03-03 Jakub Jelinek <jakub@redhat.com>
313 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
314 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
316 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
317 gimple_call_nothrow_p flag based on whether original builtin can throw.
318 If it can, emit following stmts on the fallthrough edge.
319 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
320 don't create new bb if inserting just debug stmts on the edge, try to
321 insert them on the fallthru bb or just reset debug stmts.
323 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
326 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
327 restore recog_data (including the operand rtxes inside it) around
328 the call to get_insn_template.
330 2017-03-03 Martin Sebor <msebor@redhat.com>
332 PR tree-optimization/79699
333 * context.c (context::~context): Free MPFR caches to avoid
334 a memory leak on program exit.
336 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
338 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
339 Use wide_int::ulow () instead of .elt (0).
341 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
343 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
344 (*pushxf): Limit oF constraint to 32bit targets and add oC
345 constraint for 64bit targets.
346 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
347 (*pushdf): Change rmF constraint to rmC.
349 2017-03-03 Martin Liska <mliska@suse.cz>
351 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
352 Remove unused variable.
354 2017-03-03 Jakub Jelinek <jakub@redhat.com>
357 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
358 is a memory operand, increase num_memory.
359 (ix86_expand_args_builtin): Likewise.
361 2017-03-03 Jan Hubicka <jh@suse.cz>
364 * ipa-devirt.c (maybe_record_node): Properly handle
365 __cxa_pure_virtual visibility.
367 2017-03-03 Martin Liska <mliska@suse.cz>
369 PR tree-optimization/79803
370 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
372 (pass_loop_prefetch::execute): Disabled optimization if an
373 assumption about L1 cache size is not met.
375 2017-03-03 Martin Liska <mliska@suse.cz>
377 PR rtl-optimization/79574
378 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
379 (hash_scan_set): Likewise.
380 (dump_hash_table): Likewise.
381 (hoist_code): Likewise.
383 2017-03-03 Richard Biener <rguenther@suse.de>
385 * fixed-value.c (fixed_from_string): Restore use of elt (1)
386 in place of uhigh ().
387 (fixed_convert_from_real): Likewise.
389 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
392 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
394 2017-03-03 Richard Biener <rguenther@suse.de>
397 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
398 TYPE_OVERFLOW_UNDEFINED check.
400 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
402 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
404 (vector_ae_<mode>_p): Likewise.
405 (vector_nez_<mode>_p): Likewise.
406 (vector_ne_v2di_p): Likewise.
407 (vector_ae_v2di_p): Likewise.
408 (vector_ne_<mode>_p): Likewise.
409 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
411 (vsx_tsqrt<mode>2_fe): Likewise.
413 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
416 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
418 2017-03-02 Jakub Jelinek <jakub@redhat.com>
420 PR rtl-optimization/79780
421 * cprop.c (one_cprop_pass): When second and further conditional trap
422 in a single basic block is turned into an unconditional trap, turn it
423 into a deleted note to avoid RTL verification failures.
425 2017-03-02 Richard Biener <rguenther@suse.de>
427 * fold-const.c (const_binop): Use ulow () instead of elt (0).
429 2017-03-02 Richard Biener <rguenther@suse.de>
431 PR tree-optimization/79345
433 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
434 param and abort the walk, returning -1 if it is hit.
435 (walk_aliased_vdefs): Take a limit param and pass it on.
436 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
437 defaulting to 0 and return a signed int.
438 * tree-ssa-uninit.c (struct check_defs_data): New struct.
439 (check_defs): New helper.
440 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
441 about uninitialized memory.
442 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
443 bogus uninitialized warning.
444 (fixed_convert_from_real): Likewise.
446 2017-03-02 Bin Cheng <bin.cheng@arm.com>
448 PR tree-optimization/66768
449 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
450 iv_use if base object can't be determined.
452 2017-03-02 Jakub Jelinek <jakub@redhat.com>
454 PR tree-optimization/79345
455 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
456 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
457 (get_pattern_stats): Initialize it.
458 * genemit.c (gen_expand): Verify match_scratch numbers come after
459 match_operand/match_dup numbers.
460 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
461 match_scratch numbers.
462 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
464 * config/s390/s390.md (trunctdsd2): Likewise.
466 2017-03-02 Richard Biener <rguenther@suse.de>
468 * wide-int.h (wide_int_storage::operator=): Implement in terms
471 2017-03-02 Richard Biener <rguenther@suse.de>
473 PR tree-optimization/79777
474 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
475 the to insert expression to sth existing.
477 2017-03-01 Martin Sebor <msebor@redhat.com>
480 * gimple-ssa-sprintf.c
481 (directive::known_width_and_precision): New function.
482 (format_integer): Use it.
483 (get_mpfr_format_length): Consider the full range of precision
484 when computing %g output with the # flag. Set the likely byte
485 count to 3 rather than 1 when precision is indeterminate.
486 (format_floating): Correct the lower bound of precision.
488 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
490 * doc/invoke.texi: Document default code model for 64-bit Linux.
492 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
495 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
496 udiv rather than div since input pattern is unsigned.
498 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
500 * config/i386/i386.c (print_reg): Warn for values of
501 unsupported size in integer register.
503 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
506 * config/rs6000/predicates.md (current_file_function_operand): Do
507 not allow self calls to be local if the function is replaceable.
509 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
512 * config/rs6000/altivec.h (vec_ctz and others): Change the
513 preprocessor macro that controls conditional compilation from
514 _ARCH_PWR9 to __POWER9_VECTOR__.
515 (vec_all_ne): Change parameterization of __altivec_scalar_pred
516 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
517 control (instead of _ARCH_PWR9 control) so that template
518 definition uses power9-specific function.
519 (vec_any_eq): Likewise.
520 (vec_all_ne): Change macro definition to use a power9-specific
521 expansion under #ifdef __POWER9_VECTOR__ control (instead of
523 (vec_any_eq) Likewise.
524 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
525 expansion for CMPNEF to remove support for xvcmpnesp instruction.
526 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
527 support for xvcmpnedp instruction.
528 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
529 macro expansion so that Power9 implementation of vec_all_ne does
530 not use the AltiVec predicate framework.
531 (VCMPNEH_P): Likewise.
532 (VCMPNEW_P): Likewise.
533 (VCMPNED_P): Likewise.
534 (VCMPNEFP_P): Likewise.
535 (VCMPNEDP_P): Likewise.
536 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
537 implementation of vec_any_eq to not use AltiVec predicate
539 (VCMPAEH_P): Likewise.
540 (VCMPAEW_P): Likewise.
541 (VCMPAED_P): Likewise.
542 (VCMPAEFP_P): Likewise.
543 (VCMPAEDP_P): Likewise.
544 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
545 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
546 not use the AltiVec predicate framework.
547 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
548 of vec_any_eq to not use AltiVec predicate framework.
549 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
550 support for predefined __POWER9_VECTOR__ macro to indicate that
551 Power9 instruction selection is enabled.
552 (altivec_overloaded_builtins): Remove extraneous
553 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
554 function argument types RS6000_BTI_bool_V16QI and
555 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
556 entry for overloaded function argument types RS6000_BTI_bool_V4SI
557 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
558 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
559 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
560 Power9 for implementations of vec_cmpne. Change the signature for
561 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
562 (representing vec_all_ne) to remove the previously described first
563 argument of type RS6000_BTI_INTSI, as this was an artifact of
564 reliance on the AltiVec predicate framework, which is no longer
565 used in the implementation of these functions. Add
566 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
567 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
568 since, unlike the AltiVec predicate framework implementation, we
569 do not share function descriptors between vec_alle and vec_anyeq.
570 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
571 set of modes that receive special treatment even when
572 TARGET_P9_VECTOR is true. The special treatment emits code that
573 does not depend on Power9 instructions.
574 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
575 define_expand to not rely on AltiVec predicate framework.
576 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
578 (vector_ne_v2di_p): Change this define_expand to not rely on
579 AltiVec predicate framework.
580 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
582 (vector_ne_<mode>_p): Change this define_expand to not rely on
583 AltiVec predicate framework.
584 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
586 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
587 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
589 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
590 define_insn pattern because the xvcmpne<VSs>. instruction is not
592 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
593 instruction is not supported.
595 2017-03-01 Jakub Jelinek <jakub@redhat.com>
597 * config/nvptx/nvptx.c: Include intl.h.
599 2017-03-01 Martin Jambor <mjambor@suse.cz>
602 * ipa-prop.h (ipa_bits): Removed field known.
603 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
604 to pointers. Adjusted their comments to warn about their sharing.
605 (ipcp_transformation_summary): Change bits to a vector of pointers.
606 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
607 (ipa_get_ipa_bits_for_value): Declare.
608 * tree-vrp.h (value_range): Mark as GTY((for_user)).
609 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
610 (ipa_bits_hash_table): Likewise.
611 (ipa_vr_ggc_hash_traits): Likewise.
612 (ipa_vr_hash_table): Likewise.
613 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
614 being pointers and vr_known being removed.
615 (ipa_set_jf_unknown): Likewise.
616 (ipa_get_ipa_bits_for_value): New function.
617 (ipa_set_jfunc_bits): Likewise.
618 (ipa_get_value_range): New overloaded functions.
619 (ipa_set_jfunc_vr): Likewise.
620 (ipa_compute_jump_functions_for_edge): Use the above functions to
621 construct bits and vr parts of jump functions.
622 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
623 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
625 (ipcp_grow_transformations_if_necessary): Also allocate
626 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
628 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
629 them. Fix too long lines.
630 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
631 vr_known being removed.
632 (ipa_read_jump_function): Use new setter functions to construct bits
633 and vr parts of jump functions or set them to NULL.
634 (write_ipcp_transformation_info): Adjust for bits being pointers.
635 (read_ipcp_transformation_info): Likewise.
636 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
638 Include gt-ipa-prop.h.
639 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
641 (ipcp_store_bits_results): Likewise.
642 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
643 Do not write to existing jump functions but use a temporary instead.
645 2017-03-01 Jakub Jelinek <jakub@redhat.com>
648 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
649 attempt to use its first operand as BIT_FIELD_REF base.
651 2017-03-01 Richard Biener <rguenther@suse.de>
654 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
655 interpolating formula in wrapping arithmetic.
656 (chrec_apply): Convert chrec_evaluate return value to wanted type.
658 2017-03-01 Jakub Jelinek <jakub@redhat.com>
660 PR tree-optimization/79734
661 * tree-vect-generic.c (expand_vector_condition): Optimize
662 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
663 Handle VEC_COND_EXPR where comparison has different inner width from
666 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
668 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
669 markup, and similar issues. Remove @opindex entries for things
670 that aren't options. Add missing -mmpy-option entries.
672 2017-02-28 Jakub Jelinek <jakub@redhat.com>
674 PR tree-optimization/79737
675 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
676 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
677 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
678 instead of byte_size. Formatting fix.
679 (shift_bytes_in_array_right): Formatting fix.
681 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
684 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
685 condition on optimize for the leaf function test.
687 2017-02-28 Martin Liska <mliska@suse.cz>
690 * read-rtl-function.c (function_reader::handle_unknown_directive):
691 Bail out when one uses -flto.
693 2017-02-28 Martin Liska <mliska@suse.cz>
695 * common.opt: Replace space with tabular for options of <number>
697 * config/i386/i386.opt: Show <number> value for
698 -mlarge-data-threshold.
699 * opts.c (print_filtered_help): Do not display number in hexadecimal
702 2017-02-28 Martin Liska <mliska@suse.cz>
704 * common.opt: Fix --help=option -Q for options which are of
707 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
709 * config/i386/i386.c (print_reg): Error out for values
710 of 8-bit size in invalid integer register.
712 2017-02-28 Martin Sebor <msebor@redhat.com>
714 PR tree-optimization/79691
715 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
717 2017-02-28 Jakub Jelinek <jakub@redhat.com>
720 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
721 gcc_unreachable with output_operand_lossage.
723 2017-02-28 Richard Biener <rguenther@suse.de>
725 PR tree-optimization/79740
726 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
728 (visit_nary_op): Insert the nary into the hashtable if we
730 * tree-ssa-pre.c (eliminate_insert): Robustify.
732 2017-02-28 Richard Biener <rguenther@suse.de>
735 * fold-const.c (decode_field_reference): Reject out-of-bound
738 2017-02-28 Jakub Jelinek <jakub@redhat.com>
740 * config/i386/i386.c: Include intl.h.
741 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
742 instead of just cond ? "..." : "...".
743 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
744 * coverage.c (read_counts_file): Likewise.
745 * omp-offload.c: Include intl.h.
746 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
747 of just cond ? "..." : "...".
748 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
749 of just cond ? "..." : "...".
751 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
754 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
756 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
758 * config/arm/arm-cpu-data.h: Regenerated.
760 2017-02-28 Richard Biener <rguenther@suse.de>
762 PR tree-optimization/79732
763 * tree-inline.c (expand_call_inline): Do not shadow var.
765 2017-02-28 Richard Biener <rguenther@suse.de>
767 PR tree-optimization/79723
768 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
769 address-space properly.
771 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
773 * doc/optinfo.texi (Optimization groups): Fix option used for
775 * doc/invoke.texi (-fopt-info): Document "omp".
776 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
777 (OPTGROUP_ALL): Add OPTGROUP_OMP.
778 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
779 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
780 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
782 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
784 * dumpfile.c (optgroup_options): Instead of "openmp", associate
785 OPTGROUP_OMP with "omp".
787 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
790 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
791 for arithmetic shift of unsigned V2DI.
793 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
795 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
797 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
798 (LINK_SPEC): Likewise.
799 (ARC_TLS_EXTRA_START_SPEC): Likewise.
800 (EXTRA_SPECS): Likewise.
801 (STARTFILE_SPEC): Likewise.
802 (ENDFILE_SPEC): Likewise.
803 (LIB_SPEC): Likewise.
804 (TARGET_SDATA_DEFAULT): Likewise.
805 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
806 (MULTILIB_DEFAULTS): Likewise.
807 (DWARF2_UNWIND_INFO): Likewise.
808 * config/arc/big.h: New file.
809 * config/arc/elf.h: Likewise.
810 * config/arc/linux.h: Likewise.
811 * config/arc/t-uClibc: Remove.
813 2017-02-27 Bin Cheng <bin.cheng@arm.com>
815 PR tree-optimization/77536
816 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
817 (tree_transform_and_unroll_loop): Use above function to compute the
818 estimated niter of unrolled loop and use it when scaling profile.
819 Also use count info rather than frequency if it's non-zero.
820 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
821 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
822 (vect_transform_loop): Call above function.
824 2017-02-27 Richard Biener <rguenther@suse.de>
826 PR tree-optimization/45397
827 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
828 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
829 (visit_nary_op): Add pattern matching for CSEing sign-changed
830 or truncated operations with wider ones.
832 2017-02-27 Richard Biener <rguenther@suse.de>
834 PR tree-optimization/79690
835 * tree-vect-stmts.c (vectorizable_store): Use vector type
836 built from the DR with address-space.
838 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
840 * doc/invoke.texi (Optimize Options): Refine the description
841 of asan-use-after-return.
843 2017-02-25 Alan Modra <amodra@gmail.com>
845 PR rtl-optimization/79584
846 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
847 base, not ad->base_term, the reg within base. Remove assertion
848 that ad->base == ad->base_term. Replace gen_int_mode using
849 bogus mode with const0_rtx.
851 2017-02-25 Jakub Jelinek <jakub@redhat.com>
854 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
855 FMA_EXPR like tcc_binary or tcc_unary.
857 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
860 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
862 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
863 (output_loc_operands): Handle DW_OP_call_ref and
864 DW_OP_GNU_variable_value.
865 (struct variable_value_struct): New type.
866 (struct variable_value_hasher): Likewise.
867 (variable_value_hash): New variable.
868 (string_types): Remove.
869 (copy_loc_descr): New function.
870 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
871 (prepend_loc_descr_to_each): New function.
872 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
873 instead of add_loc_descr_to_each if the first argument is single
874 location list and the second has multiple.
875 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
876 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
877 when looking for variable value which doesn't have other location info.
878 (loc_list_from_tree): Formatting fix.
879 (gen_array_type_die): Simplify DW_AT_string_length handling.
880 (adjust_string_types): Remove.
881 (gen_subprogram_die): Don't call adjust_string_types nor test/set
882 string_types. Call resolve_variable_values.
883 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
884 (resolve_addr_in_expr): Likewise. Add A argument.
885 (copy_deref_exprloc): Remove deref argument. Adjust for the
886 original expression being DW_OP_GNU_variable_value with optionally
887 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
889 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
890 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
891 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
892 (variable_value_hasher::hash, variable_value_hasher::equal): New
894 (resolve_variable_value_in_expr, resolve_variable_value,
895 resolve_variable_values, note_variable_value_in_expr,
896 note_variable_value): New functions.
897 (dwarf2out_early_finish): Call note_variable_value on all toplevel
900 2017-02-24 Jakub Jelinek <jakub@redhat.com>
903 * opts.h (handle_generated_option): Add GENERATED_P argument.
904 * opts-common.c (handle_option): Adjust function comment.
905 (handle_generated_option): Add GENERATED_P argument, pass it to
907 (control_warning_option): Pass false to handle_generated_option
909 * opts.c (maybe_default_option): Pass true to handle_generated_option
911 * optc-gen.awk: Likewise.
913 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
915 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
916 a REG, look at the REG it is a SUBREG of.
917 (splitter for cmpeqsi_t): Ditto.
919 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
921 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
922 the special USEs with the pattern of the insn, not the insn itself.
924 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
927 * doc/invoke.texi: Document -mload-store-pairs.
929 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
930 Sandra Loosemore <sandra@codesourcery.com>
932 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
933 argument isn't a CONST_INT.
934 (nios2_alternate_compare_const): Assert op is a CONST_INT.
935 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
936 (nios2_validate_compare): Bypass alternate compare logic if *op2
938 (ldstwm_operation_p): Return false if first_base is not a REG or
939 if first_offset is not a CONST_INT.
941 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
943 * config/cris/cris.md: Use correct operand in a define_peephole2.
945 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
947 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
949 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
951 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
952 this_insn if it is an INSN or JUMP_INSN.
953 (force_offsettable): Look at base, not at addr.
954 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
955 on things that aren't necessarily CONST_INTs.
957 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
959 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
960 -mfpmath=sse is the default also for x86-32 targets with SSE2
961 instruction set when @option{-ffast-math} is enabled
963 2017-02-24 Jeff Law <law@redhat.com>
965 PR rtl-optimizatoin/79286
966 * ira.c (update_equiv_regs): Drop may_trap_p exception to
969 2017-02-24 Richard Biener <rguenther@suse.de>
971 PR tree-optimization/79389
972 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
975 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
977 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
978 function comment to reflect reality.
979 (loop_exits_before_overflow): Fix typo in function description.
981 2017-02-24 Richard Biener <rguenther@suse.de>
983 PR tree-optimization/79389
984 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
985 properly that a threading opportunity exists. Detect conditional
986 copy/constant propagation opportunities.
988 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
990 * config/visium/visium.md (type): Add trap.
991 (b): New mode attribute.
992 (*btst): Rename into...
993 (*btst<mode>): ...this and adjust.
994 (*cbranchsi4_btst_insn): Rename into...
995 (*cbranch<mode>4_btst_insn): ...this and adjust.
996 (trap): New define_insn.
998 2017-02-23 Jakub Jelinek <jakub@redhat.com>
1000 PR tree-optimization/79389
1001 * ifcvt.c (struct noce_if_info): Add rev_cond field.
1002 (noce_reversed_cond_code): New function.
1003 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
1004 reversed_comparison_code. Formatting fix.
1005 (noce_try_store_flag): Test rev_cond != NULL in addition to
1006 reversed_comparison_code.
1007 (noce_try_store_flag_constants): Likewise.
1008 (noce_try_store_flag_mask): Likewise.
1009 (noce_try_addcc): Use rev_cond if non-NULL instead of
1010 reversed_comparison_code.
1011 (noce_try_cmove_arith): Likewise. Formatting fixes.
1012 (noce_try_minmax, noce_try_abs): Clear rev_cond.
1013 (noce_find_if_block): Initialize rev_cond.
1014 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
1015 instead of false as last argument never attempt to reverse it
1018 2017-02-23 Bin Cheng <bin.cheng@arm.com>
1020 PR tree-optimization/79663
1021 * tree-predcom.c (combine_chains): Process refs in reverse order
1022 only for ZERO length chains, and add explaining comment.
1024 2017-02-23 Jeff Law <law@redhat.com>
1026 PR tree-optimization/79578
1027 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
1028 in call to operand_equal_p.
1030 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
1033 * config/i386/cpuid.h: Fix another undefined behavior.
1035 2017-02-23 Richard Biener <rguenther@suse.de>
1037 PR tree-optimization/79683
1038 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
1039 vector types for data-refs.
1041 2017-02-23 Martin Liska <mliska@suse.cz>
1043 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
1045 2017-02-23 Jakub Jelinek <jakub@redhat.com>
1048 * internal-fn.c (get_range_pos_neg): Moved to ...
1049 * tree.c (get_range_pos_neg): ... here. No longer static.
1050 * tree.h (get_range_pos_neg): New prototype.
1051 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
1052 are known to be in between 0 and signed maximum inclusive, try to
1053 expand both unsigned and signed divmod and use the cheaper one from
1056 2017-02-22 Jeff Law <law@redhat.com>
1058 PR tree-optimization/79578
1059 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
1060 to compare base operands.
1062 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
1065 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
1066 gpc_reg_operand instead of fpr_reg_operand.
1068 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
1070 * config/mips/mips.c (mips_return_in_memory): Force FP
1071 vector types to be returned in memory for o32 ABI.
1073 2017-02-22 Jakub Jelinek <jakub@redhat.com>
1075 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
1076 instead of DW_TAG_member for static data member declarations and don't
1077 set no_linkage_name for static inline data members.
1078 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
1081 2017-02-22 Martin Liska <mliska@suse.cz>
1083 * doc/invoke.texi: Replace inequality signs with square brackets
1086 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1088 PR tree-optimization/68644
1089 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
1091 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
1094 * lra-constraints.c (simplify_operand_subreg): Handle
1095 WORD_REGISTER_OPERATIONS targets.
1097 2017-02-22 Jakub Jelinek <jakub@redhat.com>
1100 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
1101 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
1102 elimination by swapping fld*.
1104 2017-02-22 Richard Biener <rguenther@suse.de>
1106 PR tree-optimization/79673
1107 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
1108 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
1109 irrelevant address-space qualifiers and avoiding a
1110 ADDR_SPACE_CONVERT_EXPR from fold_convert.
1112 2017-02-22 Richard Biener <rguenther@suse.de>
1114 PR tree-optimization/79666
1115 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
1116 to not symbolically negate if that may introduce undefined
1119 2017-02-22 Martin Liska <mliska@suse.cz>
1122 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
1123 * data-streamer-out.c (streamer_write_gcov_count_stream):
1125 * value-prof.c (stream_out_histogram_value): Make assert more
1126 precise based on type of counter.
1128 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
1131 * config/i386/i386.md (standard_x87sse_constant_load splitter):
1132 Use nonimmediate_operand instead of memory_operand for operand 1.
1133 (float-extend standard_x87sse_constant_load splitter): Ditto.
1135 2017-02-21 Jeff Law <law@redhat.com>
1137 PR tree-optimization/79621
1138 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
1139 blocks with edges to themselves.
1141 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1144 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
1145 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
1146 Use gimple_call_builtin_p.
1149 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
1150 on temporarily removed DEBUG_INSNs.
1152 PR tree-optimization/79649
1153 * tree-loop-distribution.c (classify_partition): Give up on
1154 non-generic address space loads/stores.
1156 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
1158 * doc/loop.texi (Loop manipulation): Remove nonexistent
1159 tree_ssa_loop_version from the documentation.
1160 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
1162 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1165 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
1166 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
1167 * config/rs6000/rs6000.c: Include except.h.
1168 (rs6000_expand_split_stack_prologue): Call
1169 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
1171 2017-02-21 Martin Jambor <mjambor@suse.cz>
1174 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
1177 2017-02-21 Martin Jambor <mjambor@suse.cz>
1179 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
1180 for backward compatibility only.
1181 * doc/invoke.texi (Option Summary): Remove all references to
1184 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
1188 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1190 * lra-constraints.c (curr_insn_transform): Handle
1191 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1193 2017-02-21 Martin Liska <mliska@suse.cz>
1195 * config/i386/i386.opt: Replace -masm-dialect with -masm.
1197 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
1199 PR translation/79638
1200 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
1202 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
1205 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1206 (arm_function_ok_for_sibcall): Return false for an indirect call by
1207 descriptor if all the argument registers are used.
1208 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
1209 alignment of the function.
1211 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1213 PR tree-optimization/61441
1214 * simplify-rtx.c (simplify_const_unary_operation): For
1215 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
1216 the sNaN unmodified.
1218 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1220 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1221 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1222 instead of SYSTEM_HEADER_DIR.
1224 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
1225 Martin Liška <mliska@suse.cz>
1227 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
1228 Fix typos and grammar, use active voice, and clarify.
1230 2017-02-20 Marek Polacek <polacek@redhat.com>
1233 * gimplify.c (gimplify_expr): Handle unused *&&L;.
1236 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
1238 2017-02-20 Jakub Jelinek <jakub@redhat.com>
1241 * config/i386/i386.c (ix86_expand_builtin): Handle
1242 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
1243 ix86_builtins_isa[fcode].isa as a requirement of those
1244 flags and any other flag in the bitmask.
1245 (ix86_init_mmx_sse_builtins): Use 0 instead of
1246 ~OPTION_MASK_ISA_64BIT as mask.
1247 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
1248 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
1249 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
1250 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
1252 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1255 * lra-constraints.c (split_reg): Check requested split mode
1256 is supported by the register.
1258 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1260 * lra-constraints.c (simplify_operand_subreg): Remove early
1263 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1266 * lra-constraints.c (curr_insn_transform): Tighten condition
1267 for converting SUBREG reloads from OP_OUT to OP_INOUT.
1269 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1272 * lra-constraints.c (curr_insn_transform): Handle
1273 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1275 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
1278 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
1280 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1282 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
1285 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
1288 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1290 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
1293 2017-02-18 Jakub Jelinek <jakub@redhat.com>
1295 * final.c (last_columnnum, override_columnnum): New variables.
1296 (final_start_function): Set last_columnnum, pass it to begin_prologue
1297 hook and pass 0 to dwarf2out_begin_prologue.
1298 (final_scan_insn): Update override_columnnum. Pass last_columnnum
1299 to source_line debug hook.
1300 (notice_source_line): Compute last_columnnum and for debug_column_info
1301 return true on column changes.
1302 * debug.h (struct gcc_debug_hooks): Add column argument to
1303 source_line and begin_prologue hooks.
1304 (debug_nothing_int_charstar_int_bool): Remove prototype.
1305 (debug_nothing_int_int_charstar,
1306 debug_nothing_int_int_charstar_int_bool): New prototypes.
1307 (dwarf2out_begin_prologue): Add column argument.
1308 * debug.c (do_nothing_debug_hooks): Adjust source_line and
1309 begin_prologue hooks.
1310 (debug_nothing_int_charstar_int_bool): Remove.
1311 (debug_nothing_int_int_charstar,
1312 debug_nothing_int_int_charstar_int_bool): New functions.
1313 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
1314 through to dwarf2out_source_line.
1315 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
1316 (dwarf2out_source_line): Add column argument, emit it if requested.
1317 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
1319 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1320 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1321 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
1322 through to dwarf2out_begin_prologue.
1323 (vmsdbgout_source_line): Add column argument, pass it through to
1324 dwarf2out_source_line.
1325 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
1326 dbxout_source_line caller.
1327 (dbxout_source_line): Add column argument.
1329 * common.opt (gno-column-info, gcolumn-info): New options.
1330 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
1331 (check_die): Also test for multiple DW_AT_decl_column attributes.
1332 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
1333 DW_AT_decl_column if requested.
1334 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
1336 (gen_variable_die): Likewise.
1337 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
1338 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
1341 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
1342 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
1343 (ix86_handle_option): Handle OPT_m3dnowa.
1344 * doc/invoke.texi (-m3dnowa): Document.
1345 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
1346 -m3dnowa instead of -m3dnow -march=athlon.
1349 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
1350 instead of gcc_assert for K, r and R code checks. Formatting fixes.
1352 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1355 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1356 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
1357 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
1358 generator for vsx_xxpermdi_<mode>_be.
1359 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
1360 force big-endian semantics.
1361 (vsx_xxpermdi_<mode>_be): New define_expand with same
1362 implementation as previous version of vsx_xxpermdi_<mode>.
1364 2017-02-17 Jakub Jelinek <jakub@redhat.com>
1366 PR tree-optimization/79327
1367 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
1368 variable, its initialization and use.
1370 2017-02-17 Julia Koval <julia.koval@intel.com>
1372 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
1373 (OPTION_MASK_ISA_PKU_UNSET): New.
1374 (ix86_handle_option): Handle -mrdpid.
1375 * config/i386/cpuid.h (bit_RDPID): New.
1376 * config/i386/driver-i386.c (host_detect_local_cpu):
1377 Detect RDPID feature.
1378 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
1379 * config/i386/i386-c.c (ix86_target_macros_internal):
1381 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
1382 (ix86_valid_target_attribute_inner_p): Add "rdpid".
1383 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
1384 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
1385 * config/i386/i386.md (define_insn "rdpid"): New.
1386 * config/i386/i386.opt Add -mrdpid.
1387 * config/i386/immintrin.h (_rdpid_u32): New.
1389 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
1391 PR rtl-optimization/79541
1392 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
1393 instead of transforming it into USE.
1395 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
1397 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
1398 If HONOR_SNANS (SFmode) force the input to a register.
1399 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
1400 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
1401 an frsp or similar insn.
1403 2017-02-17 Martin Liska <mliska@suse.cz>
1405 PR rtl-optimization/79577
1406 * params.def (selsched-max-sched-times): Increase minimum to 1.
1408 2017-02-17 Martin Liska <mliska@suse.cz>
1410 PR rtl-optimization/79574
1411 * gcse.c (want_to_gcse_p): Prevent integer overflow.
1413 2017-02-17 Martin Liska <mliska@suse.cz>
1415 PR tree-optimization/79529
1416 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
1417 ssa_defined_default_def_p to handle cases which are implicitly
1419 * tree-ssa.c (ssa_defined_default_def_p): New function.
1420 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
1421 which are implicitly defined.
1422 * tree-ssa.h (ssa_defined_default_def_p): Declare.
1424 2017-02-17 Richard Biener <rguenther@suse.de>
1427 * params.def (max-ssa-name-query-depth): Limit to 10.
1429 2017-02-17 Richard Biener <rguenther@suse.de>
1431 PR tree-optimization/79552
1432 * tree-ssa-structalias.c (visit_loadstore): Properly verify
1435 2017-02-17 Richard Biener <rguenther@suse.de>
1438 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
1440 2017-02-17 Marek Polacek <polacek@redhat.com>
1443 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
1444 (fold_negate_expr): New wrapper.
1446 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
1448 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
1449 Correct terminology and de-emphasize pre-standard behavior.
1451 2017-02-16 Alan Modra <amodra@gmail.com>
1453 PR rtl-optimization/79286
1454 * ira.c (def_dominates_uses): New function.
1455 (update_equiv_regs): Don't create an equivalence for insns that
1456 may trap where the register def does not dominate the use.
1458 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
1460 PR rtl-optimization/78127
1461 * lra.c (lra): Call lra_eliminate before finish the loop after
1464 2017-02-16 Richard Biener <rguenther@suse.de>
1466 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
1468 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
1469 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
1470 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
1471 (isl_val_int_from_wi): New function.
1472 (extract_affine_gmp): Rename to ...
1473 (extract_affine_wi): ... this, take a widest_int.
1474 (extract_affine_int): Just wrap extract_affine_wi.
1475 (add_param_constraints): Use isl_val_int_from_wi.
1476 (add_loop_constraints): Likewise, and extract_affine_wi.
1478 2017-02-15 Jeff Law <law@redhat.com>
1481 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
1482 ira_init_register_move_cost_if_necessary.
1484 2017-02-15 Martin Sebor <msebor@redhat.com>
1487 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
1488 removed in a prior commit.
1490 2017-02-15 Bin Cheng <bin.cheng@arm.com>
1492 PR tree-optimization/79347
1493 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
1494 counters during peeling.
1496 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
1498 * Makefile.in (site.exp): Remove "set ISLVER".
1500 2017-02-15 Jakub Jelinek <jakub@redhat.com>
1503 * real.c (real_from_integer): Call real_convert even for decimal.
1505 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
1508 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
1510 2017-02-14 Andrew Pinski <apinski@cavium.com>
1512 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
1513 cores and change the partno/implementer to be correct.
1514 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
1515 the 'B" as the implementer.
1516 * config/aarch64/aarch64-tune.md: Regenerate.
1518 2017-02-14 Carl Love <cel@us.ibm.com>
1520 * config/rs6000/rs6000.c: Add case statement entry to make the
1521 xvcvuxdsp built-in argument unsigned.
1522 * config/rs6000/vsx.md: Fix the source and return operand types so they
1523 match the instruction definitions from the ISA document. Fix typo
1524 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
1527 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
1530 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
1531 member early_clobber_alts.
1532 * lra-lives.c (reg_early_clobber_p): New.
1533 (process_bb_lives): Use it.
1534 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
1535 (debug_operand_data): Initialize early_clobber_alts.
1536 (setup_operand_alternative): Set up early_clobber_alts.
1537 (collect_non_operand_hard_regs): Ditto. Pass early clobber
1538 alternatives to new_insn_reg.
1539 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
1541 (lra_update_insn_regno_info): Pass the new arg.
1543 2017-02-14 Jakub Jelinek <jakub@redhat.com>
1546 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
1547 (new_oacc_loop_raw): Don't clear already cleared fields.
1550 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
1551 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
1552 _mm512_prefetch_i64gather_ps): New inline functions and macros.
1554 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
1557 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
1559 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
1562 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
1563 the extra instruction to the right place to store 128-bit constant
1566 2017-02-14 Martin Sebor <msebor@redhat.com>
1569 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
1570 warning for strings of unknown length.
1572 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
1574 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
1576 2017-02-14 Jeff Law <law@redhat.com>
1579 * ira-costs.c (scan_one_insn): Initialize register move costs
1580 for pseudos seen in USE/CLOBBER insns.
1582 PR tree-optimization/79095
1583 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
1584 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
1585 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
1586 if the operands are known to be not equal, then the resulting range
1588 (intersect_ranges): If the new range is ~[0,0] and the old range is
1589 wide, then prefer ~[0,0].
1590 * tree-vrp.c (overflow_comparison_p_1): New function.
1591 (overflow_comparison_p): New function.
1592 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
1593 if NAME is used in an overflow test.
1594 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
1595 overflow check that can be expressed as an equality test, then adjust
1596 ops to be that equality test.
1598 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1600 * config/s390/s390-builtin-types.def: Remove flags argument.
1601 * config/s390/s390.c (s390_init_builtins): Likewise.
1603 2017-02-14 Martin Liska <mliska@suse.cz>
1605 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
1606 vector. Fix trailing white spaces.
1608 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
1610 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
1613 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1615 PR rtl-optimization/68664
1616 * config/arm/arm.c (arm_sched_can_speculate_insn):
1617 New function. Declare prototype.
1618 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
1620 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1622 PR rtl-optimization/68664
1623 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
1625 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
1627 2017-02-14 Amit Pawar <amit.pawar@amd.com>
1629 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
1630 max skip bytes for function, loop and jump.
1632 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1634 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
1635 ABS_EXPR for gimple dump.
1637 2017-02-14 Jakub Jelinek <jakub@redhat.com>
1640 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
1642 PR tree-optimization/79408
1643 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
1644 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
1645 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1646 also if rhs1 is INTEGER_CST.
1648 2017-02-14 Richard Biener <rguenther@suse.de>
1651 * tree-into-ssa.c (insert_phi_nodes): When the function can
1652 have abnormal edges rewrite SSA names with broken use-def
1653 dominance out of SSA and register them for PHI insertion.
1655 2017-02-13 Martin Sebor <msebor@redhat.com>
1658 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
1659 clearing info.nowrite flag when snprintf size argument is a range.
1661 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1663 * cprop.c (cprop_jump): Add missing space in string literal.
1664 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1665 (get_constraint_for_component_ref): Likewise.
1666 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1667 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
1668 * lra-constraints.c (process_alt_operands): Likewise.
1669 * ipa-inline.c (inline_small_functions): Likewise.
1670 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
1671 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1672 * trans-mem.c (diagnose_tm_1_op): Likewise.
1673 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
1674 (grid_parallel_clauses_gridifiable): Likewise.
1676 * config/nvptx/mkoffload.c (process): Add space in between
1679 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
1680 "MOD4_SSE_REGS" and "ALL_REGS".
1682 * spellcheck.c (test_data): Add , in between "foo" and "food".
1684 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1687 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
1688 boundary crossing check and subsequent code generation agree.
1690 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1692 * config/aarch64/aarch64.c (has_memory_op): Delete.
1693 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
1696 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1698 PR rtl-optimization/79388
1699 PR rtl-optimization/79450
1700 * combine.c (distribute_notes): When removing TEM_INSN for which
1701 corresponding dest has last value recorded, invalidate that last
1704 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1706 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
1707 of explicit '@'. Add missing assembly comment marker on branch costs
1710 2017-02-13 Nathan Sidwell <nathan@acm.org>
1712 * gengtype-lex.l (<in_struct>): Add '/'.
1714 2017-02-13 Martin Liska <mliska@suse.cz>
1717 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
1719 2017-02-13 Richard Biener <rguenther@suse.de>
1721 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
1723 * configure: Re-generate.
1724 * config.in: Likewise.
1725 * graphite-dependences.c: Simplify as if
1726 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
1727 * graphite-isl-ast-to-gimple.c: Likewise.
1728 * graphite-optimize-isl.c: Likewise.
1729 * graphite-poly.c: Likewise.
1730 * graphite-sese-to-poly.c: Likewise.
1731 * graphite.h: Likewise.
1732 * toplev.c: Include isl/version.h and use isl_version () for
1733 printing the ISL version.
1734 * doc/install.texi: Update ISL requirement.
1736 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1738 * doc/standards.texi (Standards): Update reference to
1741 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1743 * doc/extend.texi (Named Address Spaces): sourceware.org now
1745 * doc/install.texi (Binaries): Ditto.
1748 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
1750 * doc/cpp.texi: Replace "stringify"/"stringification" with C
1751 standard terminology "stringize"/"stringizing" throughout.
1752 * doc/cppinternals.texi: Likewise.
1754 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
1756 * doc/extend.texi: Fix some spelling mistakes and typos.
1757 * doc/invoke.texi: Likewise.
1759 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
1762 * params.def (inline-min-speedup) Change from 10 to 8.
1764 2017-02-11 Jakub Jelinek <jakub@redhat.com>
1766 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
1769 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
1772 * ipa-inline-analysis.c (get_minimal_bb): New function.
1773 (record_modified): Use it.
1774 (remap_edge_change_prob): Handle also ancestor functions.
1776 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
1778 * doc/contrib.texi (Contributors): Remove broken link into
1779 the Mauve CVS repository.
1781 2017-02-11 Jakub Jelinek <jakub@redhat.com>
1784 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
1785 result computation whenever lhs doesn't have vector mode, not
1786 just when it has BLKmode.
1788 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1790 * doc/makefile.texi (profiledbootstrap): Refer to the
1791 installation instructions only in textual form.
1793 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1796 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
1798 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1800 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
1801 (Specific): Update mingw-w64 reference.
1803 (Specific): Remove broken link to Renesas RX processor.
1805 2017-02-10 Richard Biener <rguenther@suse.de>
1807 * toplev.c (process_options): Do not mention obsolete graphite
1808 options when printing sorry message about missing graphite support.
1809 Mention -floop-nest-optimize.
1811 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
1813 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
1814 (vtst_p16): Likewise.
1815 (vtstq_p8): Likewise.
1816 (vtstq_p16): Likewise.
1818 (vtstq_p64): Likewise.
1819 * config/arm/arm_neon.h (vgetq_lane_p64): New.
1820 (vset_lane_p64): New.
1821 (vsetq_lane_p64): New.
1823 2017-02-10 Jakub Jelinek <jakub@redhat.com>
1825 PR tree-optimization/79411
1826 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
1827 stmt operands are SSA_NAMEs used in abnormal phis.
1828 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
1831 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
1834 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
1837 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
1839 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
1841 2017-02-09 Jakub Jelinek <jakub@redhat.com>
1843 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
1847 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
1848 not arbitrary TREE_CONSTANT.
1851 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
1852 "omp declare target link" attribute unless is_global_var.
1853 * omp-offload.c (find_link_var_op): Likewise.
1855 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
1856 Chung-Lin Tang <cltang@codesourcery.com>
1858 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
1860 (gimplify_adjust_omp_clauses): Don't delete TILE.
1861 (gimplify_omp_for): Deal with TILE.
1862 * internal-fn.c (expand_GOACC_TILE): New function.
1863 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
1865 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
1866 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
1868 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
1869 avoid DIV for outermost collapse var.
1870 (expand_oacc_for): Insert tile element loop as needed. Adjust.
1871 Remove out of date comments, fix whitespace.
1872 * omp-general.c (omp_extract_for_data): Deal with tiling.
1873 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
1874 adjust OLF_DIM_BASE value.
1875 (struct omp_for_data): Add tiling field.
1876 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
1877 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
1878 for auto loops. Remove default auto determining, moved to
1879 oacc_loop_fixed_partitions.
1880 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
1881 stmts, add e_mask field.
1882 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
1883 (oacc_thread_numbers): Use oacc_dim_call.
1884 (oacc_xform_tile): New.
1885 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
1886 (finish_oacc_loop): Adjust for ifns vector.
1887 (oacc_loop_discover_walk): Append loop abstraction sites to list,
1888 add case for GOACC_TILE fns.
1889 (oacc_loop_xform_loop): Delete.
1890 (oacc_loop_process): Iterate over call list directly, and add
1891 handling for GOACC_TILE fns.
1892 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
1894 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
1895 vector partitioning to outer loops. Assign 2 partitions to loops
1896 when available. Add TILE handling.
1897 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
1898 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
1899 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
1900 * tree.c (omp_clause_num_ops): Adjust TILE ops.
1901 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
1903 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
1905 * configure.ac (ACX_BUGURL): Update.
1906 * configure: Regenerate.
1908 2017-02-09 Richard Biener <rguenther@suse.de>
1910 PR tree-optimization/69823
1911 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1912 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
1914 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1916 * config/arc/arc-c.def: Add __NPS400__ definition.
1917 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
1918 (TARGET_NPS400): Define.
1920 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1922 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
1924 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
1926 (arc_cpu_types): Fill the arch_info field with a pointer into the
1927 arc_arch_types table.
1928 (arc_selected_cpu): Declare.
1929 * config/arc/arc.c (arc_selected_cpu): Make global.
1930 (arc_selected_arch): Delete.
1931 (arc_base_cpu): Delete.
1932 (arc_override_options): Remove references to deleted variables,
1933 update access to arch information.
1934 (ARC_OPT): Update access to arch information.
1935 (ARC_OPTX): Likewise.
1936 * config/arc/arc.h (arc_base_cpu): Remove declaration.
1937 (TARGET_ARC600): Update access to arch information.
1938 (TARGET_ARC601): Likewise.
1939 (TARGET_ARC700): Likewise.
1940 (TARGET_EM): Likewise.
1941 (TARGET_HS): Likewise.
1942 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
1945 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
1948 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
1949 condition/operands for integer GE/LE/GEU/LEU operations.
1951 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
1953 PR translation/79397
1954 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
1957 2017-02-08 Martin Jambor <mjambor@suse.cz>
1960 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
1961 whether allocation happened.
1962 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
1963 nothing was allocated.
1965 2017-02-08 Jakub Jelinek <jakub@redhat.com>
1967 PR tree-optimization/79408
1968 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
1969 constant, but SSA_NAME with a known integer range, use the minimum
1970 of that range instead of op1 to determine if modulo can be replaced
1971 with its first operand.
1973 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1975 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
1977 2017-02-08 Richard Biener <rguenther@suse.de>
1979 PR tree-optimization/71824
1980 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1981 Check all loops contained in the merged region.
1983 2017-02-07 Andrew Pinski <apinski@cavium.com>
1985 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
1987 2017-02-07 Andrew Pinski <apinski@cavium.com>
1989 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
1990 (thunderxt88): Likewise.
1991 (thunderxt81): Disable LSE and change v8.1 to v8.
1992 (thunderxt83): Likewise.
1994 2017-02-07 Jakub Jelinek <jakub@redhat.com>
1995 Richard Biener <rguenther@suse.de>
1998 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
1999 type from int to size_t.
2000 * ira-costs.c (struct_costs_size): Change type from int to size_t.
2002 2017-02-07 Jakub Jelinek <jakub@redhat.com>
2004 PR rtl-optimization/79386
2005 * cprop.c (bypass_conditional_jumps): Initialize
2006 bypass_last_basic_block already before splitting bbs after
2007 unconditional traps...
2008 (bypass_conditional_jumps): ... rather than here.
2011 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
2012 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
2013 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
2014 fix -masm=intel patterns.
2016 2017-02-07 Richard Biener <rguenther@suse.de>
2018 PR tree-optimization/79256
2020 * builtins.c (get_object_alignment_2): Use min_align_of_type
2021 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
2022 and ADJUST_FIELD_ALIGN.
2024 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
2026 * doc/tm.texi: Regenerate.
2027 * stor-layout.c (layout_decl): Adjust.
2028 (update_alignment_for_field): Likewise.
2029 (place_field): Likewise.
2030 (min_align_of_type): Likewise.
2031 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
2032 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
2033 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
2034 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
2035 * config/frv/frv.c (frv_adjust_field_align): Likewise.
2036 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
2037 * config/i386/i386.c (x86_field_alignment): Likewise.
2038 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2039 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
2040 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
2041 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2042 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
2043 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2047 2017-01-30 Richard Biener <rguenther@suse.de>
2049 PR tree-optimization/79256
2050 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2051 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2054 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
2056 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
2057 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
2058 builtins to SImode and emit a zero-extend, if necessary.
2060 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
2062 * docs/invoke.texi (RISC-V Options): Alphabetize.
2064 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
2066 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
2069 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
2071 * config/riscv/riscv.c: New file.
2072 * gcc/common/config/riscv/riscv-common.c: Likewise.
2073 * config.gcc: Likewise.
2074 * config/riscv/constraints.md: Likewise.
2075 * config/riscv/elf.h: Likewise.
2076 * config/riscv/generic.md: Likewise.
2077 * config/riscv/linux.h: Likewise.
2078 * config/riscv/multilib-generator: Likewise.
2079 * config/riscv/peephole.md: Likewise.
2080 * config/riscv/pic.md: Likewise.
2081 * config/riscv/predicates.md: Likewise.
2082 * config/riscv/riscv-builtins.c: Likewise.
2083 * config/riscv/riscv-c.c: Likewise.
2084 * config/riscv/riscv-ftypes.def: Likewise.
2085 * config/riscv/riscv-modes.def: Likewise.
2086 * config/riscv/riscv-opts.h: Likewise.
2087 * config/riscv/riscv-protos.h: Likewise.
2088 * config/riscv/riscv.h: Likewise.
2089 * config/riscv/riscv.md: Likewise.
2090 * config/riscv/riscv.opt: Likewise.
2091 * config/riscv/sync.md: Likewise.
2092 * config/riscv/t-elf-multilib: Likewise.
2093 * config/riscv/t-linux: Likewise.
2094 * config/riscv/t-linux-multilib: Likewise.
2095 * config/riscv/t-riscv: Likewise.
2096 * configure.ac: Likewise.
2097 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
2098 Waterman as RISC-V maintainers.
2099 * doc/install.texi: Add RISC-V entries.
2100 * doc/invoke.texi: Add RISC-V options section.
2101 * doc/md.texi: Add RISC-V constraints section.
2102 * configure: Regenerated.
2104 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2107 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
2108 false values to be constant vectors with all 0 or all 1 bits set.
2109 (vcondu<mode><mode>): Likewise.
2110 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
2112 (fpmask_comparison_operator): Update comment.
2113 (vecint_comparison_operator): New predicate.
2114 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
2115 vector conditionals when the true and false values are constant
2116 vectors with all 0 bits or all 1 bits set.
2118 2017-02-06 Martin Sebor <msebor@redhat.com>
2120 PR tree-optimization/79376
2121 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
2123 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
2125 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
2126 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
2127 to simplify split condition.
2129 2017-02-06 Jakub Jelinek <jakub@redhat.com>
2131 * omp-expand.c (oxpand_omp_atomic_fetch_op,
2132 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
2135 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
2137 PR rtl-optimization/68664
2138 * target.def (can_speculate_insn): New hook.
2139 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
2140 * doc/tm.texi: Regenerate.
2141 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
2142 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
2143 (rs6000_sched_can_speculate_insn): New function.
2145 2017-02-06 Jakub Jelinek <jakub@redhat.com>
2147 PR tree-optimization/79284
2148 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
2149 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
2150 vectorizable_mask_load_store, vectorizable_operation,
2151 vect_is_simple_cond, get_same_sized_vectype): Use it instead
2152 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
2153 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
2154 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
2155 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2156 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2157 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
2158 is_gimple_assign (stmt). Replace another such test with
2159 is_gimple_assign (stmt).
2161 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
2164 * config/avr/avr.c (rtl-iter.h): Include it.
2165 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
2166 (avr_legitimate_combined_insn): ...and implementation.
2168 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
2170 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
2171 * config/s390/s390.c (s390_const_operand_ok)
2172 (s390_canonicalize_comparison, s390_extract_part)
2173 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
2174 (s390_contiguous_bitmask_p, s390_rtx_costs)
2175 (legitimize_pic_address): Likewise.
2176 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
2177 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
2178 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
2179 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
2180 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
2182 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
2184 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
2185 REGNO($0) == REGNO($1).
2187 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2189 * config/s390/linux.h(SIZE_TYPE): Add comment.
2191 2017-02-06 Julian Brown <julian@codesourcery.com>
2192 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2193 Virendra Pathak <virendra.pathak@broadcom.com>
2195 * config/aarch64/aarch64-cores.def: Change the scheduler
2197 * config/aarch64/aarch64.md: Include thunderx2t99.md.
2198 * config/aarch64/thunderx2t99.md: New file.
2200 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
2202 * doc/standards.texi (Go Language): Update link to language
2205 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
2207 * tree-eh.c (lower_resx): Sanitize profile.
2208 (cleanup_empty_eh_move_lp): Likewise.
2210 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
2213 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
2215 * cfgloopmanip.h (loop_version): Update prototype.
2216 * modulo-sched.c (sms_schedule): Update call of loop_version.
2217 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
2218 * tree-parloops.c (gen_parallel_loop): Likewise.
2219 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2220 * tree-ssa-loop-split.c (split_loop): Likewise.
2221 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
2222 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
2224 2017-02-05 Martin Liska <mliska@suse.cz>
2227 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
2229 (print_operand_address): Initialize a struct to zero.
2231 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
2233 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
2234 garbage collector only in textual form.
2236 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
2238 * doc/extend.texi (x86 specific memory model extensions for
2239 transactional memory): Simplify a phrase.
2241 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
2244 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
2245 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
2246 (atomic_storedi_1): Likewise.
2248 2017-02-04 Jakub Jelinek <jakub@redhat.com>
2250 PR tree-optimization/79338
2251 * tree-parloops.c (gather_scalar_reductions): Don't call
2252 vect_analyze_loop_form for loop->inner before destroying loop's
2255 2017-02-03 Martin Sebor <msebor@redhat.com>
2257 PR tree-optimization/79327
2258 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
2259 when precision has resulted in leading zeros.
2260 (format_integer): Adjust the likely counter to assume an unknown
2261 argument that may be zero is non-zero.
2263 2017-02-03 Jason Merrill <jason@redhat.com>
2266 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
2267 avoid copying non-taken branch.
2269 2017-02-03 Jakub Jelinek <jakub@redhat.com>
2271 PR tree-optimization/79340
2272 * tree-vect-loop.c (vectorizable_reduction): Release
2273 vec_defs elements after safe_splicing them into other vectors.
2276 PR tree-optimization/79327
2277 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
2278 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
2280 (format_integer): Use wide_int_to_tree instead of build_int_cst
2281 + to_?hwi. If argmin is NULL, just set argmin and argmax to
2282 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
2283 of shortest and longest sequence.
2285 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
2287 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2288 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
2290 2017-02-03 Walter Lee <walt@tilera.com>
2293 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
2294 after initial stackframe link reg save.
2295 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
2297 2017-02-03 Jakub Jelinek <jakub@redhat.com>
2300 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
2301 wu for stxssp alternative.
2303 2017-02-03 Martin Sebor <msebor@redhat.com>
2305 PR tree-optimization/79352
2306 * gimple-fold.c (get_range_strlen): Add argument.
2307 (get_range_strlen): Change return type to bool.
2308 (get_maxval_strlen): Pass in a dummy argument.
2309 * gimple-fold.h (get_range_strlen): Change return type to bool.
2310 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
2311 * tree.h (array_at_struct_end_p): Add argument.
2312 * tree.c (array_at_struct_end_p): Handle it.
2314 2017-02-03 Martin Liska <mliska@suse.cz>
2317 * multiple_target.c (create_dispatcher_calls): Redirect edge
2318 from a caller of a dispatcher.
2319 (expand_target_clones): Make the clones local.
2320 (ipa_target_clone): Do both target clones and resolvers.
2321 (ipa_dispatcher_calls): Remove the pass.
2322 (pass_dispatcher_calls::gate): Likewise.
2323 (make_pass_dispatcher_calls): Likewise.
2324 * passes.def (pass_target_clone): Put as very first IPA early
2327 2017-02-03 Martin Liska <mliska@suse.cz>
2329 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
2330 in case of a function with ifunc attribute.
2332 2017-02-03 Martin Liska <mliska@suse.cz>
2334 * cgraph.c (cgraph_node::dump): Dump function version info.
2335 * symtab.c (symtab_node::dump_base): Add missing new line.
2337 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
2339 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
2340 (ifcombine_ifandif): Use it.
2342 2017-02-03 Martin Liska <mliska@suse.cz>
2344 * doc/invoke.texi: Document default value for
2345 use-after-scope-direct-emission-threshold.
2347 2017-02-03 Martin Liska <mliska@suse.cz>
2349 PR tree-optimization/79339
2350 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
2351 (format_floating): Likewise.
2353 2017-02-03 Martin Liska <mliska@suse.cz>
2356 * ipa-prop.c (ipa_node_params_t::insert): Remove current
2358 (ipa_node_params_t::remove): Likewise.
2359 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
2360 initialization from removed ipa_node_params_t::insert.
2361 (ipa_node_params::~ipa_node_params): Move from removed
2362 ipa_node_params_t::release.
2363 * symbol-summary.h (symbol_summary::m_released): New member.
2364 Do not release a summary twice. Do not allow to call finalizer
2365 for types of a summary that live in GGC memory.
2367 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2369 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
2372 2017-02-02 Martin Sebor <msebor@redhat.com>
2375 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
2376 (format_string): Tighten up the range of output for non-constant
2377 strings and correct the expected range for wide non-constant strings.
2379 2017-02-02 Martin Sebor <msebor@redhat.com>
2381 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
2384 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
2386 (-fdump-tree-@var): Add to index and document how to come up
2387 with pass-specific option and dump file names.
2388 (-fdump-passes): Clarify where to look for output.
2390 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
2393 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
2394 statistics of the analyzed path; allow threading for speed when
2395 any of BBs along the path are optimized for speed.
2397 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
2400 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
2401 settings of the virtual registers.
2404 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2406 * explow.c (get_dynamic_stack_size): Take known alignment of stack
2407 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2410 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2412 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
2413 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
2415 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2417 * config/s390/s390.md: Add missing comments with the expanded
2419 * config/s390/vector.md: Likewise.
2420 * config/s390/vx-builtins.md: Likewise.
2422 2017-02-02 Jakub Jelinek <jakub@redhat.com>
2425 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
2426 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
2427 conditions on a single line.
2429 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2431 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2432 __S390_VX__ to __VX__.
2434 2017-02-01 Andrew Pinski <apinski@cavium.com>
2436 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
2437 stmt_info to record_stmt_cost.
2438 (vect_get_known_peeling_cost): Pass stmt_info if known to
2440 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
2441 cpu_vector_cost field into
2442 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
2443 field into vec_int_stmt_cost and vec_fp_stmt_cost.
2444 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
2445 splitting of scalar_stmt_cost and vec_stmt_cost.
2446 (thunderx_vector_cost): Likewise.
2447 (cortexa57_vector_cost): LIkewise.
2448 (exynosm1_vector_cost): Likewise.
2449 (xgene1_vector_cost): Likewise.
2450 (thunderx2t99_vector_cost): Improve after the splitting of the two
2452 (aarch64_builtin_vectorization_cost): Update for the splitting of
2453 scalar_stmt_cost and vec_stmt_cost.
2455 2017-02-01 Torvald Riegel <triegel@redhat.com>
2456 Richard Henderson <rth@redhat.com>
2458 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
2459 conditional on existance of a fast atomic load.
2460 * optabs-query.c (can_atomic_load_p): New function.
2461 * optabs-query.h (can_atomic_load_p): Declare it.
2462 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
2463 no fast atomic load is available for the particular size of access.
2464 (expand_atomic_compare_and_swap): Likewise.
2465 (expand_atomic_load): Likewise.
2466 (expand_atomic_store): Likewise.
2467 (expand_atomic_fetch_op): Likewise.
2468 * testsuite/lib/target-supports.exp
2469 (check_effective_target_sync_int_128): Remove x86 because it provides
2470 no fast atomic load.
2471 (check_effective_target_sync_int_128_runtime): Likewise.
2473 2017-02-01 Richard Biener <rguenther@suse.de>
2475 * graphite.c: Include tree-vectorizer.h for find_loop_location.
2476 (graphite_transform_loops): Provide opt-info for optimized nests.
2477 * tree-parloop.c (parallelize_loops): Provide opt-info for
2480 2017-02-01 Richard Biener <rguenther@suse.de>
2483 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
2486 2017-02-01 Richard Biener <rguenther@suse.de>
2488 PR tree-optimization/71824
2489 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2490 Verify the loops are valid in the merged SESE region.
2491 (scop_detection::can_represent_loop_1): Check analyzing the
2492 evolution of the number of iterations in the region succeeds.
2494 2017-01-31 Ian Lance Taylor <iant@golang.org>
2496 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
2497 REG_ARGS_SIZE note to 32-bit push insns and call insn.
2499 2017-01-31 David Malcolm <dmalcolm@redhat.com>
2501 PR preprocessor/79210
2502 * input.c (get_substring_ranges_for_loc): Replace line_width
2503 assertion with error-handling.
2505 2017-01-31 Richard Biener <rguenther@suse.de>
2507 PR tree-optimization/77318
2508 * graphite-sese-to-poly.c (extract_affine): Fix assert.
2509 (create_pw_aff_from_tree): Take loop parameter.
2510 (add_condition_to_pbb): Pass loop of the condition to
2511 create_pw_aff_from_tree.
2513 2017-01-31 Jakub Jelinek <jakub@redhat.com>
2515 * config/s390/s390.c (s390_asan_shadow_offset): New function.
2516 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
2518 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2522 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
2524 (convert_int_to_float128): Likewise.
2525 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
2526 (convert_int_to_float128): Likewise.
2527 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
2528 (UNSPEC_IEEE128_CONVERT): Likewise.
2529 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
2530 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
2531 Use local variables for IBM extended format.
2532 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
2533 (fix_trunc<mode>si2_fprs): Likewise.
2534 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2535 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
2536 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
2537 to know that we can now have integers of all sizes in vector
2539 (fix<uns>_<mode>di2_hw): Likewise.
2540 (float<uns>_<mode>si2_hw): Likewise.
2541 (fix_<mode>si2_hw): Likewise.
2542 (fixuns_<mode>si2_hw): Likewise.
2543 (float<uns>_<mode>di2_hw): Likewise.
2544 (float_<mode>di2_hw): Likewise.
2545 (float_<mode>si2_hw): Likewise.
2546 (floatuns_<mode>di2_hw): Likewise.
2547 (floatuns_<mode>si2_hw): Likewise.
2548 (xscvqp<su>wz_<mode>): Delete, no longer used.
2549 (xscvqp<su>dz_<mode>): Likewise.
2550 (xscv<su>dqp_<mode>): Likewise.
2551 (ieee128_mfvsrd_64bit): Likewise.
2552 (ieee128_mfvsrd_32bit): Likewise.
2553 (ieee128_mfvsrwz): Likewise.
2554 (ieee128_mtvsrw): Likewise.
2555 (ieee128_mtvsrd_64bit): Likewise.
2556 (ieee128_mtvsrd_32bit): Likewise.
2558 2017-01-31 Martin Liska <mliska@suse.cz>
2561 * ipa-prop.c (ipa_free_all_node_params): Call release method
2562 instead of ~sumbol_summary to not to trigger double times
2565 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
2567 PR tree-optimization/71691
2568 * bitmap.h (class auto_bitmap): New.
2569 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
2570 is_maybe_undefined instead of ssa_undefined_value_p.
2572 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2574 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2575 __S390_ARCH_LEVEL__ to __ARCH__.
2577 2017-01-31 Jakub Jelinek <jakub@redhat.com>
2579 PR tree-optimization/79267
2580 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
2581 if should_remove_lhs_p is true.
2583 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
2586 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
2587 (add_alignment_attribute): New.
2588 (base_type_die): Add alignment attribute.
2589 (subrange_type_die): Likewise.
2590 (modified_type_die): Likewise.
2591 (gen_array_type_die): Likewise.
2592 (gen_descr_array_type_die: Likewise.
2593 (gen_enumeration_type_die): Likewise.
2594 (gen_subprogram_die): Likewise.
2595 (gen_variable_die): Likewise.
2596 (gen_field_die): Likewise.
2597 (gen_ptr_to_mbr_type_die): Likewise.
2598 (gen_struct_or_union_type_die): Likewise.
2599 (gen_subroutine_type_die): Likewise.
2600 (gen_typedef_die): Likewise.
2601 (base_type_cmp): Compare alignment attribute.
2603 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2606 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
2607 (setb_unsigned) New pattern for setb with CCUNS.
2608 * config/rs6000/rs6000.c (expand_block_compare): Use a different
2609 subfc./subfe sequence to avoid overflow problems. Generate a
2610 shorter sequence with cmpld/setb for power9.
2611 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
2612 for generating subfc. instruction.
2613 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
2614 now uses this instruction.
2616 2017-01-30 Ian Lance Taylor <iant@google.com>
2619 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
2620 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
2622 2017-01-30 Martin Sebor <msebor@redhat.com>
2624 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
2625 Move constant to the right of a relational operator.
2626 (get_mpfr_format_length, format_character, format_string): Ditto.
2627 (should_warn_p, maybe_warn): Same.
2629 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
2631 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
2634 * asan.c (get_translation_unit_decl): Remove function.
2635 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
2637 2017-01-30 Martin Liska <mliska@suse.cz>
2639 PR gcov-profile/79259
2640 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
2643 2017-01-30 Martin Liska <mliska@suse.cz>
2646 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
2647 Initialize variables with NULL value.
2649 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
2652 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
2654 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
2656 2017-01-30 Richard Biener <rguenther@suse.de>
2658 PR tree-optimization/79276
2659 * tree-vrp.c (process_assert_insertions): Properly adjust common
2660 when removing a duplicate.
2662 * gcc.dg/torture/pr79276.c: New testcase.
2664 2017-01-30 Richard Biener <rguenther@suse.de>
2666 PR tree-optimization/79256
2667 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2668 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2670 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
2672 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
2675 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
2676 ("*r<noxa>sbg_<mode>_sll_bitmask")
2677 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2678 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
2679 Use contiguous_bitmask_nowrap_operand.
2681 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2684 * config/rs6000/altivec.h (vec_xl): Revise #define.
2685 (vec_xst): Likewise.
2687 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
2689 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
2691 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
2693 PR rtl-optimization/79194
2694 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
2695 traps before call to bypass_conditional_jumps.
2697 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
2699 PR tree-optimization/71374
2700 * lra-constraints.c (check_conflict_input_operands): New.
2701 (match_reload): Use it.
2703 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
2706 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
2707 account to calculate conflict_set.
2709 2017-01-27 Bin Cheng <bin.cheng@arm.com>
2711 PR rtl-optimization/78559
2712 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
2713 other_insn in combine.
2715 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
2717 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
2718 uint16_type_node for BT_UINT16.
2720 2017-01-27 David Malcolm <dmalcolm@redhat.com>
2722 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
2723 "RTL Tests" to menu.
2724 (GIMPLE Tests): New node.
2725 (RTL Tests): New node.
2727 2017-01-27 Richard Biener <rguenther@suse.de>
2729 PR tree-optimization/79245
2730 * tree-loop-distribution.c (distribute_loop): Apply cost
2731 modeling also to detected patterns.
2733 2017-01-27 Richard Biener <rguenther@suse.de>
2735 PR tree-optimization/71433
2736 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
2737 (compare_assert_loc): New function.
2738 (process_assert_insertions): Sort and optimize assert locations
2739 to remove duplicates and push down identical assertions on
2740 edges to their destination block.
2742 2017-01-27 Richard Biener <rguenther@suse.de>
2744 PR tree-optimization/79244
2745 * tree-vrp.c (remove_range_assertions): Forcefully propagate
2746 out SSA names even if abnormal.
2748 2017-01-27 Jakub Jelinek <jakub@redhat.com>
2750 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
2751 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
2752 instead of MPFR_RNDN.
2754 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
2757 * arm.c (arm_option_override): Don't call build_target_option_node
2758 until after doing all option overrides.
2759 (arm_valid_target_attribute_tree): Likewise.
2761 2017-01-27 Martin Liska <mliska@suse.cz>
2763 * doc/invoke.texi (-fprofile-arcs): Document profiling support
2764 for {cd}tors and C++ {cd}tors.
2766 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2768 * config/s390/s390.md ("*setmem_long_and")
2769 ("*setmem_long_and_31z"): Use zero_extend instead of and.
2771 2017-01-26 Martin Sebor <msebor@redhat.com>
2773 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
2776 2017-01-26 Martin Sebor <msebor@redhat.com>
2778 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
2779 HAVE_DFmode before using XFmode or DFmode.
2780 (parse_directive): Avoid using the z length modifier to avoid
2781 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
2784 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
2785 to accept adjustment as an array.
2786 (get_int_range): New function.
2787 (struct directive): Make width and prec arrays.
2788 (directive::set_width, directive::set_precision): Call get_int_range.
2789 (format_integer, format_floating): Handle width and precision ranges.
2790 (format_string, parse_directive): Same.
2792 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2795 * dwarf2out.c (generate_skeleton_bottom_up): For children with
2796 comdat_type_p set, just clone them, but keep the children in the
2800 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
2801 which have direct callers with -fvar-tracking-assignments enabled
2803 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
2804 inside of type units.
2806 2017-01-26 Martin Sebor <msebor@redhat.com>
2809 * gimple-ssa-sprintf.c (struct result_range): Add likely and
2811 (struct format_result): Replace number_chars, number_chars_min,
2812 and number_chars_max with a single member of struct result_range.
2814 (format_result::operator+=): Adjust.
2815 (struct fmtresult): Remove bounded. Handle likely and unlikely
2817 (fmtresult::adjust_for_width_or_precision): New function.
2818 (fmtresult:type_max_digits): New function.
2819 (bytes_remaining): Handle likely and unlikely counters.
2820 (min_bytes_remaining): Remove.
2821 (format_percent): Simplify.
2822 (format_integer, format_floating): Set likely and unlikely counters.
2823 (get_string_length, format_character, format_string): Same.
2824 (format_plain, should_warn_p): New function.
2825 (maybe_warn): Call should_warn_p. Update diagnostic messages
2826 and handle those for all directives, including plain strings.
2827 (format_directive): Handle likely and unlikely counters.
2828 Remove unnecessary quoting from diagnostics. Add an informational
2830 (add_bytes): Remove.
2831 (pass_sprintf_length::compute_format_length): Simplify.
2832 (try_substitute_return_value): Handle likely and unlikely counters.
2834 2017-01-26 Carl Love <cel@us.ibm.com>
2836 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
2837 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
2839 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
2842 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
2843 endianess for subregs into account.
2844 * lra-constraints.c (lra_constraints): Do risky transformations
2845 always on the first iteration.
2846 * lra-lives.c (check_pseudos_live_through_calls): Add arg
2847 last_call_used_reg_set.
2848 (process_bb_lives): Define and use last_call_used_reg_set.
2849 * lra.c (lra): Always continue after lra_constraints on the first
2852 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
2854 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
2856 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
2858 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2860 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
2861 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
2862 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
2863 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
2864 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
2865 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
2866 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
2867 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
2868 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
2870 2017-01-26 Marek Polacek <polacek@redhat.com>
2873 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
2874 for the third operand.
2876 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2879 * omp-low.c (struct omp_context): Add simt_stmt field.
2880 (scan_omp_for): Return omp_context *.
2881 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
2882 context to the _simt_ SIMD stmt.
2883 (lower_omp_for): For combined SIMD with sibling _simt_
2884 SIMD, make sure to use the same decls in _looptemp_
2885 clauses as in the sibling.
2887 2017-01-26 David Sherwood <david.sherwood@arm.com>
2890 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
2893 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2896 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
2897 emit fld b; fld a; if possible.
2899 * brig-builtins.def: Update copyright years.
2900 * config/arm/arm_acle_builtins.def: Update copyright years.
2902 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2905 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
2906 constraint instead of o for the stxsd instruction.
2908 2017-01-25 Carl Love <cel@us.ibm.com>
2910 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
2911 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
2913 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
2915 * doc/invoke.texi (C++ Dialect Options): Fix typo.
2917 2017-01-25 Richard Biener <rguenther@suse.de>
2919 PR tree-optimization/69264
2920 * target.def (vector_alignment_reachable): Improve documentation.
2921 * doc/tm.texi: Regenerate.
2922 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
2924 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
2925 earlier changes with respect to TYPE_USER_ALIGN.
2926 (vector_alignment_reachable_p): Likewise. Improve dumping.
2928 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2931 * config/arm/arm.md (xordi3): Force constant operand into a register
2934 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2936 * doc/invoke.texi (-fstore-merging): Correct default optimization
2937 levels at which it is enabled.
2938 (-O): Move -fstore-merging from list to...
2941 2017-01-25 Richard Biener <rguenther@suse.de>
2944 * omp-expand.c: Include debug.h.
2945 (expand_omp_taskreg): Make sure to generate early debug before
2946 outlining anything from a function.
2947 (expand_omp_target): Likewise.
2948 (grid_expand_target_grid_body): Likewise.
2950 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
2953 * asan.c (get_translation_unit_decl): New function.
2954 (asan_add_global): Extract modules file name from globals
2955 TRANSLATION_UNIT_DECL name.
2957 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
2960 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
2961 for long calls with APCS frame and VFP.
2963 2017-01-24 David Malcolm <dmalcolm@redhat.com>
2965 * cfg.c (original_copy_tables_initialized_p): New function.
2966 * cfg.h (original_copy_tables_initialized_p): New decl.
2967 * cfgrtl.c (relink_block_chain): Guard the call to
2968 free_original_copy_tables with a call to
2969 original_copy_tables_initialized_p.
2970 * cgraph.h (symtab_node::native_rtl_p): New decl.
2971 * cgraphunit.c (symtab_node::native_rtl_p): New function.
2972 (symtab_node::needed_p): Don't assert for early assembly output
2973 for __RTL functions.
2974 (cgraph_node::finalize_function): Set "force_output" for __RTL
2976 (cgraph_node::analyze): Bail out early for __RTL functions.
2977 (analyze_functions): Update assertion to support __RTL functions.
2978 (cgraph_node::expand): Bail out early for __RTL functions.
2979 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
2981 * function.h (struct function): Update comment for field
2983 * gimple-expr.c: Include "tree-pass.h".
2984 (gimple_has_body_p): Return false for __RTL functions.
2985 * Makefile.in (OBJS): Add run-rtl-passes.o.
2986 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
2988 (gcc::pass_manager::get_clean_slate): New accessor.
2989 * passes.c: Include "insn-addr.h".
2990 (should_skip_pass_p): Add logging. Update logic for running
2991 "expand" to be compatible with both __GIMPLE and __RTL. Guard
2992 property-provider override so it is only done for gimple passes.
2994 (skip_pass): New function.
2995 (execute_one_pass): Call skip_pass when skipping passes.
2996 * read-md.c (md_reader::read_char): Support filtering
2997 the input to a subset of line numbers.
2998 (md_reader::md_reader): Initialize fields
2999 m_first_line and m_last_line.
3000 (md_reader::read_file_fragment): New function.
3001 * read-md.h (md_reader::read_file_fragment): New decl.
3002 (md_reader::m_first_line): New field.
3003 (md_reader::m_last_line): New field.
3004 * read-rtl-function.c (function_reader::create_function): Only
3005 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
3006 curr_properties. Set DECL_INITIAL to a dummy block.
3007 (read_rtl_function_body_from_file_range): New function.
3008 * read-rtl-function.h (read_rtl_function_body_from_file_range):
3010 * run-rtl-passes.c: New file.
3011 * run-rtl-passes.h: New file.
3013 2017-01-24 Jeff Law <law@redhat.com>
3015 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
3018 2017-01-24 Bin Cheng <bin.cheng@arm.com>
3020 PR tree-optimization/79159
3021 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
3022 (record_nonwrapping_iv): Improve boundary using above function if no
3023 value range information.
3025 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3026 Martin Jambor <mjambor@suse.cz>
3028 * brig-builtins.def: New file.
3029 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
3030 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
3031 (DEF_HSAIL_SAT_BUILTIN): Likewise.
3032 (DEF_HSAIL_INTR_BUILTIN): Likewise.
3033 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
3034 * builtin-types.def (BT_INT8): New.
3035 (BT_INT16): Likewise.
3036 (BT_UINT8): Likewise.
3037 (BT_UINT16): Likewise.
3038 (BT_FN_ULONG): Likewise.
3039 (BT_FN_UINT_INT): Likewise.
3040 (BT_FN_UINT_ULONG): Likewise.
3041 (BT_FN_UINT_LONG): Likewise.
3042 (BT_FN_UINT_PTR): Likewise.
3043 (BT_FN_ULONG_PTR): Likewise.
3044 (BT_FN_INT8_FLOAT): Likewise.
3045 (BT_FN_INT16_FLOAT): Likewise.
3046 (BT_FN_UINT32_FLOAT): Likewise.
3047 (BT_FN_UINT16_FLOAT): Likewise.
3048 (BT_FN_UINT8_FLOAT): Likewise.
3049 (BT_FN_UINT64_FLOAT): Likewise.
3050 (BT_FN_UINT16_UINT32): Likewise.
3051 (BT_FN_UINT32_UINT16): Likewise.
3052 (BT_FN_UINT16_UINT16_UINT16): Likewise.
3053 (BT_FN_INT_PTR_INT): Likewise.
3054 (BT_FN_UINT_PTR_UINT): Likewise.
3055 (BT_FN_LONG_PTR_LONG): Likewise.
3056 (BT_FN_ULONG_PTR_ULONG): Likewise.
3057 (BT_FN_VOID_UINT64_UINT64): Likewise.
3058 (BT_FN_UINT8_UINT8_UINT8): Likewise.
3059 (BT_FN_INT8_INT8_INT8): Likewise.
3060 (BT_FN_INT16_INT16_INT16): Likewise.
3061 (BT_FN_INT_INT_INT): Likewise.
3062 (BT_FN_UINT_FLOAT_UINT): Likewise.
3063 (BT_FN_FLOAT_UINT_UINT): Likewise.
3064 (BT_FN_ULONG_UINT_UINT): Likewise.
3065 (BT_FN_ULONG_UINT_PTR): Likewise.
3066 (BT_FN_ULONG_ULONG_ULONG): Likewise.
3067 (BT_FN_UINT_UINT_UINT): Likewise.
3068 (BT_FN_VOID_UINT_PTR): Likewise.
3069 (BT_FN_UINT_UINT_PTR: Likewise.
3070 (BT_FN_UINT32_UINT64_PTR): Likewise.
3071 (BT_FN_INT_INT_UINT_UINT): Likewise.
3072 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
3073 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
3074 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
3075 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
3076 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
3077 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
3078 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
3079 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
3080 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
3081 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
3082 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
3083 * doc/frontends.texi: List BRIG FE.
3084 * doc/install.texi (Testing): Add BRIG tesring requirements.
3085 * doc/invoke.texi (Overall Options): Mention BRIG.
3086 * doc/standards.texi (Standards): Doucment BRIG HSA version.
3088 2017-01-24 Richard Biener <rguenther@suse.de>
3090 PR translation/79208
3091 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
3093 2017-01-24 Martin Jambor <mjambor@suse.cz>
3096 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
3097 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
3100 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
3103 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
3104 casts from signed to unsigned really don't have a range.
3106 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
3108 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
3109 GMP_RNDx for compatiblity.
3111 2017-01-24 Martin Liska <mliska@suse.cz>
3114 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
3115 that would prevent us to call alloca with -1 as argument.
3117 2017-01-24 Jakub Jelinek <jakub@redhat.com>
3119 * dwarf2out.c (output_compilation_unit_header, output_file_names):
3120 Avoid -Wformat-security warning.
3122 2017-01-23 Andrew Pinski <apinski@cavium.com>
3124 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
3127 2017-01-23 Martin Sebor <msebor@redhat.com>
3130 * gimple-ssa-sprintf.c (warn_level): New global.
3131 (format_integer): Use it here and throughout the rest of the file.
3132 Use the same switch to compute sign as base.
3133 (maybe_warn): New function.
3134 (format_directive): Factor out warnings into maybe_warn.
3135 Add debugging output. Use warn_level.
3136 (add_bytes): Use warn_level.
3137 (pass_sprintf_length::compute_format_length): Add debugging output.
3138 (try_substitute_return_value): Same.
3139 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
3142 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
3143 (struct fmtresult, format_integer, format_floating): Adjust.
3144 (fmtresult::fmtresult): Set max correctly in two argument ctor.
3145 (get_string_length, format_string,format_directive): Same.
3146 (pass_sprintf_length::compute_format_length): Same.
3147 (try_substitute_return_value): Simplify slightly.
3150 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
3151 (fmtresult::operator+=): Outlined.
3152 (struct fmtresult): Add ctors.
3153 (struct conversion_spec): Rename...
3154 (struct directive): ...to this. Add and remove data members.
3155 (directive::set_width, directive::set_precision): New functions.
3156 (format_percent): Use fmtresult ctor.
3157 (get_width_and_precision): Remove.
3158 (format_integer): Make naming changes. Avoid computing width and
3160 (format_floating): Same. Adjust indentation.
3161 (format_character, format_none): New functions.
3162 (format_string): Moved character handling to format_character.
3163 (format_directive): Remove arguments, change return type.
3164 (parse_directive): New function.
3165 (pass_sprintf_length::compute_format_length): Move directive
3166 parsing to parse_directive.
3168 2017-01-23 Jakub Jelinek <jakub@redhat.com>
3170 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
3171 (assign_assembler_name_if_needed): ... this.
3172 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
3173 (assign_assembler_name_if_needed): ... this.
3174 (free_lang_data_in_cgraph): Adjust callers.
3175 * cgraphunit.c (cgraph_node::analyze): Likewise.
3176 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
3179 2017-01-23 Richard Biener <rguenther@suse.de>
3181 PR tree-optimization/79088
3182 PR tree-optimization/79188
3183 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
3184 resetting loop bounds after last path deletion. Reset loop
3185 bounds of the target loop, make code match the comments.
3186 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
3187 Make sure loops need no fixups.
3189 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
3191 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
3192 exponent support with double type for first argument.
3193 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
3194 type returned by __builtin_vec_extract_sig,
3195 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
3196 functions from "vector int" to "vector unsigned int" or from
3197 "vector long long int" to "vector unsigned long long int".
3198 Changed type returned by __builtin_vec_extract_exp,
3199 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
3200 functions from "vector int" to "vector unsigned int" or from
3201 "vector long long int" to "vector unsigned long long int".
3202 Changed return type of __builtin_vec_test_data_class,
3203 __builtin_vec_test_data_class_sp, and
3204 __builtin_vec_test_data_class_dp from "vector int" to
3205 "vector bool int" or from "vector long long int" to "vector bool
3206 long long int" and changed second argument type from "unsigned
3207 int" to "int". Added new overloaded function forms "vector float
3208 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
3209 "vector float __builtin_vec_insert_exp_sp (vector float, vector
3210 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
3211 double, vector unsigned long long int)" and "vector double
3212 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
3213 long int)". Changed return type of
3214 __builtin_scalar_test_data_class and
3215 __builtin_scalar_test_data_class_sp and
3216 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
3217 int" and changed second argument from "unsigned int" to "int".
3218 Changed type returned by __builtin_scalar_test_neg,
3219 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
3220 from "int" to "bool int". Added new overloaded function form
3221 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
3222 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
3223 exponent double-precision with floating point first argument.
3224 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
3225 documentation of scalar_test_data_class, scalar_test_neg,
3226 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
3227 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
3228 vec_test_data_class built-in functions to reflect refinements in
3229 their type signatures.
3231 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
3233 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
3235 (aarch64_elf_asm_destructor): Likewise.
3237 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
3239 PR rtl-optimization/78634
3240 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
3241 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
3242 * ifcvt.c (noce_try_cmove): Add missing cost check.
3244 PR rtl-optimization/71724
3245 * combine.c (if_then_else_cond): Look for situations where it is
3246 beneficial to undo the work of one of the recursive calls.
3248 2017-01-23 Bin Cheng <bin.cheng@arm.com>
3250 PR tree-optimization/70754
3251 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
3252 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
3253 combined stmt before it if not NULL.
3254 (combine_chains): Process refs reversely and compute dominance point
3257 2017-01-23 Martin Liska <mliska@suse.cz>
3259 PR tree-optimization/79196
3260 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
3261 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
3263 (strlen_optimize_stmt): Call the renamed function.
3265 2017-01-23 Michael Matz <matz@suse.de>
3267 PR tree-optimization/78384
3268 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
3270 2017-01-23 Richard Biener <rguenther@suse.de>
3272 PR tree-optimization/79186
3273 * tree-vrp.c (register_new_assert_for): Make sure we've seen
3274 both incoming edges before moving an assert.
3276 2017-01-23 Martin Jambor <mjambor@suse.cz>
3278 * ipa-prop.c (load_from_param_1): Removed.
3279 (load_from_unmodified_param): Bits from load_from_param_1 put back
3281 (load_from_param): Removed.
3282 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
3283 with stmt. Reverted back to use of load_from_unmodified_param.
3285 2017-01-23 Martin Jambor <mjambor@suse.cz>
3288 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
3289 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
3290 field a pointer to garbage collected vector, mark lattices and
3291 ipcp_orig_node with GTY((skip)).
3292 (ipa_get_param_count): Adjust to descriptors being a pointer.
3293 (ipa_get_param): Likewise.
3294 (ipa_get_type): Likewise.
3295 (ipa_get_param_move_cost): Likewise.
3296 (ipa_set_param_used): Likewise.
3297 (ipa_get_controlled_uses): Likewise.
3298 (ipa_set_controlled_uses): Likewise.
3299 (ipa_is_param_used): Likewise.
3300 (ipa_node_params_t): Move into garbage collector. New methods insert
3302 (ipa_node_params_sum): Annotate wth GTY(()).
3303 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
3305 (ipa_load_from_parm_agg): Adjust declaration.
3306 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
3307 * ipa-profile.c (ipa_profile): Likewise.
3308 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
3309 (ipa_populate_param_decls): Make descriptors parameter garbage
3311 (ipa_dump_param): Adjust to descriptors being a pointer.
3312 (ipa_alloc_node_params): Likewise.
3313 (ipa_initialize_node_params): Likewise.
3314 (load_from_param_1): Make descriptors parameter garbage collected.
3315 (load_from_unmodified_param): Likewise.
3316 (load_from_param): Likewise.
3317 (ipa_load_from_parm_agg): Likewise.
3318 (ipa_node_params::~ipa_node_params): Removed.
3319 (ipa_free_all_node_params): Remove call to delete operator.
3320 (ipa_node_params_t::insert): New.
3321 (ipa_node_params_t::remove): Likewise.
3322 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
3323 copy known_csts and known_contexts vectors.
3324 (ipa_read_node_info): Adjust to descriptors being a pointer.
3325 (ipcp_modif_dom_walker): Make m_descriptors field garbage
3327 (ipcp_transform_function): Make descriptors variable garbage
3330 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
3332 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
3333 * config/i386/avx512dqintrin.h: Ditto.
3334 * config/i386/avx512fintrin.h: Ditto.
3335 * gcc/config/i386/i386.c: Handle new builtins.
3336 * config/i386/i386-builtin.def: Add new builtins.
3337 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
3338 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
3340 2017-01-23 Jakub Jelinek <jakub@redhat.com>
3341 Martin Liska <mliska@suse.cz>
3343 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
3344 * asan.c (asan_expand_poison_ifn): Support stores and use
3345 appropriate ASAN report function.
3346 * internal-fn.c (expand_ASAN_POISON_USE): New function.
3347 * internal-fn.def (ASAN_POISON_USE): Declare.
3348 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
3349 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
3350 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
3351 ASAN_POISON calls w/o LHS.
3352 * tree-ssa.c (execute_update_addresses_taken): Create clobber
3353 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
3354 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
3355 * gimplify.c (asan_poison_variables): Add attribute
3356 use_after_scope_memory to variables that really needs to live
3358 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
3359 having the attribute.
3361 2017-01-23 Martin Liska <mliska@suse.cz>
3363 * asan.c (create_asan_shadow_var): New function.
3364 (asan_expand_poison_ifn): Likewise.
3365 * asan.h (asan_expand_poison_ifn): New declaration.
3366 * internal-fn.c (expand_ASAN_POISON): Likewise.
3367 * internal-fn.def (ASAN_POISON): New builtin.
3368 * sanopt.c (pass_sanopt::execute): Expand
3369 asan_expand_poison_ifn.
3370 * tree-inline.c (copy_decl_for_dup_finish): Make function
3372 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
3373 * tree-ssa.c (is_asan_mark_p): New function.
3374 (execute_update_addresses_taken): Rewrite local variables
3375 (identified just by use-after-scope as addressable) into SSA.
3377 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3379 * doc/install.texi (Specific): opensource.apple.com uses https
3380 now. Remove trailing slash.
3382 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3384 * README.Portability: Remove note on an Irix compatibility issue.
3386 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
3388 * gcov.c (INCLUDE_ALGORITHM): Define.
3389 (INCLUDE_VECTOR): Define.
3390 No longer include <vector> and <algorithm> directly.
3392 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
3394 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
3396 * doc/invoke.texi (Code Gen Options): Ditto.
3398 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
3401 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
3403 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
3405 rtl-optimization/79125
3406 * cprop.c (local_cprop_pass): Handle cases where we make an
3409 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
3413 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
3414 read from, for big endian.
3416 2017-01-20 Jiong Wang <jiong.wang@arm.com>
3418 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
3419 register pauth builtins for LP64 only.
3421 2017-01-20 Marek Polacek <polacek@redhat.com>
3424 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
3427 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
3429 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
3431 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
3432 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
3433 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
3435 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3438 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
3439 in big-endian mode when they are not a single duplicated value.
3441 2017-01-20 Richard Biener <rguenther@suse.de>
3443 * BASE-VER: Bump to 7.0.1.
3445 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
3447 * omp-low.c (omplow_simd_context): New struct. Use it...
3448 (lower_rec_simd_input_clauses): ...here and...
3449 (lower_rec_input_clauses): ...here to hold common data. Adjust all
3450 references to idx, lane, max_vf, is_simt.
3452 2017-01-20 Graham Markall <graham.markall@embecosm.com>
3454 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
3457 2017-01-20 Martin Jambor <mjambor@suse.cz>
3459 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
3460 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
3462 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
3463 (GTFILES): Rename hsa.c to hsa-common.c.
3464 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
3465 * hsa-dump.c: Likewise.
3466 * hsa-gen.c: Likewise.
3467 * hsa-regalloc.c: Likewise.
3468 * ipa-hsa.c: Likewise.
3469 * omp-expand.c: Likewise.
3470 * omp-low.c: Likewise.
3471 * toplev.c: Likewise.
3473 2017-01-20 Marek Polacek <polacek@redhat.com>
3476 * doc/invoke.texi: Document -Wduplicated-branches.
3477 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
3478 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
3479 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
3480 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
3481 return 0 only when not OEP_LEXICOGRAPHIC.
3482 (fold_build_cleanup_point_expr): Use the expression
3483 location when building CLEANUP_POINT_EXPR.
3484 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
3485 * tree.c (add_expr): Handle error_mark_node.
3487 2017-01-20 Martin Liska <mliska@suse.cz>
3490 * tree-profile.c (init_ic_make_global_vars): Do not call
3492 (gimple_init_gcov_profiler): Likewise.
3494 2017-01-20 Martin Liska <mliska@suse.cz>
3497 * cgraph.h (maybe_create_reference): Remove argument and
3499 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
3501 * ipa-cp.c (create_specialized_node): Likewise.
3502 * symtab.c (symtab_node::maybe_create_reference): Handle
3503 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
3505 2017-01-20 Martin Liska <mliska@suse.cz>
3507 * read-rtl-function.c (function_reader::create_function): Use
3508 build_decl instread of build_decl_stat.
3510 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
3512 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
3513 * config/i386/avx512dqintrin.h: Ditto.
3514 * config/i386/avx512fintrin.h: Ditto.
3515 * config/i386/i386-builtin-types.def: Add new types.
3516 * gcc/config/i386/i386.c: Handle new types.
3517 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
3518 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
3519 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
3520 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
3521 (__builtin_ia32_kshiftridi): New.
3522 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
3524 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
3528 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
3529 define to rs6000_init_stack_protect_guard.
3530 (rs6000_init_stack_protect_guard): New function.
3532 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
3533 Yunqiang Su <yunqiang.su@imgtec.com>
3535 * config.gcc (supported_defaults): Add madd4.
3536 (with_madd4): Add validation.
3537 (all_defaults): Add madd4.
3538 * config/mips/mips.opt (mmadd4): New option.
3539 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3541 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3543 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
3544 (ISA_HAS_FUSED_MADD4): Likewise.
3545 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
3546 * gcc/doc/install.texi (--with-madd4): Document the new option.
3548 2017-01-19 Jiong Wang <jiong.wang@arm.com>
3550 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
3551 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
3552 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
3553 (aarch64_init_pauth_hint_builtins): New.
3554 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
3555 (aarch64_expand_builtin): Expand new builtins.
3557 2017-01-19 Jiong Wang <jiong.wang@arm.com>
3559 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
3560 * combine-stack-adj.c (no_unhandled_cfa): Handle
3561 REG_CFA_TOGGLE_RA_MANGLE.
3562 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
3563 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
3564 info for return address signing.
3565 (aarch64_expand_epilogue): Likewise.
3567 2017-01-19 Jiong Wang <jiong.wang@arm.com>
3569 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
3570 * config/aarch64/aarch64-protos.h
3571 (aarch64_return_address_signing_enabled): New declaration.
3572 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
3574 (aarch64_expand_prologue): Sign return address before it's pushed onto
3576 (aarch64_expand_epilogue): Authenticate return address fetched from
3578 (aarch64_override_options): Sanity check for ILP32 and ISA level.
3579 (aarch64_attributes): New function attributes for "sign-return-address".
3580 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
3581 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
3582 ("*do_return"): Generate combined instructions according to key index.
3583 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
3584 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
3586 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
3587 * config/aarch64/aarch64.opt (msign-return-address=): New.
3588 * doc/extend.texi (AArch64 Function Attributes): Documents
3589 "sign-return-address=".
3590 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
3592 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
3594 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
3595 overall option summary.
3597 2017-01-19 Jiong Wang <jiong.wang@arm.com>
3599 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
3600 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
3601 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
3602 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
3604 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3606 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
3607 -mpower9-minmax by default for -mcpu=power9.
3608 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
3609 128-bit floating point.
3611 2017-01-20 Alan Modra <amodra@gmail.com>
3613 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
3614 optimizing for size.
3616 2017-01-20 Alan Modra <amodra@gmail.com>
3619 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
3620 for strcmp and strncmp from corresponding builtin decl.
3622 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
3624 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
3625 instead of i386/rtems-64.h.
3626 * config/i386/rtems-64.h: Remove.
3628 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
3632 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
3634 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
3636 2017-01-19 Tamar Christina <tamar.christina@arm.com>
3638 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
3639 Change int to HOST_WIDE_INT.
3640 * config/aarch64/aarch64-protos.h
3641 (aarch64_simd_gen_const_vector_dup): Likewise.
3642 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
3644 2017-01-19 David Malcolm <dmalcolm@redhat.com>
3646 * langhooks-def.h (lhd_type_for_size): New decl.
3647 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
3648 * langhooks.c (lhd_type_for_size): New function, taken from
3651 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
3653 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
3654 define_bypass for CR latency.
3655 (power9-cracked-alu): Update bypass latency and remove power9-branch.
3656 (power9-alu2): Add define_bypass for CR latency.
3658 (power9-mul): Update insn latency.
3659 (power9-mul-compare): Update insn latency, bypass latency and remove
3662 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3664 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3666 * config/aarch64/aarch64.md
3667 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
3668 aarch64_nopcrelative_literal_loads.
3669 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3671 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
3673 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
3675 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
3677 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
3680 * config.gcc (supported_defaults): Add lxc1-sxc1.
3681 (with_lxc1_sxc1): Add validation.
3682 (all_defaults): Add lxc1-sxc1.
3683 * config/mips/mips.opt (mlxc1-sxc1): New option.
3684 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3686 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3687 __mips_no_lxc1_sxc1.
3688 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
3689 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
3690 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
3692 2017-01-19 Richard Biener <rguenther@suse.de>
3694 PR tree-optimization/72488
3695 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
3696 sure to restore SSA info.
3697 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
3699 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
3701 PR rtl-optimization/79121
3702 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
3703 of the inner type when shifting an extended value.
3705 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
3708 * symtab.c (symtab_node::equal_address_to): Fix comparing of
3709 interposable aliases.
3711 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
3714 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
3715 Use the evmergelohi instruction.
3716 (mov_si<mode>_e500_subreg4_2_le): Likewise.
3717 (mov_sitf_e500_subreg8_2_be): Likewise.
3718 (mov_sitf_e500_subreg12_2_le): Likewise.
3719 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
3720 (mov_si<mode>_e500_subreg4_2_be): Likewise.
3721 (mov_sitf_e500_subreg8_2_le): Likewise.
3722 (mov_sitf_e500_subreg12_2_be): Likewise.
3724 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3726 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
3727 attribute from vecsimple to vecperm.
3728 (altivec_vbpermq2): Likewise.
3730 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3733 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
3735 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3736 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
3737 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
3738 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
3739 case where N arg is SIZE_MAX.
3740 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
3741 (cmpstrsi): Add pattern.
3743 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3745 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3746 __builtin_vec_revb builtins.
3747 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
3748 built-in functions to support generation of the ISA 3.0 XXBR<x>
3749 vector byte reverse instructions.
3750 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
3751 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
3752 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
3753 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
3754 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
3755 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
3756 (P9V_BUILTIN_VEC_REVB): Likewise.
3757 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
3758 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
3759 (p9_xxbrq_v16qi): Likewise.
3760 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
3761 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
3762 (p9_xxbrh_v8hi): Likewise.
3763 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
3764 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
3765 vec_revb built-in functions.
3767 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
3769 PR rtl-optimization/78952
3770 * config/i386/i386.md (any_extract): New code iterator.
3771 (*insvqi_2): Use any_extract for source operand.
3772 (*insvqi_3): Use any_shiftrt for source operand.
3774 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
3776 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
3778 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
3780 2017-01-18 Matthias Klose <doko@ubuntu.com>
3782 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
3784 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3786 * config/rs6000/altivec.h (vec_bperm): Change #define.
3787 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
3788 (altivec_vbpermq2): New define_insn.
3789 (altivec_vbpermd): Likewise.
3790 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
3792 (VBPERMD): Likewise.
3793 (VBPERM): New polymorphic function interface.
3794 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
3795 Add entries for P9V_BUILTIN_VEC_VBPERM.
3796 * doc/extend.texi: Add interfaces for vec_bperm.
3798 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3800 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
3801 first letter of error messages.
3802 (s390_resolve_overloaded_builtin): Likewise.
3803 * config/s390/s390.c (s390_expand_builtin): Likewise.
3804 (s390_invalid_arg_for_unprototyped_fn): Likewise.
3805 (s390_valid_target_attribute_inner_p): Likewise.
3806 * config/s390/s390.md ("tabort"): Likewise.
3808 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
3810 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
3811 (ISA_AVOID_DIV_HILO): New macro.
3812 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
3813 (ISA_HAS_DDIV): Likewise.
3815 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3817 * doc/invoke.texi (fabi-version): Correct number of occurrences.
3819 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3821 * doc/invoke.texi (fabi-version): Spelling fix.
3823 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3826 * doc/invoke.texi (fabi-version): Mention mangling fix for
3829 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3832 * doc/invoke.texi (fabi-version): Document discriminator mangling.
3834 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3837 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
3838 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
3840 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
3842 (stack_protect_test): Ditto.
3843 * config/rs6000/rs6000.opt (mstack-protector-guard=,
3844 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
3846 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
3847 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
3848 -mstack-protector-guard-offset=.
3849 (RS/6000 and PowerPC Options): Ditto.
3851 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
3853 * config/i386/i386.h (MASK_CLASS_P): New define.
3854 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
3855 there are no registers from different register sets also when
3856 mask registers are used. Update function comment.
3857 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
3858 to (*k/*r) and (*k/*km) alternatives.
3860 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
3862 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
3863 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
3864 (EH_RETURN_HANDLER_RTX): New define.
3865 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
3866 Force frame pointer in EH return functions.
3867 (aarch64_expand_epilogue): Add barrier for eh_return.
3868 (aarch64_final_eh_return_addr): Remove.
3869 (aarch64_eh_return_handler_rtx): New function.
3870 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
3872 (aarch64_eh_return_handler_rtx): New prototype.
3874 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3876 * config/rs6000/altivec.h (vec_rlmi): New #define.
3877 (vec_vrlnm): Likewise.
3878 (vec_rlnm): Likewise.
3879 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
3880 (UNSPEC_VRLNM): Likewise.
3881 (VIlong): New mode iterator.
3882 (altivec_vrl<VI_char>mi): New define_insn.
3883 (altivec_vrl<VI_char>nm): Likewise.
3884 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
3887 (RLNM): New polymorphic function entry.
3888 (VRLWMI): New monomorphic function entry.
3890 (RLMI): New polymorphic function entry.
3891 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
3892 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
3893 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
3896 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3899 * dwarf2out.c (field_byte_offset): Restore the
3900 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
3901 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
3902 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
3905 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
3908 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
3910 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3913 * dwarf2out.c (add_data_member_location_attribute): For constant
3914 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
3915 instead of DW_AT_data_member_location, DW_AT_bit_offset and
3916 DW_AT_byte_size attributes.
3918 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
3920 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
3921 after forcing to constant memory when the code model is medium.
3923 2017-01-17 Julia Koval <julia.koval@intel.com>
3926 * config/i386/avx512fintrin.h
3927 (_mm512_i32gather_ps): Change __addr type to void const*.
3928 (_mm512_mask_i32gather_ps): Ditto.
3929 (_mm512_i32gather_pd): Ditto.
3930 (_mm512_mask_i32gather_pd): Ditto.
3931 (_mm512_i64gather_ps): Ditto.
3932 (_mm512_mask_i64gather_ps): Ditto.
3933 (_mm512_i64gather_pd): Ditto.
3934 (_mm512_mask_i64gather_pd): Ditto.
3935 (_mm512_i32gather_epi32): Ditto.
3936 (_mm512_mask_i32gather_epi32): Ditto.
3937 (_mm512_i32gather_epi64): Ditto.
3938 (_mm512_mask_i32gather_epi64): Ditto.
3939 (_mm512_i64gather_epi32): Ditto.
3940 (_mm512_mask_i64gather_epi32): Ditto.
3941 (_mm512_i64gather_epi64): Ditto.
3942 (_mm512_mask_i64gather_epi64): Ditto.
3943 (_mm512_i32scatter_ps): Change __addr type to void*.
3944 (_mm512_mask_i32scatter_ps): Ditto.
3945 (_mm512_i32scatter_pd): Ditto.
3946 (_mm512_mask_i32scatter_pd): Ditto.
3947 (_mm512_i64scatter_ps): Ditto.
3948 (_mm512_mask_i64scatter_ps): Ditto.
3949 (_mm512_i64scatter_pd): Ditto.
3950 (_mm512_mask_i64scatter_pd): Ditto.
3951 (_mm512_i32scatter_epi32): Ditto.
3952 (_mm512_mask_i32scatter_epi32): Ditto.
3953 (_mm512_i32scatter_epi64): Ditto.
3954 (_mm512_mask_i32scatter_epi64): Ditto.
3955 (_mm512_i64scatter_epi32): Ditto.
3956 (_mm512_mask_i64scatter_epi32): Ditto.
3957 (_mm512_i64scatter_epi64): Ditto.
3958 (_mm512_mask_i64scatter_epi64): Ditto.
3959 * config/i386/avx512pfintrin.h
3960 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
3961 (_mm512_mask_prefetch_i32gather_ps): Ditto.
3962 (_mm512_mask_prefetch_i64gather_pd): Ditto.
3963 (_mm512_mask_prefetch_i64gather_ps): Ditto.
3964 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
3965 (_mm512_prefetch_i32scatter_ps): Ditto.
3966 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
3967 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
3968 (_mm512_prefetch_i64scatter_pd): Ditto.
3969 (_mm512_prefetch_i64scatter_ps): Ditto.
3970 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
3971 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
3972 * config/i386/avx512vlintrin.h
3973 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
3974 (_mm_mmask_i32gather_ps): Ditto.
3975 (_mm256_mmask_i32gather_pd): Ditto.
3976 (_mm_mmask_i32gather_pd): Ditto.
3977 (_mm256_mmask_i64gather_ps): Ditto.
3978 (_mm_mmask_i64gather_ps): Ditto.
3979 (_mm256_mmask_i64gather_pd): Ditto.
3980 (_mm_mmask_i64gather_pd): Ditto.
3981 (_mm256_mmask_i32gather_epi32): Ditto.
3982 (_mm_mmask_i32gather_epi32): Ditto.
3983 (_mm256_mmask_i32gather_epi64): Ditto.
3984 (_mm_mmask_i32gather_epi64): Ditto.
3985 (_mm256_mmask_i64gather_epi32): Ditto.
3986 (_mm_mmask_i64gather_epi32): Ditto.
3987 (_mm256_mmask_i64gather_epi64): Ditto.
3988 (_mm_mmask_i64gather_epi64): Ditto.
3989 (_mm256_i32scatter_ps): Change __addr type to void*.
3990 (_mm256_mask_i32scatter_ps): Ditto.
3991 (_mm_i32scatter_ps): Ditto.
3992 (_mm_mask_i32scatter_ps): Ditto.
3993 (_mm256_i32scatter_pd): Ditto.
3994 (_mm256_mask_i32scatter_pd): Ditto.
3995 (_mm_i32scatter_pd): Ditto.
3996 (_mm_mask_i32scatter_pd): Ditto.
3997 (_mm256_i64scatter_ps): Ditto.
3998 (_mm256_mask_i64scatter_ps): Ditto.
3999 (_mm_i64scatter_ps): Ditto.
4000 (_mm_mask_i64scatter_ps): Ditto.
4001 (_mm256_i64scatter_pd): Ditto.
4002 (_mm256_mask_i64scatter_pd): Ditto.
4003 (_mm_i64scatter_pd): Ditto.
4004 (_mm_mask_i64scatter_pd): Ditto.
4005 (_mm256_i32scatter_epi32): Ditto.
4006 (_mm256_mask_i32scatter_epi32): Ditto.
4007 (_mm_i32scatter_epi32): Ditto.
4008 (_mm_mask_i32scatter_epi32): Ditto.
4009 (_mm256_i32scatter_epi64): Ditto.
4010 (_mm256_mask_i32scatter_epi64): Ditto.
4011 (_mm_i32scatter_epi64): Ditto.
4012 (_mm_mask_i32scatter_epi64): Ditto.
4013 (_mm256_i64scatter_epi32): Ditto.
4014 (_mm256_mask_i64scatter_epi32): Ditto.
4015 (_mm_i64scatter_epi32): Ditto.
4016 (_mm_mask_i64scatter_epi32): Ditto.
4017 (_mm256_i64scatter_epi64): Ditto.
4018 (_mm256_mask_i64scatter_epi64): Ditto.
4019 (_mm_i64scatter_epi64): Ditto.
4020 (_mm_mask_i64scatter_epi64): Ditto.
4021 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
4022 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
4023 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
4024 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
4025 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
4026 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
4027 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
4028 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
4029 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
4030 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
4031 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
4032 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
4033 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
4034 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
4035 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
4036 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
4037 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
4038 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
4039 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
4040 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
4041 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
4042 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
4043 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
4044 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
4045 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
4046 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
4047 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
4048 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
4049 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
4050 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
4051 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
4052 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
4053 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
4054 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
4055 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
4056 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
4057 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
4058 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
4059 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
4060 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
4061 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
4062 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
4063 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
4064 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
4065 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
4066 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
4067 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
4068 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
4069 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
4070 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
4071 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
4072 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
4073 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
4074 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
4075 definitions accordingly.
4077 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
4078 Kuan-Lin Chen <kuanlinchentw@gmail.com>
4081 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
4084 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
4087 * ira-conflicts.c (ira_build_conflicts): Update total conflict
4088 hard regs for inner regno.
4090 2017-01-17 Martin Liska <mliska@suse.cz>
4093 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
4094 assumption and add comment.
4096 2017-01-17 Nathan Sidwell <nathan@acm.org>
4098 * ipa-visibility.c (localize_node): New function, broken out of ...
4099 (function_and_variable_visibility): ... here. Call it.
4101 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
4104 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4105 correctly set frequency of oudgoing edge.
4106 (duplicate_thread_path): Fix profile updating.
4108 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4111 * configure.ac: Add GCC_BASE_VER.
4112 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
4113 version from BASE-VER file.
4114 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
4115 (gcc.o): Depend on $(BASEVER).
4116 * common.opt (dumpfullversion): New option.
4117 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
4118 * doc/invoke.texi: Document -dumpfullversion.
4119 * doc/install.texi: Document --with-gcc-major-version-only.
4120 * configure: Regenerated.
4122 2017-01-17 Richard Biener <rguenther@suse.de>
4124 PR tree-optimization/71433
4125 * tree-vrp.c (register_new_assert_for): Merge same asserts
4126 on all incoming edges.
4127 (process_assert_insertions_for): Handle insertions at the
4130 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
4132 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
4133 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
4135 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
4138 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
4141 2017-01-17 Alan Modra <amodra@gmail.com>
4144 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
4145 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
4146 symbolic stack limit when pic.
4148 2017-01-16 Martin Sebor <msebor@redhat.com>
4150 PR tree-optimization/78608
4151 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
4153 2017-01-16 Jeff Law <law@redhat.com>
4156 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
4157 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
4158 for several include directories that may be relative to sysroot.
4159 * config/i386/x-mingw32 (gplus_includedir): Define.
4160 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
4161 (native_system_includedir): Likewise.
4162 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
4163 override if TARGET_SYSTEM_ROOT is defined.
4164 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
4166 PR tree-optimization/79090
4167 PR tree-optimization/33562
4168 PR tree-optimization/61912
4169 PR tree-optimization/77485
4170 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
4171 and computed trims into the dump file.
4173 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
4175 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
4177 2017-01-16 Jakub Jelinek <jakub@redhat.com>
4180 * gimplify.c (gimplify_init_constructor): If want_value and
4181 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
4185 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
4186 sequence. Formatting fixes.
4187 (doloop_optimize): Formatting fixes.
4190 * gcc.c (debug_level_greater_than_spec_func): New function.
4191 (static_spec_functions): Add debug-level-gt spec function.
4192 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
4194 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4195 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4196 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
4197 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
4198 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
4199 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
4201 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
4203 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
4204 QImode fixups to general and mask registers only.
4206 2017-01-16 Carl Love <cel@us.ibm.com>
4208 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
4209 for built-in functions
4210 vector signed char vec_nabs (vector signed char)
4211 vector signed short vec_nabs (vector signed short)
4212 vector signed int vec_nabs (vector signed int)
4213 vector signed long long vec_nabs (vector signed long long)
4214 vector float vec_nabs (vector float)
4215 vector double vec_nabs (vector double)
4216 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
4218 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
4219 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
4220 * doc/extend.texi: Update the documentation file for the new built-in
4223 2017-01-16 Martin Sebor <msebor@redhat.com>
4225 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
4228 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4230 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
4231 UNSPEC_VSX__XXSPLTD to require special splat handling.
4233 2017-01-16 David Malcolm <dmalcolm@redhat.com>
4236 * system.h: Poison strndup.
4238 2017-01-16 Alan Modra <amodra@gmail.com>
4241 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
4244 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
4246 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
4248 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
4250 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
4251 call recog here. Assert that INSN_CODE (insn) is non-negative.
4253 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
4256 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
4258 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
4259 in the currently scheduled RTL fragment.
4261 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
4263 PR rtl-optimization/78751
4264 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
4267 2017-01-14 Jeff Law <law@redhat.com>
4269 PR tree-optimization/79090
4270 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
4271 variable length stores.
4272 (compute_trims): Delete dead assignment to *trim_tail.
4273 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
4276 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
4278 PR rtl-optimization/78626
4279 PR rtl-optimization/78727
4280 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
4281 of a block, and split such blocks after everything else is finished.
4283 2017-01-14 Alan Modra <amodra@gmail.com>
4286 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
4287 target legitimate_combined_insn.
4288 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
4289 (rs6000_legitimate_combined_insn): New function.
4290 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
4292 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
4293 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
4294 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
4296 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
4298 * doc/frontends.texi (G++ and GCC): Remove references to Java.
4300 2017-01-13 Jeff Law <law@redhat.com>
4302 PR tree-optimization/33562
4303 PR tree-optimization/61912
4304 PR tree-optimization/77485
4305 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
4307 (delete_dead_assignment): Likewise.
4308 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
4309 statement to delete_dead_call and delete_dead_assignment.
4311 2017-01-13 David Malcolm <dmalcolm@redhat.com>
4314 * substring-locations.c (format_warning_va): Strengthen case 1 so
4315 that both endpoints of the substring must be within the format
4316 range for just the substring to be printed.
4318 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
4320 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
4321 * config/i386/i386.c (ix86_target_string): Add missing options
4322 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
4323 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
4324 flags_other and ix86_target_other to flags2_other. Display unknown
4326 (ix86_valid_target_attribute_inner_p): Add missing options and
4327 reorder options by implied ISAs, as in ix86_target_string.
4329 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
4331 * hash-table.h (hash_table::too_empty_p): New function.
4332 (hash_table::expand): Use it.
4333 (hash_table::traverse): Likewise.
4334 (hash_table::empty_slot): Use sizeof (value_type) instead of
4335 sizeof (PTR) to convert bytes to elements. Shrink the table
4336 if the current size is excessive for the current number of
4339 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
4341 * ira-costs.c (record_reg_classes): Break from the inner loop
4342 early once alt_fail is known to be true. Update outer loop
4343 handling accordingly.
4345 2017-01-13 Jeff Law <law@redhat.com>
4347 * tree-ssa-dse.c (decrement_count): New function.
4348 (increment_start_addr, maybe_trim_memstar_call): Likewise.
4349 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
4350 when we know the partially dead statement is a mem* function.
4352 PR tree-optimization/61912
4353 PR tree-optimization/77485
4354 * tree-ssa-dse.c: Include expr.h.
4355 (maybe_trim_constructor_store): New function.
4356 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
4358 PR tree-optimization/33562
4359 PR tree-optimization/61912
4360 PR tree-optimization/77485
4361 * doc/invoke.texi: Document new dse-max-object-size param.
4362 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
4363 * tree-ssa-dse.c: Include params.h.
4364 (dse_store_status): New enum.
4365 (initialize_ao_ref_for_dse): New, partially extracted from
4367 (valid_ao_ref_for_dse, normalize_ref): New.
4368 (setup_live_bytes_from_ref, compute_trims): Likewise.
4369 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
4370 (maybe_trim_partially_dead_store): Likewise.
4371 (maybe_trim_complex_store): Likewise.
4372 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
4373 Track what bytes live from the original store. Return tri-state
4374 for dead, partially dead or live.
4375 (dse_dom_walker): Add constructor, destructor and new private members.
4376 (delete_dead_call, delete_dead_assignment): New extracted from
4378 (dse_optimize_stmt): Make a member of dse_dom_walker.
4379 Use initialize_ao_ref_for_dse.
4381 PR tree-optimization/33562
4382 PR tree-optimization/61912
4383 PR tree-optimization/77485
4384 * sbitmap.h (bitmap_count_bits): Prototype.
4385 (bitmap_clear_range, bitmap_set_range): Likewise.
4386 * sbitmap.c (bitmap_clear_range): New function.
4387 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
4389 2017-01-13 Martin Liska <mliska@suse.cz>
4392 * function.c (set_cfun): Add new argument force.
4393 * function.h (set_cfun): Likewise.
4394 * ipa-inline-transform.c (inline_call): Use the function when
4395 strict alising from is dropped for function we inline to.
4397 2017-01-13 Richard Biener <rguenther@suse.de>
4399 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
4400 for dumping GIMPLE INTEGER_CSTs.
4402 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4404 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
4405 to 201112L since C++17.
4407 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
4410 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
4411 if -fsanitize=kernel-address is present.
4413 2017-01-13 Richard Biener <rguenther@suse.de>
4415 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
4416 as _Literal ( type ) number in case usual suffixes do not
4417 preserve all information.
4419 2017-01-13 Richard Biener <rguenther@suse.de>
4421 PR tree-optimization/77283
4422 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
4423 and ssa-iterators.h.
4424 (is_feasible_trace): Implement a cost model based on joiner
4427 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4430 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
4431 char or short to __float128/_Float128 directly.
4433 2017-01-12 Martin Sebor <msebor@redhat.com>
4435 to -Wformat-overflow.
4436 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
4437 (min_bytes_remaining): Same.
4438 (get_string_length): Same.
4439 (format_string): Same.
4440 (format_directive): Same.
4442 (pass_sprintf_length::handle_gimple_call): Same.
4444 2017-01-12 Jakub Jelinek <jakub@redhat.com>
4446 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
4447 info.nowrite calls with no lhs that can't throw. Return bool
4448 whether gsi_remove has been called or not.
4449 (pass_sprintf_length::handle_gimple_call): Return bool whether
4450 try_substitute_return_value called gsi_remove. Formatting fix.
4451 (pass_sprintf_length::execute): Don't use gsi_remove if
4452 handle_gimple_call returned true.
4455 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
4456 be removed due to side-effects, don't remove following barrier nor
4457 turn the successor edge into fallthru edge.
4459 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4462 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
4463 element-reversing loads and stores as not swappable.
4465 2017-01-12 Nathan Sidwell <nathan@acm.org>
4466 Nicolai Stange <nicstange@gmail.com>
4468 * combine.c (try_combine): Don't ignore result of overlap checking
4469 loop. Combine overlap & asm check into single loop.
4471 2017-01-12 Richard Biener <rguenther@suse.de>
4473 * tree-pretty-print.c (dump_generic_node): Provide -gimple
4474 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
4476 2017-01-12 Richard Biener <rguenther@suse.de>
4478 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
4479 and TS_TARGET_OPTION directly derive from TS_BASE.
4480 * tree-core.h (tree_optimization_option): Derive from tree_base.
4481 (tree_target_option): Likewise.
4483 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
4485 * config/i386/i386.c (memory_address_length): Increase len
4486 only when rip_relative_addr_p returns false.
4488 2017-01-11 Julia Koval <julia.koval@intel.com>
4490 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
4491 (OPTION_MASK_ISA_SGX_SET): New.
4492 (ix86_handle_option): Handle OPT_msgx.
4493 * config.gcc: Added sgxintrin.h.
4494 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
4495 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
4496 * config/i386/i386.c (ix86_target_string): Add -msgx.
4498 (ix86_option_override_internal): Handle new options.
4499 (ix86_valid_target_attribute_inner_p): Add sgx.
4500 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
4501 * config/i386/i386.opt: Add msgx.
4502 * config/i386/sgxintrin.h: New file.
4503 * config/i386/x86intrin.h: Add sgxintrin.h.
4505 2017-01-11 Jakub Jelinek <jakub@redhat.com>
4508 * fold-const.c (maybe_nonzero_address): Return 1 for function
4510 (tree_single_nonzero_warnv_p): Don't handle function local objects
4514 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
4517 2017-01-11 David Malcolm <dmalcolm@redhat.com>
4520 * opts.c: Include "spellcheck.h"
4521 (struct string_fragment): New struct.
4522 (struct edit_distance_traits<const string_fragment &>): New
4524 (get_closest_sanitizer_option): New function.
4525 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
4527 2017-01-11 Jakub Jelinek <jakub@redhat.com>
4529 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
4531 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
4532 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
4533 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
4534 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
4535 for initial die_offset if dwarf_split_debug_info.
4536 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
4537 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
4539 (output_skeleton_debug_sections): Formatting fix. Use
4540 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
4541 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
4543 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
4545 * config/arm/cortex-a53.md: Add bypasses for
4547 (cortex_a53_r2f): Only use for transfers.
4548 (cortex_a53_f2r): Likewise.
4549 (cortex_a53_r2f_cvt): Add reservation for conversions.
4550 (cortex_a53_f2r_cvt): Likewise.
4552 2017-01-11 Tamar Christina <tamar.christina@arm.com>
4554 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
4555 to all inlined functions, change static to extern.
4557 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
4560 * config/arm/arm.c (legitimize_pic_address): Handle reference to
4562 (arm_assemble_integer): Likewise.
4564 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
4566 * config.gcc: Use new awk script to check CPU, FPU and architecture
4567 parameters for --with-... options.
4568 * config/arm/parsecpu.awk: New file
4569 * config/arm/arm-cpus.in: New file.
4570 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
4572 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
4574 * config/arm/t-arm: Update dependency rules.
4575 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
4576 of processing .def files.
4577 * config/arm/genopt.sh: Deleted.
4578 * config/arm/gentune.sh: Deleted.
4579 * config/arm/arm-cores.def: Deleted.
4580 * config/arm/arm-arches.def: Deleted.
4581 * config/arm/arm-fpus.def: Deleted.
4582 * config/arm/arm-tune.md: Regenerated.
4583 * config/arm/arm-tables.opt: Regenerated.
4584 * config/arm/arm-cpu.h: New generated file.
4585 * config/arm/arm-cpu-data.h: New generated file.
4586 * config/arm/arm-cpu-cdata.h: New generated file.
4588 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
4591 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
4593 (input_varpool_node): Unpack dynamically_initialized bit.
4595 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
4597 PR rtl-optimization/79032
4598 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
4599 the alignment of the adjusted memory reference against that of MODE,
4600 instead of the alignment of the original memory reference.
4602 2017-01-11 Martin Jambor <mjambor@suse.cz>
4604 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
4606 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
4607 decorated functions.
4609 2017-01-11 Richard Biener <rguenther@suse.de>
4611 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
4612 set range/nonnull info for PHI results. Do not set it on
4613 stmts marked for removal.
4615 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
4617 * expr.c (store_field): In the bitfield case, fetch the return value
4618 from the registers before applying a single big-endian adjustment.
4619 Always do a final load for a BLKmode value not larger than a word.
4621 2017-01-10 David Malcolm <dmalcolm@redhat.com>
4624 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4625 that we correctly handle column numbers greater than
4626 LINE_MAP_MAX_COLUMN_NUMBER.
4628 2017-01-10 Martin Sebor <msebor@redhat.com>
4631 * gimple-ssa-sprintf.c (get_destination_size): Call
4632 {init,fini}object_sizes.
4633 * tree-object-size.c (addr_object_size): Adjust.
4634 (pass_through_call): Adjust.
4635 (pass_object_sizes::execute): Adjust.
4636 * tree-object-size.h (fini_object_sizes): Declare.
4638 2017-01-10 Martin Sebor <msebor@redhat.com>
4640 PR tree-optimization/78775
4641 * builtins.c (get_size_range): Move...
4642 * calls.c: ...to here.
4643 (alloc_max_size): Accept zero argument.
4644 (operand_signed_p): Remove.
4645 (maybe_warn_alloc_args_overflow): Call get_size_range.
4646 * calls.h (get_size_range): Declare.
4648 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
4650 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
4651 from TI's devices.csv file as of September 2016.
4652 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
4654 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
4656 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
4657 * doc/invoke.texi: Likewise.
4658 * doc/md.texi: Likewise.
4659 * doc/objc.texi: Likewise.
4661 2017-01-10 Joshua Conner <joshconner@google.com>
4663 * config/arm/fuchsia-elf.h: New file.
4664 * config/fuchsia.h: New file.
4665 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
4666 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
4668 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
4670 2016-01-10 Richard Biener <rguenther@suse.de>
4672 PR tree-optimization/79034
4673 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4674 Propagate out degenerate PHIs in the joiner.
4676 2017-01-10 Martin Liska <mliska@suse.cz>
4678 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
4679 (sort_congruence_classes_by_decl_uid): Likewise.
4680 (sort_congruence_class_groups_by_decl_uid): Likewise.
4681 (sem_item_optimizer::merge_classes): Sort class, groups in these
4682 classes and members in the groups by DECL_UID of declarations.
4683 This would make merge operations stable.
4685 2017-01-10 Martin Liska <mliska@suse.cz>
4687 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
4688 usage of m_classes_vec.
4689 (sem_item_optimizer::~sem_item_optimizer): Likewise.
4690 (sem_item_optimizer::get_group_by_hash): Likewise.
4691 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4692 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
4693 (sem_item_optimizer::verify_classes): Likewise.
4694 (sem_item_optimizer::process_cong_reduction): Likewise.
4695 (sem_item_optimizer::dump_cong_classes): Likewise.
4696 (sem_item_optimizer::merge_classes): Likewise.
4697 * ipa-icf.h (congruence_class_hash): Rename from
4698 congruence_class_group_hash. Remove declaration of m_classes_vec.
4700 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
4702 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
4703 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
4704 * config.gcc: Add avx512vpopcntdqintrin.h.
4705 * config/i386/avx512vpopcntdqintrin.h: New.
4706 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
4707 * config/i386/i386-builtin-types.def: Add new types.
4708 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
4709 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
4710 __builtin_ia32_vpopcountq_v8di_mask): New.
4711 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4712 __AVX512VPOPCNTDQ__.
4713 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
4714 (PTA_AVX512VPOPCNTDQ): Define.
4715 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
4716 TARGET_AVX512VPOPCNTDQ_P): Define.
4717 * config/i386/i386.opt: Add mavx512vpopcntdq.
4718 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
4719 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
4721 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
4724 * predict.def (PRED_CALL): Set to 67.
4726 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
4728 * expr.c (store_field): In the bitfield case, if the value comes from
4729 a function call and is of an aggregate type returned in registers, do
4730 not modify the field mode; extract the value in all cases if the mode
4731 is BLKmode and the size is not larger than a word.
4733 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
4736 * config/i386/cpuid.h: Fix undefined behavior.
4738 2017-01-04 Jeff Law <law@redhat.com>
4740 PR tree-optimization/79007
4741 PR tree-optimization/67955
4742 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
4743 conservative for pt.null when flag_non_call_exceptions is on.
4745 2017-01-09 Jakub Jelinek <jakub@redhat.com>
4747 PR translation/79019
4748 PR translation/79020
4749 * params.def (PARAM_INLINE_MIN_SPEEDUP,
4750 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
4751 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
4753 * config/avr/avr.opt (maccumulate-args): Likewise.
4754 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
4755 * common.opt (freport-bug): Likewise.
4756 * cif-code.def (CIF_FINAL_ERROR): Likewise.
4757 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
4758 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
4759 translatable string.
4760 * config/i386/i386.c (function_value_32): Likewise.
4761 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
4762 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
4764 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
4765 * common/config/msp430/msp430-common.c (msp430_handle_option):
4767 * symtab.c (symtab_node::verify_base): Likewise.
4768 * opts.c (set_debug_level): Likewise.
4769 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
4770 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4771 missing whitespace to translatable strings.
4772 * config/avr/avr.md (bswapsi2): Fix typo in comment.
4773 * config/sh/superh.h: Likewise.
4774 * config/i386/xopintrin.h: Likewise.
4775 * config/i386/znver1.md: Likewise.
4776 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
4777 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
4778 * double-int.h (struct double_int): Likewise.
4779 * double-int.c (div_and_round_double): Likewise.
4780 * wide-int.cc: Likewise.
4781 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
4782 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4783 * cfgcleanup.c (crossjumps_occured): Renamed to ...
4784 (crossjumps_occurred): ... this.
4785 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
4788 PR tree-optimization/78899
4789 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
4790 returning bool return struct loop *, NULL for failure and the new
4792 (versionable_outer_loop_p): Don't version outer loop if it has
4793 dont_vectorized bit set.
4794 (tree_if_conversion): When versioning outer loop, ensure
4795 tree_if_conversion is performed also on the inner loop of the
4796 non-vectorizable outer loop copy.
4797 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
4798 LOOP_VECTORIZED in inner loop of the scalar outer loop and
4799 prevent vectorization of it.
4800 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
4801 the outer loop vectorization of the non-scalar version is attempted
4802 before vectorization of the inner loop in scalar version. If
4803 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
4804 vectorization of its inner loop.
4805 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
4806 has 2 inner loops, rename also on edges from bb whose single pred
4807 is outer_loop->header. Fix typo in function comment.
4809 2017-01-09 Martin Sebor <msebor@redhat.com>
4812 * asan.c (asan_emit_stack_protection): Increase local buffer size
4813 to avoid snprintf truncation warning.
4815 2017-01-09 Andrew Pinski <apinski@cavium.com>
4817 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
4818 to reference thunderx2t99 for the tuning structure
4819 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
4821 (thunderx2t99_extra_costs): This.
4822 * config/aarch64/aarch64-tune.md: Regenerate.
4823 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
4824 (vulcan_addrcost_table): This.
4825 (vulcan_regmove_cost): Rename to ...
4826 (thunderx2t99_regmove_cost): This.
4827 (vulcan_vector_cost): Rename to ...
4828 (thunderx2t99_vector_cost): this.
4829 (vulcan_branch_cost): Rename to ...
4830 (thunderx2t99_branch_cost): This.
4831 (vulcan_tunings): Rename to ...
4832 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
4833 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
4835 2017-01-09 Martin Jambor <mjambor@suse.cz>
4839 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
4840 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
4841 (propagate_vr_accross_jump_function): Use the above function for all
4842 value range computations for pass-through jump functions and type
4843 converasion from explicit value range values.
4844 (ipcp_propagate_stage): Do not attempt to deduce types of formal
4845 parameters from TYPE_ARG_TYPES.
4846 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
4847 (ipa_write_node_info): Stream type of the actual argument.
4848 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
4850 2017-01-09 Martin Liska <mliska@suse.cz>
4853 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
4854 (lookup_compiler): Do not show error message with have_E.
4856 2017-01-09 Jakub Jelinek <jakub@redhat.com>
4858 PR tree-optimization/78938
4859 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
4860 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
4861 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
4862 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
4865 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4867 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
4870 2017-01-09 Richard Biener <rguenther@suse.de>
4872 PR tree-optimization/78997
4873 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
4874 name condition properly.
4876 2017-01-09 Richard Biener <rguenther@suse.de>
4879 * dwarf2out.c (is_cxx): New overload with context.
4880 (is_naming_typedef_decl): Use it.
4882 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
4884 * invoke.texi (Option Summary): Correct spacing in option lists
4885 and add line breaks to fix over-long lines.
4887 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
4891 * extend.texi (Common Variable Attributes): Add xref to GCC
4892 Internals manual to explain mode attribute keywords.
4894 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
4897 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
4898 and Preprocessor Options.
4899 (Options for Linking): Document -pthread here....
4900 (RS/6000 and PowerPC Options): ...not here.
4901 (Solaris 2 Options): ...or here.
4902 * doc/cppopts.texi: Document -pthread.
4904 2017-01-08 Martin Sebor <msebor@redhat.com>
4907 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
4908 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
4909 New member functions.
4910 (format_directive): Used them.
4912 (pass_sprintf_length::handle_gimple_call): Same.
4913 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
4914 to avoid truncation for any argument.
4915 (extract_affine_mul): Same.
4916 * tree.c (get_file_function_name): Same.
4918 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
4921 * predict.def (PRED_INDIR_CALL): Set to 86.
4923 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
4925 PR preprocessor/54124
4926 * doc/cppopts.texi: Reformat -d subtable to list the full name
4927 of the options. Add cross-reference to the docs for the general
4928 compiler -d options.
4929 * doc/invoke.texi (Developer Options): Add cross-reference to the
4930 preprocessor-specific -d option documentation.
4932 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
4934 PR preprocessor/13498
4935 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
4936 redudant material, and reflect new command-line options.
4937 (System Headers): Likewise.
4939 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
4941 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
4942 -isystem, and -idirafter. Copy-edit.
4943 * doc/cppopts.texi: Copy-edit. Remove contradiction about
4944 default for -ftrack-macro-expansion. Delete obsolete and
4945 badly-formatted implementation details about -fdebug-cpp output.
4946 * doc/cppwarnopts.texi: Copy-edit.
4948 2017-01-07 David Malcolm <dmalcolm@redhat.com>
4951 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4952 that the transition from a max line width >= 1<<10 to narrower
4953 lines works correctly.
4955 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
4957 * doc/options.texi (PerFunction): New.
4958 * opt-functions.awk (switch_flags): Map both Optimization and
4959 PerFunction to CL_OPTIMIZATION.
4960 * opth-gen.awk: Test for PerFunction flag along with
4962 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
4963 it only when the latter is present. Skip those that don't in
4964 the hash function generator.
4965 * common.opt (fvar-tracking): Mark as PerFunction instead of
4967 (fvar-tracking-assignments): Likewise.
4968 (fvar-tracking-assignments-toggle): Likewise.
4969 (fvar-tracking-uninit): Likewise.
4971 2017-01-07 Jakub Jelinek <jakub@redhat.com>
4973 PR translation/79018
4974 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
4977 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
4980 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
4981 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
4982 TARGET_LONG_JUMP_TABLE_OFFSETS.
4983 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4984 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4985 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
4986 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
4987 * config/m68k/m68k.md (tablejump expander): Likewise.
4988 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
4989 TARGET_LONG_JUMP_TABLE_OFFSETS.
4990 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
4991 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
4993 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4994 David Holsgrove <david.holsgrove@xilinx.com>
4996 * common/config/microblaze/microblaze-common.c
4997 (TARGET_EXCEPT_UNWIND_INFO): Remove.
4998 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
5000 * config/microblaze/microblaze.c (microblaze_must_save_register)
5001 (microblaze_expand_epilogue, microblaze_return_addr): Handle
5003 (microblaze_eh_return): New function.
5004 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
5005 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
5006 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
5007 * config/microblaze/microblaze.md (eh_return): New pattern.
5009 2017-01-06 Jakub Jelinek <jakub@redhat.com>
5011 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
5012 GCC_DIAGNOSTIC_STRINGIFY): Define.
5014 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
5016 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5018 * config/arm/arm.md (<mcrr>): New.
5020 * config/arm/arm.c (arm_arch5te): New.
5021 (arm_option_override): Set arm_arch5te.
5022 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
5024 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
5025 (arm_mcrr_qualifiers): ... this. New.
5026 (MRRC_QUALIFIERS): Define to...
5027 (arm_mrrc_qualifiers): ... this. New.
5028 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
5030 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
5031 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
5032 (MRRCI, mrrc, MRRC): New.
5033 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
5034 VUNSPEC_MRRC2): New.
5036 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5038 * config/arm/arm.md (<mcr>): New.
5040 * config/arm/arm.c (arm_coproc_builtin_available): Add
5041 support for mcr, mrc, mcr2 and mrc2.
5042 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
5043 (arm_mcr_qualifiers): ... this. New.
5044 (MRC_QUALIFIERS): Define to ...
5045 (arm_mrc_qualifiers): ... this. New.
5046 (MCR_QUALIFIERS): Define to ...
5047 (arm_mcr_qualifiers): ... this. New.
5048 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
5050 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
5051 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
5052 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
5055 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5057 * config/arm/arm.md (*ldc): New.
5061 * config/arm/arm.c (arm_coproc_builtin_available): Add
5062 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
5063 (arm_coproc_ldc_stc_legitimate_address): New.
5064 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
5065 'qualifier_const_pointer'.
5066 (LDC_QUALIFIERS): Define to...
5067 (arm_ldc_qualifiers): ... this. New.
5068 (STC_QUALIFIERS): Define to...
5069 (arm_stc_qualifiers): ... this. New.
5070 * config/arm/arm-protos.h
5071 (arm_coproc_ldc_stc_legitimate_address): New.
5072 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
5073 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
5074 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
5075 stc2, stcl, stc2l): New.
5076 * config/arm/constraints.md (Uz): New.
5077 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
5078 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
5079 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
5080 VUNSPEC_STC2L): New.
5082 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5084 * config/arm/arm.md (<cdp>): New.
5085 * config/arm/arm.c (neon_const_bounds): Rename this ...
5086 (arm_const_bounds): ... this.
5087 (arm_coproc_builtin_available): New.
5088 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
5089 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
5090 (CDP_QUALIFIERS): Define to...
5091 (arm_cdp_qualifiers): ... this. New.
5093 (arm_expand_builtin_args): Add case for 6 arguments.
5094 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
5095 (arm_const_bounds): ... this.
5096 (arm_coproc_builtin_available): New.
5097 * config/arm/arm_acle.h (__arm_cdp): New.
5099 * config/arm/arm_acle_builtins.def (cdp): New.
5101 * config/arm/iterators.md (CDPI,CDP,cdp): New.
5102 * config/arm/neon.md: Rename all 'neon_const_bounds' to
5104 * config/arm/types.md (coproc): New.
5105 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
5106 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
5107 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
5108 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
5110 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5112 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
5113 (UBINOP_QUALIFIERS): New.
5115 (acle_builtin_data): New. Change comment.
5116 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
5117 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
5118 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
5119 arm_acle_builtins.def.
5120 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
5121 (arm_init_acle_builtins): New.
5122 (CRC32_BUILTIN): Remove.
5123 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
5124 crc32cb, crc32ch and crc32cw.
5125 (arm_init_crc32_builtins): Remove.
5126 (arm_init_builtins): Use arm_init_acle_builtins rather
5127 than arm_init_crc32_builtins.
5128 (arm_expand_acle_builtin): New.
5129 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
5130 * config/arm/arm_acle_builtins.def: New.
5132 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5134 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
5135 (arm_builtin_datum): ... this.
5136 (arm_init_neon_builtin): Rename to ...
5137 (arm_init_builtin): ... this. Add a new parameters PREFIX
5138 and USE_SIG_IN_NAME.
5139 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
5140 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
5141 'arm_builtin_datum'.
5142 (arm_init_vfp_builtins): Likewise.
5143 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
5144 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
5145 (arm_expand_neon_args): Rename to ...
5146 (arm_expand_builtin_args): ... this. Rename builtin_arg
5147 enum values and differentiate between ARG_BUILTIN_MEMORY
5148 and ARG_BUILTIN_NEON_MEMORY.
5149 (arm_expand_neon_builtin_1): Rename to ...
5150 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
5151 values, arm_expand_builtin_args and add bool parameter NEON.
5152 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
5153 (arm_expand_vfp_builtin): Likewise.
5154 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
5156 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
5159 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
5160 * predict.c (tree_estimate_probability_bb): Reverse direction of
5161 polymorphic call predictor.
5163 2017-01-06 David Malcolm <dmalcolm@redhat.com>
5165 * passes.c (execute_one_pass): Split out pass-skipping logic into...
5166 (determine_pass_name_match): ...this new function and...
5167 (should_skip_pass_p): ...this new function.
5169 2017-01-06 Nathan Sidwell <nathan@acm.org>
5171 * ipa-visibility.c (function_and_variable_visibility): Reformat
5172 comments and long lines. Remove extrneous if.
5173 * symtab.c (symtab_node::make_decl_local): Fix code format.
5174 (symtab_node::set_section_for_node): Fix comment typo.
5176 2017-01-06 Martin Liska <mliska@suse.cz>
5179 * lra-constraints.c: Rename invariant to lra_invariant.
5180 * predict.c (set_even_probabilities): Initialize e to NULL.
5182 2017-01-05 Martin Sebor <msebor@redhat.com>
5184 PR tree-optimization/78910
5185 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
5186 (format_integer): Correct off-by-one error in the handling
5187 of precision with negative numbers in signed conversions..
5189 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
5191 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
5193 2017-01-05 Jakub Jelinek <jakub@redhat.com>
5195 PR tree-optimization/71016
5196 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
5197 factor_out_conditional_conversion. Formatting fix.
5198 (factor_out_conditional_conversion): Add cond_stmt argument.
5199 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
5200 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
5203 2017-01-05 David Malcolm <dmalcolm@redhat.com>
5205 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
5206 read-rtl-function.o, and selftest-rtl.o.
5207 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
5208 (selftest::aarch64_test_loading_full_dump): New function.
5209 (selftest::aarch64_run_selftests): New function.
5210 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
5211 selftest::aarch64_run_selftests.
5212 * config/i386/i386.c
5213 (selftest::ix86_test_loading_dump_fragment_1): New function.
5214 (selftest::ix86_test_loading_call_insn): New function.
5215 (selftest::ix86_test_loading_full_dump): New function.
5216 (selftest::ix86_test_loading_unspec): New function.
5217 (selftest::ix86_run_selftests): Call the new functions.
5218 * emit-rtl.c (maybe_set_max_label_num): New function.
5219 * emit-rtl.h (maybe_set_max_label_num): New decl.
5220 * function.c (instantiate_decls): Guard call to
5221 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
5222 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
5224 * gensupport.c (gen_reader::gen_reader): Pass "false"
5225 for new "compact" param of rtx_reader.
5226 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
5227 rather than an empty string for NULL strings.
5228 * read-md.c: Potentially include config.h rather than bconfig.h.
5229 Wrap include of errors.h with #ifdef GENERATOR_FILE.
5230 (have_error): New global, copied from errors.c.
5231 (md_reader::read_name): Rename to...
5232 (md_reader::read_name_1): ...this, adding "out_loc" param,
5233 and converting "missing name or number" to returning false, rather
5235 (md_reader::read_name): Reimplement in terms of read_name_1.
5236 (md_reader::read_name_or_nil): New function.
5237 (md_reader::read_string): Handle "(nil)" by returning NULL.
5238 (md_reader::md_reader): Add new param "compact".
5239 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
5240 (md_reader::read_file): New method.
5241 * read-md.h (md_reader::md_reader): Add new param "compact".
5242 (md_reader::read_file): New method.
5243 (md_reader::is_compact): New accessor.
5244 (md_reader::read_name): Convert return type from void to file_location.
5245 (md_reader::read_name_or_nil): New decl.
5246 (md_reader::read_name_1): New decl.
5247 (md_reader::m_compact): New field.
5248 (noop_reader::noop_reader): Pass "false" for new "compact" param
5250 (rtx_reader::rtx_reader): Add new "compact" param.
5251 (rtx_reader::read_rtx_operand): Make virtual and convert return
5252 type from void to rtx.
5253 (rtx_reader::read_until): New decl.
5254 (rtx_reader::handle_any_trailing_information): New virtual function.
5255 (rtx_reader::postprocess): New virtual function.
5256 (rtx_reader::finalize_string): New virtual function.
5257 (rtx_reader::m_in_call_function_usage): New field.
5258 (rtx_reader::m_reuse_rtx_by_id): New field.
5259 * read-rtl-function.c: New file.
5260 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
5261 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
5262 (selftest::verify_three_block_rtl_cfg): New decl.
5263 * read-rtl-function.h: New file.
5264 * read-rtl.c: Potentially include config.h rather than bconfig.h.
5265 For host, include function.h, memmodel.h, and emit-rtl.h.
5266 (one_time_initialization): New function.
5267 (struct compact_insn_name): New struct.
5268 (compact_insn_names): New array.
5269 (find_code): Handle insn codes in compact dumps.
5270 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
5271 (bind_subst_iter_and_attr): Likewise.
5272 (add_condition_to_string): Likewise.
5273 (add_condition_to_rtx): Likewise.
5274 (apply_attribute_uses): Likewise.
5275 (add_current_iterators): Likewise.
5276 (apply_iterators): Likewise.
5277 (initialize_iterators): Guard usage of apply_subst_iterator with
5278 #ifdef GENERATOR_FILE.
5279 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
5280 (md_reader::read_mapping): Likewise.
5281 (add_define_attr_for_define_subst): Likewise.
5282 (add_define_subst_attr): Likewise.
5283 (read_subst_mapping): Likewise.
5284 (check_code_iterator): Likewise.
5285 (rtx_reader::read_rtx): Likewise. Move one-time initialization
5287 (one_time_initialization): New function.
5288 (rtx_reader::read_until): New method.
5289 (read_flags): New function.
5290 (parse_reg_note_name): New function.
5291 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
5292 Handle reuse_rtx ids.
5293 Wrap iterator lookup within #ifdef GENERATOR_FILE.
5294 Add parsing support for RTL dumps, mirroring the special-cases in
5295 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
5296 values, and calling handle_any_trailing_information.
5297 (rtx_reader::read_rtx_operand): Convert return type from void
5298 to rtx, returning return_rtx. Handle case 'e'. Call
5299 finalize_string on XSTR and XTMPL fields.
5300 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
5301 "(nil)" values were omitted. Call the postprocess vfunc on the
5303 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
5304 class ctor. Initialize m_in_call_function_usage. Call
5305 one_time_initialization.
5306 * rtl-tests.c (selftest::test_uncond_jump): Call
5307 set_new_first_and_last_insn.
5308 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
5309 * selftest-rtl.c: New file.
5310 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
5311 (selftest::get_insn_by_uid): New decl.
5312 * selftest-run-tests.c (selftest::run_tests): Call
5313 read_rtl_function_c_tests.
5314 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
5315 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
5318 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
5320 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
5321 operands in a special way. Assert that pos+len <= mode precision.
5323 2017-01-05 Jakub Jelinek <jakub@redhat.com>
5325 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
5326 3 argument Alias with unlimited for the negative form.
5327 (fno-vect-cost-model): Removed.
5329 2017-01-05 Martin Liska <mliska@suse.cz>
5331 * hsa-gen.c (gen_hsa_divmod): New function.
5332 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
5334 2017-01-05 Martin Liska <mliska@suse.cz>
5337 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
5340 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5342 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
5343 small constant length operands.
5345 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5347 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
5348 between loop iterations.
5350 2017-01-05 Martin Liska <mliska@suse.cz>
5353 * gimplify.c (gimplify_decl_expr): Compare to
5354 asan_poisoned_variables instread of checking flags.
5355 (gimplify_target_expr): Likewise.
5356 (gimplify_expr): Likewise.
5357 (gimplify_function_tree): Conditionally initialize
5358 asan_poisoned_variables.
5360 2017-01-04 Jeff Law <law@redhat.com>
5362 PR tree-optimizatin/78812
5363 * rtl.h (contains_mem_rtx_p): Prototype.
5364 * ifcvt.c (containts_mem_rtx_p): Move from here to...
5365 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
5366 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
5367 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
5368 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
5370 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5372 * input.c (assert_char_at_range): Default-initialize actual_range.
5374 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5376 * df-scan.c (df_ref_create_structure): Make regno unsigned,
5377 to match the caller.
5379 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5381 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
5382 insns after final jump in test to emit dummy move.
5384 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5386 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
5387 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
5389 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5391 * multiple_target.c (create_dispatcher_calls): Init e_next.
5392 * tree-ssa-loop-split.c (split_loop): Init border.
5393 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
5396 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5401 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
5402 (altivec_register_operand): Do not return true if the operand
5403 contains a SUBREG mixing SImode and SFmode.
5404 (vsx_register_operand): Likewise.
5405 (vsx_reg_sfsubreg_ok): New predicate.
5406 (vfloat_operand): Do not return true if the operand contains a
5407 SUBREG mixing SImode and SFmode.
5408 (vint_operand): Likewise.
5409 (vlogical_operand): Likewise.
5410 (gpc_reg_operand): Likewise.
5411 (int_reg_operand): Likewise.
5412 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
5413 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
5414 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
5416 (rs6000_emit_move_si_sf_subreg): New helper function.
5417 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
5418 fixup SUBREGs involving SImode and SFmode.
5419 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
5420 numbers for the new peephole2 optimization.
5421 (peephole2 for SFmode unions): New peephole2 to optimize cases in
5422 the GLIBC math library that do AND/IOR/XOR operations on single
5423 precision floating point.
5424 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
5425 target macros to say whether we need to avoid SUBREGs mixing
5427 (TARGET_ALLOW_SF_SUBREG): Likewise.
5428 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
5429 (UNSPEC_SI_FROM_SF): Likewise.
5430 (iorxor): Change spacing.
5431 (and_ior_xor): New iterator for AND, IOR, and XOR.
5432 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
5433 (movdi_from_sf_zero_ext): Likewise.
5434 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
5435 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
5436 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
5437 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
5438 (fms<mode>4): Likewise.
5439 (fnma<mode>4): Likewise.
5440 (fnms<mode>4): Likewise.
5441 (nfma<mode>4): Likewise.
5442 (nfms<mode>4): Likewise.
5444 2017-01-04 Marek Polacek <polacek@redhat.com>
5447 * doc/invoke.texi: Document -Wpointer-compare.
5449 2017-01-04 Jakub Jelinek <jakub@redhat.com>
5451 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
5454 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
5455 descriptions for -gdwarf-5 and emit them as uleb128 instead of
5458 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
5461 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
5462 documentation of the powerpc_popcntb_ok attribute.
5463 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5464 code to issue warning messages if a requested CPU configuration is
5465 not supported by the binary (assembler and loader) toolchain.
5466 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
5467 made to define a built-in function that has been disabled.
5468 (paired_init_builtins): Add assertion to prevent ICE if attempt is
5469 made to define a built-in function that has been disabled.
5470 (altivec_init_builtins): Add comment explaining why definition
5471 of the DST built-in functions is not preceded by an assertion
5472 check. Add assertions to prevent ICE if attempts are made to
5473 define an altivec predicate or an abs* built-in function that has
5475 (htm_init_builtins): Add comment explaining why definition of the
5476 htm built-in functions is not preceded by an assertion check.
5478 2017-01-04 Jeff Law <law@redhat.com>
5480 PR tree-optimizatin/67955
5481 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
5482 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
5483 the points-to solution does not include pt_null. Use DECL_PT_UID
5486 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
5488 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
5489 Use gen_int_mode instead of gen_lopwart for const_int operands.
5491 2017-01-04 Jakub Jelinek <jakub@redhat.com>
5493 PR tree-optimization/71563
5494 * match.pd: Simplify X << Y into X if Y is known to be 0 or
5495 out of range value - has low bits known to be zero.
5497 2017-01-04 Alan Modra <amodra@gmail.com>
5499 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
5500 * configure: Regenerate.
5501 * config.in: Regenerate.
5503 2017-01-04 Jakub Jelinek <jakub@redhat.com>
5506 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
5507 a substring of the message, but strcmp with the whole message. Ifdef
5508 ENABLE_NLS, translate the message first using dgettext.
5510 2017-01-03 Jeff Law <law@redhat.com>
5512 PR tree-optimizatin/78856
5513 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
5514 (mark_threaded_blocks): Remove code to truncate thread paths that
5515 cross multiple loop headers. Instead invalidate the cached loop
5516 iteration information and handle case of a thread path walking
5517 into an irreducible region.
5519 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5522 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
5523 assertions. Add support for doing the signbit if the IEEE 128-bit
5524 floating point value is in a GPR.
5525 * config/rs6000/rs6000.md (Fsignbit): Delete.
5526 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
5527 Update the length attribute if the value is in a GPR.
5528 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
5529 the sign or zero extension instruction, since the value is always 0/1.
5530 (signbit<mode>2_dm2): Delete using <Fsignbit>.
5533 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
5534 extracting SImode to a GPR register so that we can generate a
5535 store, limit the vector to be in a traditional Altivec register
5536 for the vextuwrx instruction.
5538 2017-01-03 Ian Lance Taylor <iant@google.com>
5540 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
5542 2017-01-03 Martin Sebor <msebor@redhat.com>
5544 PR tree-optimization/78696
5545 * gimple-ssa-sprintf.c (format_floating): Correct handling of
5546 precision. Use MPFR for %f for greater fidelity. Correct handling
5548 (pass_sprintf_length::compute_format_length): Set width and precision
5549 specified by asrerisk to void_node for vararg functions.
5550 (try_substitute_return_value): Adjust dump output.
5552 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
5554 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
5556 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
5558 * doc/invoke.texi (SPARC options): Document -mlra as the default.
5559 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
5560 -mlra/-mno-lra was passed to the compiler.
5562 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
5564 PR rtl-optimization/65618
5565 * emit-rtl.c (try_split): Move initialization of "before" and
5566 "after" to just before the call to emit_insn_after_setloc.
5568 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
5570 * doc/md.texi (Standard Names): Remove reference to Java frontend.
5572 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
5574 * dwarf2out.c (gen_enumeration_type_die): When
5575 -gno-strict-dwarf, add a DW_AT_encoding attribute.
5577 2017-01-03 Jakub Jelinek <jakub@redhat.com>
5579 PR tree-optimization/78965
5580 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
5581 Change first argument from const call_info & to call_info &. For %n
5582 set info.nowrite to false.
5585 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
5586 possibly throwing calls.
5588 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
5589 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
5590 and fns handling, rather than in a separate case SSA_NAME.
5592 2017-01-02 Jeff Law <law@redhat.com>
5594 * config/darwin-driver.c (darwin_driver_init): Const-correctness
5595 fixes for first_period and second_period variables.
5597 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
5600 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
5601 (*insvqi_1): New insn pattern.
5602 (*insvqi_1_mem_rex64): Ditto.
5604 (*insvqi_3): Rename from *insvqi.
5606 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
5608 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5610 * doc/cfg.texi (Edges): Remove reference to Java.
5611 (Maintaining the CFG): Ditto.
5613 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
5616 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
5617 transparent aliases.
5619 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
5622 * predict.def (PRED_CALL): Update hitrate.
5623 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
5624 * predict.c (tree_estimate_probability_bb): Split CALL predictor
5625 into direct/indirect/polymorphic variants.
5627 2017-01-01 Jakub Jelinek <jakub@redhat.com>
5629 Update copyright years.
5631 * gcc.c (process_command): Update copyright notice dates.
5632 * gcov-dump.c (print_version): Ditto.
5633 * gcov.c (print_version): Ditto.
5634 * gcov-tool.c (print_version): Ditto.
5635 * gengtype.c (create_file): Ditto.
5636 * doc/cpp.texi: Bump @copying's copyright year.
5637 * doc/cppinternals.texi: Ditto.
5638 * doc/gcc.texi: Ditto.
5639 * doc/gccint.texi: Ditto.
5640 * doc/gcov.texi: Ditto.
5641 * doc/install.texi: Ditto.
5642 * doc/invoke.texi: Ditto.
5644 Copyright (C) 2017 Free Software Foundation, Inc.
5646 Copying and distribution of this file, with or without modification,
5647 are permitted in any medium without royalty provided the copyright
5648 notice and this notice are preserved.