1 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4 * dwarf2out.c (decls_for_scope): Ignore declarations of
5 current_function_decl in BLOCK_NONLOCALIZED_VARS.
7 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
10 * ipa-visibility.c (non_local_p): Fix typos.
11 (localize_node): When localizing symbol in same comdat group,
12 dissolve the group only when we know external symbols are going
14 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
16 2017-04-12 Jakub Jelinek <jakub@redhat.com>
18 PR tree-optimization/79390
19 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
20 order does not result in usable sequence, retry with reversed operand
26 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
27 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
28 op0 instead of fold_convert_loc (loc, type, arg0).
30 2017-04-12 Jeff Law <law@redhat.com>
32 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
33 has a delay slot in the generated code.
35 * config/cris/cris.md (cris_preferred_reload_class): Return
36 GENNONACR_REGS rather than GENERAL_REGS.
38 2017-04-12 Jakub Jelinek <jakub@redhat.com>
41 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
42 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
43 signedness of the result type.
45 2017-04-12 Richard Biener <rguenther@suse.de>
46 Jeff Law <law@redhat.com>
48 PR tree-optimization/80359
49 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
50 trim stores to TARGET_MEM_REFs.
52 2017-04-12 Richard Biener <rguenther@suse.de>
54 PR tree-optimization/79390
55 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
56 threading case even more.
58 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
61 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
62 for quad_address_p for TImode, instead of just not indexed_address.
64 2017-04-12 Richard Biener <rguenther@suse.de>
65 Bernd Edlinger <bernd.edlinger@hotmail.de>
68 * alias.c (component_uses_parent_alias_set_from): Handle
69 TYPE_TYPELESS_STORAGE.
70 (get_alias_set): Likewise.
71 * tree-core.h (tree_type_common): Add typeless_storage flag.
72 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
73 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
74 for types containing members with TYPE_TYPELESS_STORAGE.
75 (place_field): Likewise.
76 (layout_type): Likewise for ARRAY_TYPE.
77 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
78 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
79 TYPE_TYPELESS_STORAGE.
80 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
82 2017-04-12 Jakub Jelinek <jakub@redhat.com>
85 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
86 first argument to type.
88 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
92 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
93 CONST0_RTX (mode) rather than const0_rtx where appropriate.
94 (rs6000_expand_binop_builtin): Likewise.
95 (rs6000_expand_ternop_builtin): Likewise; also add missing
96 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
98 * doc/extend.texi: Document that vec_xxpermdi's third argument
101 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
103 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
104 Use shift_const cost parameter when calculating gain of STV shifts.
106 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
108 PR rtl-optimization/70478
109 * lra-constraints.c (process_alt_operands): Check memory for
110 disfavoring memory insn operand.
112 2017-04-11 Jakub Jelinek <jakub@redhat.com>
115 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
116 left shift in unsigned HOST_WIDE_INT type.
118 PR rtl-optimization/80385
119 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
120 (not (neg X)) into (plus X -1) for complex or non-integral modes.
123 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
124 if they have any depend clauses.
126 2017-04-11 Martin Liska <mliska@suse.cz>
129 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
130 * ipa-split.c (split_function): Create a local comdat symbol
131 if caller is in a comdat group.
133 2017-04-11 Martin Liska <mliska@suse.cz>
136 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
139 2017-04-11 Martin Sebor <msebor@redhat.com>
142 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
143 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
145 (directive::set_width, directive::set_precision, format_character):
147 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
150 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
153 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
154 conflict, set target->arch_name instead of target->cpu_name.
156 2017-04-11 Richard Biener <rguenther@suse.de>
158 PR tree-optimization/80374
159 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
160 build_zero_cst, remove fold_convertible_p check again.
162 2017-04-11 Martin Liska <mliska@suse.cz>
165 * ubsan.c (instrument_object_size): Do not instrument register
168 2017-04-11 Jakub Jelinek <jakub@redhat.com>
171 * config/i386/i386-builtin-types.def
172 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
173 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
174 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
175 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
176 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
177 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
178 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
179 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
180 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
181 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
182 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
183 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
184 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
185 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
186 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
187 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
188 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
189 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
190 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
191 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
192 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
193 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
194 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
195 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
196 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
197 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
198 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
199 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
200 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
201 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
202 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
203 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
204 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
205 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
206 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
207 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
208 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
209 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
210 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
211 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
212 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
213 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
214 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
215 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
216 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
217 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
219 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
220 flag to second_arg_count, handle 4 argument function type _COUNT
221 aliases, handle second_arg_count on second argument rather than last.
223 2017-04-10 Jeff Law <law@redhat.com>
225 PR tree-optimization/80374
226 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
227 record anything if we can not convert integer_zero_node to the
230 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
233 * config/rs6000/rs6000.c (rs6000_option_override_internal):
234 Enhance special handling given to the TARGET_P9_MINMAX option in
235 relation to certain other options.
237 2017-04-10 Bin Cheng <bin.cheng@arm.com>
239 PR tree-optimization/80153
240 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
241 remove POINTER_PLUS_EXPR's base part directly, rather than through
244 2017-04-10 Richard Biener <rguenther@suse.de>
245 Bin Cheng <bin.cheng@arm.com>
247 PR tree-optimization/80153
248 * tree-affine.c (aff_combination_to_tree): Get base pointer from
249 the first element of pointer type aff_tree. Build result expr in
251 (add_elt_to_tree): Convert to type unconditionally. Remove other
253 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
254 (rewrite_use_nonlinear_expr): Check invariant using iv information.
256 2017-04-10 Richard Biener <rguenther@suse.de>
258 * tree-ssa-structalias.c (find_func_aliases): Properly handle
261 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
263 PR rtl-optimization/70478
264 * lra-constraints.c (curr_small_class_check): New.
265 (update_and_check_small_class_inputs): New.
266 (process_alt_operands): Update curr_small_class_check. Disfavor
267 alternative insn memory operands. Check available regs for small
270 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
273 * config/mips/mips.opt (-mvirt): Update description.
274 * doc/invoke.texi (-mvirt): Likewise.
276 2017-04-10 Richard Biener <rguenther@suse.de>
279 * fold-const.c (fold_binary_loc): Look at unstripped ops when
280 looking for NEGATE_EXPR in -A / -B to A / B folding.
282 2017-04-10 Martin Liska <mliska@suse.cz>
284 PR gcov-profile/80224
285 * gcov.c (print_usage): Fix usage string.
286 (get_gcov_intermediate_filename): Remove.
287 (output_gcov_file): Use both for normal and intermediate format.
288 (generate_results): Do not initialize special file for
291 2017-04-10 Richard Biener <rguenther@suse.de>
293 PR tree-optimization/80304
294 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
297 2017-04-10 Nathan Sidwell <nathan@acm.org>
300 * config/rs6000/rs6000.c (rs6000_vector_type): New.
301 (rs6000_init_builtins): Use it.
303 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
305 * config/arm/arm.md (<mrc>): Add mode to SET source.
308 2017-04-10 Richard Biener <rguenther@suse.de>
311 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
313 2017-04-10 Jakub Jelinek <jakub@redhat.com>
316 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
317 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
318 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
319 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
320 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
321 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
322 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
323 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
324 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
325 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
326 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
327 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
328 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
329 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
330 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
331 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
332 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
333 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
334 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
335 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
336 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
337 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
338 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
340 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
342 PR rtl-optimization/70478
343 * lra-constraints.c: Reverse the last patch.
345 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
347 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
348 Add comment for WCHAR_T.
350 2017-04-08 Martin Liska <mliska@suse.cz>
353 2017-04-07 Martin Liska <mliska@suse.cz>
356 * ipa-split.c (split_function): Add function part to a same comdat
359 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
362 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
364 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
366 * rs6000/rs6000.c (vec_load_pendulum): Rename...
367 (vec_pairing): ...to this.
368 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
369 (rs6000_sched_init): Adjust for name change.
370 (struct rs6000_sched_context): Likewise.
371 (rs6000_init_sched_context): Likewise.
372 (rs6000_set_sched_context): Likewise.
374 2017-04-07 Jakub Jelinek <jakub@redhat.com>
380 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
382 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
383 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
384 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
386 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
388 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
390 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
392 PR rtl-optimization/70703
393 * ira-color.c (update_conflict_hard_regno_costs): Use
394 int64_t instead of HOST_WIDE_INT.
396 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
398 PR rtl-optimization/70478
399 * lra-constraints.c (process_alt_operands): Disfavor alternative
400 insn memory operands.
402 2017-04-07 Jeff Law <law@redhat.com>
404 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
405 CALL and NOTE_INSN_CALL_ARG_LOCATION.
407 2017-04-07 Martin Liska <mliska@suse.cz>
410 * config/aarch64/aarch64.c (aarch64_process_target_attr):
411 Show error message instead of an ICE.
413 2017-04-07 Martin Liska <mliska@suse.cz>
416 * ipa-split.c (split_function): Add function part to a same comdat
419 2017-04-07 Richard Biener <rguenther@suse.de>
422 * tree.c (get_unwidened): Also handle ! for_type case for
424 * convert.c (do_narrow): Split out from ...
425 (convert_to_integer_1): ... here. Do not pass final truncation
426 type to get_unwidened for TRUNC_DIV_EXPR.
428 2017-04-07 Richard Biener <rguenther@suse.de>
430 * tree-affine.c (wide_int_ext_for_comb): Take type rather
432 (aff_combination_const): Adjust.
433 (aff_combination_scale): Likewise.
434 (aff_combination_add_elt): Likewise.
435 (aff_combination_add_cst): Likewise.
436 (aff_combination_convert): Likewise.
437 (add_elt_to_tree): Likewise. Remove unused argument.
438 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
440 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
442 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
444 * config/arm/arm.c (arm_default_short_enums): Use
445 ARM_DEFAULT_SHORT_ENUMS.
446 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
448 2017-04-06 Jakub Jelinek <jakub@redhat.com>
451 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
452 members with redundant out-of-class redeclaration.
454 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
457 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
458 * config/i386/i386.md (*zero_extendsidi2):
459 Add (?*x,*x) and (?*v,*v) alternatives.
461 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
464 * config/i386/i386.c (ix86_expand_builtin)
465 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
466 mode from insn data. Convert operands to insn operand mode.
467 Copy operands that don't satisfy insn predicate to a register.
469 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
471 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
474 2017-04-06 Richard Biener <rguenther@suse.de>
476 PR tree-optimization/80334
477 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
478 preserve alignment of accesses.
480 2017-04-06 Richard Biener <rguenther@suse.de>
482 PR tree-optimization/80262
483 * tree-sra.c (build_ref_for_offset): Preserve address-space
485 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
486 Drop useless address-space information on MEM_REF offsets.
488 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
490 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
492 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
494 PR rtl-optimization/70703
495 * ira-color.c (update_conflict_hard_regno_costs): Use
496 HOST_WIDE_INT instead of long.
498 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
501 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
502 not defined for x86_64 target. Add -mmmx target option when __SSE2__
504 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
505 for x86_64 target. Handle -m3dnowa option.
507 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
509 PR rtl-optimization/70703
510 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
511 (update_conflict_hard_regno_costs): Use long instead of unsigned
512 arithmetic for cost calculation.
514 2017-04-05 Jakub Jelinek <jakub@redhat.com>
515 Bernd Edlinger <bernd.edlinger@hotmail.de>
518 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
521 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
524 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
525 ptr_mode with Pmode throughout.
526 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
527 into probe_stack_range and use DImode.
529 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
532 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
533 call_eh_return is true.
535 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
537 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
538 Initialize last_match_fntype_index.
540 2017-04-05 Jakub Jelinek <jakub@redhat.com>
543 * tree-nvr.c: Include internal-fn.h.
544 (pass_return_slot::execute): Ignore internal calls without
547 2017-04-04 Jakub Jelinek <jakub@redhat.com>
548 Richard Biener <rguenther@suse.de>
551 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
552 captures used multiple times, except for the last use.
553 * generic-match-head.c: Include gimplify.h.
555 2017-04-04 Jakub Jelinek <jakub@redhat.com>
557 PR tree-optimization/79390
558 * target.h (struct noce_if_info): Declare.
559 * targhooks.h (default_noce_conversion_profitable_p): Declare.
560 * target.def (noce_conversion_profitable_p): New target hook.
561 * ifcvt.h (struct noce_if_info): New type, moved from ...
562 * ifcvt.c (struct noce_if_info): ... here.
563 (noce_conversion_profitable_p): Renamed to ...
564 (default_noce_conversion_profitable_p): ... this. No longer
566 (noce_try_store_flag_constants, noce_try_addcc,
567 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
568 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
569 instead of noce_conversion_profitable_p.
570 * config/i386/i386.c: Include ifcvt.h.
571 (ix86_option_override_internal): Don't override
572 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
573 (ix86_noce_conversion_profitable_p): New function.
574 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
575 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
576 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
577 * doc/tm.texi: Regenerated.
579 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
581 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
584 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
587 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
588 instructions for small multiply cores.
590 2017-04-04 Jeff Law <law@redhat.com>
592 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
594 (mips_expand_vec_perm_const): Initialize elements in orig_perm
595 that are not set by the loop over the elements.
597 2017-04-04 Jakub Jelinek <jakub@redhat.com>
600 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
601 int mode, convert_modes it to mode as unsigned, otherwise use
602 lowpart_subreg to mode rather than SImode.
603 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
604 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
605 Use DImode instead of SImode for the shift count operand.
606 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
609 2017-04-04 Richard Biener <rguenther@suse.de>
612 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
613 arithmetic done for the negate or the plus. Simplify.
614 (A - (-B) -> A + B): Likewise.
615 * fold-const.c (split_tree): Make sure to not negate pointers.
617 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
619 PR rtl-optimization/60818
620 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
621 a compare of comparisons with the thing compared if this results
622 in a different machine mode.
624 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
626 * alias.c (base_alias_check): Fix typo in comment.
627 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
628 * cgraphunit.c (symbol_table::compile): Likewise.
629 * collect2.c (maybe_run_lto_and_relink): Likewise.
630 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
631 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
632 * config/avr/avr.c (avr_map_op_t): Likewise.
633 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
634 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
635 * config/epiphany/epiphany.md (movcc): Likewise.
636 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
637 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
639 * config/mips/mips.c (mips_save_restore_reg): Likewise.
640 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
641 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
642 * config/sh/sh.c (sh_rtx_costs): Likewise.
643 * fold-const.c (fold_truth_andor): Likewise.
644 * genautomata.c (collapse_flag): Likewise.
645 * gengtype.h (struct type::u::s): Likewise.
646 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
647 * input.c (FORMAT_AMOUNT): Likewise.
648 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
649 (known_aggs_to_agg_replacement_list): Likewise.
650 * ipa-inline-analysis.c: Likewise.
651 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
652 * ipa-polymorphic-call.c
653 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
654 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
655 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
657 * modulo-sched.c (apply_reg_moves): Likewise.
658 * omp-expand.c (build_omp_regions_1): Likewise.
659 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
660 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
661 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
662 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
663 * value-prof.c: Likewise.
664 * var-tracking.c (val_reset): Likewise.
666 2017-04-03 Richard Biener <rguenther@suse.de>
668 PR tree-optimization/80275
669 * fold-const.c (split_address_to_core_and_offset): Handle
672 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
674 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
675 descriptors is at least equal to that of functions.
677 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
679 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
681 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
684 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
685 (mov<IMOD4:mode>): New expander.
686 (*mov<IMOD4:mode>_internal): New insn and split pattern.
688 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
690 PR rtl-optimization/79405
691 * fwprop.c (propagations_left): New variable.
692 (forward_propagate_into): Decrement it.
693 (fwprop_init): Initialize it.
694 (fw_prop): If the variable has reached zero, stop propagating.
695 (fwprop_addr): Ditto.
697 2017-03-31 Jakub Jelinek <jakub@redhat.com>
700 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
701 a FUNCTION_DECL, pass it as decl instead of origin to
704 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
706 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
709 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
712 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
713 TARGET_VSX_SMALL_INTEGER.
715 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
717 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
718 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
720 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
722 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
723 extraction from odd-numbered MSA register.
725 2017-03-31 Jakub Jelinek <jakub@redhat.com>
728 * expmed.c (store_bit_field_1): Don't attempt to create
729 a word subreg out of hard registers wider than word if they
730 have HARD_REGNO_NREGS of 1 for their mode.
733 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
734 conversions to integer types wider than word and pointer.
737 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
738 (rtx_equal_for_cselib_p): Pass 0 to it.
739 * cselib.c (cselib_hasher::equal): Likewise.
740 (rtx_equal_for_cselib_1): Add depth argument. If depth
741 is 128, don't look up VALUE locs and punt. Increment
742 depth in recursive calls when walking VALUE locs.
744 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
746 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
747 (make_gcov_file_name): Use the canonical path name for generating
749 (read_line): Fix handling of files with ascii null bytes.
751 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
753 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
754 to initialise a vector register instead
755 of using a const_int.
757 2017-03-30 Jakub Jelinek <jakub@redhat.com>
760 * gimplify.c (omp_default_clause): Use %qs instead of %s in
763 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
766 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
767 (dfp_diex_<mode>): Update mode of operand 1.
768 * doc/extend.texi (dxex, dxexq): Document change to return type.
769 (diex, diexq): Document change to argument type.
771 2017-03-30 Martin Jambor <mjambor@suse.cz>
774 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
775 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
776 it reflects the signature changes performed at the callee side.
777 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
778 to cgraph_build_function_type_skip_args.
779 (build_function_decl_skip_args): Adjust call to the above function.
781 2017-03-30 Jakub Jelinek <jakub@redhat.com>
785 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
786 register as dest whenever it is a MEM not rtx_equal_p to the
787 corresponding dup operand, and when forcing into reg move the
788 reg into the memory afterwards.
789 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
790 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
791 for the force_reg mode.
792 (avx512vl_vextractf128<mode>): Use register as dest either
793 always when a MEM, or when it is a MEM not rtx_equal_p to the
794 corresponding dup operand, or even not when it is a CONST_VECTOR
795 depending on the mode and lo vs. hi.
796 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
798 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
799 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
800 Likewise. Require that operands[2] is even.
801 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
802 Remove extraneous parens. Require that operands[2] is a multiple
804 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
805 operands[0] is a MEM if <mask_applied>, the predicates/constraints
806 disallow memory then.
808 2017-03-30 Richard Biener <rguenther@suse.de>
810 PR tree-optimization/77498
811 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
812 to non-constants over backedges.
814 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
816 PR rtl-optimization/80233
817 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
818 as last_combined_insn. Do not test for BARRIER_P separately.
820 2017-03-29 Andreas Schwab <schwab@suse.de>
823 * calls.c (prepare_call_address): Convert funexp to Pmode before
826 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
828 PR tree-optimization/80158
829 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
830 Handle possible future case of more than one alternate
832 (replace_rhs_if_not_dup): Likewise.
833 (replace_one_candidate): Likewise.
835 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
837 PR rtl-optimization/80193
838 * ira.c (ira): Do not check allocation for LRA.
840 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
842 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
843 (nvptx_output_simt_exit): Declare.
844 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
845 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
846 (init_softstack_frame): Move initialization of crtl->is_leaf to...
847 (nvptx_declare_function_name): ...here. Emit declaration of local
848 memory space buffer for omp_simt_enter insn.
849 (nvptx_output_unisimt_switch): New.
850 (nvptx_output_softstack_switch): New.
851 (nvptx_output_simt_enter): New.
852 (nvptx_output_simt_exit): New.
853 * config/nvptx/nvptx.h (struct machine_function): New fields
854 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
855 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
856 (UNSPECV_SIMT_EXIT): Ditto.
857 (omp_simt_enter_insn): New insn.
858 (omp_simt_enter): New expansion.
859 (omp_simt_exit): New insn.
860 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
862 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
863 (expand_GOMP_SIMT_ENTER_ALLOC): New.
864 (expand_GOMP_SIMT_EXIT): New.
865 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
866 (GOMP_SIMT_ENTER_ALLOC): Ditto.
867 (GOMP_SIMT_EXIT): Ditto.
868 * target-insns.def (omp_simt_enter): New insn.
869 (omp_simt_exit): Ditto.
870 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
872 (lower_rec_simd_input_clauses): Implement SIMT privatization.
873 (lower_rec_input_clauses): Likewise.
874 (lower_lastprivate_clauses): Handle SIMT privatization.
876 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
877 (ompdevlow_adjust_simt_enter): New.
878 (find_simtpriv_var_op): New.
879 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
880 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
882 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
883 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
884 (copy_decl_for_dup_finish): Ditto.
886 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
888 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
891 * config/i386/i386.c (ix86_option_override_internal): Always
892 allow -mpreferred-stack-boundary=3 for 64-bit targets.
894 2017-03-28 Bin Cheng <bin.cheng@arm.com>
896 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
898 2017-03-28 Bin Cheng <bin.cheng@arm.com>
900 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
901 mark new edge's irreducible flag accordign to it.
902 (vect_do_peeling): Check loop preheader edge's irreducible flag
903 and pass it to function slpeel_add_loop_guard.
905 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
907 PR tree-optimization/80218
908 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
909 Update block frequencies and counts.
911 2017-03-28 Richard Biener <rguenther@suse.de>
913 PR tree-optimization/78644
914 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
915 of a simplification result we may not use it at all.
917 2017-03-28 Richard Biener <rguenther@suse.de>
920 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
921 without arguments, generate default definition of a SSA name.
923 2017-03-28 Richard Biener <rguenther@suse.de>
926 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
927 TYPE_REF_CAN_ALIAS_ALL references.
928 * fold-const.c (fold_indirect_ref_1): Likewise.
930 2017-03-28 Martin Liska <mliska@suse.cz>
933 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
934 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
936 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
937 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
939 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
940 (EXTRA_SPECS): Define.
941 (SUBTARGET_EXTRA_SPECS): Likewise.
942 (SUBTARGET_CPP_SPEC): Likewise.
943 * config/arc/elf.h (EXTRA_SPECS): Renamed to
944 SUBTARGET_EXTRA_SPECS.
945 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
947 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
949 * config/arc/simdext.md (vst64_insn): Update pattern.
950 (vld32wh_insn): Likewise.
951 (vld32wl_insn): Likewise.
952 (vld64_insn): Likewise.
953 (vld32_insn): Likewise.
955 2017-03-28 Marek Polacek <polacek@redhat.com>
958 * fold-const.c (fold_comparison): Use protected_set_expr_location
959 instead of SET_EXPR_LOCATION.
961 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
963 * tree.c (add_expr): Avoid name lookup warning.
965 2017-03-27 Jeff Law <law@redhat.com>
967 PR tree-optimization/80216
968 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
969 function name. Limit recursion depth.
970 (record_temporary_equivalences): Corresponding changes.
972 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
974 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
977 2017-03-27 Jakub Jelinek <jakub@redhat.com>
980 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
982 * cfgcleanup.c (reg_note_cfa_p): New array.
983 (insns_have_identical_cfa_notes): New function.
984 (old_insns_match_p): Don't cross-jump in between /f
985 and non-/f instructions. If both i1 and i2 are frame related,
986 verify all CFA notes, their order and content.
988 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
991 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
992 HImode and SImode with zero extend to DImode to one insn.
993 (bswap<mode>2_extenddi): Likewise.
994 (bswapsi2_extenddi): Likewise.
995 (bswaphi2_extendsi): Likewise.
996 (bswaphi2): Combine bswap HImode and SImode into one insn.
997 Separate memory insns from swapping register.
998 (bswapsi2): Likewise.
999 (bswap<mode>2): Likewise.
1000 (bswaphi2_internal): Delete, no longer used.
1001 (bswapsi2_internal): Likewise.
1002 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
1003 store, and gpr<-gpr swap insns.
1004 (bswap<mode>2_store): Likewise.
1005 (bswaphi2_reg): Register only splitter, combine with the splitter.
1006 (bswaphi2 splitter): Likewise.
1007 (bswapsi2_reg): Likewise.
1008 (bswapsi2 splitter): Likewise.
1009 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
1010 the insns into load, store, and register/register insns.
1011 (bswapdi2_ldbrx): Likewise.
1012 (bswapdi2_load): Likewise.
1013 (bswapdi2_store): Likewise.
1014 (bswapdi2_reg): Likewise.
1016 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
1018 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
1019 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
1021 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
1024 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
1026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1027 special handling for target option conflicts between dform
1028 options (-mpower9-dform, -mpower9-dform-vector,
1029 -mpower9-dform-scalar) and -mno-direct-move.
1031 2017-03-27 Richard Biener <rguenther@suse.de>
1033 PR tree-optimization/80181
1034 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
1036 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1038 * config/arc/predicates.md (move_double_src_operand): Replace the
1039 call to move_double_src_operand with a call to address_operand.
1041 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1043 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
1044 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
1045 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
1047 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1049 * config/arc/predicates.md (long_immediate_loadstore_operand):
1050 Consider scaled addresses cases.
1052 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1054 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
1055 restored when in interrupt.
1056 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
1057 doesn't have delay slot.
1059 2017-03-27 Richard Biener <rguenther@suse.de>
1062 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
1063 inlined thunk clones.
1065 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1068 * asan.c (instrument_derefs): Copy over last operand from
1069 original COMPONENT_REF to the new COMPONENT_REF with
1070 DECL_BIT_FIELD_REPRESENTATIVE.
1071 * ubsan.c (instrument_object_size): Likewise.
1073 2017-03-27 Richard Biener <rguenther@suse.de>
1075 PR tree-optimization/80170
1076 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
1077 sure DR/SCEV didnt fold in constants we do not see when looking
1078 at the reference base alignment.
1080 2017-03-27 Richard Biener <rguenther@suse.de>
1083 * gimple-fold.c (fold_ctor_reference): Properly guard against
1084 NULL return value from canonicalize_constructor_val.
1086 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
1089 * config/i386/i386.c (ix86_expand_builtin)
1090 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
1091 flags reg setting and flags reg using instructions.
1092 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
1093 clobbering instructions to zero extend op2.
1095 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
1097 * doc/install.texi (Configuration) <--with-aix-soname>:
1098 Update link to AIX ld.
1100 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
1102 PR rtl-optimization/80160
1103 PR rtl-optimization/80159
1104 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
1105 reg_alternate_class into account.
1107 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
1110 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
1111 to consider in curr_insn_transform.
1113 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1115 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
1116 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
1117 and emit_mode_inner.
1119 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1121 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
1122 argument to the overloaded builtin variants. Use the new flag to
1123 deprecate certain builtin variants.
1124 * config/s390/s390-builtin-types.def: Add new builtin types.
1125 * config/s390/s390-builtins.h: Support new flags field for
1126 overloaded builtins.
1127 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
1128 (s390_macro_to_expand): Enable vector float data type.
1129 (s390_cpu_cpp_builtins_internal): Indicate support of the new
1130 builtins by incrementing the __VEC__ version number.
1131 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
1133 (s390_resolve_overloaded_builtin): Emit error messages depending
1134 on the builtin flags.
1135 * config/s390/s390.c (s390_expand_builtin): Support additional
1136 flags argument. Change error message to match the messages
1137 emitted in s390-c.c.
1138 * config/s390/s390.md: New UNSPEC_* constants.
1139 (op_type): Add new instruction types.
1140 * config/s390/vecintrin.h: Add new builtins and test data class
1142 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
1143 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
1144 (VEC_INEXACT, VEC_NOINEXACT): New constants.
1145 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
1146 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
1147 ("vec_mergel<mode>"): V_HW -> VEC_HW.
1149 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
1150 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
1151 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
1152 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
1154 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
1155 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
1156 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
1157 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
1159 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
1160 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
1161 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
1162 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
1163 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
1164 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
1165 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
1167 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
1168 ("vec_scatter_element<V_HW_4:mode>_DI")
1169 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
1170 ("vec_fpint<mode>", "vflls")
1171 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
1172 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
1173 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
1174 ("*vec_cmphe<mode>_cc"): ... these.
1176 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
1177 mode constant instead of magic value.
1179 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1181 * config/s390/s390.c (s390_expand_vec_compare): Support other
1182 vector floating point modes than just V2DF.
1183 (s390_expand_vcond): Likewise.
1184 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
1185 (s390_cannot_change_mode_class): Prevent mode changes between TF
1186 and V1TF in vector registers.
1187 * config/s390/s390.md (DF, SF): New mode attributes.
1188 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
1189 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
1190 SFmode support for VRs.
1191 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
1193 (VFT, VF_HW): New mode iterators.
1194 (vw, sdx): New mode attributes.
1195 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
1196 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
1197 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
1198 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
1199 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
1200 also the new vector floating point modes. Renaming to ...
1202 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
1203 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
1204 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
1205 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
1206 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
1207 ("vec_unordered<mode>"): ... these.
1209 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
1210 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
1211 ("*vec_extendv2df"): New insn definitions.
1213 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1215 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
1216 ("mulditi3_2", "*muldi3_sign"): New patterns.
1217 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
1218 rename the pattern definition.
1220 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1222 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
1224 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
1226 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1228 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
1229 instruction if possible.
1230 * config/s390/vector.md (vec_halfnumelts): New mode
1232 ("*vec_vllezlf<mode>"): New pattern.
1234 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1236 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
1237 ("popcountv4si2", "popcountv2di2"): Rename to ...
1238 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
1239 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
1241 ("popcount<mode>2_vxe"): New pattern.
1243 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1245 * common/config/s390/s390-common.c (processor_flags_table): Add
1247 * config.gcc: Add arch12.
1248 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1249 Default to arch12 for unknown CPU model numbers.
1250 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
1251 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
1252 PROCESSOR_max sanity check.
1253 * config/s390/s390-opts.h (enum processor_type): Add
1255 * config/s390/s390.c (processor_table): Add arch12.
1256 (s390_expand_builtin): Add check for B_VXE flag.
1257 (s390_issue_rate): Add PROCESSOR_ARCH12.
1258 (s390_get_sched_attrmask): Likewise.
1259 (s390_get_unit_mask): Likewise.
1260 (s390_sched_score): Enable z13 scheduling for arch12.
1261 (s390_sched_reorder): Likewise.
1262 (s390_sched_variable_issue): Likewise.
1263 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
1265 (s390_tune_attr): Use z13 scheduling also for arch12.
1266 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
1267 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
1268 (TARGET_VXE_P): New macros.
1269 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
1270 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
1271 * config/s390/s390.opt: Add arch12 as processor_type.
1273 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1275 * config/s390/s390.md
1276 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1277 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
1278 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
1280 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
1281 Rename expanders to ...
1283 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
1284 ("fixuns_truncdddi2_emu"): ... these.
1286 ("fixuns_trunc<mode>si2_emu"): New expander.
1288 ("*fixuns_truncdfdi2_z13"): Rename to ...
1289 ("*fixuns_truncdfdi2_vx"): ... this.
1291 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1293 * config/s390/2964.md: Remove the single element vector compare
1294 instructions which are no longer used.
1295 * config/s390/s390.c (s390_select_ccmode): Remove handling of
1297 (s390_canonicalize_comparison): Remove handling of DFmode
1299 (s390_expand_vec_compare_scalar): Remove function.
1300 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
1301 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
1303 ("*cmp<mode>_ccs"): Add wfcdb instruction.
1305 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1307 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
1309 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
1310 will anyway by matched by mov<mode>_64dfp.
1312 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1314 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1315 vlef/vstef. Add missing operand to vleif.
1317 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1319 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1320 pair for all vector types with 64 bit elements.
1321 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1322 * config/s390/vector.md (V_HW_64): ... here.
1323 (V_128_NOSINGLE): New mode iterator.
1324 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1325 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1326 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1327 ("*vec_load_pairv2di"): Change to ...
1328 ("*vec_load_pair<mode>"): ... this one.
1330 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1332 * config/s390/constraints.md: Add comments.
1333 (jKK): Reject element sizes > 8 bytes.
1334 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1336 * config/s390/s390.md: Add the s_operand checks formerly in
1337 s390_split_ok_p to various splitters where they are still
1339 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1340 for 128 bit vectors. Plus two splitters.
1342 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1344 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1347 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1350 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1351 error if the boundary argument is not constant.
1353 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1355 PR rtl-optimization/80112
1356 * loop-doloop.c (doloop_condition_get): Don't check condition
1357 if cmp isn't SET with IF_THEN_ELSE src.
1359 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1361 PR tree-optimization/80158
1362 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1363 replacing a candidate statement, also replace it for the
1364 candidate's alternate interpretation.
1365 (replace_rhs_if_not_dup): Likewise.
1366 (replace_one_candidate): Likewise.
1368 2017-03-24 Richard Biener <rguenther@suse.de>
1370 PR tree-optimization/80167
1371 * graphite-isl-ast-to-gimple.c
1372 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1374 (translate_isl_ast_to_gimple::get_rename): Likewise.
1376 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
1378 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1379 handling of certain combinations of target options, including the
1380 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1381 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1383 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1386 * config/arm/arm.md (*load_multiple): Add reload_completed to
1389 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1390 Richard Biener <rguenth@suse.de>
1392 PR tree-optimization/79908
1393 PR tree-optimization/80136
1394 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1395 been cast away, gimplify_and_add suffices.
1397 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
1399 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1401 2017-03-23 Richard Biener <rguenther@suse.de>
1403 PR tree-optimization/80032
1404 * gimplify.c (gimple_push_cleanup): Forced unconditional
1405 cleanups still have to go to the conditional_cleanups
1408 2017-03-22 Jakub Jelinek <jakub@redhat.com>
1410 PR tree-optimization/80072
1411 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1413 (next_operand_entry_id): Change type to unsigned int.
1414 (sort_by_operand_rank): Make sure to return the right return value
1415 even if unsigned fields are bigger than INT_MAX.
1416 (struct oecount): Change cnt and id type to unsigned int.
1417 (oecount_hasher::equal): Formatting fix.
1418 (oecount_cmp): Make sure to return the right return value
1419 even if unsigned fields are bigger than INT_MAX.
1420 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1423 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1424 TREE_READONLY on result if writing it more than once.
1427 * doc/invoke.texi (-fsanitize=thread): Document that with
1428 -fnon-call-exceptions atomics are not able to throw
1432 * tsan.c: Include tree-eh.h.
1433 (instrument_builtin_call): Call maybe_clean_eh_stmt or
1434 maybe_clean_or_replace_eh_stmt where needed.
1435 (instrument_memory_accesses): Add cfg_changed argument.
1436 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1437 if it returned true.
1438 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
1440 PR rtl-optimization/63191
1441 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1442 wrapper function, moved the whole old content into ...
1443 (ix86_delegitimize_address_1): ... this. New inline function.
1444 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1445 true as last argument instead of ix86_delegitimize_address.
1447 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1449 * config/aarch64/aarch64.c (generic_branch_cost): Copy
1450 cortexa57_branch_cost.
1452 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1454 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1456 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1459 * doc/md.texi (Constraints): Document wA constraint.
1460 * config/rs6000/constraints.md (wA): New.
1461 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1462 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1463 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1464 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1466 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
1469 * gimplify.c (is_oacc_declared): New function.
1470 (oacc_default_clause): Use it to set default flags for acc declared
1471 variables inside parallel regions.
1472 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1474 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
1475 declare attribute to any decl as necessary.
1477 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1480 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1481 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1482 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1483 (arm_arch_lpae): This.
1484 * config/arm/arm.c (arm_arch7ve): Rename into ...
1485 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
1486 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1489 2017-03-22 Martin Liska <mliska@suse.cz>
1492 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1493 error message instead of an ICE.
1495 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1497 * doc/extend.texi (6.11 Additional Floating Types): Revise.
1499 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
1501 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1503 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1506 2017-03-21 Martin Sebor <msebor@redhat.com>
1508 * doc/extend.texi: Use "cannot" instead of "can't."
1509 * doc/hostconfig.texi: Same.
1510 * doc/install.texi: Same.
1511 * doc/invoke.texi: Same.
1512 * doc/loop.texi: Same.
1513 * doc/md.texi: Same.
1514 * doc/objc.texi: Same.
1515 * doc/rtl.texi: Same.
1516 * doc/tm.texi: Same.
1517 * doc/tm.texi.in: Same.
1518 * doc/trouble.texi: Same.
1520 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
1523 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1524 (collect_checksum_attributes): Set it.
1525 (die_checksum_ordered): Use it.
1527 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1529 PR tree-optimization/79908
1530 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1531 change: For a VA_ARG whose LHS has been cast away, use
1532 force_gimple_operand to construct the side effects.
1534 2017-03-21 David Malcolm <dmalcolm@redhat.com>
1536 PR translation/80001
1537 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1538 more amenable to translation.
1539 (oacc_loop_auto_partitions): Likewise.
1541 2017-03-21 Marek Polacek <polacek@redhat.com>
1542 Martin Sebor <msebor@redhat.com>
1544 PR tree-optimization/80109
1545 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1548 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1549 Segher Boessenkool <segher@kernel.crashing.org>
1552 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1553 check reg_used_between_p between insn and one of succ or succ2
1554 depending on if succ is artificial insn not inserted into insn
1557 2017-03-21 Martin Liska <mliska@suse.cz>
1559 PR gcov-profile/80081
1560 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1561 * doc/gcc.texi: Include gcov-dump stuff.
1562 * doc/gcov-dump.texi: New file.
1564 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
1566 PR rtl-optimization/79150
1567 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1568 conditional jump, if the jump is the last insn of the loop.
1570 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1571 Richard Biener <rguenth@suse.de>
1573 PR tree-optimization/79908
1574 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1575 been cast away, use force_gimple_operand to construct the side
1578 2017-03-21 Martin Liska <mliska@suse.cz>
1581 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1584 2017-03-21 Brad Spengler <spender@grsecurity.net>
1587 * plugin.c (htab_hash_plugin): New function.
1588 (add_new_plugin): Use it and adjust.
1589 (parse_plugin_arg_opt): Adjust.
1590 (init_one_plugin): Likewise.
1592 2017-03-21 Richard Biener <rguenther@suse.de>
1594 PR tree-optimization/80032
1595 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1596 if set force the cleanup to happen unconditionally.
1597 (gimplify_target_expr): Push inserted clobbers with force_uncond
1598 to avoid them being removed by control-dependent DCE.
1600 2017-03-21 Richard Biener <rguenther@suse.de>
1602 PR tree-optimization/80122
1603 * tree-inline.c (copy_bb): Do not expans va-arg packs or
1604 va_arg_pack_len when the inlined call stmt requires pack
1606 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1608 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1611 * tsan.c (instrument_builtin_call): If the memory model argument
1612 is not a constant, assume it is valid.
1615 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1618 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1620 PR rtl-optimization/79910
1621 * combine.c (can_combine_p): Do not allow combining an I0 or I1
1622 if its dest is used by an insn before I2 (other than the combined
1623 insns themselves, which are properly handled already).
1625 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1628 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1630 * combine.c (record_used_regs): New static function.
1631 (try_combine): Handle situations where there is an additional
1632 instruction between I2 and I3 which needs to have a LOG_LINK
1636 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1638 * combine.c (try_combine): Delete redundant i1 test. Call
1639 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1641 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1644 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1647 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1649 PR tree-optimization/80054
1650 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1651 the optimization if a PHI or any of its arguments is not dominated
1652 by the candidate's basis. Use gphi* rather than gimple* as
1654 (replace_profitable_candidates): Clean up a gimple* variable that
1655 should be a gphi* variable.
1657 2017-03-20 Martin Sebor <msebor@redhat.com>
1660 * doc/extend.texi (attribute constructor): Document present limitation.
1662 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
1665 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1666 __POWER9_VECTOR__ #ifdef control, change template definition to
1667 use Power9-specific built-in function.
1668 (vec_any_eq): Likewise.
1669 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1670 to control outcomes from this test.
1671 (vector_ae_<mode>p): For VEC_F modes, likewise.
1673 2017-03-20 Ian Lance Taylor <iant@google.com>
1675 * config/i386/i386.c (ix86_function_regparm): Save an extra
1676 register for -fsplit-stack with DECL_STATIC_CHAIN.
1678 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1681 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1682 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1684 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1686 * config/riscv/riscv.c (riscv_print_operand): Use "fence
1688 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1691 2017-03-20 Marek Polacek <polacek@redhat.com>
1694 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1696 2017-03-20 Richard Biener <rguenther@suse.de>
1698 PR tree-optimization/80113
1699 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1700 allocate extra SSA name for PHI def.
1701 (add_close_phis_to_outer_loops): Likewise.
1702 (add_close_phis_to_merge_points): Likewise.
1703 (copy_loop_close_phi_args): Likewise.
1704 (copy_cond_phi_nodes): Likewise.
1706 2017-03-20 Martin Liska <mliska@suse.cz>
1709 * tree-chkp.c (chkp_build_returned_bound): Do not build
1710 returned bounds for a LHS that's not a BOUNDED_P type.
1712 2017-03-20 Martin Liska <mliska@suse.cz>
1716 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1717 COMPLEX_CST and VECTOR_CST.
1719 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1722 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1723 target operand. A new splitter adds the clobber statement in case
1724 the target operand is dead anyway.
1726 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1728 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1729 to age-old versions of binutils and glibc.
1731 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
1733 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1735 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1737 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1739 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1741 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1742 requirement for binutils 2.13.
1744 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1746 * combine.c (try_combine): Delete redundant i1 test. Call
1747 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1749 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
1751 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1752 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1754 <riscv64-*-elf>: Re-arrange section
1755 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1756 <riscv32-*-linux>: Likewise.
1757 <riscv64-*-elf>: Likewise
1758 <riscv64-*-linux>: Likewise.
1760 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
1763 * aarch64.opt(verbose-cost-dump): Fix typo.
1765 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
1768 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1769 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1771 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1773 * reload.c (find_reloads): When reloading a nonoffsettable address,
1774 use RELOAD_OTHER for it and its address reloads.
1776 PR rtl-optimization/79910
1777 * combine.c (record_used_regs): New static function.
1778 (try_combine): Handle situations where there is an additional
1779 instruction between I2 and I3 which needs to have a LOG_LINK
1782 2017-03-17 Jeff Law <law@redhat.com>
1784 PR tree-optimization/71437
1785 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1786 conditional in the hash table first.
1787 (vrp_dom_walker::before_dom_children): Extract condition from
1788 ASSERT_EXPR. Record condition, its inverion and any implied
1791 2017-03-17 Marek Polacek <polacek@redhat.com>
1792 Markus Trippelsdorf <markus@trippelsdorf.de>
1794 PR tree-optimization/80079
1795 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1798 2017-03-17 Richard Biener <rguenther@suse.de>
1801 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1802 Properly verify the LHS before the RHS possibly claims to be
1804 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
1807 2017-03-17 Martin Jambor <mjambor@suse.cz>
1809 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1810 (List of -O2 options): Likewise.
1811 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1814 2017-03-17 Tom de Vries <tom@codesourcery.com>
1816 * gcov-dump.c (print_usage): Print bug_report_url.
1818 2017-03-17 Richard Biener <rguenther@suse.de>
1821 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
1822 (parser::peek): Likewise.
1824 2017-03-17 Richard Biener <rguenther@suse.de>
1826 PR tree-optimization/80048
1827 * sese.c (free_sese_info): Properly release rename_map and
1828 copied_bb_map elements.
1830 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
1832 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
1833 Add linked-list forward and backlinks. Insert on
1834 construction, remove on destruction.
1835 (class pass_store_merging): Add m_stores_head field.
1836 (pass_store_merging::terminate_and_process_all_chains):
1837 Iterate over m_stores_head list.
1838 (pass_store_merging::terminate_all_aliasing_chains):
1840 (pass_store_merging::execute): Check for debug stmts first.
1841 Push new chains onto the m_stores_head stack.
1843 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1846 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1847 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1848 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1850 2017-03-16 Jeff Law <law@redhat.com>
1852 PR tree-optimization/71437
1853 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
1854 member function. Implementation moved into after_dom_children
1855 member function and into the threader's thread_outgoing_edges
1857 (dom_opt_dom_walker::after_dom_children): Simplify by moving
1858 some code into new thread_outgoing_edges.
1859 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
1860 definition. Simplify marker handling (do it here). Assume we always
1861 have the available expression and the const/copies tables.
1862 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
1864 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
1865 * tree-vrp.c (equiv_stack): No longer file scoped.
1866 (vrp_dom_walker): New class.
1867 (vrp_dom_walker::before_dom_children): New member function.
1868 (vrp_dom_walker::after_dom_children): Likewise.
1869 (identify_jump_threads): Setup domwalker. Use it rather than
1870 walking edges in a random order by hand. Simplify setup/finalization.
1871 (finalize_jump_threads): Remove.
1872 (vrp_finalize): Do not call identify_jump_threads here.
1873 (execute_vrp): Do it here instead and call thread_through_all_blocks
1876 PR tree-optimization/71437
1877 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
1879 (simplify_stmt_for_jump_threading): Add basic_block argument. All
1881 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
1882 (dom_opt_dom_walker::thread_across_edge): Remove
1883 handle_dominating_asserts argument. All callers changed.
1884 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
1885 changes. Remove calls to lhs_of_dominating_assert. Other
1886 uses of handle_dominating_asserts turn into unconditional code
1887 (simplify_control_stmt_condition_1): Likewise.
1888 (simplify_control_stmt_condition): Likewise.
1889 (thread_through_normal_block, thread_across_edge): Likewise.
1890 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
1891 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
1892 object if it is not an SSA_NAME.
1893 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
1894 before calling into the VRP specific simplifiers.
1895 (identify_jump_threads): Remove handle_dominating_asserts
1898 2017-03-16 Jakub Jelinek <jakub@redhat.com>
1901 * tree-diagnostic.c (default_tree_printer): No longer static.
1902 * tree-diagnostic.h (default_tree_printer): New prototype.
1904 2017-03-16 Tamar Christina <tamar.christina@arm.com>
1906 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
1907 Change ins into fmov.
1909 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1911 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
1912 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
1913 Use h_con constraint for operand 1.
1914 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1915 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
1917 2017-03-15 Jeff Law <law@redhat.com>
1919 PR tree-optimization/71437
1920 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
1921 (record_temporary_equivalences): Use it.
1923 PR tree-optimization/71437
1924 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
1925 tree-ssa-scopedtables.
1926 (lookup_avail_expr, build_and_record_new_cond): Likewise.
1927 (record_conditions, record_cond, vuse_eq): Likewise.
1928 (record_edge_info): Adjust to API tweak of record_conditions.
1929 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
1930 (record_temporary_equivalences, optimize_stmt): Likewise.
1931 (eliminate_redundant_computations): Likewise.
1932 (record_equivalences_from_stmt): Likewise.
1933 * tree-ssa-scopedtables.c: Include options.h and params.h.
1934 (vuse_eq): New function, moved from tree-ssa-dom.c
1935 (build_and_record_new_cond): Likewise.
1936 (record_conditions): Likewise. Accept vector of conditions rather
1937 than edge_equivalence structure for first argument.
1938 for the first argument.
1939 (avail_exprs_stack::lookup_avail_expr): New member function, moved
1940 from tree-ssa-dom.c.
1941 (avail_exprs_stack::record_cond): Likewise.
1942 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
1943 from tree-ssa-dom.c.
1944 (avail_exprs_stack): Add new member functions lookup_avail_expr
1946 (record_conditions): Declare.
1948 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
1951 * lra-constraints.c (process_alt_operands): Increase reject for
1952 reloading an input/output operand.
1954 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1957 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
1958 insns to convert from signed/unsigned char/short to IEEE 128-bit
1960 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
1962 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
1965 * config/i386/i386.c (ix86_vector_duplicate_value): Create
1966 subreg of inner mode for values already in registers.
1968 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
1970 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
1971 iteration reg is used after the loop.
1973 2017-03-14 Martin Sebor <msebor@redhat.com>
1975 PR tree-optimization/79800
1976 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
1977 precision in negative-positive range.
1978 (format_floating): Call non-const overload with adjusted precision.
1980 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1983 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
1986 2017-03-14 Martin Sebor <msebor@redhat.com>
1989 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
1990 * builtins.def (aligned_alloc): Use it.
1993 * Makefile.in (GTFILES): Add calls.c.
1994 * calls.c: Include "gt-calls.h".
1996 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
1998 PR rtl-optimization/79728
1999 * regs.h (struct target_regs): New field
2000 x_contains_allocatable_regs_of_mode.
2001 (contains_allocatable_regs_of_mode): New macro.
2002 * reginfo.c (init_reg_sets_1): Initialize it, and change
2003 contains_reg_of_mode so it includes global regs as well.
2004 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
2005 rather than contains_regs_of_mode.
2007 2017-03-14 Martin Liska <mliska@suse.cz>
2009 * doc/invoke.texi: Document options that can't be combined with
2010 -fcheck-pointer-bounds.
2012 2017-03-14 Martin Liska <mliska@suse.cz>
2015 * doc/invoke.texi (-Wchkp): Document the option.
2017 2017-03-14 Martin Liska <mliska@suse.cz>
2019 * Makefile.in: Install gcov-dump.
2021 2017-03-14 Martin Liska <mliska@suse.cz>
2023 * multiple_target.c (expand_target_clones): Bail out for
2024 an invalid attribute.
2026 2017-03-14 Richard Biener <rguenther@suse.de>
2028 * alias.c (struct alias_set_entry): Pack properly.
2029 * cfgloop.h (struct loop): Likewise.
2030 * cse.c (struct set): Likewise.
2031 * ipa-utils.c (struct searchc_env): Likewise.
2032 * loop-invariant.c (struct invariant): Likewise.
2033 * lra-remat.c (struct cand): Likewise.
2034 * recog.c (struct change_t): Likewise.
2035 * rtl.h (struct address_info): Likewise.
2036 * symbol-summary.h (function_summary): Likewise.
2037 * tree-loop-distribution.c (struct partition): Likewise.
2038 * tree-object-size.c (struct object_size_info): Likewise.
2039 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
2040 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
2041 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
2042 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
2043 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
2044 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
2045 (struct _stmt_vec_info): Likewise.
2047 2017-03-14 Martin Liska <mliska@suse.cz>
2050 * multiple_target.c (create_dispatcher_calls): Check that
2051 a target can create a function dispatcher.
2053 2017-03-14 Martin Liska <mliska@suse.cz>
2056 * multiple_target.c (expand_target_clones): Drop local.local
2057 flag for default implementation.
2059 2017-03-14 Richard Biener <rguenther@suse.de>
2061 PR tree-optimization/80030
2062 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
2064 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
2066 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
2067 gcc_fallthrough() instead of __attribute__((fallthrough));
2069 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
2071 * doc/gcc.texi: Remove "up" link to (DIR).
2072 * doc/gccint.texi: Ditto.
2074 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
2076 * doc/install.texi (Specific) <avr>: Remove reference to
2079 2017-03-13 Jeff Law <law@redhat.com>
2081 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
2082 attribute rather than comments.
2084 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
2085 match_scratch operand is highest.
2087 2017-03-13 Martin Liska <mliska@suse.cz>
2090 * ipa-pure-const.c (warn_function_noreturn): If the declarations
2091 is a CHKP clone, use original declaration.
2093 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2095 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
2096 (arc_conditional_register_usage): Use a different allocation order
2097 when optimizing for size.
2098 * common/config/arc/arc-common.c (arc_option_optimization_table):
2099 Section anchors default on when optimizing for size.
2101 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2103 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
2105 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2107 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
2108 * config/arc/arc.md (cpu_facility): Add cd variant.
2109 (*movqi_insn): Add code density variant.
2110 (*movhi_insn): Likewise.
2111 (*movqi_insn): Likewise.
2112 (*addsi3_mixed): Likewise.
2113 (subsi3_insn): Likewise.
2115 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2117 * config/arc/arc.md (movsi_cond_exec): Update constraint.
2119 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2121 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
2122 expressions with MINUS and UNARY ops.
2124 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2127 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
2129 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
2130 between vec_select and vector argument.
2131 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
2132 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
2133 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
2134 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
2135 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
2136 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
2138 2017-03-13 Richard Biener <rguenther@suse.de>
2141 * params.def (vect-max-peeling-for-alignment): Fix typo.
2143 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2145 * doc/install.texi (Specific) <mips-*-*>: Remove description of
2146 issue that only occurred with binutils below 2.18.
2148 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2150 * doc/install.texi (Specific) <cris-axis-elf>: No longer
2151 refer to binutils 2.11/2.12 minimum.
2153 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2155 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
2156 ftp.kernel.org and simplify binutils requirement.
2158 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
2160 * doc/invoke.texi (Warning Options): Fix spelling of link-time
2162 (Optimize Options): Ditto. Also remove redundancy.
2164 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2166 PR translation/79848
2167 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
2169 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
2170 to G_ to avoid double translation.
2172 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2174 PR translation/79923
2175 * auto-profile.c (get_combined_location): Convert leading
2176 character of diagnostics to lower case and remove trailing period.
2177 (read_profile): Likewise for various diagnostics.
2178 * config/arm/arm.c (arm_option_override): Remove trailing period
2179 from various diagnostics.
2180 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
2181 (msp430_expand_delay_cycles): Likewise.
2183 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2186 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
2187 full command-line argument, rather than just "str".
2188 (aarch64_validate_march): Likewise.
2189 (aarch64_validate_mtune): Likewise.
2191 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
2193 PR rtl-optimization/78911
2194 * lra-assigns.c (must_not_spill_p): New function.
2195 (spill_for): Use it.
2197 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2199 PR tree-optimization/79981
2200 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
2201 ATOMIC_COMPARE_EXCHANGE ifn result.
2202 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
2203 IFN_ATOMIC_COMPARE_EXCHANGE.
2205 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2208 * opts.c (parse_sanitizer_options): Add missing question mark to
2209 "did you mean" message.
2211 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2213 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
2215 (VMULEUH_UNS): Likewise.
2216 (VMULOUB_UNS): Likewise.
2217 (VMULOUH_UNS): Likewise.
2218 * config/rs6000/rs6000.c (builtin_function_type): Remove
2219 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
2221 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2224 * read-rtl-function.c (function_reader::read_rtx_operand): Update
2225 x with result of extra_parsing_for_operand_code_0.
2226 (function_reader::extra_parsing_for_operand_code_0): Convert
2227 return type from void to rtx, returning x. When reading
2228 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
2229 larger size containing struct block_symbol.
2231 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
2233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
2234 -mfloat128-hardware without -m64.
2236 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
2239 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
2240 entries to the case statement that marks unsigned arguments to
2241 overloaded functions.
2243 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
2245 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2246 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
2248 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
2251 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
2252 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
2254 2017-03-10 Martin Liska <mliska@suse.cz>
2258 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
2259 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
2262 2017-03-10 Olivier Hainque <hainque@adacore.com>
2264 * tree-switch-conversion (array_value_type): Start by resetting
2265 candidate type to it's main variant.
2267 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2269 PR rtl-optimization/79909
2270 * combine.c (try_combine): Use simplify_replace_rtx on individual
2271 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
2272 of the whole CALL_INSN_FUNCTION_USAGE.
2274 PR tree-optimization/79972
2275 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
2276 get_range_info on SSA_NAMEs. Formatting fixes.
2278 2017-03-10 Richard Biener <rguenther@suse.de>
2279 Jakub Jelinek <jakub@redhat.com>
2281 PR tree-optimization/77975
2282 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
2283 edge to be constant.
2284 (get_val_for): For constant x return it. Formatting fix.
2285 (loop_niter_by_eval): Avoid pointless looping if the next iteration
2286 would use the same bases as the current one.
2288 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2290 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
2291 instead of vec_select for V1TImode.
2292 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
2294 (VSX_LE_128): Add V1TI to this mode iterator.
2295 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
2296 (*vsx_le_perm_store_<mode>): Likewise.
2297 (pre-reload splitter for VSX stores): Likewise.
2298 (post-reload splitter for VSX stores): Likewise.
2299 (*vsx_xxpermdi2_le_<mode>): Likewise.
2300 (*vsx_lxvd2x2_le_<mode>): Likewise.
2301 (*vsx_stxvd2x2_le_<mode>): Likewise.
2303 2017-03-09 Michael Eager <eager@eagercon.com>
2305 Correct failures with --enable-checking=yes,rtl.
2307 * config/microblaze/microblaze.c (microblaze_expand_shift):
2308 Replace GET_CODE test with CONST_INT_P and INTVAL test with
2309 test for const0_rtx.
2310 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
2311 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2313 2017-03-09 Richard Biener <rguenther@suse.de>
2315 PR tree-optimization/79977
2316 * graphite-scop-detection.c (scop_detection::merge_sese):
2317 Handle the case of extra exits to blocks dominating the entry.
2319 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
2321 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2324 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
2326 PR rtl-optimization/79949
2327 * lra-constraints.c (process_alt_operands): Check memory when
2328 trying to predict a cycle. Print about the overall increase.
2330 2017-03-09 Richard Biener <rguenther@suse.de>
2333 * gimple-expr.c (useless_type_conversion_p): Preserve
2334 TYPE_SATURATING for fixed-point types.
2336 2017-03-09 Richard Biener <rguenther@suse.de>
2339 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2340 alignment of BLKmode params.
2342 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2345 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2346 (VALL_NO_V2Q): Likewise.
2348 * config/aarch64/aarch64-simd.md
2349 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2351 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2352 VALL_NO_V2Q mode iterator.
2353 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2355 2017-03-09 Martin Liska <mliska@suse.cz>
2357 PR tree-optimization/79631
2358 * tree-chkp-opt.c (chkp_is_constant_addr): Call
2359 tree_int_cst_sign_bit just for INTEGER constants.
2361 2017-03-09 Martin Liska <mliska@suse.cz>
2365 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2368 2017-03-09 Marek Polacek <polacek@redhat.com>
2371 * tree.c (inchash::add_expr): Handle TREE_VEC.
2373 2017-03-09 Martin Liska <mliska@suse.cz>
2376 (chkp_narrow_size_and_offset): New function.
2377 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2378 (void chkp_parse_bit_field_ref): New function.
2379 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2380 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2382 2017-03-09 Martin Liska <mliska@suse.cz>
2385 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2386 (chkp_find_bounds_1): Remove gcc_unreachable.
2388 2017-03-09 Jakub Jelinek <jakub@redhat.com>
2391 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2392 BUILT_IN_SYNC*, determine the access type from the size suffix and
2393 always build a MEM_REF with that type. Handle forgotten
2394 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2397 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2398 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2399 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2400 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2401 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2402 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2403 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2404 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2405 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2406 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2407 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2408 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2409 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2410 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2411 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2412 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2413 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2414 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2415 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2416 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2417 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2418 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2419 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2420 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2421 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2422 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2423 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2424 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2425 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2426 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2427 definitions outside of __OPTIMIZE__ guarded section.
2430 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2431 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2432 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2433 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2436 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2438 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2439 ("vfenez<mode>"): Add missing constraints.
2441 2017-03-08 Martin Sebor <msebor@redhat.com>
2444 * config/nds32/nds32.c (nds32_option_override):
2445 Fix misspelled diagnostic.
2447 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2450 * gimplify.c (gimplify_omp_for): Replace index var in outer
2451 taskloop statement with an artificial variable and add
2452 OMP_CLAUSE_PRIVATE clause for it.
2454 2017-03-08 Richard Biener <rguenther@suse.de>
2456 PR tree-optimization/79955
2457 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2458 for accesses that are completely outside of the variable.
2460 2017-03-08 Andrew Haley <aph@redhat.com>
2462 PR tree-optimization/79943
2463 * tree-ssa-loop-split.c (compute_new_first_bound): When
2464 calculating the new upper bound, (END-BEG) should be added, not
2467 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2469 * config/avr/avr.md (setmemhi): Make sure match_dup
2470 operand number comes before match_scratch.
2472 2017-03-08 Richard Biener <rguenther@suse.de>
2474 PR tree-optimization/79920
2475 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2476 with ncopies == 1 to ...
2477 (vect_transform_slp_perm_load): ... here. Properly compute
2478 all element loads by iterating VF times over the group. Do
2479 not handle ncopies (computed in a broken way) in
2480 vect_create_mask_and_perm.
2482 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2485 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2486 is a uniform vector, use uniform_vector_p return value instead of
2487 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2489 2017-03-07 Marek Polacek <polacek@redhat.com>
2492 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2493 (alloca_call_type): Likewise.
2495 2017-03-07 Martin Liska <mliska@suse.cz>
2497 * gcov.c (process_args): Put comment to correct location.
2499 2017-03-07 Martin Liska <mliska@suse.cz>
2502 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2503 Use array_at_struct_end_p instead of DECL_CHAIN (field).
2504 (chkp_narrow_bounds_for_field): Likewise.
2505 (chkp_parse_array_and_component_ref): Pass one more argument to
2508 2017-03-07 Richard Biener <rguenther@suse.de>
2510 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2513 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
2515 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2516 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2518 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2521 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2522 to end of description.
2523 (PARAM_MAX_STORES_TO_MERGE): Likewise.
2525 2017-03-07 Jakub Jelinek <jakub@redhat.com>
2527 PR rtl-optimization/79901
2528 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2530 (*avx512f_<code><mode>3<mask_name>): ... this.
2531 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2532 iterator instead of VI8_AVX2_AVX512BW.
2534 PR rtl-optimization/79901
2535 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2536 min/max expander, expand it using expand_vec_cond_expr.
2539 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2542 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2545 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2546 to void * for PCH reasons.
2547 * dwarf2out.c (output_loc_operands, output_die): Cast
2548 v.val_vec.array to unsigned char *.
2550 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
2553 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2556 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
2558 PR rtl-optimization/79571
2559 * lra-constraints.c (process_alt_operands): Calculate static
2560 reject and subtract it from overall when only addresses will be
2563 2017-03-06 Julia Koval <julia.koval@intel.com>
2566 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2567 incoming stack boundary to 128 for 64-bit targets.
2569 2017-03-06 Richard Biener <rguenther@suse.de>
2571 PR tree-optimization/79894
2572 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2573 to NULL after folding it.
2575 2017-03-06 Richard Biener <rguenther@suse.de>
2577 PR tree-optimization/79824
2578 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2579 check disabling peeling for gaps.
2581 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
2583 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2584 attributes): Document gettimeofday.
2586 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2588 * config/s390/s390.c (s390_option_override_internal): Set
2589 PARAM_MIN_VECT_LOOP_BOUND
2591 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2593 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2594 * config/s390/s390.md: Likewise.
2596 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2599 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2600 (<avx2_avx512>_perm<mode>): Rename to ...
2601 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
2603 (<avx512>_perm<mode>_mask): Rename to ...
2604 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
2606 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2607 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
2608 instead of VI8F_256_512.
2609 (avx512f_perm<mode>): New define_expand.
2610 (avx512f_perm<mode>_mask): Likewise.
2611 (avx512f_perm<mode>_1<mask_name>): New define_insn.
2612 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2614 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2616 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2617 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2619 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2621 2017-03-06 Martin Liska <mliska@suse.cz>
2624 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2625 when having a SSA NAME w/o VAR_DECL assigned to it.
2627 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2629 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2630 msa_dpsub_<su>_d): Fix MODE for vec_select.
2632 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2634 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2636 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2638 2017-03-06 Richard Biener <rguenther@suse.de>
2640 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2641 * plugin.c (register_plugin_info): Likewise.
2642 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2644 2017-03-05 Jakub Jelinek <jakub@redhat.com>
2646 * config/i386/sse.md (sse_storehps, sse_storelps,
2647 avx_<castmode><avxsizesuffix>_<castmode>,
2648 avx512f_<castmode><avxsizesuffix>_<castmode>,
2649 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2650 in condition that at least one operand is not a MEM.
2652 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2655 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2656 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2658 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2659 gimple_call_nothrow_p flag based on whether original builtin can throw.
2660 If it can, emit following stmts on the fallthrough edge.
2661 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2662 don't create new bb if inserting just debug stmts on the edge, try to
2663 insert them on the fallthru bb or just reset debug stmts.
2665 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
2668 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2669 restore recog_data (including the operand rtxes inside it) around
2670 the call to get_insn_template.
2672 2017-03-03 Martin Sebor <msebor@redhat.com>
2674 PR tree-optimization/79699
2675 * context.c (context::~context): Free MPFR caches to avoid
2676 a memory leak on program exit.
2678 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2680 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2681 Use wide_int::ulow () instead of .elt (0).
2683 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2685 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2686 (*pushxf): Limit oF constraint to 32bit targets and add oC
2687 constraint for 64bit targets.
2688 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2689 (*pushdf): Change rmF constraint to rmC.
2691 2017-03-03 Martin Liska <mliska@suse.cz>
2693 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2694 Remove unused variable.
2696 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2699 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2700 is a memory operand, increase num_memory.
2701 (ix86_expand_args_builtin): Likewise.
2703 2017-03-03 Jan Hubicka <jh@suse.cz>
2706 * ipa-devirt.c (maybe_record_node): Properly handle
2707 __cxa_pure_virtual visibility.
2709 2017-03-03 Martin Liska <mliska@suse.cz>
2711 PR tree-optimization/79803
2712 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2714 (pass_loop_prefetch::execute): Disabled optimization if an
2715 assumption about L1 cache size is not met.
2717 2017-03-03 Martin Liska <mliska@suse.cz>
2719 PR rtl-optimization/79574
2720 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2721 (hash_scan_set): Likewise.
2722 (dump_hash_table): Likewise.
2723 (hoist_code): Likewise.
2725 2017-03-03 Richard Biener <rguenther@suse.de>
2727 * fixed-value.c (fixed_from_string): Restore use of elt (1)
2728 in place of uhigh ().
2729 (fixed_convert_from_real): Likewise.
2731 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2734 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2736 2017-03-03 Richard Biener <rguenther@suse.de>
2739 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2740 TYPE_OVERFLOW_UNDEFINED check.
2742 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2744 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2746 (vector_ae_<mode>_p): Likewise.
2747 (vector_nez_<mode>_p): Likewise.
2748 (vector_ne_v2di_p): Likewise.
2749 (vector_ae_v2di_p): Likewise.
2750 (vector_ne_<mode>_p): Likewise.
2751 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2753 (vsx_tsqrt<mode>2_fe): Likewise.
2755 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
2758 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2760 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2762 PR rtl-optimization/79780
2763 * cprop.c (one_cprop_pass): When second and further conditional trap
2764 in a single basic block is turned into an unconditional trap, turn it
2765 into a deleted note to avoid RTL verification failures.
2767 2017-03-02 Richard Biener <rguenther@suse.de>
2769 * fold-const.c (const_binop): Use ulow () instead of elt (0).
2771 2017-03-02 Richard Biener <rguenther@suse.de>
2773 PR tree-optimization/79345
2775 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2776 param and abort the walk, returning -1 if it is hit.
2777 (walk_aliased_vdefs): Take a limit param and pass it on.
2778 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2779 defaulting to 0 and return a signed int.
2780 * tree-ssa-uninit.c (struct check_defs_data): New struct.
2781 (check_defs): New helper.
2782 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2783 about uninitialized memory.
2784 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2785 bogus uninitialized warning.
2786 (fixed_convert_from_real): Likewise.
2788 2017-03-02 Bin Cheng <bin.cheng@arm.com>
2790 PR tree-optimization/66768
2791 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2792 iv_use if base object can't be determined.
2794 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2796 PR tree-optimization/79345
2797 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2798 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2799 (get_pattern_stats): Initialize it.
2800 * genemit.c (gen_expand): Verify match_scratch numbers come after
2801 match_operand/match_dup numbers.
2802 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2803 match_scratch numbers.
2804 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2806 * config/s390/s390.md (trunctdsd2): Likewise.
2808 2017-03-02 Richard Biener <rguenther@suse.de>
2810 * wide-int.h (wide_int_storage::operator=): Implement in terms
2813 2017-03-02 Richard Biener <rguenther@suse.de>
2815 PR tree-optimization/79777
2816 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
2817 the to insert expression to sth existing.
2819 2017-03-01 Martin Sebor <msebor@redhat.com>
2822 * gimple-ssa-sprintf.c
2823 (directive::known_width_and_precision): New function.
2824 (format_integer): Use it.
2825 (get_mpfr_format_length): Consider the full range of precision
2826 when computing %g output with the # flag. Set the likely byte
2827 count to 3 rather than 1 when precision is indeterminate.
2828 (format_floating): Correct the lower bound of precision.
2830 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2832 * doc/invoke.texi: Document default code model for 64-bit Linux.
2834 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2837 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
2838 udiv rather than div since input pattern is unsigned.
2840 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
2842 * config/i386/i386.c (print_reg): Warn for values of
2843 unsupported size in integer register.
2845 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2848 * config/rs6000/predicates.md (current_file_function_operand): Do
2849 not allow self calls to be local if the function is replaceable.
2851 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2854 * config/rs6000/altivec.h (vec_ctz and others): Change the
2855 preprocessor macro that controls conditional compilation from
2856 _ARCH_PWR9 to __POWER9_VECTOR__.
2857 (vec_all_ne): Change parameterization of __altivec_scalar_pred
2858 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
2859 control (instead of _ARCH_PWR9 control) so that template
2860 definition uses power9-specific function.
2861 (vec_any_eq): Likewise.
2862 (vec_all_ne): Change macro definition to use a power9-specific
2863 expansion under #ifdef __POWER9_VECTOR__ control (instead of
2864 _ARCH_PWR9 control).
2865 (vec_any_eq) Likewise.
2866 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
2867 expansion for CMPNEF to remove support for xvcmpnesp instruction.
2868 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
2869 support for xvcmpnedp instruction.
2870 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
2871 macro expansion so that Power9 implementation of vec_all_ne does
2872 not use the AltiVec predicate framework.
2873 (VCMPNEH_P): Likewise.
2874 (VCMPNEW_P): Likewise.
2875 (VCMPNED_P): Likewise.
2876 (VCMPNEFP_P): Likewise.
2877 (VCMPNEDP_P): Likewise.
2878 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
2879 implementation of vec_any_eq to not use AltiVec predicate
2881 (VCMPAEH_P): Likewise.
2882 (VCMPAEW_P): Likewise.
2883 (VCMPAED_P): Likewise.
2884 (VCMPAEFP_P): Likewise.
2885 (VCMPAEDP_P): Likewise.
2886 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
2887 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
2888 not use the AltiVec predicate framework.
2889 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
2890 of vec_any_eq to not use AltiVec predicate framework.
2891 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
2892 support for predefined __POWER9_VECTOR__ macro to indicate that
2893 Power9 instruction selection is enabled.
2894 (altivec_overloaded_builtins): Remove extraneous
2895 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
2896 function argument types RS6000_BTI_bool_V16QI and
2897 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
2898 entry for overloaded function argument types RS6000_BTI_bool_V4SI
2899 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
2900 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
2901 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
2902 Power9 for implementations of vec_cmpne. Change the signature for
2903 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
2904 (representing vec_all_ne) to remove the previously described first
2905 argument of type RS6000_BTI_INTSI, as this was an artifact of
2906 reliance on the AltiVec predicate framework, which is no longer
2907 used in the implementation of these functions. Add
2908 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
2909 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
2910 since, unlike the AltiVec predicate framework implementation, we
2911 do not share function descriptors between vec_alle and vec_anyeq.
2912 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
2913 set of modes that receive special treatment even when
2914 TARGET_P9_VECTOR is true. The special treatment emits code that
2915 does not depend on Power9 instructions.
2916 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
2917 define_expand to not rely on AltiVec predicate framework.
2918 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2920 (vector_ne_v2di_p): Change this define_expand to not rely on
2921 AltiVec predicate framework.
2922 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
2924 (vector_ne_<mode>_p): Change this define_expand to not rely on
2925 AltiVec predicate framework.
2926 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2928 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
2929 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
2930 define_insn pattern.
2931 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
2932 define_insn pattern because the xvcmpne<VSs>. instruction is not
2934 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
2935 instruction is not supported.
2937 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2939 * config/nvptx/nvptx.c: Include intl.h.
2941 2017-03-01 Martin Jambor <mjambor@suse.cz>
2944 * ipa-prop.h (ipa_bits): Removed field known.
2945 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
2946 to pointers. Adjusted their comments to warn about their sharing.
2947 (ipcp_transformation_summary): Change bits to a vector of pointers.
2948 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
2949 (ipa_get_ipa_bits_for_value): Declare.
2950 * tree-vrp.h (value_range): Mark as GTY((for_user)).
2951 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
2952 (ipa_bits_hash_table): Likewise.
2953 (ipa_vr_ggc_hash_traits): Likewise.
2954 (ipa_vr_hash_table): Likewise.
2955 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
2956 being pointers and vr_known being removed.
2957 (ipa_set_jf_unknown): Likewise.
2958 (ipa_get_ipa_bits_for_value): New function.
2959 (ipa_set_jfunc_bits): Likewise.
2960 (ipa_get_value_range): New overloaded functions.
2961 (ipa_set_jfunc_vr): Likewise.
2962 (ipa_compute_jump_functions_for_edge): Use the above functions to
2963 construct bits and vr parts of jump functions.
2964 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
2965 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2967 (ipcp_grow_transformations_if_necessary): Also allocate
2968 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2970 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
2971 them. Fix too long lines.
2972 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
2973 vr_known being removed.
2974 (ipa_read_jump_function): Use new setter functions to construct bits
2975 and vr parts of jump functions or set them to NULL.
2976 (write_ipcp_transformation_info): Adjust for bits being pointers.
2977 (read_ipcp_transformation_info): Likewise.
2978 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
2980 Include gt-ipa-prop.h.
2981 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
2983 (ipcp_store_bits_results): Likewise.
2984 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
2985 Do not write to existing jump functions but use a temporary instead.
2987 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2990 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
2991 attempt to use its first operand as BIT_FIELD_REF base.
2993 2017-03-01 Richard Biener <rguenther@suse.de>
2996 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
2997 interpolating formula in wrapping arithmetic.
2998 (chrec_apply): Convert chrec_evaluate return value to wanted type.
3000 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3002 PR tree-optimization/79734
3003 * tree-vect-generic.c (expand_vector_condition): Optimize
3004 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
3005 Handle VEC_COND_EXPR where comparison has different inner width from
3008 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
3010 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
3011 markup, and similar issues. Remove @opindex entries for things
3012 that aren't options. Add missing -mmpy-option entries.
3014 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3016 PR tree-optimization/79737
3017 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
3018 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
3019 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
3020 instead of byte_size. Formatting fix.
3021 (shift_bytes_in_array_right): Formatting fix.
3023 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
3026 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
3027 condition on optimize for the leaf function test.
3029 2017-02-28 Martin Liska <mliska@suse.cz>
3032 * read-rtl-function.c (function_reader::handle_unknown_directive):
3033 Bail out when one uses -flto.
3035 2017-02-28 Martin Liska <mliska@suse.cz>
3037 * common.opt: Replace space with tabular for options of <number>
3039 * config/i386/i386.opt: Show <number> value for
3040 -mlarge-data-threshold.
3041 * opts.c (print_filtered_help): Do not display number in hexadecimal
3044 2017-02-28 Martin Liska <mliska@suse.cz>
3046 * common.opt: Fix --help=option -Q for options which are of
3049 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
3051 * config/i386/i386.c (print_reg): Error out for values
3052 of 8-bit size in invalid integer register.
3054 2017-02-28 Martin Sebor <msebor@redhat.com>
3056 PR tree-optimization/79691
3057 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
3059 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3062 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
3063 gcc_unreachable with output_operand_lossage.
3065 2017-02-28 Richard Biener <rguenther@suse.de>
3067 PR tree-optimization/79740
3068 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
3070 (visit_nary_op): Insert the nary into the hashtable if we
3071 pattern-matched sth.
3072 * tree-ssa-pre.c (eliminate_insert): Robustify.
3074 2017-02-28 Richard Biener <rguenther@suse.de>
3077 * fold-const.c (decode_field_reference): Reject out-of-bound
3080 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3082 * config/i386/i386.c: Include intl.h.
3083 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
3084 instead of just cond ? "..." : "...".
3085 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
3086 * coverage.c (read_counts_file): Likewise.
3087 * omp-offload.c: Include intl.h.
3088 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
3089 of just cond ? "..." : "...".
3090 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
3091 of just cond ? "..." : "...".
3093 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
3096 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
3098 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
3099 'tune for' CPU name.
3100 * config/arm/arm-cpu-data.h: Regenerated.
3102 2017-02-28 Richard Biener <rguenther@suse.de>
3104 PR tree-optimization/79732
3105 * tree-inline.c (expand_call_inline): Do not shadow var.
3107 2017-02-28 Richard Biener <rguenther@suse.de>
3109 PR tree-optimization/79723
3110 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
3111 address-space properly.
3113 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
3115 * doc/optinfo.texi (Optimization groups): Fix option used for
3117 * doc/invoke.texi (-fopt-info): Document "omp".
3118 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
3119 (OPTGROUP_ALL): Add OPTGROUP_OMP.
3120 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
3121 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
3122 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
3124 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
3126 * dumpfile.c (optgroup_options): Instead of "openmp", associate
3127 OPTGROUP_OMP with "omp".
3129 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
3132 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
3133 for arithmetic shift of unsigned V2DI.
3135 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
3137 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
3138 arc/linux.h headers.
3139 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
3140 (LINK_SPEC): Likewise.
3141 (ARC_TLS_EXTRA_START_SPEC): Likewise.
3142 (EXTRA_SPECS): Likewise.
3143 (STARTFILE_SPEC): Likewise.
3144 (ENDFILE_SPEC): Likewise.
3145 (LIB_SPEC): Likewise.
3146 (TARGET_SDATA_DEFAULT): Likewise.
3147 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
3148 (MULTILIB_DEFAULTS): Likewise.
3149 (DWARF2_UNWIND_INFO): Likewise.
3150 * config/arc/big.h: New file.
3151 * config/arc/elf.h: Likewise.
3152 * config/arc/linux.h: Likewise.
3153 * config/arc/t-uClibc: Remove.
3155 2017-02-27 Bin Cheng <bin.cheng@arm.com>
3157 PR tree-optimization/77536
3158 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
3159 (tree_transform_and_unroll_loop): Use above function to compute the
3160 estimated niter of unrolled loop and use it when scaling profile.
3161 Also use count info rather than frequency if it's non-zero.
3162 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
3163 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
3164 (vect_transform_loop): Call above function.
3166 2017-02-27 Richard Biener <rguenther@suse.de>
3168 PR tree-optimization/45397
3169 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
3170 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
3171 (visit_nary_op): Add pattern matching for CSEing sign-changed
3172 or truncated operations with wider ones.
3174 2017-02-27 Richard Biener <rguenther@suse.de>
3176 PR tree-optimization/79690
3177 * tree-vect-stmts.c (vectorizable_store): Use vector type
3178 built from the DR with address-space.
3180 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3182 * doc/invoke.texi (Optimize Options): Refine the description
3183 of asan-use-after-return.
3185 2017-02-25 Alan Modra <amodra@gmail.com>
3187 PR rtl-optimization/79584
3188 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
3189 base, not ad->base_term, the reg within base. Remove assertion
3190 that ad->base == ad->base_term. Replace gen_int_mode using
3191 bogus mode with const0_rtx.
3193 2017-02-25 Jakub Jelinek <jakub@redhat.com>
3196 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
3197 FMA_EXPR like tcc_binary or tcc_unary.
3199 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
3202 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
3204 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
3205 (output_loc_operands): Handle DW_OP_call_ref and
3206 DW_OP_GNU_variable_value.
3207 (struct variable_value_struct): New type.
3208 (struct variable_value_hasher): Likewise.
3209 (variable_value_hash): New variable.
3210 (string_types): Remove.
3211 (copy_loc_descr): New function.
3212 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
3213 (prepend_loc_descr_to_each): New function.
3214 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
3215 instead of add_loc_descr_to_each if the first argument is single
3216 location list and the second has multiple.
3217 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
3218 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
3219 when looking for variable value which doesn't have other location info.
3220 (loc_list_from_tree): Formatting fix.
3221 (gen_array_type_die): Simplify DW_AT_string_length handling.
3222 (adjust_string_types): Remove.
3223 (gen_subprogram_die): Don't call adjust_string_types nor test/set
3224 string_types. Call resolve_variable_values.
3225 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
3226 (resolve_addr_in_expr): Likewise. Add A argument.
3227 (copy_deref_exprloc): Remove deref argument. Adjust for the
3228 original expression being DW_OP_GNU_variable_value with optionally
3229 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
3230 optionally after it.
3231 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
3232 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
3233 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
3234 (variable_value_hasher::hash, variable_value_hasher::equal): New
3236 (resolve_variable_value_in_expr, resolve_variable_value,
3237 resolve_variable_values, note_variable_value_in_expr,
3238 note_variable_value): New functions.
3239 (dwarf2out_early_finish): Call note_variable_value on all toplevel
3242 2017-02-24 Jakub Jelinek <jakub@redhat.com>
3245 * opts.h (handle_generated_option): Add GENERATED_P argument.
3246 * opts-common.c (handle_option): Adjust function comment.
3247 (handle_generated_option): Add GENERATED_P argument, pass it to
3249 (control_warning_option): Pass false to handle_generated_option
3251 * opts.c (maybe_default_option): Pass true to handle_generated_option
3253 * optc-gen.awk: Likewise.
3255 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3257 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
3258 a REG, look at the REG it is a SUBREG of.
3259 (splitter for cmpeqsi_t): Ditto.
3261 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3263 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
3264 the special USEs with the pattern of the insn, not the insn itself.
3266 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
3269 * doc/invoke.texi: Document -mload-store-pairs.
3271 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3272 Sandra Loosemore <sandra@codesourcery.com>
3274 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
3275 argument isn't a CONST_INT.
3276 (nios2_alternate_compare_const): Assert op is a CONST_INT.
3277 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
3278 (nios2_validate_compare): Bypass alternate compare logic if *op2
3280 (ldstwm_operation_p): Return false if first_base is not a REG or
3281 if first_offset is not a CONST_INT.
3283 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3285 * config/cris/cris.md: Use correct operand in a define_peephole2.
3287 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3289 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
3291 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3293 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
3294 this_insn if it is an INSN or JUMP_INSN.
3295 (force_offsettable): Look at base, not at addr.
3296 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
3297 on things that aren't necessarily CONST_INTs.
3299 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
3301 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
3302 -mfpmath=sse is the default also for x86-32 targets with SSE2
3303 instruction set when @option{-ffast-math} is enabled
3305 2017-02-24 Jeff Law <law@redhat.com>
3307 PR rtl-optimizatoin/79286
3308 * ira.c (update_equiv_regs): Drop may_trap_p exception to
3311 2017-02-24 Richard Biener <rguenther@suse.de>
3313 PR tree-optimization/79389
3314 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3317 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
3319 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3320 function comment to reflect reality.
3321 (loop_exits_before_overflow): Fix typo in function description.
3323 2017-02-24 Richard Biener <rguenther@suse.de>
3325 PR tree-optimization/79389
3326 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3327 properly that a threading opportunity exists. Detect conditional
3328 copy/constant propagation opportunities.
3330 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
3332 * config/visium/visium.md (type): Add trap.
3333 (b): New mode attribute.
3334 (*btst): Rename into...
3335 (*btst<mode>): ...this and adjust.
3336 (*cbranchsi4_btst_insn): Rename into...
3337 (*cbranch<mode>4_btst_insn): ...this and adjust.
3338 (trap): New define_insn.
3340 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3342 PR tree-optimization/79389
3343 * ifcvt.c (struct noce_if_info): Add rev_cond field.
3344 (noce_reversed_cond_code): New function.
3345 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3346 reversed_comparison_code. Formatting fix.
3347 (noce_try_store_flag): Test rev_cond != NULL in addition to
3348 reversed_comparison_code.
3349 (noce_try_store_flag_constants): Likewise.
3350 (noce_try_store_flag_mask): Likewise.
3351 (noce_try_addcc): Use rev_cond if non-NULL instead of
3352 reversed_comparison_code.
3353 (noce_try_cmove_arith): Likewise. Formatting fixes.
3354 (noce_try_minmax, noce_try_abs): Clear rev_cond.
3355 (noce_find_if_block): Initialize rev_cond.
3356 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3357 instead of false as last argument never attempt to reverse it
3360 2017-02-23 Bin Cheng <bin.cheng@arm.com>
3362 PR tree-optimization/79663
3363 * tree-predcom.c (combine_chains): Process refs in reverse order
3364 only for ZERO length chains, and add explaining comment.
3366 2017-02-23 Jeff Law <law@redhat.com>
3368 PR tree-optimization/79578
3369 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3370 in call to operand_equal_p.
3372 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
3375 * config/i386/cpuid.h: Fix another undefined behavior.
3377 2017-02-23 Richard Biener <rguenther@suse.de>
3379 PR tree-optimization/79683
3380 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3381 vector types for data-refs.
3383 2017-02-23 Martin Liska <mliska@suse.cz>
3385 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3387 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3390 * internal-fn.c (get_range_pos_neg): Moved to ...
3391 * tree.c (get_range_pos_neg): ... here. No longer static.
3392 * tree.h (get_range_pos_neg): New prototype.
3393 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3394 are known to be in between 0 and signed maximum inclusive, try to
3395 expand both unsigned and signed divmod and use the cheaper one from
3398 2017-02-22 Jeff Law <law@redhat.com>
3400 PR tree-optimization/79578
3401 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3402 to compare base operands.
3404 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
3407 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3408 gpc_reg_operand instead of fpr_reg_operand.
3410 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
3412 * config/mips/mips.c (mips_return_in_memory): Force FP
3413 vector types to be returned in memory for o32 ABI.
3415 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3417 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3418 instead of DW_TAG_member for static data member declarations and don't
3419 set no_linkage_name for static inline data members.
3420 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3423 2017-02-22 Martin Liska <mliska@suse.cz>
3425 * doc/invoke.texi: Replace inequality signs with square brackets
3428 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3430 PR tree-optimization/68644
3431 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3433 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
3436 * lra-constraints.c (simplify_operand_subreg): Handle
3437 WORD_REGISTER_OPERATIONS targets.
3439 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3442 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3443 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3444 elimination by swapping fld*.
3446 2017-02-22 Richard Biener <rguenther@suse.de>
3448 PR tree-optimization/79673
3449 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3450 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3451 irrelevant address-space qualifiers and avoiding a
3452 ADDR_SPACE_CONVERT_EXPR from fold_convert.
3454 2017-02-22 Richard Biener <rguenther@suse.de>
3456 PR tree-optimization/79666
3457 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3458 to not symbolically negate if that may introduce undefined
3461 2017-02-22 Martin Liska <mliska@suse.cz>
3464 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3465 * data-streamer-out.c (streamer_write_gcov_count_stream):
3467 * value-prof.c (stream_out_histogram_value): Make assert more
3468 precise based on type of counter.
3470 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
3473 * config/i386/i386.md (standard_x87sse_constant_load splitter):
3474 Use nonimmediate_operand instead of memory_operand for operand 1.
3475 (float-extend standard_x87sse_constant_load splitter): Ditto.
3477 2017-02-21 Jeff Law <law@redhat.com>
3479 PR tree-optimization/79621
3480 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3481 blocks with edges to themselves.
3483 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3486 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3487 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3488 Use gimple_call_builtin_p.
3491 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3492 on temporarily removed DEBUG_INSNs.
3494 PR tree-optimization/79649
3495 * tree-loop-distribution.c (classify_partition): Give up on
3496 non-generic address space loads/stores.
3498 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
3500 * doc/loop.texi (Loop manipulation): Remove nonexistent
3501 tree_ssa_loop_version from the documentation.
3502 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3504 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3507 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3508 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3509 * config/rs6000/rs6000.c: Include except.h.
3510 (rs6000_expand_split_stack_prologue): Call
3511 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3513 2017-02-21 Martin Jambor <mjambor@suse.cz>
3516 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3519 2017-02-21 Martin Jambor <mjambor@suse.cz>
3521 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3522 for backward compatibility only.
3523 * doc/invoke.texi (Option Summary): Remove all references to
3526 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
3530 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3532 * lra-constraints.c (curr_insn_transform): Handle
3533 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3535 2017-02-21 Martin Liska <mliska@suse.cz>
3537 * config/i386/i386.opt: Replace -masm-dialect with -masm.
3539 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
3541 PR translation/79638
3542 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3544 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
3547 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3548 (arm_function_ok_for_sibcall): Return false for an indirect call by
3549 descriptor if all the argument registers are used.
3550 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3551 alignment of the function.
3553 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3555 PR tree-optimization/61441
3556 * simplify-rtx.c (simplify_const_unary_operation): For
3557 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3558 the sNaN unmodified.
3560 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3562 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3563 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3564 instead of SYSTEM_HEADER_DIR.
3566 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
3567 Martin Liška <mliska@suse.cz>
3569 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3570 Fix typos and grammar, use active voice, and clarify.
3572 2017-02-20 Marek Polacek <polacek@redhat.com>
3575 * gimplify.c (gimplify_expr): Handle unused *&&L;.
3578 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3580 2017-02-20 Jakub Jelinek <jakub@redhat.com>
3583 * config/i386/i386.c (ix86_expand_builtin): Handle
3584 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3585 ix86_builtins_isa[fcode].isa as a requirement of those
3586 flags and any other flag in the bitmask.
3587 (ix86_init_mmx_sse_builtins): Use 0 instead of
3588 ~OPTION_MASK_ISA_64BIT as mask.
3589 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3590 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3591 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3592 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3594 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3597 * lra-constraints.c (split_reg): Check requested split mode
3598 is supported by the register.
3600 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3602 * lra-constraints.c (simplify_operand_subreg): Remove early
3605 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3608 * lra-constraints.c (curr_insn_transform): Tighten condition
3609 for converting SUBREG reloads from OP_OUT to OP_INOUT.
3611 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3614 * lra-constraints.c (curr_insn_transform): Handle
3615 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3617 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
3620 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
3622 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3624 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
3627 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3630 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3632 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3635 2017-02-18 Jakub Jelinek <jakub@redhat.com>
3637 * final.c (last_columnnum, override_columnnum): New variables.
3638 (final_start_function): Set last_columnnum, pass it to begin_prologue
3639 hook and pass 0 to dwarf2out_begin_prologue.
3640 (final_scan_insn): Update override_columnnum. Pass last_columnnum
3641 to source_line debug hook.
3642 (notice_source_line): Compute last_columnnum and for debug_column_info
3643 return true on column changes.
3644 * debug.h (struct gcc_debug_hooks): Add column argument to
3645 source_line and begin_prologue hooks.
3646 (debug_nothing_int_charstar_int_bool): Remove prototype.
3647 (debug_nothing_int_int_charstar,
3648 debug_nothing_int_int_charstar_int_bool): New prototypes.
3649 (dwarf2out_begin_prologue): Add column argument.
3650 * debug.c (do_nothing_debug_hooks): Adjust source_line and
3651 begin_prologue hooks.
3652 (debug_nothing_int_charstar_int_bool): Remove.
3653 (debug_nothing_int_int_charstar,
3654 debug_nothing_int_int_charstar_int_bool): New functions.
3655 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3656 through to dwarf2out_source_line.
3657 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3658 (dwarf2out_source_line): Add column argument, emit it if requested.
3659 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3661 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3662 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3663 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3664 through to dwarf2out_begin_prologue.
3665 (vmsdbgout_source_line): Add column argument, pass it through to
3666 dwarf2out_source_line.
3667 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3668 dbxout_source_line caller.
3669 (dbxout_source_line): Add column argument.
3671 * common.opt (gno-column-info, gcolumn-info): New options.
3672 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3673 (check_die): Also test for multiple DW_AT_decl_column attributes.
3674 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3675 DW_AT_decl_column if requested.
3676 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3678 (gen_variable_die): Likewise.
3679 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3680 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3683 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3684 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3685 (ix86_handle_option): Handle OPT_m3dnowa.
3686 * doc/invoke.texi (-m3dnowa): Document.
3687 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3688 -m3dnowa instead of -m3dnow -march=athlon.
3691 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3692 instead of gcc_assert for K, r and R code checks. Formatting fixes.
3694 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3697 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3698 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3699 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3700 generator for vsx_xxpermdi_<mode>_be.
3701 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3702 force big-endian semantics.
3703 (vsx_xxpermdi_<mode>_be): New define_expand with same
3704 implementation as previous version of vsx_xxpermdi_<mode>.
3706 2017-02-17 Jakub Jelinek <jakub@redhat.com>
3708 PR tree-optimization/79327
3709 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3710 variable, its initialization and use.
3712 2017-02-17 Julia Koval <julia.koval@intel.com>
3714 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3715 (OPTION_MASK_ISA_PKU_UNSET): New.
3716 (ix86_handle_option): Handle -mrdpid.
3717 * config/i386/cpuid.h (bit_RDPID): New.
3718 * config/i386/driver-i386.c (host_detect_local_cpu):
3719 Detect RDPID feature.
3720 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3721 * config/i386/i386-c.c (ix86_target_macros_internal):
3723 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3724 (ix86_valid_target_attribute_inner_p): Add "rdpid".
3725 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3726 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3727 * config/i386/i386.md (define_insn "rdpid"): New.
3728 * config/i386/i386.opt Add -mrdpid.
3729 * config/i386/immintrin.h (_rdpid_u32): New.
3731 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
3733 PR rtl-optimization/79541
3734 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3735 instead of transforming it into USE.
3737 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
3739 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3740 If HONOR_SNANS (SFmode) force the input to a register.
3741 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3742 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3743 an frsp or similar insn.
3745 2017-02-17 Martin Liska <mliska@suse.cz>
3747 PR rtl-optimization/79577
3748 * params.def (selsched-max-sched-times): Increase minimum to 1.
3750 2017-02-17 Martin Liska <mliska@suse.cz>
3752 PR rtl-optimization/79574
3753 * gcse.c (want_to_gcse_p): Prevent integer overflow.
3755 2017-02-17 Martin Liska <mliska@suse.cz>
3757 PR tree-optimization/79529
3758 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3759 ssa_defined_default_def_p to handle cases which are implicitly
3761 * tree-ssa.c (ssa_defined_default_def_p): New function.
3762 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3763 which are implicitly defined.
3764 * tree-ssa.h (ssa_defined_default_def_p): Declare.
3766 2017-02-17 Richard Biener <rguenther@suse.de>
3769 * params.def (max-ssa-name-query-depth): Limit to 10.
3771 2017-02-17 Richard Biener <rguenther@suse.de>
3773 PR tree-optimization/79552
3774 * tree-ssa-structalias.c (visit_loadstore): Properly verify
3777 2017-02-17 Richard Biener <rguenther@suse.de>
3780 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3782 2017-02-17 Marek Polacek <polacek@redhat.com>
3785 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3786 (fold_negate_expr): New wrapper.
3788 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
3790 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
3791 Correct terminology and de-emphasize pre-standard behavior.
3793 2017-02-16 Alan Modra <amodra@gmail.com>
3795 PR rtl-optimization/79286
3796 * ira.c (def_dominates_uses): New function.
3797 (update_equiv_regs): Don't create an equivalence for insns that
3798 may trap where the register def does not dominate the use.
3800 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
3802 PR rtl-optimization/78127
3803 * lra.c (lra): Call lra_eliminate before finish the loop after
3806 2017-02-16 Richard Biener <rguenther@suse.de>
3808 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3810 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3811 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3812 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3813 (isl_val_int_from_wi): New function.
3814 (extract_affine_gmp): Rename to ...
3815 (extract_affine_wi): ... this, take a widest_int.
3816 (extract_affine_int): Just wrap extract_affine_wi.
3817 (add_param_constraints): Use isl_val_int_from_wi.
3818 (add_loop_constraints): Likewise, and extract_affine_wi.
3820 2017-02-15 Jeff Law <law@redhat.com>
3823 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
3824 ira_init_register_move_cost_if_necessary.
3826 2017-02-15 Martin Sebor <msebor@redhat.com>
3829 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
3830 removed in a prior commit.
3832 2017-02-15 Bin Cheng <bin.cheng@arm.com>
3834 PR tree-optimization/79347
3835 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
3836 counters during peeling.
3838 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
3840 * Makefile.in (site.exp): Remove "set ISLVER".
3842 2017-02-15 Jakub Jelinek <jakub@redhat.com>
3845 * real.c (real_from_integer): Call real_convert even for decimal.
3847 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3850 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3852 2017-02-14 Andrew Pinski <apinski@cavium.com>
3854 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
3855 cores and change the partno/implementer to be correct.
3856 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
3857 the 'B" as the implementer.
3858 * config/aarch64/aarch64-tune.md: Regenerate.
3860 2017-02-14 Carl Love <cel@us.ibm.com>
3862 * config/rs6000/rs6000.c: Add case statement entry to make the
3863 xvcvuxdsp built-in argument unsigned.
3864 * config/rs6000/vsx.md: Fix the source and return operand types so they
3865 match the instruction definitions from the ISA document. Fix typo
3866 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
3869 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
3872 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
3873 member early_clobber_alts.
3874 * lra-lives.c (reg_early_clobber_p): New.
3875 (process_bb_lives): Use it.
3876 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
3877 (debug_operand_data): Initialize early_clobber_alts.
3878 (setup_operand_alternative): Set up early_clobber_alts.
3879 (collect_non_operand_hard_regs): Ditto. Pass early clobber
3880 alternatives to new_insn_reg.
3881 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
3883 (lra_update_insn_regno_info): Pass the new arg.
3885 2017-02-14 Jakub Jelinek <jakub@redhat.com>
3888 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
3889 (new_oacc_loop_raw): Don't clear already cleared fields.
3892 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
3893 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
3894 _mm512_prefetch_i64gather_ps): New inline functions and macros.
3896 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
3899 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
3901 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
3904 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
3905 the extra instruction to the right place to store 128-bit constant
3908 2017-02-14 Martin Sebor <msebor@redhat.com>
3911 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
3912 warning for strings of unknown length.
3914 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
3916 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
3918 2017-02-14 Jeff Law <law@redhat.com>
3921 * ira-costs.c (scan_one_insn): Initialize register move costs
3922 for pseudos seen in USE/CLOBBER insns.
3924 PR tree-optimization/79095
3925 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
3926 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
3927 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
3928 if the operands are known to be not equal, then the resulting range
3930 (intersect_ranges): If the new range is ~[0,0] and the old range is
3931 wide, then prefer ~[0,0].
3932 * tree-vrp.c (overflow_comparison_p_1): New function.
3933 (overflow_comparison_p): New function.
3934 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
3935 if NAME is used in an overflow test.
3936 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
3937 overflow check that can be expressed as an equality test, then adjust
3938 ops to be that equality test.
3940 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3942 * config/s390/s390-builtin-types.def: Remove flags argument.
3943 * config/s390/s390.c (s390_init_builtins): Likewise.
3945 2017-02-14 Martin Liska <mliska@suse.cz>
3947 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
3948 vector. Fix trailing white spaces.
3950 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
3952 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
3955 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3957 PR rtl-optimization/68664
3958 * config/arm/arm.c (arm_sched_can_speculate_insn):
3959 New function. Declare prototype.
3960 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3962 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3964 PR rtl-optimization/68664
3965 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
3967 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3969 2017-02-14 Amit Pawar <amit.pawar@amd.com>
3971 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
3972 max skip bytes for function, loop and jump.
3974 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3976 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
3977 ABS_EXPR for gimple dump.
3979 2017-02-14 Jakub Jelinek <jakub@redhat.com>
3982 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
3984 PR tree-optimization/79408
3985 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
3986 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
3987 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3988 also if rhs1 is INTEGER_CST.
3990 2017-02-14 Richard Biener <rguenther@suse.de>
3993 * tree-into-ssa.c (insert_phi_nodes): When the function can
3994 have abnormal edges rewrite SSA names with broken use-def
3995 dominance out of SSA and register them for PHI insertion.
3997 2017-02-13 Martin Sebor <msebor@redhat.com>
4000 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
4001 clearing info.nowrite flag when snprintf size argument is a range.
4003 2017-02-13 Jakub Jelinek <jakub@redhat.com>
4005 * cprop.c (cprop_jump): Add missing space in string literal.
4006 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4007 (get_constraint_for_component_ref): Likewise.
4008 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4009 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
4010 * lra-constraints.c (process_alt_operands): Likewise.
4011 * ipa-inline.c (inline_small_functions): Likewise.
4012 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
4013 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4014 * trans-mem.c (diagnose_tm_1_op): Likewise.
4015 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
4016 (grid_parallel_clauses_gridifiable): Likewise.
4018 * config/nvptx/mkoffload.c (process): Add space in between
4021 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
4022 "MOD4_SSE_REGS" and "ALL_REGS".
4024 * spellcheck.c (test_data): Add , in between "foo" and "food".
4026 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4029 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
4030 boundary crossing check and subsequent code generation agree.
4032 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4034 * config/aarch64/aarch64.c (has_memory_op): Delete.
4035 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
4038 2017-02-13 Jakub Jelinek <jakub@redhat.com>
4040 PR rtl-optimization/79388
4041 PR rtl-optimization/79450
4042 * combine.c (distribute_notes): When removing TEM_INSN for which
4043 corresponding dest has last value recorded, invalidate that last
4046 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4048 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
4049 of explicit '@'. Add missing assembly comment marker on branch costs
4052 2017-02-13 Nathan Sidwell <nathan@acm.org>
4054 * gengtype-lex.l (<in_struct>): Add '/'.
4056 2017-02-13 Martin Liska <mliska@suse.cz>
4059 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
4061 2017-02-13 Richard Biener <rguenther@suse.de>
4063 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
4065 * configure: Re-generate.
4066 * config.in: Likewise.
4067 * graphite-dependences.c: Simplify as if
4068 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
4069 * graphite-isl-ast-to-gimple.c: Likewise.
4070 * graphite-optimize-isl.c: Likewise.
4071 * graphite-poly.c: Likewise.
4072 * graphite-sese-to-poly.c: Likewise.
4073 * graphite.h: Likewise.
4074 * toplev.c: Include isl/version.h and use isl_version () for
4075 printing the ISL version.
4076 * doc/install.texi: Update ISL requirement.
4078 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4080 * doc/standards.texi (Standards): Update reference to
4083 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4085 * doc/extend.texi (Named Address Spaces): sourceware.org now
4087 * doc/install.texi (Binaries): Ditto.
4090 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
4092 * doc/cpp.texi: Replace "stringify"/"stringification" with C
4093 standard terminology "stringize"/"stringizing" throughout.
4094 * doc/cppinternals.texi: Likewise.
4096 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
4098 * doc/extend.texi: Fix some spelling mistakes and typos.
4099 * doc/invoke.texi: Likewise.
4101 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4104 * params.def (inline-min-speedup) Change from 10 to 8.
4106 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4108 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
4111 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4114 * ipa-inline-analysis.c (get_minimal_bb): New function.
4115 (record_modified): Use it.
4116 (remap_edge_change_prob): Handle also ancestor functions.
4118 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
4120 * doc/contrib.texi (Contributors): Remove broken link into
4121 the Mauve CVS repository.
4123 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4126 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
4127 result computation whenever lhs doesn't have vector mode, not
4128 just when it has BLKmode.
4130 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4132 * doc/makefile.texi (profiledbootstrap): Refer to the
4133 installation instructions only in textual form.
4135 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4138 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
4140 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4142 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
4143 (Specific): Update mingw-w64 reference.
4145 (Specific): Remove broken link to Renesas RX processor.
4147 2017-02-10 Richard Biener <rguenther@suse.de>
4149 * toplev.c (process_options): Do not mention obsolete graphite
4150 options when printing sorry message about missing graphite support.
4151 Mention -floop-nest-optimize.
4153 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
4155 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
4156 (vtst_p16): Likewise.
4157 (vtstq_p8): Likewise.
4158 (vtstq_p16): Likewise.
4160 (vtstq_p64): Likewise.
4161 * config/arm/arm_neon.h (vgetq_lane_p64): New.
4162 (vset_lane_p64): New.
4163 (vsetq_lane_p64): New.
4165 2017-02-10 Jakub Jelinek <jakub@redhat.com>
4167 PR tree-optimization/79411
4168 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
4169 stmt operands are SSA_NAMEs used in abnormal phis.
4170 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
4173 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4176 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
4179 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4181 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
4183 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4185 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
4189 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
4190 not arbitrary TREE_CONSTANT.
4193 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
4194 "omp declare target link" attribute unless is_global_var.
4195 * omp-offload.c (find_link_var_op): Likewise.
4197 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4198 Chung-Lin Tang <cltang@codesourcery.com>
4200 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
4202 (gimplify_adjust_omp_clauses): Don't delete TILE.
4203 (gimplify_omp_for): Deal with TILE.
4204 * internal-fn.c (expand_GOACC_TILE): New function.
4205 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
4207 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
4208 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
4210 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
4211 avoid DIV for outermost collapse var.
4212 (expand_oacc_for): Insert tile element loop as needed. Adjust.
4213 Remove out of date comments, fix whitespace.
4214 * omp-general.c (omp_extract_for_data): Deal with tiling.
4215 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
4216 adjust OLF_DIM_BASE value.
4217 (struct omp_for_data): Add tiling field.
4218 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
4219 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
4220 for auto loops. Remove default auto determining, moved to
4221 oacc_loop_fixed_partitions.
4222 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
4223 stmts, add e_mask field.
4224 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
4225 (oacc_thread_numbers): Use oacc_dim_call.
4226 (oacc_xform_tile): New.
4227 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
4228 (finish_oacc_loop): Adjust for ifns vector.
4229 (oacc_loop_discover_walk): Append loop abstraction sites to list,
4230 add case for GOACC_TILE fns.
4231 (oacc_loop_xform_loop): Delete.
4232 (oacc_loop_process): Iterate over call list directly, and add
4233 handling for GOACC_TILE fns.
4234 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
4236 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
4237 vector partitioning to outer loops. Assign 2 partitions to loops
4238 when available. Add TILE handling.
4239 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
4240 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
4241 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
4242 * tree.c (omp_clause_num_ops): Adjust TILE ops.
4243 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
4245 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
4247 * configure.ac (ACX_BUGURL): Update.
4248 * configure: Regenerate.
4250 2017-02-09 Richard Biener <rguenther@suse.de>
4252 PR tree-optimization/69823
4253 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4254 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
4256 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4258 * config/arc/arc-c.def: Add __NPS400__ definition.
4259 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
4260 (TARGET_NPS400): Define.
4262 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4264 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
4266 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
4268 (arc_cpu_types): Fill the arch_info field with a pointer into the
4269 arc_arch_types table.
4270 (arc_selected_cpu): Declare.
4271 * config/arc/arc.c (arc_selected_cpu): Make global.
4272 (arc_selected_arch): Delete.
4273 (arc_base_cpu): Delete.
4274 (arc_override_options): Remove references to deleted variables,
4275 update access to arch information.
4276 (ARC_OPT): Update access to arch information.
4277 (ARC_OPTX): Likewise.
4278 * config/arc/arc.h (arc_base_cpu): Remove declaration.
4279 (TARGET_ARC600): Update access to arch information.
4280 (TARGET_ARC601): Likewise.
4281 (TARGET_ARC700): Likewise.
4282 (TARGET_EM): Likewise.
4283 (TARGET_HS): Likewise.
4284 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
4287 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
4290 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
4291 condition/operands for integer GE/LE/GEU/LEU operations.
4293 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
4295 PR translation/79397
4296 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
4299 2017-02-08 Martin Jambor <mjambor@suse.cz>
4302 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
4303 whether allocation happened.
4304 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
4305 nothing was allocated.
4307 2017-02-08 Jakub Jelinek <jakub@redhat.com>
4309 PR tree-optimization/79408
4310 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
4311 constant, but SSA_NAME with a known integer range, use the minimum
4312 of that range instead of op1 to determine if modulo can be replaced
4313 with its first operand.
4315 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4317 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4319 2017-02-08 Richard Biener <rguenther@suse.de>
4321 PR tree-optimization/71824
4322 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4323 Check all loops contained in the merged region.
4325 2017-02-07 Andrew Pinski <apinski@cavium.com>
4327 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4329 2017-02-07 Andrew Pinski <apinski@cavium.com>
4331 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4332 (thunderxt88): Likewise.
4333 (thunderxt81): Disable LSE and change v8.1 to v8.
4334 (thunderxt83): Likewise.
4336 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4337 Richard Biener <rguenther@suse.de>
4340 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4341 type from int to size_t.
4342 * ira-costs.c (struct_costs_size): Change type from int to size_t.
4344 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4346 PR rtl-optimization/79386
4347 * cprop.c (bypass_conditional_jumps): Initialize
4348 bypass_last_basic_block already before splitting bbs after
4349 unconditional traps...
4350 (bypass_conditional_jumps): ... rather than here.
4353 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4354 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4355 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4356 fix -masm=intel patterns.
4358 2017-02-07 Richard Biener <rguenther@suse.de>
4360 PR tree-optimization/79256
4362 * builtins.c (get_object_alignment_2): Use min_align_of_type
4363 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4364 and ADJUST_FIELD_ALIGN.
4366 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4368 * doc/tm.texi: Regenerate.
4369 * stor-layout.c (layout_decl): Adjust.
4370 (update_alignment_for_field): Likewise.
4371 (place_field): Likewise.
4372 (min_align_of_type): Likewise.
4373 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4374 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4375 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4376 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4377 * config/frv/frv.c (frv_adjust_field_align): Likewise.
4378 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4379 * config/i386/i386.c (x86_field_alignment): Likewise.
4380 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4381 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4382 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4383 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4384 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4385 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4389 2017-01-30 Richard Biener <rguenther@suse.de>
4391 PR tree-optimization/79256
4392 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4393 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4396 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
4398 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4399 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4400 builtins to SImode and emit a zero-extend, if necessary.
4402 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4404 * docs/invoke.texi (RISC-V Options): Alphabetize.
4406 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4408 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4411 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4413 * config/riscv/riscv.c: New file.
4414 * gcc/common/config/riscv/riscv-common.c: Likewise.
4415 * config.gcc: Likewise.
4416 * config/riscv/constraints.md: Likewise.
4417 * config/riscv/elf.h: Likewise.
4418 * config/riscv/generic.md: Likewise.
4419 * config/riscv/linux.h: Likewise.
4420 * config/riscv/multilib-generator: Likewise.
4421 * config/riscv/peephole.md: Likewise.
4422 * config/riscv/pic.md: Likewise.
4423 * config/riscv/predicates.md: Likewise.
4424 * config/riscv/riscv-builtins.c: Likewise.
4425 * config/riscv/riscv-c.c: Likewise.
4426 * config/riscv/riscv-ftypes.def: Likewise.
4427 * config/riscv/riscv-modes.def: Likewise.
4428 * config/riscv/riscv-opts.h: Likewise.
4429 * config/riscv/riscv-protos.h: Likewise.
4430 * config/riscv/riscv.h: Likewise.
4431 * config/riscv/riscv.md: Likewise.
4432 * config/riscv/riscv.opt: Likewise.
4433 * config/riscv/sync.md: Likewise.
4434 * config/riscv/t-elf-multilib: Likewise.
4435 * config/riscv/t-linux: Likewise.
4436 * config/riscv/t-linux-multilib: Likewise.
4437 * config/riscv/t-riscv: Likewise.
4438 * configure.ac: Likewise.
4439 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4440 Waterman as RISC-V maintainers.
4441 * doc/install.texi: Add RISC-V entries.
4442 * doc/invoke.texi: Add RISC-V options section.
4443 * doc/md.texi: Add RISC-V constraints section.
4444 * configure: Regenerated.
4446 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4449 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4450 false values to be constant vectors with all 0 or all 1 bits set.
4451 (vcondu<mode><mode>): Likewise.
4452 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4454 (fpmask_comparison_operator): Update comment.
4455 (vecint_comparison_operator): New predicate.
4456 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4457 vector conditionals when the true and false values are constant
4458 vectors with all 0 bits or all 1 bits set.
4460 2017-02-06 Martin Sebor <msebor@redhat.com>
4462 PR tree-optimization/79376
4463 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4465 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
4467 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4468 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
4469 to simplify split condition.
4471 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4473 * omp-expand.c (oxpand_omp_atomic_fetch_op,
4474 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4477 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
4479 PR rtl-optimization/68664
4480 * target.def (can_speculate_insn): New hook.
4481 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4482 * doc/tm.texi: Regenerate.
4483 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4484 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4485 (rs6000_sched_can_speculate_insn): New function.
4487 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4489 PR tree-optimization/79284
4490 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4491 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4492 vectorizable_mask_load_store, vectorizable_operation,
4493 vect_is_simple_cond, get_same_sized_vectype): Use it instead
4494 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4495 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4496 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4497 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4498 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4499 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4500 is_gimple_assign (stmt). Replace another such test with
4501 is_gimple_assign (stmt).
4503 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4506 * config/avr/avr.c (rtl-iter.h): Include it.
4507 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4508 (avr_legitimate_combined_insn): ...and implementation.
4510 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
4512 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4513 * config/s390/s390.c (s390_const_operand_ok)
4514 (s390_canonicalize_comparison, s390_extract_part)
4515 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4516 (s390_contiguous_bitmask_p, s390_rtx_costs)
4517 (legitimize_pic_address): Likewise.
4518 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4519 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4520 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4521 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4522 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4524 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4526 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4527 REGNO($0) == REGNO($1).
4529 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4531 * config/s390/linux.h(SIZE_TYPE): Add comment.
4533 2017-02-06 Julian Brown <julian@codesourcery.com>
4534 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4535 Virendra Pathak <virendra.pathak@broadcom.com>
4537 * config/aarch64/aarch64-cores.def: Change the scheduler
4539 * config/aarch64/aarch64.md: Include thunderx2t99.md.
4540 * config/aarch64/thunderx2t99.md: New file.
4542 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4544 * doc/standards.texi (Go Language): Update link to language
4547 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4549 * tree-eh.c (lower_resx): Sanitize profile.
4550 (cleanup_empty_eh_move_lp): Likewise.
4552 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4555 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4557 * cfgloopmanip.h (loop_version): Update prototype.
4558 * modulo-sched.c (sms_schedule): Update call of loop_version.
4559 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4560 * tree-parloops.c (gen_parallel_loop): Likewise.
4561 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4562 * tree-ssa-loop-split.c (split_loop): Likewise.
4563 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4564 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4566 2017-02-05 Martin Liska <mliska@suse.cz>
4569 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4571 (print_operand_address): Initialize a struct to zero.
4573 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4575 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4576 garbage collector only in textual form.
4578 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4580 * doc/extend.texi (x86 specific memory model extensions for
4581 transactional memory): Simplify a phrase.
4583 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
4586 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4587 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4588 (atomic_storedi_1): Likewise.
4590 2017-02-04 Jakub Jelinek <jakub@redhat.com>
4592 PR tree-optimization/79338
4593 * tree-parloops.c (gather_scalar_reductions): Don't call
4594 vect_analyze_loop_form for loop->inner before destroying loop's
4597 2017-02-03 Martin Sebor <msebor@redhat.com>
4599 PR tree-optimization/79327
4600 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4601 when precision has resulted in leading zeros.
4602 (format_integer): Adjust the likely counter to assume an unknown
4603 argument that may be zero is non-zero.
4605 2017-02-03 Jason Merrill <jason@redhat.com>
4608 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4609 avoid copying non-taken branch.
4611 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4613 PR tree-optimization/79340
4614 * tree-vect-loop.c (vectorizable_reduction): Release
4615 vec_defs elements after safe_splicing them into other vectors.
4618 PR tree-optimization/79327
4619 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4620 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4622 (format_integer): Use wide_int_to_tree instead of build_int_cst
4623 + to_?hwi. If argmin is NULL, just set argmin and argmax to
4624 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
4625 of shortest and longest sequence.
4627 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
4629 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4630 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4632 2017-02-03 Walter Lee <walt@tilera.com>
4635 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4636 after initial stackframe link reg save.
4637 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4639 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4642 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4643 wu for stxssp alternative.
4645 2017-02-03 Martin Sebor <msebor@redhat.com>
4647 PR tree-optimization/79352
4648 * gimple-fold.c (get_range_strlen): Add argument.
4649 (get_range_strlen): Change return type to bool.
4650 (get_maxval_strlen): Pass in a dummy argument.
4651 * gimple-fold.h (get_range_strlen): Change return type to bool.
4652 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4653 * tree.h (array_at_struct_end_p): Add argument.
4654 * tree.c (array_at_struct_end_p): Handle it.
4656 2017-02-03 Martin Liska <mliska@suse.cz>
4659 * multiple_target.c (create_dispatcher_calls): Redirect edge
4660 from a caller of a dispatcher.
4661 (expand_target_clones): Make the clones local.
4662 (ipa_target_clone): Do both target clones and resolvers.
4663 (ipa_dispatcher_calls): Remove the pass.
4664 (pass_dispatcher_calls::gate): Likewise.
4665 (make_pass_dispatcher_calls): Likewise.
4666 * passes.def (pass_target_clone): Put as very first IPA early
4669 2017-02-03 Martin Liska <mliska@suse.cz>
4671 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4672 in case of a function with ifunc attribute.
4674 2017-02-03 Martin Liska <mliska@suse.cz>
4676 * cgraph.c (cgraph_node::dump): Dump function version info.
4677 * symtab.c (symtab_node::dump_base): Add missing new line.
4679 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4681 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4682 (ifcombine_ifandif): Use it.
4684 2017-02-03 Martin Liska <mliska@suse.cz>
4686 * doc/invoke.texi: Document default value for
4687 use-after-scope-direct-emission-threshold.
4689 2017-02-03 Martin Liska <mliska@suse.cz>
4691 PR tree-optimization/79339
4692 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4693 (format_floating): Likewise.
4695 2017-02-03 Martin Liska <mliska@suse.cz>
4698 * ipa-prop.c (ipa_node_params_t::insert): Remove current
4700 (ipa_node_params_t::remove): Likewise.
4701 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4702 initialization from removed ipa_node_params_t::insert.
4703 (ipa_node_params::~ipa_node_params): Move from removed
4704 ipa_node_params_t::release.
4705 * symbol-summary.h (symbol_summary::m_released): New member.
4706 Do not release a summary twice. Do not allow to call finalizer
4707 for types of a summary that live in GGC memory.
4709 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4711 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4714 2017-02-02 Martin Sebor <msebor@redhat.com>
4717 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4718 (format_string): Tighten up the range of output for non-constant
4719 strings and correct the expected range for wide non-constant strings.
4721 2017-02-02 Martin Sebor <msebor@redhat.com>
4723 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4726 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4728 (-fdump-tree-@var): Add to index and document how to come up
4729 with pass-specific option and dump file names.
4730 (-fdump-passes): Clarify where to look for output.
4732 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4735 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4736 statistics of the analyzed path; allow threading for speed when
4737 any of BBs along the path are optimized for speed.
4739 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
4742 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4743 settings of the virtual registers.
4746 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4748 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4749 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4752 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4754 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4755 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4757 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4759 * config/s390/s390.md: Add missing comments with the expanded
4761 * config/s390/vector.md: Likewise.
4762 * config/s390/vx-builtins.md: Likewise.
4764 2017-02-02 Jakub Jelinek <jakub@redhat.com>
4767 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4768 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
4769 conditions on a single line.
4771 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4773 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4774 __S390_VX__ to __VX__.
4776 2017-02-01 Andrew Pinski <apinski@cavium.com>
4778 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4779 stmt_info to record_stmt_cost.
4780 (vect_get_known_peeling_cost): Pass stmt_info if known to
4782 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4783 cpu_vector_cost field into
4784 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
4785 field into vec_int_stmt_cost and vec_fp_stmt_cost.
4786 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4787 splitting of scalar_stmt_cost and vec_stmt_cost.
4788 (thunderx_vector_cost): Likewise.
4789 (cortexa57_vector_cost): LIkewise.
4790 (exynosm1_vector_cost): Likewise.
4791 (xgene1_vector_cost): Likewise.
4792 (thunderx2t99_vector_cost): Improve after the splitting of the two
4794 (aarch64_builtin_vectorization_cost): Update for the splitting of
4795 scalar_stmt_cost and vec_stmt_cost.
4797 2017-02-01 Torvald Riegel <triegel@redhat.com>
4798 Richard Henderson <rth@redhat.com>
4800 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4801 conditional on existance of a fast atomic load.
4802 * optabs-query.c (can_atomic_load_p): New function.
4803 * optabs-query.h (can_atomic_load_p): Declare it.
4804 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4805 no fast atomic load is available for the particular size of access.
4806 (expand_atomic_compare_and_swap): Likewise.
4807 (expand_atomic_load): Likewise.
4808 (expand_atomic_store): Likewise.
4809 (expand_atomic_fetch_op): Likewise.
4810 * testsuite/lib/target-supports.exp
4811 (check_effective_target_sync_int_128): Remove x86 because it provides
4812 no fast atomic load.
4813 (check_effective_target_sync_int_128_runtime): Likewise.
4815 2017-02-01 Richard Biener <rguenther@suse.de>
4817 * graphite.c: Include tree-vectorizer.h for find_loop_location.
4818 (graphite_transform_loops): Provide opt-info for optimized nests.
4819 * tree-parloop.c (parallelize_loops): Provide opt-info for
4822 2017-02-01 Richard Biener <rguenther@suse.de>
4825 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
4828 2017-02-01 Richard Biener <rguenther@suse.de>
4830 PR tree-optimization/71824
4831 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4832 Verify the loops are valid in the merged SESE region.
4833 (scop_detection::can_represent_loop_1): Check analyzing the
4834 evolution of the number of iterations in the region succeeds.
4836 2017-01-31 Ian Lance Taylor <iant@golang.org>
4838 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
4839 REG_ARGS_SIZE note to 32-bit push insns and call insn.
4841 2017-01-31 David Malcolm <dmalcolm@redhat.com>
4843 PR preprocessor/79210
4844 * input.c (get_substring_ranges_for_loc): Replace line_width
4845 assertion with error-handling.
4847 2017-01-31 Richard Biener <rguenther@suse.de>
4849 PR tree-optimization/77318
4850 * graphite-sese-to-poly.c (extract_affine): Fix assert.
4851 (create_pw_aff_from_tree): Take loop parameter.
4852 (add_condition_to_pbb): Pass loop of the condition to
4853 create_pw_aff_from_tree.
4855 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4857 * config/s390/s390.c (s390_asan_shadow_offset): New function.
4858 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
4860 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
4864 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
4866 (convert_int_to_float128): Likewise.
4867 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
4868 (convert_int_to_float128): Likewise.
4869 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
4870 (UNSPEC_IEEE128_CONVERT): Likewise.
4871 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
4872 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
4873 Use local variables for IBM extended format.
4874 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
4875 (fix_trunc<mode>si2_fprs): Likewise.
4876 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4877 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
4878 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
4879 to know that we can now have integers of all sizes in vector
4881 (fix<uns>_<mode>di2_hw): Likewise.
4882 (float<uns>_<mode>si2_hw): Likewise.
4883 (fix_<mode>si2_hw): Likewise.
4884 (fixuns_<mode>si2_hw): Likewise.
4885 (float<uns>_<mode>di2_hw): Likewise.
4886 (float_<mode>di2_hw): Likewise.
4887 (float_<mode>si2_hw): Likewise.
4888 (floatuns_<mode>di2_hw): Likewise.
4889 (floatuns_<mode>si2_hw): Likewise.
4890 (xscvqp<su>wz_<mode>): Delete, no longer used.
4891 (xscvqp<su>dz_<mode>): Likewise.
4892 (xscv<su>dqp_<mode>): Likewise.
4893 (ieee128_mfvsrd_64bit): Likewise.
4894 (ieee128_mfvsrd_32bit): Likewise.
4895 (ieee128_mfvsrwz): Likewise.
4896 (ieee128_mtvsrw): Likewise.
4897 (ieee128_mtvsrd_64bit): Likewise.
4898 (ieee128_mtvsrd_32bit): Likewise.
4900 2017-01-31 Martin Liska <mliska@suse.cz>
4903 * ipa-prop.c (ipa_free_all_node_params): Call release method
4904 instead of ~sumbol_summary to not to trigger double times
4907 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
4909 PR tree-optimization/71691
4910 * bitmap.h (class auto_bitmap): New.
4911 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
4912 is_maybe_undefined instead of ssa_undefined_value_p.
4914 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4916 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4917 __S390_ARCH_LEVEL__ to __ARCH__.
4919 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4921 PR tree-optimization/79267
4922 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
4923 if should_remove_lhs_p is true.
4925 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
4928 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
4929 (add_alignment_attribute): New.
4930 (base_type_die): Add alignment attribute.
4931 (subrange_type_die): Likewise.
4932 (modified_type_die): Likewise.
4933 (gen_array_type_die): Likewise.
4934 (gen_descr_array_type_die: Likewise.
4935 (gen_enumeration_type_die): Likewise.
4936 (gen_subprogram_die): Likewise.
4937 (gen_variable_die): Likewise.
4938 (gen_field_die): Likewise.
4939 (gen_ptr_to_mbr_type_die): Likewise.
4940 (gen_struct_or_union_type_die): Likewise.
4941 (gen_subroutine_type_die): Likewise.
4942 (gen_typedef_die): Likewise.
4943 (base_type_cmp): Compare alignment attribute.
4945 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4948 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
4949 (setb_unsigned) New pattern for setb with CCUNS.
4950 * config/rs6000/rs6000.c (expand_block_compare): Use a different
4951 subfc./subfe sequence to avoid overflow problems. Generate a
4952 shorter sequence with cmpld/setb for power9.
4953 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
4954 for generating subfc. instruction.
4955 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
4956 now uses this instruction.
4958 2017-01-30 Ian Lance Taylor <iant@google.com>
4961 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
4962 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
4964 2017-01-30 Martin Sebor <msebor@redhat.com>
4966 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
4967 Move constant to the right of a relational operator.
4968 (get_mpfr_format_length, format_character, format_string): Ditto.
4969 (should_warn_p, maybe_warn): Same.
4971 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
4973 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
4976 * asan.c (get_translation_unit_decl): Remove function.
4977 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
4979 2017-01-30 Martin Liska <mliska@suse.cz>
4981 PR gcov-profile/79259
4982 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
4985 2017-01-30 Martin Liska <mliska@suse.cz>
4988 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
4989 Initialize variables with NULL value.
4991 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
4994 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
4996 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
4998 2017-01-30 Richard Biener <rguenther@suse.de>
5000 PR tree-optimization/79276
5001 * tree-vrp.c (process_assert_insertions): Properly adjust common
5002 when removing a duplicate.
5004 * gcc.dg/torture/pr79276.c: New testcase.
5006 2017-01-30 Richard Biener <rguenther@suse.de>
5008 PR tree-optimization/79256
5009 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
5010 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
5012 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
5014 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
5017 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
5018 ("*r<noxa>sbg_<mode>_sll_bitmask")
5019 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5020 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
5021 Use contiguous_bitmask_nowrap_operand.
5023 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5026 * config/rs6000/altivec.h (vec_xl): Revise #define.
5027 (vec_xst): Likewise.
5029 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
5031 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
5033 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
5035 PR rtl-optimization/79194
5036 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
5037 traps before call to bypass_conditional_jumps.
5039 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
5041 PR tree-optimization/71374
5042 * lra-constraints.c (check_conflict_input_operands): New.
5043 (match_reload): Use it.
5045 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
5048 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
5049 account to calculate conflict_set.
5051 2017-01-27 Bin Cheng <bin.cheng@arm.com>
5053 PR rtl-optimization/78559
5054 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
5055 other_insn in combine.
5057 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
5059 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
5060 uint16_type_node for BT_UINT16.
5062 2017-01-27 David Malcolm <dmalcolm@redhat.com>
5064 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
5065 "RTL Tests" to menu.
5066 (GIMPLE Tests): New node.
5067 (RTL Tests): New node.
5069 2017-01-27 Richard Biener <rguenther@suse.de>
5071 PR tree-optimization/79245
5072 * tree-loop-distribution.c (distribute_loop): Apply cost
5073 modeling also to detected patterns.
5075 2017-01-27 Richard Biener <rguenther@suse.de>
5077 PR tree-optimization/71433
5078 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
5079 (compare_assert_loc): New function.
5080 (process_assert_insertions): Sort and optimize assert locations
5081 to remove duplicates and push down identical assertions on
5082 edges to their destination block.
5084 2017-01-27 Richard Biener <rguenther@suse.de>
5086 PR tree-optimization/79244
5087 * tree-vrp.c (remove_range_assertions): Forcefully propagate
5088 out SSA names even if abnormal.
5090 2017-01-27 Jakub Jelinek <jakub@redhat.com>
5092 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
5093 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
5094 instead of MPFR_RNDN.
5096 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
5099 * arm.c (arm_option_override): Don't call build_target_option_node
5100 until after doing all option overrides.
5101 (arm_valid_target_attribute_tree): Likewise.
5103 2017-01-27 Martin Liska <mliska@suse.cz>
5105 * doc/invoke.texi (-fprofile-arcs): Document profiling support
5106 for {cd}tors and C++ {cd}tors.
5108 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5110 * config/s390/s390.md ("*setmem_long_and")
5111 ("*setmem_long_and_31z"): Use zero_extend instead of and.
5113 2017-01-26 Martin Sebor <msebor@redhat.com>
5115 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
5118 2017-01-26 Martin Sebor <msebor@redhat.com>
5120 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
5121 HAVE_DFmode before using XFmode or DFmode.
5122 (parse_directive): Avoid using the z length modifier to avoid
5123 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
5126 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
5127 to accept adjustment as an array.
5128 (get_int_range): New function.
5129 (struct directive): Make width and prec arrays.
5130 (directive::set_width, directive::set_precision): Call get_int_range.
5131 (format_integer, format_floating): Handle width and precision ranges.
5132 (format_string, parse_directive): Same.
5134 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5137 * dwarf2out.c (generate_skeleton_bottom_up): For children with
5138 comdat_type_p set, just clone them, but keep the children in the
5142 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
5143 which have direct callers with -fvar-tracking-assignments enabled
5145 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
5146 inside of type units.
5148 2017-01-26 Martin Sebor <msebor@redhat.com>
5151 * gimple-ssa-sprintf.c (struct result_range): Add likely and
5153 (struct format_result): Replace number_chars, number_chars_min,
5154 and number_chars_max with a single member of struct result_range.
5156 (format_result::operator+=): Adjust.
5157 (struct fmtresult): Remove bounded. Handle likely and unlikely
5159 (fmtresult::adjust_for_width_or_precision): New function.
5160 (fmtresult:type_max_digits): New function.
5161 (bytes_remaining): Handle likely and unlikely counters.
5162 (min_bytes_remaining): Remove.
5163 (format_percent): Simplify.
5164 (format_integer, format_floating): Set likely and unlikely counters.
5165 (get_string_length, format_character, format_string): Same.
5166 (format_plain, should_warn_p): New function.
5167 (maybe_warn): Call should_warn_p. Update diagnostic messages
5168 and handle those for all directives, including plain strings.
5169 (format_directive): Handle likely and unlikely counters.
5170 Remove unnecessary quoting from diagnostics. Add an informational
5172 (add_bytes): Remove.
5173 (pass_sprintf_length::compute_format_length): Simplify.
5174 (try_substitute_return_value): Handle likely and unlikely counters.
5176 2017-01-26 Carl Love <cel@us.ibm.com>
5178 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
5179 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
5181 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
5184 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
5185 endianess for subregs into account.
5186 * lra-constraints.c (lra_constraints): Do risky transformations
5187 always on the first iteration.
5188 * lra-lives.c (check_pseudos_live_through_calls): Add arg
5189 last_call_used_reg_set.
5190 (process_bb_lives): Define and use last_call_used_reg_set.
5191 * lra.c (lra): Always continue after lra_constraints on the first
5194 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
5196 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
5198 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
5200 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5202 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
5203 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
5204 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
5205 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
5206 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
5207 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
5208 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
5209 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
5210 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
5212 2017-01-26 Marek Polacek <polacek@redhat.com>
5215 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
5216 for the third operand.
5218 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5221 * omp-low.c (struct omp_context): Add simt_stmt field.
5222 (scan_omp_for): Return omp_context *.
5223 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
5224 context to the _simt_ SIMD stmt.
5225 (lower_omp_for): For combined SIMD with sibling _simt_
5226 SIMD, make sure to use the same decls in _looptemp_
5227 clauses as in the sibling.
5229 2017-01-26 David Sherwood <david.sherwood@arm.com>
5232 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
5235 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5238 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
5239 emit fld b; fld a; if possible.
5241 * brig-builtins.def: Update copyright years.
5242 * config/arm/arm_acle_builtins.def: Update copyright years.
5244 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5247 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
5248 constraint instead of o for the stxsd instruction.
5250 2017-01-25 Carl Love <cel@us.ibm.com>
5252 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
5253 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
5255 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
5257 * doc/invoke.texi (C++ Dialect Options): Fix typo.
5259 2017-01-25 Richard Biener <rguenther@suse.de>
5261 PR tree-optimization/69264
5262 * target.def (vector_alignment_reachable): Improve documentation.
5263 * doc/tm.texi: Regenerate.
5264 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
5266 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
5267 earlier changes with respect to TYPE_USER_ALIGN.
5268 (vector_alignment_reachable_p): Likewise. Improve dumping.
5270 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5273 * config/arm/arm.md (xordi3): Force constant operand into a register
5276 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5278 * doc/invoke.texi (-fstore-merging): Correct default optimization
5279 levels at which it is enabled.
5280 (-O): Move -fstore-merging from list to...
5283 2017-01-25 Richard Biener <rguenther@suse.de>
5286 * omp-expand.c: Include debug.h.
5287 (expand_omp_taskreg): Make sure to generate early debug before
5288 outlining anything from a function.
5289 (expand_omp_target): Likewise.
5290 (grid_expand_target_grid_body): Likewise.
5292 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
5295 * asan.c (get_translation_unit_decl): New function.
5296 (asan_add_global): Extract modules file name from globals
5297 TRANSLATION_UNIT_DECL name.
5299 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
5302 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
5303 for long calls with APCS frame and VFP.
5305 2017-01-24 David Malcolm <dmalcolm@redhat.com>
5307 * cfg.c (original_copy_tables_initialized_p): New function.
5308 * cfg.h (original_copy_tables_initialized_p): New decl.
5309 * cfgrtl.c (relink_block_chain): Guard the call to
5310 free_original_copy_tables with a call to
5311 original_copy_tables_initialized_p.
5312 * cgraph.h (symtab_node::native_rtl_p): New decl.
5313 * cgraphunit.c (symtab_node::native_rtl_p): New function.
5314 (symtab_node::needed_p): Don't assert for early assembly output
5315 for __RTL functions.
5316 (cgraph_node::finalize_function): Set "force_output" for __RTL
5318 (cgraph_node::analyze): Bail out early for __RTL functions.
5319 (analyze_functions): Update assertion to support __RTL functions.
5320 (cgraph_node::expand): Bail out early for __RTL functions.
5321 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5323 * function.h (struct function): Update comment for field
5325 * gimple-expr.c: Include "tree-pass.h".
5326 (gimple_has_body_p): Return false for __RTL functions.
5327 * Makefile.in (OBJS): Add run-rtl-passes.o.
5328 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5330 (gcc::pass_manager::get_clean_slate): New accessor.
5331 * passes.c: Include "insn-addr.h".
5332 (should_skip_pass_p): Add logging. Update logic for running
5333 "expand" to be compatible with both __GIMPLE and __RTL. Guard
5334 property-provider override so it is only done for gimple passes.
5336 (skip_pass): New function.
5337 (execute_one_pass): Call skip_pass when skipping passes.
5338 * read-md.c (md_reader::read_char): Support filtering
5339 the input to a subset of line numbers.
5340 (md_reader::md_reader): Initialize fields
5341 m_first_line and m_last_line.
5342 (md_reader::read_file_fragment): New function.
5343 * read-md.h (md_reader::read_file_fragment): New decl.
5344 (md_reader::m_first_line): New field.
5345 (md_reader::m_last_line): New field.
5346 * read-rtl-function.c (function_reader::create_function): Only
5347 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
5348 curr_properties. Set DECL_INITIAL to a dummy block.
5349 (read_rtl_function_body_from_file_range): New function.
5350 * read-rtl-function.h (read_rtl_function_body_from_file_range):
5352 * run-rtl-passes.c: New file.
5353 * run-rtl-passes.h: New file.
5355 2017-01-24 Jeff Law <law@redhat.com>
5357 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5360 2017-01-24 Bin Cheng <bin.cheng@arm.com>
5362 PR tree-optimization/79159
5363 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5364 (record_nonwrapping_iv): Improve boundary using above function if no
5365 value range information.
5367 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5368 Martin Jambor <mjambor@suse.cz>
5370 * brig-builtins.def: New file.
5371 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5372 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5373 (DEF_HSAIL_SAT_BUILTIN): Likewise.
5374 (DEF_HSAIL_INTR_BUILTIN): Likewise.
5375 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5376 * builtin-types.def (BT_INT8): New.
5377 (BT_INT16): Likewise.
5378 (BT_UINT8): Likewise.
5379 (BT_UINT16): Likewise.
5380 (BT_FN_ULONG): Likewise.
5381 (BT_FN_UINT_INT): Likewise.
5382 (BT_FN_UINT_ULONG): Likewise.
5383 (BT_FN_UINT_LONG): Likewise.
5384 (BT_FN_UINT_PTR): Likewise.
5385 (BT_FN_ULONG_PTR): Likewise.
5386 (BT_FN_INT8_FLOAT): Likewise.
5387 (BT_FN_INT16_FLOAT): Likewise.
5388 (BT_FN_UINT32_FLOAT): Likewise.
5389 (BT_FN_UINT16_FLOAT): Likewise.
5390 (BT_FN_UINT8_FLOAT): Likewise.
5391 (BT_FN_UINT64_FLOAT): Likewise.
5392 (BT_FN_UINT16_UINT32): Likewise.
5393 (BT_FN_UINT32_UINT16): Likewise.
5394 (BT_FN_UINT16_UINT16_UINT16): Likewise.
5395 (BT_FN_INT_PTR_INT): Likewise.
5396 (BT_FN_UINT_PTR_UINT): Likewise.
5397 (BT_FN_LONG_PTR_LONG): Likewise.
5398 (BT_FN_ULONG_PTR_ULONG): Likewise.
5399 (BT_FN_VOID_UINT64_UINT64): Likewise.
5400 (BT_FN_UINT8_UINT8_UINT8): Likewise.
5401 (BT_FN_INT8_INT8_INT8): Likewise.
5402 (BT_FN_INT16_INT16_INT16): Likewise.
5403 (BT_FN_INT_INT_INT): Likewise.
5404 (BT_FN_UINT_FLOAT_UINT): Likewise.
5405 (BT_FN_FLOAT_UINT_UINT): Likewise.
5406 (BT_FN_ULONG_UINT_UINT): Likewise.
5407 (BT_FN_ULONG_UINT_PTR): Likewise.
5408 (BT_FN_ULONG_ULONG_ULONG): Likewise.
5409 (BT_FN_UINT_UINT_UINT): Likewise.
5410 (BT_FN_VOID_UINT_PTR): Likewise.
5411 (BT_FN_UINT_UINT_PTR: Likewise.
5412 (BT_FN_UINT32_UINT64_PTR): Likewise.
5413 (BT_FN_INT_INT_UINT_UINT): Likewise.
5414 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5415 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5416 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5417 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5418 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5419 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5420 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5421 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5422 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5423 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5424 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5425 * doc/frontends.texi: List BRIG FE.
5426 * doc/install.texi (Testing): Add BRIG tesring requirements.
5427 * doc/invoke.texi (Overall Options): Mention BRIG.
5428 * doc/standards.texi (Standards): Doucment BRIG HSA version.
5430 2017-01-24 Richard Biener <rguenther@suse.de>
5432 PR translation/79208
5433 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5435 2017-01-24 Martin Jambor <mjambor@suse.cz>
5438 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5439 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5442 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
5445 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5446 casts from signed to unsigned really don't have a range.
5448 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
5450 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5451 GMP_RNDx for compatiblity.
5453 2017-01-24 Martin Liska <mliska@suse.cz>
5456 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5457 that would prevent us to call alloca with -1 as argument.
5459 2017-01-24 Jakub Jelinek <jakub@redhat.com>
5461 * dwarf2out.c (output_compilation_unit_header, output_file_names):
5462 Avoid -Wformat-security warning.
5464 2017-01-23 Andrew Pinski <apinski@cavium.com>
5466 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5469 2017-01-23 Martin Sebor <msebor@redhat.com>
5472 * gimple-ssa-sprintf.c (warn_level): New global.
5473 (format_integer): Use it here and throughout the rest of the file.
5474 Use the same switch to compute sign as base.
5475 (maybe_warn): New function.
5476 (format_directive): Factor out warnings into maybe_warn.
5477 Add debugging output. Use warn_level.
5478 (add_bytes): Use warn_level.
5479 (pass_sprintf_length::compute_format_length): Add debugging output.
5480 (try_substitute_return_value): Same.
5481 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5484 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5485 (struct fmtresult, format_integer, format_floating): Adjust.
5486 (fmtresult::fmtresult): Set max correctly in two argument ctor.
5487 (get_string_length, format_string,format_directive): Same.
5488 (pass_sprintf_length::compute_format_length): Same.
5489 (try_substitute_return_value): Simplify slightly.
5492 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5493 (fmtresult::operator+=): Outlined.
5494 (struct fmtresult): Add ctors.
5495 (struct conversion_spec): Rename...
5496 (struct directive): ...to this. Add and remove data members.
5497 (directive::set_width, directive::set_precision): New functions.
5498 (format_percent): Use fmtresult ctor.
5499 (get_width_and_precision): Remove.
5500 (format_integer): Make naming changes. Avoid computing width and
5502 (format_floating): Same. Adjust indentation.
5503 (format_character, format_none): New functions.
5504 (format_string): Moved character handling to format_character.
5505 (format_directive): Remove arguments, change return type.
5506 (parse_directive): New function.
5507 (pass_sprintf_length::compute_format_length): Move directive
5508 parsing to parse_directive.
5510 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5512 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5513 (assign_assembler_name_if_needed): ... this.
5514 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5515 (assign_assembler_name_if_needed): ... this.
5516 (free_lang_data_in_cgraph): Adjust callers.
5517 * cgraphunit.c (cgraph_node::analyze): Likewise.
5518 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5521 2017-01-23 Richard Biener <rguenther@suse.de>
5523 PR tree-optimization/79088
5524 PR tree-optimization/79188
5525 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5526 resetting loop bounds after last path deletion. Reset loop
5527 bounds of the target loop, make code match the comments.
5528 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5529 Make sure loops need no fixups.
5531 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
5533 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5534 exponent support with double type for first argument.
5535 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5536 type returned by __builtin_vec_extract_sig,
5537 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5538 functions from "vector int" to "vector unsigned int" or from
5539 "vector long long int" to "vector unsigned long long int".
5540 Changed type returned by __builtin_vec_extract_exp,
5541 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5542 functions from "vector int" to "vector unsigned int" or from
5543 "vector long long int" to "vector unsigned long long int".
5544 Changed return type of __builtin_vec_test_data_class,
5545 __builtin_vec_test_data_class_sp, and
5546 __builtin_vec_test_data_class_dp from "vector int" to
5547 "vector bool int" or from "vector long long int" to "vector bool
5548 long long int" and changed second argument type from "unsigned
5549 int" to "int". Added new overloaded function forms "vector float
5550 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5551 "vector float __builtin_vec_insert_exp_sp (vector float, vector
5552 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5553 double, vector unsigned long long int)" and "vector double
5554 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5555 long int)". Changed return type of
5556 __builtin_scalar_test_data_class and
5557 __builtin_scalar_test_data_class_sp and
5558 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5559 int" and changed second argument from "unsigned int" to "int".
5560 Changed type returned by __builtin_scalar_test_neg,
5561 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5562 from "int" to "bool int". Added new overloaded function form
5563 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5564 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5565 exponent double-precision with floating point first argument.
5566 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5567 documentation of scalar_test_data_class, scalar_test_neg,
5568 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5569 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5570 vec_test_data_class built-in functions to reflect refinements in
5571 their type signatures.
5573 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
5575 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5577 (aarch64_elf_asm_destructor): Likewise.
5579 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
5581 PR rtl-optimization/78634
5582 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5583 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5584 * ifcvt.c (noce_try_cmove): Add missing cost check.
5586 PR rtl-optimization/71724
5587 * combine.c (if_then_else_cond): Look for situations where it is
5588 beneficial to undo the work of one of the recursive calls.
5590 2017-01-23 Bin Cheng <bin.cheng@arm.com>
5592 PR tree-optimization/70754
5593 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5594 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
5595 combined stmt before it if not NULL.
5596 (combine_chains): Process refs reversely and compute dominance point
5599 2017-01-23 Martin Liska <mliska@suse.cz>
5601 PR tree-optimization/79196
5602 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5603 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
5605 (strlen_optimize_stmt): Call the renamed function.
5607 2017-01-23 Michael Matz <matz@suse.de>
5609 PR tree-optimization/78384
5610 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5612 2017-01-23 Richard Biener <rguenther@suse.de>
5614 PR tree-optimization/79186
5615 * tree-vrp.c (register_new_assert_for): Make sure we've seen
5616 both incoming edges before moving an assert.
5618 2017-01-23 Martin Jambor <mjambor@suse.cz>
5620 * ipa-prop.c (load_from_param_1): Removed.
5621 (load_from_unmodified_param): Bits from load_from_param_1 put back
5623 (load_from_param): Removed.
5624 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5625 with stmt. Reverted back to use of load_from_unmodified_param.
5627 2017-01-23 Martin Jambor <mjambor@suse.cz>
5630 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5631 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
5632 field a pointer to garbage collected vector, mark lattices and
5633 ipcp_orig_node with GTY((skip)).
5634 (ipa_get_param_count): Adjust to descriptors being a pointer.
5635 (ipa_get_param): Likewise.
5636 (ipa_get_type): Likewise.
5637 (ipa_get_param_move_cost): Likewise.
5638 (ipa_set_param_used): Likewise.
5639 (ipa_get_controlled_uses): Likewise.
5640 (ipa_set_controlled_uses): Likewise.
5641 (ipa_is_param_used): Likewise.
5642 (ipa_node_params_t): Move into garbage collector. New methods insert
5644 (ipa_node_params_sum): Annotate wth GTY(()).
5645 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5647 (ipa_load_from_parm_agg): Adjust declaration.
5648 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5649 * ipa-profile.c (ipa_profile): Likewise.
5650 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5651 (ipa_populate_param_decls): Make descriptors parameter garbage
5653 (ipa_dump_param): Adjust to descriptors being a pointer.
5654 (ipa_alloc_node_params): Likewise.
5655 (ipa_initialize_node_params): Likewise.
5656 (load_from_param_1): Make descriptors parameter garbage collected.
5657 (load_from_unmodified_param): Likewise.
5658 (load_from_param): Likewise.
5659 (ipa_load_from_parm_agg): Likewise.
5660 (ipa_node_params::~ipa_node_params): Removed.
5661 (ipa_free_all_node_params): Remove call to delete operator.
5662 (ipa_node_params_t::insert): New.
5663 (ipa_node_params_t::remove): Likewise.
5664 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5665 copy known_csts and known_contexts vectors.
5666 (ipa_read_node_info): Adjust to descriptors being a pointer.
5667 (ipcp_modif_dom_walker): Make m_descriptors field garbage
5669 (ipcp_transform_function): Make descriptors variable garbage
5672 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
5674 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5675 * config/i386/avx512dqintrin.h: Ditto.
5676 * config/i386/avx512fintrin.h: Ditto.
5677 * gcc/config/i386/i386.c: Handle new builtins.
5678 * config/i386/i386-builtin.def: Add new builtins.
5679 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5680 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5682 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5683 Martin Liska <mliska@suse.cz>
5685 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5686 * asan.c (asan_expand_poison_ifn): Support stores and use
5687 appropriate ASAN report function.
5688 * internal-fn.c (expand_ASAN_POISON_USE): New function.
5689 * internal-fn.def (ASAN_POISON_USE): Declare.
5690 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5691 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5692 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5693 ASAN_POISON calls w/o LHS.
5694 * tree-ssa.c (execute_update_addresses_taken): Create clobber
5695 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5696 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5697 * gimplify.c (asan_poison_variables): Add attribute
5698 use_after_scope_memory to variables that really needs to live
5700 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5701 having the attribute.
5703 2017-01-23 Martin Liska <mliska@suse.cz>
5705 * asan.c (create_asan_shadow_var): New function.
5706 (asan_expand_poison_ifn): Likewise.
5707 * asan.h (asan_expand_poison_ifn): New declaration.
5708 * internal-fn.c (expand_ASAN_POISON): Likewise.
5709 * internal-fn.def (ASAN_POISON): New builtin.
5710 * sanopt.c (pass_sanopt::execute): Expand
5711 asan_expand_poison_ifn.
5712 * tree-inline.c (copy_decl_for_dup_finish): Make function
5714 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5715 * tree-ssa.c (is_asan_mark_p): New function.
5716 (execute_update_addresses_taken): Rewrite local variables
5717 (identified just by use-after-scope as addressable) into SSA.
5719 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5721 * doc/install.texi (Specific): opensource.apple.com uses https
5722 now. Remove trailing slash.
5724 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5726 * README.Portability: Remove note on an Irix compatibility issue.
5728 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
5730 * gcov.c (INCLUDE_ALGORITHM): Define.
5731 (INCLUDE_VECTOR): Define.
5732 No longer include <vector> and <algorithm> directly.
5734 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
5736 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5738 * doc/invoke.texi (Code Gen Options): Ditto.
5740 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
5743 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5745 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
5747 rtl-optimization/79125
5748 * cprop.c (local_cprop_pass): Handle cases where we make an
5751 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
5755 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5756 read from, for big endian.
5758 2017-01-20 Jiong Wang <jiong.wang@arm.com>
5760 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5761 register pauth builtins for LP64 only.
5763 2017-01-20 Marek Polacek <polacek@redhat.com>
5766 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5769 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5771 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5773 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5774 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5775 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5777 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5780 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5781 in big-endian mode when they are not a single duplicated value.
5783 2017-01-20 Richard Biener <rguenther@suse.de>
5785 * BASE-VER: Bump to 7.0.1.
5787 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5789 * omp-low.c (omplow_simd_context): New struct. Use it...
5790 (lower_rec_simd_input_clauses): ...here and...
5791 (lower_rec_input_clauses): ...here to hold common data. Adjust all
5792 references to idx, lane, max_vf, is_simt.
5794 2017-01-20 Graham Markall <graham.markall@embecosm.com>
5796 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5799 2017-01-20 Martin Jambor <mjambor@suse.cz>
5801 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
5802 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
5804 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5805 (GTFILES): Rename hsa.c to hsa-common.c.
5806 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5807 * hsa-dump.c: Likewise.
5808 * hsa-gen.c: Likewise.
5809 * hsa-regalloc.c: Likewise.
5810 * ipa-hsa.c: Likewise.
5811 * omp-expand.c: Likewise.
5812 * omp-low.c: Likewise.
5813 * toplev.c: Likewise.
5815 2017-01-20 Marek Polacek <polacek@redhat.com>
5818 * doc/invoke.texi: Document -Wduplicated-branches.
5819 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
5820 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
5821 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
5822 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
5823 return 0 only when not OEP_LEXICOGRAPHIC.
5824 (fold_build_cleanup_point_expr): Use the expression
5825 location when building CLEANUP_POINT_EXPR.
5826 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
5827 * tree.c (add_expr): Handle error_mark_node.
5829 2017-01-20 Martin Liska <mliska@suse.cz>
5832 * tree-profile.c (init_ic_make_global_vars): Do not call
5834 (gimple_init_gcov_profiler): Likewise.
5836 2017-01-20 Martin Liska <mliska@suse.cz>
5839 * cgraph.h (maybe_create_reference): Remove argument and
5841 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
5843 * ipa-cp.c (create_specialized_node): Likewise.
5844 * symtab.c (symtab_node::maybe_create_reference): Handle
5845 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
5847 2017-01-20 Martin Liska <mliska@suse.cz>
5849 * read-rtl-function.c (function_reader::create_function): Use
5850 build_decl instread of build_decl_stat.
5852 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
5854 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
5855 * config/i386/avx512dqintrin.h: Ditto.
5856 * config/i386/avx512fintrin.h: Ditto.
5857 * config/i386/i386-builtin-types.def: Add new types.
5858 * gcc/config/i386/i386.c: Handle new types.
5859 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
5860 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
5861 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
5862 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
5863 (__builtin_ia32_kshiftridi): New.
5864 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
5866 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
5870 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
5871 define to rs6000_init_stack_protect_guard.
5872 (rs6000_init_stack_protect_guard): New function.
5874 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5875 Yunqiang Su <yunqiang.su@imgtec.com>
5877 * config.gcc (supported_defaults): Add madd4.
5878 (with_madd4): Add validation.
5879 (all_defaults): Add madd4.
5880 * config/mips/mips.opt (mmadd4): New option.
5881 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5883 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5885 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
5886 (ISA_HAS_FUSED_MADD4): Likewise.
5887 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
5888 * gcc/doc/install.texi (--with-madd4): Document the new option.
5890 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5892 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
5893 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
5894 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
5895 (aarch64_init_pauth_hint_builtins): New.
5896 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
5897 (aarch64_expand_builtin): Expand new builtins.
5899 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5901 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
5902 * combine-stack-adj.c (no_unhandled_cfa): Handle
5903 REG_CFA_TOGGLE_RA_MANGLE.
5904 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
5905 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
5906 info for return address signing.
5907 (aarch64_expand_epilogue): Likewise.
5909 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5911 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
5912 * config/aarch64/aarch64-protos.h
5913 (aarch64_return_address_signing_enabled): New declaration.
5914 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
5916 (aarch64_expand_prologue): Sign return address before it's pushed onto
5918 (aarch64_expand_epilogue): Authenticate return address fetched from
5920 (aarch64_override_options): Sanity check for ILP32 and ISA level.
5921 (aarch64_attributes): New function attributes for "sign-return-address".
5922 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
5923 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
5924 ("*do_return"): Generate combined instructions according to key index.
5925 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
5926 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
5928 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
5929 * config/aarch64/aarch64.opt (msign-return-address=): New.
5930 * doc/extend.texi (AArch64 Function Attributes): Documents
5931 "sign-return-address=".
5932 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
5934 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5936 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
5937 overall option summary.
5939 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5941 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
5942 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
5943 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
5944 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
5946 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
5948 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
5949 -mpower9-minmax by default for -mcpu=power9.
5950 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
5951 128-bit floating point.
5953 2017-01-20 Alan Modra <amodra@gmail.com>
5955 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
5956 optimizing for size.
5958 2017-01-20 Alan Modra <amodra@gmail.com>
5961 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
5962 for strcmp and strncmp from corresponding builtin decl.
5964 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
5966 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
5967 instead of i386/rtems-64.h.
5968 * config/i386/rtems-64.h: Remove.
5970 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
5974 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5976 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
5978 2017-01-19 Tamar Christina <tamar.christina@arm.com>
5980 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
5981 Change int to HOST_WIDE_INT.
5982 * config/aarch64/aarch64-protos.h
5983 (aarch64_simd_gen_const_vector_dup): Likewise.
5984 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
5986 2017-01-19 David Malcolm <dmalcolm@redhat.com>
5988 * langhooks-def.h (lhd_type_for_size): New decl.
5989 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
5990 * langhooks.c (lhd_type_for_size): New function, taken from
5993 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
5995 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
5996 define_bypass for CR latency.
5997 (power9-cracked-alu): Update bypass latency and remove power9-branch.
5998 (power9-alu2): Add define_bypass for CR latency.
6000 (power9-mul): Update insn latency.
6001 (power9-mul-compare): Update insn latency, bypass latency and remove
6004 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6006 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6008 * config/aarch64/aarch64.md
6009 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
6010 aarch64_nopcrelative_literal_loads.
6011 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6013 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
6015 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
6017 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
6019 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
6022 * config.gcc (supported_defaults): Add lxc1-sxc1.
6023 (with_lxc1_sxc1): Add validation.
6024 (all_defaults): Add lxc1-sxc1.
6025 * config/mips/mips.opt (mlxc1-sxc1): New option.
6026 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6028 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6029 __mips_no_lxc1_sxc1.
6030 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
6031 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
6032 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
6034 2017-01-19 Richard Biener <rguenther@suse.de>
6036 PR tree-optimization/72488
6037 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
6038 sure to restore SSA info.
6039 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
6041 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
6043 PR rtl-optimization/79121
6044 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
6045 of the inner type when shifting an extended value.
6047 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6050 * symtab.c (symtab_node::equal_address_to): Fix comparing of
6051 interposable aliases.
6053 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
6056 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
6057 Use the evmergelohi instruction.
6058 (mov_si<mode>_e500_subreg4_2_le): Likewise.
6059 (mov_sitf_e500_subreg8_2_be): Likewise.
6060 (mov_sitf_e500_subreg12_2_le): Likewise.
6061 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
6062 (mov_si<mode>_e500_subreg4_2_be): Likewise.
6063 (mov_sitf_e500_subreg8_2_le): Likewise.
6064 (mov_sitf_e500_subreg12_2_be): Likewise.
6066 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6068 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
6069 attribute from vecsimple to vecperm.
6070 (altivec_vbpermq2): Likewise.
6072 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6075 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
6077 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6078 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
6079 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
6080 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
6081 case where N arg is SIZE_MAX.
6082 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
6083 (cmpstrsi): Add pattern.
6085 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6087 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6088 __builtin_vec_revb builtins.
6089 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
6090 built-in functions to support generation of the ISA 3.0 XXBR<x>
6091 vector byte reverse instructions.
6092 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
6093 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
6094 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
6095 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
6096 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
6097 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
6098 (P9V_BUILTIN_VEC_REVB): Likewise.
6099 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
6100 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
6101 (p9_xxbrq_v16qi): Likewise.
6102 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
6103 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
6104 (p9_xxbrh_v8hi): Likewise.
6105 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
6106 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
6107 vec_revb built-in functions.
6109 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
6111 PR rtl-optimization/78952
6112 * config/i386/i386.md (any_extract): New code iterator.
6113 (*insvqi_2): Use any_extract for source operand.
6114 (*insvqi_3): Use any_shiftrt for source operand.
6116 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
6118 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
6120 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
6122 2017-01-18 Matthias Klose <doko@ubuntu.com>
6124 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
6126 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6128 * config/rs6000/altivec.h (vec_bperm): Change #define.
6129 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
6130 (altivec_vbpermq2): New define_insn.
6131 (altivec_vbpermd): Likewise.
6132 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
6134 (VBPERMD): Likewise.
6135 (VBPERM): New polymorphic function interface.
6136 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
6137 Add entries for P9V_BUILTIN_VEC_VBPERM.
6138 * doc/extend.texi: Add interfaces for vec_bperm.
6140 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6142 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
6143 first letter of error messages.
6144 (s390_resolve_overloaded_builtin): Likewise.
6145 * config/s390/s390.c (s390_expand_builtin): Likewise.
6146 (s390_invalid_arg_for_unprototyped_fn): Likewise.
6147 (s390_valid_target_attribute_inner_p): Likewise.
6148 * config/s390/s390.md ("tabort"): Likewise.
6150 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
6152 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
6153 (ISA_AVOID_DIV_HILO): New macro.
6154 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
6155 (ISA_HAS_DDIV): Likewise.
6157 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6159 * doc/invoke.texi (fabi-version): Correct number of occurrences.
6161 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6163 * doc/invoke.texi (fabi-version): Spelling fix.
6165 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6168 * doc/invoke.texi (fabi-version): Mention mangling fix for
6171 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6174 * doc/invoke.texi (fabi-version): Document discriminator mangling.
6176 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
6179 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
6180 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
6182 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
6184 (stack_protect_test): Ditto.
6185 * config/rs6000/rs6000.opt (mstack-protector-guard=,
6186 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
6188 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
6189 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
6190 -mstack-protector-guard-offset=.
6191 (RS/6000 and PowerPC Options): Ditto.
6193 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6195 * config/i386/i386.h (MASK_CLASS_P): New define.
6196 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
6197 there are no registers from different register sets also when
6198 mask registers are used. Update function comment.
6199 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
6200 to (*k/*r) and (*k/*km) alternatives.
6202 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
6204 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
6205 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
6206 (EH_RETURN_HANDLER_RTX): New define.
6207 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
6208 Force frame pointer in EH return functions.
6209 (aarch64_expand_epilogue): Add barrier for eh_return.
6210 (aarch64_final_eh_return_addr): Remove.
6211 (aarch64_eh_return_handler_rtx): New function.
6212 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
6214 (aarch64_eh_return_handler_rtx): New prototype.
6216 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6218 * config/rs6000/altivec.h (vec_rlmi): New #define.
6219 (vec_vrlnm): Likewise.
6220 (vec_rlnm): Likewise.
6221 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
6222 (UNSPEC_VRLNM): Likewise.
6223 (VIlong): New mode iterator.
6224 (altivec_vrl<VI_char>mi): New define_insn.
6225 (altivec_vrl<VI_char>nm): Likewise.
6226 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
6229 (RLNM): New polymorphic function entry.
6230 (VRLWMI): New monomorphic function entry.
6232 (RLMI): New polymorphic function entry.
6233 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
6234 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
6235 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
6238 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6241 * dwarf2out.c (field_byte_offset): Restore the
6242 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
6243 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
6244 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
6247 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6250 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
6252 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6255 * dwarf2out.c (add_data_member_location_attribute): For constant
6256 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
6257 instead of DW_AT_data_member_location, DW_AT_bit_offset and
6258 DW_AT_byte_size attributes.
6260 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6262 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
6263 after forcing to constant memory when the code model is medium.
6265 2017-01-17 Julia Koval <julia.koval@intel.com>
6268 * config/i386/avx512fintrin.h
6269 (_mm512_i32gather_ps): Change __addr type to void const*.
6270 (_mm512_mask_i32gather_ps): Ditto.
6271 (_mm512_i32gather_pd): Ditto.
6272 (_mm512_mask_i32gather_pd): Ditto.
6273 (_mm512_i64gather_ps): Ditto.
6274 (_mm512_mask_i64gather_ps): Ditto.
6275 (_mm512_i64gather_pd): Ditto.
6276 (_mm512_mask_i64gather_pd): Ditto.
6277 (_mm512_i32gather_epi32): Ditto.
6278 (_mm512_mask_i32gather_epi32): Ditto.
6279 (_mm512_i32gather_epi64): Ditto.
6280 (_mm512_mask_i32gather_epi64): Ditto.
6281 (_mm512_i64gather_epi32): Ditto.
6282 (_mm512_mask_i64gather_epi32): Ditto.
6283 (_mm512_i64gather_epi64): Ditto.
6284 (_mm512_mask_i64gather_epi64): Ditto.
6285 (_mm512_i32scatter_ps): Change __addr type to void*.
6286 (_mm512_mask_i32scatter_ps): Ditto.
6287 (_mm512_i32scatter_pd): Ditto.
6288 (_mm512_mask_i32scatter_pd): Ditto.
6289 (_mm512_i64scatter_ps): Ditto.
6290 (_mm512_mask_i64scatter_ps): Ditto.
6291 (_mm512_i64scatter_pd): Ditto.
6292 (_mm512_mask_i64scatter_pd): Ditto.
6293 (_mm512_i32scatter_epi32): Ditto.
6294 (_mm512_mask_i32scatter_epi32): Ditto.
6295 (_mm512_i32scatter_epi64): Ditto.
6296 (_mm512_mask_i32scatter_epi64): Ditto.
6297 (_mm512_i64scatter_epi32): Ditto.
6298 (_mm512_mask_i64scatter_epi32): Ditto.
6299 (_mm512_i64scatter_epi64): Ditto.
6300 (_mm512_mask_i64scatter_epi64): Ditto.
6301 * config/i386/avx512pfintrin.h
6302 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
6303 (_mm512_mask_prefetch_i32gather_ps): Ditto.
6304 (_mm512_mask_prefetch_i64gather_pd): Ditto.
6305 (_mm512_mask_prefetch_i64gather_ps): Ditto.
6306 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
6307 (_mm512_prefetch_i32scatter_ps): Ditto.
6308 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
6309 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
6310 (_mm512_prefetch_i64scatter_pd): Ditto.
6311 (_mm512_prefetch_i64scatter_ps): Ditto.
6312 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6313 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6314 * config/i386/avx512vlintrin.h
6315 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6316 (_mm_mmask_i32gather_ps): Ditto.
6317 (_mm256_mmask_i32gather_pd): Ditto.
6318 (_mm_mmask_i32gather_pd): Ditto.
6319 (_mm256_mmask_i64gather_ps): Ditto.
6320 (_mm_mmask_i64gather_ps): Ditto.
6321 (_mm256_mmask_i64gather_pd): Ditto.
6322 (_mm_mmask_i64gather_pd): Ditto.
6323 (_mm256_mmask_i32gather_epi32): Ditto.
6324 (_mm_mmask_i32gather_epi32): Ditto.
6325 (_mm256_mmask_i32gather_epi64): Ditto.
6326 (_mm_mmask_i32gather_epi64): Ditto.
6327 (_mm256_mmask_i64gather_epi32): Ditto.
6328 (_mm_mmask_i64gather_epi32): Ditto.
6329 (_mm256_mmask_i64gather_epi64): Ditto.
6330 (_mm_mmask_i64gather_epi64): Ditto.
6331 (_mm256_i32scatter_ps): Change __addr type to void*.
6332 (_mm256_mask_i32scatter_ps): Ditto.
6333 (_mm_i32scatter_ps): Ditto.
6334 (_mm_mask_i32scatter_ps): Ditto.
6335 (_mm256_i32scatter_pd): Ditto.
6336 (_mm256_mask_i32scatter_pd): Ditto.
6337 (_mm_i32scatter_pd): Ditto.
6338 (_mm_mask_i32scatter_pd): Ditto.
6339 (_mm256_i64scatter_ps): Ditto.
6340 (_mm256_mask_i64scatter_ps): Ditto.
6341 (_mm_i64scatter_ps): Ditto.
6342 (_mm_mask_i64scatter_ps): Ditto.
6343 (_mm256_i64scatter_pd): Ditto.
6344 (_mm256_mask_i64scatter_pd): Ditto.
6345 (_mm_i64scatter_pd): Ditto.
6346 (_mm_mask_i64scatter_pd): Ditto.
6347 (_mm256_i32scatter_epi32): Ditto.
6348 (_mm256_mask_i32scatter_epi32): Ditto.
6349 (_mm_i32scatter_epi32): Ditto.
6350 (_mm_mask_i32scatter_epi32): Ditto.
6351 (_mm256_i32scatter_epi64): Ditto.
6352 (_mm256_mask_i32scatter_epi64): Ditto.
6353 (_mm_i32scatter_epi64): Ditto.
6354 (_mm_mask_i32scatter_epi64): Ditto.
6355 (_mm256_i64scatter_epi32): Ditto.
6356 (_mm256_mask_i64scatter_epi32): Ditto.
6357 (_mm_i64scatter_epi32): Ditto.
6358 (_mm_mask_i64scatter_epi32): Ditto.
6359 (_mm256_i64scatter_epi64): Ditto.
6360 (_mm256_mask_i64scatter_epi64): Ditto.
6361 (_mm_i64scatter_epi64): Ditto.
6362 (_mm_mask_i64scatter_epi64): Ditto.
6363 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6364 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6365 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6366 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6367 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6368 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6369 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6370 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6371 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6372 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6373 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6374 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6375 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6376 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6377 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6378 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6379 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6380 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6381 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6382 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6383 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6384 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6385 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6386 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6387 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6388 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6389 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6390 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
6391 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6392 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6393 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6394 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6395 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6396 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6397 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6398 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6399 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6400 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6401 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6402 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6403 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6404 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6405 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6406 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6407 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6408 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6409 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6410 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6411 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6412 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6413 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6414 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6415 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6416 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6417 definitions accordingly.
6419 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
6420 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6423 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6426 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
6429 * ira-conflicts.c (ira_build_conflicts): Update total conflict
6430 hard regs for inner regno.
6432 2017-01-17 Martin Liska <mliska@suse.cz>
6435 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6436 assumption and add comment.
6438 2017-01-17 Nathan Sidwell <nathan@acm.org>
6440 * ipa-visibility.c (localize_node): New function, broken out of ...
6441 (function_and_variable_visibility): ... here. Call it.
6443 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6446 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6447 correctly set frequency of oudgoing edge.
6448 (duplicate_thread_path): Fix profile updating.
6450 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6453 * configure.ac: Add GCC_BASE_VER.
6454 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6455 version from BASE-VER file.
6456 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6457 (gcc.o): Depend on $(BASEVER).
6458 * common.opt (dumpfullversion): New option.
6459 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6460 * doc/invoke.texi: Document -dumpfullversion.
6461 * doc/install.texi: Document --with-gcc-major-version-only.
6462 * configure: Regenerated.
6464 2017-01-17 Richard Biener <rguenther@suse.de>
6466 PR tree-optimization/71433
6467 * tree-vrp.c (register_new_assert_for): Merge same asserts
6468 on all incoming edges.
6469 (process_assert_insertions_for): Handle insertions at the
6472 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
6474 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6475 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6477 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
6480 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6483 2017-01-17 Alan Modra <amodra@gmail.com>
6486 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6487 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6488 symbolic stack limit when pic.
6490 2017-01-16 Martin Sebor <msebor@redhat.com>
6492 PR tree-optimization/78608
6493 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6495 2017-01-16 Jeff Law <law@redhat.com>
6498 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
6499 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6500 for several include directories that may be relative to sysroot.
6501 * config/i386/x-mingw32 (gplus_includedir): Define.
6502 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6503 (native_system_includedir): Likewise.
6504 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6505 override if TARGET_SYSTEM_ROOT is defined.
6506 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6508 PR tree-optimization/79090
6509 PR tree-optimization/33562
6510 PR tree-optimization/61912
6511 PR tree-optimization/77485
6512 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
6513 and computed trims into the dump file.
6515 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6517 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6519 2017-01-16 Jakub Jelinek <jakub@redhat.com>
6522 * gimplify.c (gimplify_init_constructor): If want_value and
6523 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
6527 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6528 sequence. Formatting fixes.
6529 (doloop_optimize): Formatting fixes.
6532 * gcc.c (debug_level_greater_than_spec_func): New function.
6533 (static_spec_functions): Add debug-level-gt spec function.
6534 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6536 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6537 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6538 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6539 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6540 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6541 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6543 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
6545 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6546 QImode fixups to general and mask registers only.
6548 2017-01-16 Carl Love <cel@us.ibm.com>
6550 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6551 for built-in functions
6552 vector signed char vec_nabs (vector signed char)
6553 vector signed short vec_nabs (vector signed short)
6554 vector signed int vec_nabs (vector signed int)
6555 vector signed long long vec_nabs (vector signed long long)
6556 vector float vec_nabs (vector float)
6557 vector double vec_nabs (vector double)
6558 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6560 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6561 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6562 * doc/extend.texi: Update the documentation file for the new built-in
6565 2017-01-16 Martin Sebor <msebor@redhat.com>
6567 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6570 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6572 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6573 UNSPEC_VSX__XXSPLTD to require special splat handling.
6575 2017-01-16 David Malcolm <dmalcolm@redhat.com>
6578 * system.h: Poison strndup.
6580 2017-01-16 Alan Modra <amodra@gmail.com>
6583 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6586 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
6588 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6590 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
6592 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6593 call recog here. Assert that INSN_CODE (insn) is non-negative.
6595 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6598 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6600 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6601 in the currently scheduled RTL fragment.
6603 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6605 PR rtl-optimization/78751
6606 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6609 2017-01-14 Jeff Law <law@redhat.com>
6611 PR tree-optimization/79090
6612 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6613 variable length stores.
6614 (compute_trims): Delete dead assignment to *trim_tail.
6615 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6618 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
6620 PR rtl-optimization/78626
6621 PR rtl-optimization/78727
6622 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6623 of a block, and split such blocks after everything else is finished.
6625 2017-01-14 Alan Modra <amodra@gmail.com>
6628 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6629 target legitimate_combined_insn.
6630 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6631 (rs6000_legitimate_combined_insn): New function.
6632 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6634 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6635 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6636 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6638 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
6640 * doc/frontends.texi (G++ and GCC): Remove references to Java.
6642 2017-01-13 Jeff Law <law@redhat.com>
6644 PR tree-optimization/33562
6645 PR tree-optimization/61912
6646 PR tree-optimization/77485
6647 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6649 (delete_dead_assignment): Likewise.
6650 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6651 statement to delete_dead_call and delete_dead_assignment.
6653 2017-01-13 David Malcolm <dmalcolm@redhat.com>
6656 * substring-locations.c (format_warning_va): Strengthen case 1 so
6657 that both endpoints of the substring must be within the format
6658 range for just the substring to be printed.
6660 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
6662 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6663 * config/i386/i386.c (ix86_target_string): Add missing options
6664 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
6665 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6666 flags_other and ix86_target_other to flags2_other. Display unknown
6668 (ix86_valid_target_attribute_inner_p): Add missing options and
6669 reorder options by implied ISAs, as in ix86_target_string.
6671 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6673 * hash-table.h (hash_table::too_empty_p): New function.
6674 (hash_table::expand): Use it.
6675 (hash_table::traverse): Likewise.
6676 (hash_table::empty_slot): Use sizeof (value_type) instead of
6677 sizeof (PTR) to convert bytes to elements. Shrink the table
6678 if the current size is excessive for the current number of
6681 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6683 * ira-costs.c (record_reg_classes): Break from the inner loop
6684 early once alt_fail is known to be true. Update outer loop
6685 handling accordingly.
6687 2017-01-13 Jeff Law <law@redhat.com>
6689 * tree-ssa-dse.c (decrement_count): New function.
6690 (increment_start_addr, maybe_trim_memstar_call): Likewise.
6691 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6692 when we know the partially dead statement is a mem* function.
6694 PR tree-optimization/61912
6695 PR tree-optimization/77485
6696 * tree-ssa-dse.c: Include expr.h.
6697 (maybe_trim_constructor_store): New function.
6698 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6700 PR tree-optimization/33562
6701 PR tree-optimization/61912
6702 PR tree-optimization/77485
6703 * doc/invoke.texi: Document new dse-max-object-size param.
6704 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6705 * tree-ssa-dse.c: Include params.h.
6706 (dse_store_status): New enum.
6707 (initialize_ao_ref_for_dse): New, partially extracted from
6709 (valid_ao_ref_for_dse, normalize_ref): New.
6710 (setup_live_bytes_from_ref, compute_trims): Likewise.
6711 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6712 (maybe_trim_partially_dead_store): Likewise.
6713 (maybe_trim_complex_store): Likewise.
6714 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6715 Track what bytes live from the original store. Return tri-state
6716 for dead, partially dead or live.
6717 (dse_dom_walker): Add constructor, destructor and new private members.
6718 (delete_dead_call, delete_dead_assignment): New extracted from
6720 (dse_optimize_stmt): Make a member of dse_dom_walker.
6721 Use initialize_ao_ref_for_dse.
6723 PR tree-optimization/33562
6724 PR tree-optimization/61912
6725 PR tree-optimization/77485
6726 * sbitmap.h (bitmap_count_bits): Prototype.
6727 (bitmap_clear_range, bitmap_set_range): Likewise.
6728 * sbitmap.c (bitmap_clear_range): New function.
6729 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6731 2017-01-13 Martin Liska <mliska@suse.cz>
6734 * function.c (set_cfun): Add new argument force.
6735 * function.h (set_cfun): Likewise.
6736 * ipa-inline-transform.c (inline_call): Use the function when
6737 strict alising from is dropped for function we inline to.
6739 2017-01-13 Richard Biener <rguenther@suse.de>
6741 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6742 for dumping GIMPLE INTEGER_CSTs.
6744 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6746 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6747 to 201112L since C++17.
6749 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
6752 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6753 if -fsanitize=kernel-address is present.
6755 2017-01-13 Richard Biener <rguenther@suse.de>
6757 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6758 as _Literal ( type ) number in case usual suffixes do not
6759 preserve all information.
6761 2017-01-13 Richard Biener <rguenther@suse.de>
6763 PR tree-optimization/77283
6764 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6765 and ssa-iterators.h.
6766 (is_feasible_trace): Implement a cost model based on joiner
6769 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6772 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6773 char or short to __float128/_Float128 directly.
6775 2017-01-12 Martin Sebor <msebor@redhat.com>
6777 to -Wformat-overflow.
6778 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6779 (min_bytes_remaining): Same.
6780 (get_string_length): Same.
6781 (format_string): Same.
6782 (format_directive): Same.
6784 (pass_sprintf_length::handle_gimple_call): Same.
6786 2017-01-12 Jakub Jelinek <jakub@redhat.com>
6788 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6789 info.nowrite calls with no lhs that can't throw. Return bool
6790 whether gsi_remove has been called or not.
6791 (pass_sprintf_length::handle_gimple_call): Return bool whether
6792 try_substitute_return_value called gsi_remove. Formatting fix.
6793 (pass_sprintf_length::execute): Don't use gsi_remove if
6794 handle_gimple_call returned true.
6797 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6798 be removed due to side-effects, don't remove following barrier nor
6799 turn the successor edge into fallthru edge.
6801 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6804 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6805 element-reversing loads and stores as not swappable.
6807 2017-01-12 Nathan Sidwell <nathan@acm.org>
6808 Nicolai Stange <nicstange@gmail.com>
6810 * combine.c (try_combine): Don't ignore result of overlap checking
6811 loop. Combine overlap & asm check into single loop.
6813 2017-01-12 Richard Biener <rguenther@suse.de>
6815 * tree-pretty-print.c (dump_generic_node): Provide -gimple
6816 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
6818 2017-01-12 Richard Biener <rguenther@suse.de>
6820 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
6821 and TS_TARGET_OPTION directly derive from TS_BASE.
6822 * tree-core.h (tree_optimization_option): Derive from tree_base.
6823 (tree_target_option): Likewise.
6825 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
6827 * config/i386/i386.c (memory_address_length): Increase len
6828 only when rip_relative_addr_p returns false.
6830 2017-01-11 Julia Koval <julia.koval@intel.com>
6832 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
6833 (OPTION_MASK_ISA_SGX_SET): New.
6834 (ix86_handle_option): Handle OPT_msgx.
6835 * config.gcc: Added sgxintrin.h.
6836 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
6837 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
6838 * config/i386/i386.c (ix86_target_string): Add -msgx.
6840 (ix86_option_override_internal): Handle new options.
6841 (ix86_valid_target_attribute_inner_p): Add sgx.
6842 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
6843 * config/i386/i386.opt: Add msgx.
6844 * config/i386/sgxintrin.h: New file.
6845 * config/i386/x86intrin.h: Add sgxintrin.h.
6847 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6850 * fold-const.c (maybe_nonzero_address): Return 1 for function
6852 (tree_single_nonzero_warnv_p): Don't handle function local objects
6856 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
6859 2017-01-11 David Malcolm <dmalcolm@redhat.com>
6862 * opts.c: Include "spellcheck.h"
6863 (struct string_fragment): New struct.
6864 (struct edit_distance_traits<const string_fragment &>): New
6866 (get_closest_sanitizer_option): New function.
6867 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
6869 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6871 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
6873 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
6874 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
6875 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
6876 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
6877 for initial die_offset if dwarf_split_debug_info.
6878 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
6879 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
6881 (output_skeleton_debug_sections): Formatting fix. Use
6882 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
6883 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
6885 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
6887 * config/arm/cortex-a53.md: Add bypasses for
6889 (cortex_a53_r2f): Only use for transfers.
6890 (cortex_a53_f2r): Likewise.
6891 (cortex_a53_r2f_cvt): Add reservation for conversions.
6892 (cortex_a53_f2r_cvt): Likewise.
6894 2017-01-11 Tamar Christina <tamar.christina@arm.com>
6896 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
6897 to all inlined functions, change static to extern.
6899 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
6902 * config/arm/arm.c (legitimize_pic_address): Handle reference to
6904 (arm_assemble_integer): Likewise.
6906 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
6908 * config.gcc: Use new awk script to check CPU, FPU and architecture
6909 parameters for --with-... options.
6910 * config/arm/parsecpu.awk: New file
6911 * config/arm/arm-cpus.in: New file.
6912 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
6914 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
6916 * config/arm/t-arm: Update dependency rules.
6917 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
6918 of processing .def files.
6919 * config/arm/genopt.sh: Deleted.
6920 * config/arm/gentune.sh: Deleted.
6921 * config/arm/arm-cores.def: Deleted.
6922 * config/arm/arm-arches.def: Deleted.
6923 * config/arm/arm-fpus.def: Deleted.
6924 * config/arm/arm-tune.md: Regenerated.
6925 * config/arm/arm-tables.opt: Regenerated.
6926 * config/arm/arm-cpu.h: New generated file.
6927 * config/arm/arm-cpu-data.h: New generated file.
6928 * config/arm/arm-cpu-cdata.h: New generated file.
6930 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
6933 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
6935 (input_varpool_node): Unpack dynamically_initialized bit.
6937 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
6939 PR rtl-optimization/79032
6940 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
6941 the alignment of the adjusted memory reference against that of MODE,
6942 instead of the alignment of the original memory reference.
6944 2017-01-11 Martin Jambor <mjambor@suse.cz>
6946 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
6948 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
6949 decorated functions.
6951 2017-01-11 Richard Biener <rguenther@suse.de>
6953 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
6954 set range/nonnull info for PHI results. Do not set it on
6955 stmts marked for removal.
6957 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
6959 * expr.c (store_field): In the bitfield case, fetch the return value
6960 from the registers before applying a single big-endian adjustment.
6961 Always do a final load for a BLKmode value not larger than a word.
6963 2017-01-10 David Malcolm <dmalcolm@redhat.com>
6966 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6967 that we correctly handle column numbers greater than
6968 LINE_MAP_MAX_COLUMN_NUMBER.
6970 2017-01-10 Martin Sebor <msebor@redhat.com>
6973 * gimple-ssa-sprintf.c (get_destination_size): Call
6974 {init,fini}object_sizes.
6975 * tree-object-size.c (addr_object_size): Adjust.
6976 (pass_through_call): Adjust.
6977 (pass_object_sizes::execute): Adjust.
6978 * tree-object-size.h (fini_object_sizes): Declare.
6980 2017-01-10 Martin Sebor <msebor@redhat.com>
6982 PR tree-optimization/78775
6983 * builtins.c (get_size_range): Move...
6984 * calls.c: ...to here.
6985 (alloc_max_size): Accept zero argument.
6986 (operand_signed_p): Remove.
6987 (maybe_warn_alloc_args_overflow): Call get_size_range.
6988 * calls.h (get_size_range): Declare.
6990 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
6992 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
6993 from TI's devices.csv file as of September 2016.
6994 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
6996 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
6998 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
6999 * doc/invoke.texi: Likewise.
7000 * doc/md.texi: Likewise.
7001 * doc/objc.texi: Likewise.
7003 2017-01-10 Joshua Conner <joshconner@google.com>
7005 * config/arm/fuchsia-elf.h: New file.
7006 * config/fuchsia.h: New file.
7007 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
7008 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
7010 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
7012 2016-01-10 Richard Biener <rguenther@suse.de>
7014 PR tree-optimization/79034
7015 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
7016 Propagate out degenerate PHIs in the joiner.
7018 2017-01-10 Martin Liska <mliska@suse.cz>
7020 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
7021 (sort_congruence_classes_by_decl_uid): Likewise.
7022 (sort_congruence_class_groups_by_decl_uid): Likewise.
7023 (sem_item_optimizer::merge_classes): Sort class, groups in these
7024 classes and members in the groups by DECL_UID of declarations.
7025 This would make merge operations stable.
7027 2017-01-10 Martin Liska <mliska@suse.cz>
7029 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
7030 usage of m_classes_vec.
7031 (sem_item_optimizer::~sem_item_optimizer): Likewise.
7032 (sem_item_optimizer::get_group_by_hash): Likewise.
7033 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7034 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
7035 (sem_item_optimizer::verify_classes): Likewise.
7036 (sem_item_optimizer::process_cong_reduction): Likewise.
7037 (sem_item_optimizer::dump_cong_classes): Likewise.
7038 (sem_item_optimizer::merge_classes): Likewise.
7039 * ipa-icf.h (congruence_class_hash): Rename from
7040 congruence_class_group_hash. Remove declaration of m_classes_vec.
7042 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
7044 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
7045 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
7046 * config.gcc: Add avx512vpopcntdqintrin.h.
7047 * config/i386/avx512vpopcntdqintrin.h: New.
7048 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
7049 * config/i386/i386-builtin-types.def: Add new types.
7050 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
7051 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
7052 __builtin_ia32_vpopcountq_v8di_mask): New.
7053 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7054 __AVX512VPOPCNTDQ__.
7055 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
7056 (PTA_AVX512VPOPCNTDQ): Define.
7057 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
7058 TARGET_AVX512VPOPCNTDQ_P): Define.
7059 * config/i386/i386.opt: Add mavx512vpopcntdq.
7060 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
7061 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
7063 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7066 * predict.def (PRED_CALL): Set to 67.
7068 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
7070 * expr.c (store_field): In the bitfield case, if the value comes from
7071 a function call and is of an aggregate type returned in registers, do
7072 not modify the field mode; extract the value in all cases if the mode
7073 is BLKmode and the size is not larger than a word.
7075 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
7078 * config/i386/cpuid.h: Fix undefined behavior.
7080 2017-01-04 Jeff Law <law@redhat.com>
7082 PR tree-optimization/79007
7083 PR tree-optimization/67955
7084 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
7085 conservative for pt.null when flag_non_call_exceptions is on.
7087 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7089 PR translation/79019
7090 PR translation/79020
7091 * params.def (PARAM_INLINE_MIN_SPEEDUP,
7092 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
7093 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
7095 * config/avr/avr.opt (maccumulate-args): Likewise.
7096 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
7097 * common.opt (freport-bug): Likewise.
7098 * cif-code.def (CIF_FINAL_ERROR): Likewise.
7099 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
7100 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
7101 translatable string.
7102 * config/i386/i386.c (function_value_32): Likewise.
7103 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
7104 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
7106 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
7107 * common/config/msp430/msp430-common.c (msp430_handle_option):
7109 * symtab.c (symtab_node::verify_base): Likewise.
7110 * opts.c (set_debug_level): Likewise.
7111 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
7112 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7113 missing whitespace to translatable strings.
7114 * config/avr/avr.md (bswapsi2): Fix typo in comment.
7115 * config/sh/superh.h: Likewise.
7116 * config/i386/xopintrin.h: Likewise.
7117 * config/i386/znver1.md: Likewise.
7118 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
7119 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7120 * double-int.h (struct double_int): Likewise.
7121 * double-int.c (div_and_round_double): Likewise.
7122 * wide-int.cc: Likewise.
7123 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7124 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7125 * cfgcleanup.c (crossjumps_occured): Renamed to ...
7126 (crossjumps_occurred): ... this.
7127 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
7130 PR tree-optimization/78899
7131 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
7132 returning bool return struct loop *, NULL for failure and the new
7134 (versionable_outer_loop_p): Don't version outer loop if it has
7135 dont_vectorized bit set.
7136 (tree_if_conversion): When versioning outer loop, ensure
7137 tree_if_conversion is performed also on the inner loop of the
7138 non-vectorizable outer loop copy.
7139 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
7140 LOOP_VECTORIZED in inner loop of the scalar outer loop and
7141 prevent vectorization of it.
7142 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
7143 the outer loop vectorization of the non-scalar version is attempted
7144 before vectorization of the inner loop in scalar version. If
7145 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
7146 vectorization of its inner loop.
7147 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
7148 has 2 inner loops, rename also on edges from bb whose single pred
7149 is outer_loop->header. Fix typo in function comment.
7151 2017-01-09 Martin Sebor <msebor@redhat.com>
7154 * asan.c (asan_emit_stack_protection): Increase local buffer size
7155 to avoid snprintf truncation warning.
7157 2017-01-09 Andrew Pinski <apinski@cavium.com>
7159 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
7160 to reference thunderx2t99 for the tuning structure
7161 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
7163 (thunderx2t99_extra_costs): This.
7164 * config/aarch64/aarch64-tune.md: Regenerate.
7165 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
7166 (vulcan_addrcost_table): This.
7167 (vulcan_regmove_cost): Rename to ...
7168 (thunderx2t99_regmove_cost): This.
7169 (vulcan_vector_cost): Rename to ...
7170 (thunderx2t99_vector_cost): this.
7171 (vulcan_branch_cost): Rename to ...
7172 (thunderx2t99_branch_cost): This.
7173 (vulcan_tunings): Rename to ...
7174 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
7175 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
7177 2017-01-09 Martin Jambor <mjambor@suse.cz>
7181 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
7182 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
7183 (propagate_vr_accross_jump_function): Use the above function for all
7184 value range computations for pass-through jump functions and type
7185 converasion from explicit value range values.
7186 (ipcp_propagate_stage): Do not attempt to deduce types of formal
7187 parameters from TYPE_ARG_TYPES.
7188 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
7189 (ipa_write_node_info): Stream type of the actual argument.
7190 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
7192 2017-01-09 Martin Liska <mliska@suse.cz>
7195 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
7196 (lookup_compiler): Do not show error message with have_E.
7198 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7200 PR tree-optimization/78938
7201 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
7202 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
7203 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
7204 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
7207 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7209 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
7212 2017-01-09 Richard Biener <rguenther@suse.de>
7214 PR tree-optimization/78997
7215 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
7216 name condition properly.
7218 2017-01-09 Richard Biener <rguenther@suse.de>
7221 * dwarf2out.c (is_cxx): New overload with context.
7222 (is_naming_typedef_decl): Use it.
7224 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7226 * invoke.texi (Option Summary): Correct spacing in option lists
7227 and add line breaks to fix over-long lines.
7229 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7233 * extend.texi (Common Variable Attributes): Add xref to GCC
7234 Internals manual to explain mode attribute keywords.
7236 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7239 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
7240 and Preprocessor Options.
7241 (Options for Linking): Document -pthread here....
7242 (RS/6000 and PowerPC Options): ...not here.
7243 (Solaris 2 Options): ...or here.
7244 * doc/cppopts.texi: Document -pthread.
7246 2017-01-08 Martin Sebor <msebor@redhat.com>
7249 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
7250 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
7251 New member functions.
7252 (format_directive): Used them.
7254 (pass_sprintf_length::handle_gimple_call): Same.
7255 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
7256 to avoid truncation for any argument.
7257 (extract_affine_mul): Same.
7258 * tree.c (get_file_function_name): Same.
7260 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7263 * predict.def (PRED_INDIR_CALL): Set to 86.
7265 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7267 PR preprocessor/54124
7268 * doc/cppopts.texi: Reformat -d subtable to list the full name
7269 of the options. Add cross-reference to the docs for the general
7270 compiler -d options.
7271 * doc/invoke.texi (Developer Options): Add cross-reference to the
7272 preprocessor-specific -d option documentation.
7274 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7276 PR preprocessor/13498
7277 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
7278 redudant material, and reflect new command-line options.
7279 (System Headers): Likewise.
7281 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7283 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
7284 -isystem, and -idirafter. Copy-edit.
7285 * doc/cppopts.texi: Copy-edit. Remove contradiction about
7286 default for -ftrack-macro-expansion. Delete obsolete and
7287 badly-formatted implementation details about -fdebug-cpp output.
7288 * doc/cppwarnopts.texi: Copy-edit.
7290 2017-01-07 David Malcolm <dmalcolm@redhat.com>
7293 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7294 that the transition from a max line width >= 1<<10 to narrower
7295 lines works correctly.
7297 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
7299 * doc/options.texi (PerFunction): New.
7300 * opt-functions.awk (switch_flags): Map both Optimization and
7301 PerFunction to CL_OPTIMIZATION.
7302 * opth-gen.awk: Test for PerFunction flag along with
7304 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
7305 it only when the latter is present. Skip those that don't in
7306 the hash function generator.
7307 * common.opt (fvar-tracking): Mark as PerFunction instead of
7309 (fvar-tracking-assignments): Likewise.
7310 (fvar-tracking-assignments-toggle): Likewise.
7311 (fvar-tracking-uninit): Likewise.
7313 2017-01-07 Jakub Jelinek <jakub@redhat.com>
7315 PR translation/79018
7316 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7319 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
7322 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7323 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7324 TARGET_LONG_JUMP_TABLE_OFFSETS.
7325 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7326 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7327 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7328 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7329 * config/m68k/m68k.md (tablejump expander): Likewise.
7330 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7331 TARGET_LONG_JUMP_TABLE_OFFSETS.
7332 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7333 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7335 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7336 David Holsgrove <david.holsgrove@xilinx.com>
7338 * common/config/microblaze/microblaze-common.c
7339 (TARGET_EXCEPT_UNWIND_INFO): Remove.
7340 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7342 * config/microblaze/microblaze.c (microblaze_must_save_register)
7343 (microblaze_expand_epilogue, microblaze_return_addr): Handle
7345 (microblaze_eh_return): New function.
7346 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7347 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7348 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7349 * config/microblaze/microblaze.md (eh_return): New pattern.
7351 2017-01-06 Jakub Jelinek <jakub@redhat.com>
7353 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7354 GCC_DIAGNOSTIC_STRINGIFY): Define.
7356 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7358 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7360 * config/arm/arm.md (<mcrr>): New.
7362 * config/arm/arm.c (arm_arch5te): New.
7363 (arm_option_override): Set arm_arch5te.
7364 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7366 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7367 (arm_mcrr_qualifiers): ... this. New.
7368 (MRRC_QUALIFIERS): Define to...
7369 (arm_mrrc_qualifiers): ... this. New.
7370 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7372 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7373 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7374 (MRRCI, mrrc, MRRC): New.
7375 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7376 VUNSPEC_MRRC2): New.
7378 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7380 * config/arm/arm.md (<mcr>): New.
7382 * config/arm/arm.c (arm_coproc_builtin_available): Add
7383 support for mcr, mrc, mcr2 and mrc2.
7384 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7385 (arm_mcr_qualifiers): ... this. New.
7386 (MRC_QUALIFIERS): Define to ...
7387 (arm_mrc_qualifiers): ... this. New.
7388 (MCR_QUALIFIERS): Define to ...
7389 (arm_mcr_qualifiers): ... this. New.
7390 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7392 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7393 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7394 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7397 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7399 * config/arm/arm.md (*ldc): New.
7403 * config/arm/arm.c (arm_coproc_builtin_available): Add
7404 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7405 (arm_coproc_ldc_stc_legitimate_address): New.
7406 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7407 'qualifier_const_pointer'.
7408 (LDC_QUALIFIERS): Define to...
7409 (arm_ldc_qualifiers): ... this. New.
7410 (STC_QUALIFIERS): Define to...
7411 (arm_stc_qualifiers): ... this. New.
7412 * config/arm/arm-protos.h
7413 (arm_coproc_ldc_stc_legitimate_address): New.
7414 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7415 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7416 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7417 stc2, stcl, stc2l): New.
7418 * config/arm/constraints.md (Uz): New.
7419 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7420 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7421 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7422 VUNSPEC_STC2L): New.
7424 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7426 * config/arm/arm.md (<cdp>): New.
7427 * config/arm/arm.c (neon_const_bounds): Rename this ...
7428 (arm_const_bounds): ... this.
7429 (arm_coproc_builtin_available): New.
7430 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7431 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7432 (CDP_QUALIFIERS): Define to...
7433 (arm_cdp_qualifiers): ... this. New.
7435 (arm_expand_builtin_args): Add case for 6 arguments.
7436 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7437 (arm_const_bounds): ... this.
7438 (arm_coproc_builtin_available): New.
7439 * config/arm/arm_acle.h (__arm_cdp): New.
7441 * config/arm/arm_acle_builtins.def (cdp): New.
7443 * config/arm/iterators.md (CDPI,CDP,cdp): New.
7444 * config/arm/neon.md: Rename all 'neon_const_bounds' to
7446 * config/arm/types.md (coproc): New.
7447 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7448 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7449 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7450 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7452 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7454 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7455 (UBINOP_QUALIFIERS): New.
7457 (acle_builtin_data): New. Change comment.
7458 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7459 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7460 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7461 arm_acle_builtins.def.
7462 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7463 (arm_init_acle_builtins): New.
7464 (CRC32_BUILTIN): Remove.
7465 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7466 crc32cb, crc32ch and crc32cw.
7467 (arm_init_crc32_builtins): Remove.
7468 (arm_init_builtins): Use arm_init_acle_builtins rather
7469 than arm_init_crc32_builtins.
7470 (arm_expand_acle_builtin): New.
7471 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7472 * config/arm/arm_acle_builtins.def: New.
7474 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7476 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7477 (arm_builtin_datum): ... this.
7478 (arm_init_neon_builtin): Rename to ...
7479 (arm_init_builtin): ... this. Add a new parameters PREFIX
7480 and USE_SIG_IN_NAME.
7481 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7482 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7483 'arm_builtin_datum'.
7484 (arm_init_vfp_builtins): Likewise.
7485 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7486 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7487 (arm_expand_neon_args): Rename to ...
7488 (arm_expand_builtin_args): ... this. Rename builtin_arg
7489 enum values and differentiate between ARG_BUILTIN_MEMORY
7490 and ARG_BUILTIN_NEON_MEMORY.
7491 (arm_expand_neon_builtin_1): Rename to ...
7492 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7493 values, arm_expand_builtin_args and add bool parameter NEON.
7494 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7495 (arm_expand_vfp_builtin): Likewise.
7496 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7498 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7501 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7502 * predict.c (tree_estimate_probability_bb): Reverse direction of
7503 polymorphic call predictor.
7505 2017-01-06 David Malcolm <dmalcolm@redhat.com>
7507 * passes.c (execute_one_pass): Split out pass-skipping logic into...
7508 (determine_pass_name_match): ...this new function and...
7509 (should_skip_pass_p): ...this new function.
7511 2017-01-06 Nathan Sidwell <nathan@acm.org>
7513 * ipa-visibility.c (function_and_variable_visibility): Reformat
7514 comments and long lines. Remove extrneous if.
7515 * symtab.c (symtab_node::make_decl_local): Fix code format.
7516 (symtab_node::set_section_for_node): Fix comment typo.
7518 2017-01-06 Martin Liska <mliska@suse.cz>
7521 * lra-constraints.c: Rename invariant to lra_invariant.
7522 * predict.c (set_even_probabilities): Initialize e to NULL.
7524 2017-01-05 Martin Sebor <msebor@redhat.com>
7526 PR tree-optimization/78910
7527 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7528 (format_integer): Correct off-by-one error in the handling
7529 of precision with negative numbers in signed conversions..
7531 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
7533 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7535 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7537 PR tree-optimization/71016
7538 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7539 factor_out_conditional_conversion. Formatting fix.
7540 (factor_out_conditional_conversion): Add cond_stmt argument.
7541 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7542 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7545 2017-01-05 David Malcolm <dmalcolm@redhat.com>
7547 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7548 read-rtl-function.o, and selftest-rtl.o.
7549 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7550 (selftest::aarch64_test_loading_full_dump): New function.
7551 (selftest::aarch64_run_selftests): New function.
7552 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7553 selftest::aarch64_run_selftests.
7554 * config/i386/i386.c
7555 (selftest::ix86_test_loading_dump_fragment_1): New function.
7556 (selftest::ix86_test_loading_call_insn): New function.
7557 (selftest::ix86_test_loading_full_dump): New function.
7558 (selftest::ix86_test_loading_unspec): New function.
7559 (selftest::ix86_run_selftests): Call the new functions.
7560 * emit-rtl.c (maybe_set_max_label_num): New function.
7561 * emit-rtl.h (maybe_set_max_label_num): New decl.
7562 * function.c (instantiate_decls): Guard call to
7563 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7564 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7566 * gensupport.c (gen_reader::gen_reader): Pass "false"
7567 for new "compact" param of rtx_reader.
7568 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7569 rather than an empty string for NULL strings.
7570 * read-md.c: Potentially include config.h rather than bconfig.h.
7571 Wrap include of errors.h with #ifdef GENERATOR_FILE.
7572 (have_error): New global, copied from errors.c.
7573 (md_reader::read_name): Rename to...
7574 (md_reader::read_name_1): ...this, adding "out_loc" param,
7575 and converting "missing name or number" to returning false, rather
7577 (md_reader::read_name): Reimplement in terms of read_name_1.
7578 (md_reader::read_name_or_nil): New function.
7579 (md_reader::read_string): Handle "(nil)" by returning NULL.
7580 (md_reader::md_reader): Add new param "compact".
7581 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7582 (md_reader::read_file): New method.
7583 * read-md.h (md_reader::md_reader): Add new param "compact".
7584 (md_reader::read_file): New method.
7585 (md_reader::is_compact): New accessor.
7586 (md_reader::read_name): Convert return type from void to file_location.
7587 (md_reader::read_name_or_nil): New decl.
7588 (md_reader::read_name_1): New decl.
7589 (md_reader::m_compact): New field.
7590 (noop_reader::noop_reader): Pass "false" for new "compact" param
7592 (rtx_reader::rtx_reader): Add new "compact" param.
7593 (rtx_reader::read_rtx_operand): Make virtual and convert return
7594 type from void to rtx.
7595 (rtx_reader::read_until): New decl.
7596 (rtx_reader::handle_any_trailing_information): New virtual function.
7597 (rtx_reader::postprocess): New virtual function.
7598 (rtx_reader::finalize_string): New virtual function.
7599 (rtx_reader::m_in_call_function_usage): New field.
7600 (rtx_reader::m_reuse_rtx_by_id): New field.
7601 * read-rtl-function.c: New file.
7602 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7603 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7604 (selftest::verify_three_block_rtl_cfg): New decl.
7605 * read-rtl-function.h: New file.
7606 * read-rtl.c: Potentially include config.h rather than bconfig.h.
7607 For host, include function.h, memmodel.h, and emit-rtl.h.
7608 (one_time_initialization): New function.
7609 (struct compact_insn_name): New struct.
7610 (compact_insn_names): New array.
7611 (find_code): Handle insn codes in compact dumps.
7612 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7613 (bind_subst_iter_and_attr): Likewise.
7614 (add_condition_to_string): Likewise.
7615 (add_condition_to_rtx): Likewise.
7616 (apply_attribute_uses): Likewise.
7617 (add_current_iterators): Likewise.
7618 (apply_iterators): Likewise.
7619 (initialize_iterators): Guard usage of apply_subst_iterator with
7620 #ifdef GENERATOR_FILE.
7621 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7622 (md_reader::read_mapping): Likewise.
7623 (add_define_attr_for_define_subst): Likewise.
7624 (add_define_subst_attr): Likewise.
7625 (read_subst_mapping): Likewise.
7626 (check_code_iterator): Likewise.
7627 (rtx_reader::read_rtx): Likewise. Move one-time initialization
7629 (one_time_initialization): New function.
7630 (rtx_reader::read_until): New method.
7631 (read_flags): New function.
7632 (parse_reg_note_name): New function.
7633 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7634 Handle reuse_rtx ids.
7635 Wrap iterator lookup within #ifdef GENERATOR_FILE.
7636 Add parsing support for RTL dumps, mirroring the special-cases in
7637 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7638 values, and calling handle_any_trailing_information.
7639 (rtx_reader::read_rtx_operand): Convert return type from void
7640 to rtx, returning return_rtx. Handle case 'e'. Call
7641 finalize_string on XSTR and XTMPL fields.
7642 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
7643 "(nil)" values were omitted. Call the postprocess vfunc on the
7645 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7646 class ctor. Initialize m_in_call_function_usage. Call
7647 one_time_initialization.
7648 * rtl-tests.c (selftest::test_uncond_jump): Call
7649 set_new_first_and_last_insn.
7650 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7651 * selftest-rtl.c: New file.
7652 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7653 (selftest::get_insn_by_uid): New decl.
7654 * selftest-run-tests.c (selftest::run_tests): Call
7655 read_rtl_function_c_tests.
7656 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
7657 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7660 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
7662 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7663 operands in a special way. Assert that pos+len <= mode precision.
7665 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7667 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7668 3 argument Alias with unlimited for the negative form.
7669 (fno-vect-cost-model): Removed.
7671 2017-01-05 Martin Liska <mliska@suse.cz>
7673 * hsa-gen.c (gen_hsa_divmod): New function.
7674 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7676 2017-01-05 Martin Liska <mliska@suse.cz>
7679 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7682 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7684 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7685 small constant length operands.
7687 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7689 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7690 between loop iterations.
7692 2017-01-05 Martin Liska <mliska@suse.cz>
7695 * gimplify.c (gimplify_decl_expr): Compare to
7696 asan_poisoned_variables instread of checking flags.
7697 (gimplify_target_expr): Likewise.
7698 (gimplify_expr): Likewise.
7699 (gimplify_function_tree): Conditionally initialize
7700 asan_poisoned_variables.
7702 2017-01-04 Jeff Law <law@redhat.com>
7704 PR tree-optimizatin/78812
7705 * rtl.h (contains_mem_rtx_p): Prototype.
7706 * ifcvt.c (containts_mem_rtx_p): Move from here to...
7707 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7708 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7709 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
7710 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7712 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7714 * input.c (assert_char_at_range): Default-initialize actual_range.
7716 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7718 * df-scan.c (df_ref_create_structure): Make regno unsigned,
7719 to match the caller.
7721 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7723 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7724 insns after final jump in test to emit dummy move.
7726 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7728 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7729 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7731 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7733 * multiple_target.c (create_dispatcher_calls): Init e_next.
7734 * tree-ssa-loop-split.c (split_loop): Init border.
7735 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7738 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7743 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7744 (altivec_register_operand): Do not return true if the operand
7745 contains a SUBREG mixing SImode and SFmode.
7746 (vsx_register_operand): Likewise.
7747 (vsx_reg_sfsubreg_ok): New predicate.
7748 (vfloat_operand): Do not return true if the operand contains a
7749 SUBREG mixing SImode and SFmode.
7750 (vint_operand): Likewise.
7751 (vlogical_operand): Likewise.
7752 (gpc_reg_operand): Likewise.
7753 (int_reg_operand): Likewise.
7754 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7755 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7756 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7758 (rs6000_emit_move_si_sf_subreg): New helper function.
7759 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7760 fixup SUBREGs involving SImode and SFmode.
7761 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7762 numbers for the new peephole2 optimization.
7763 (peephole2 for SFmode unions): New peephole2 to optimize cases in
7764 the GLIBC math library that do AND/IOR/XOR operations on single
7765 precision floating point.
7766 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7767 target macros to say whether we need to avoid SUBREGs mixing
7769 (TARGET_ALLOW_SF_SUBREG): Likewise.
7770 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7771 (UNSPEC_SI_FROM_SF): Likewise.
7772 (iorxor): Change spacing.
7773 (and_ior_xor): New iterator for AND, IOR, and XOR.
7774 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7775 (movdi_from_sf_zero_ext): Likewise.
7776 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7777 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
7778 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7779 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7780 (fms<mode>4): Likewise.
7781 (fnma<mode>4): Likewise.
7782 (fnms<mode>4): Likewise.
7783 (nfma<mode>4): Likewise.
7784 (nfms<mode>4): Likewise.
7786 2017-01-04 Marek Polacek <polacek@redhat.com>
7789 * doc/invoke.texi: Document -Wpointer-compare.
7791 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7793 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7796 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7797 descriptions for -gdwarf-5 and emit them as uleb128 instead of
7800 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
7803 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7804 documentation of the powerpc_popcntb_ok attribute.
7805 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7806 code to issue warning messages if a requested CPU configuration is
7807 not supported by the binary (assembler and loader) toolchain.
7808 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7809 made to define a built-in function that has been disabled.
7810 (paired_init_builtins): Add assertion to prevent ICE if attempt is
7811 made to define a built-in function that has been disabled.
7812 (altivec_init_builtins): Add comment explaining why definition
7813 of the DST built-in functions is not preceded by an assertion
7814 check. Add assertions to prevent ICE if attempts are made to
7815 define an altivec predicate or an abs* built-in function that has
7817 (htm_init_builtins): Add comment explaining why definition of the
7818 htm built-in functions is not preceded by an assertion check.
7820 2017-01-04 Jeff Law <law@redhat.com>
7822 PR tree-optimizatin/67955
7823 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
7824 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
7825 the points-to solution does not include pt_null. Use DECL_PT_UID
7828 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
7830 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
7831 Use gen_int_mode instead of gen_lopwart for const_int operands.
7833 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7835 PR tree-optimization/71563
7836 * match.pd: Simplify X << Y into X if Y is known to be 0 or
7837 out of range value - has low bits known to be zero.
7839 2017-01-04 Alan Modra <amodra@gmail.com>
7841 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
7842 * configure: Regenerate.
7843 * config.in: Regenerate.
7845 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7848 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
7849 a substring of the message, but strcmp with the whole message. Ifdef
7850 ENABLE_NLS, translate the message first using dgettext.
7852 2017-01-03 Jeff Law <law@redhat.com>
7854 PR tree-optimizatin/78856
7855 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
7856 (mark_threaded_blocks): Remove code to truncate thread paths that
7857 cross multiple loop headers. Instead invalidate the cached loop
7858 iteration information and handle case of a thread path walking
7859 into an irreducible region.
7861 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7864 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
7865 assertions. Add support for doing the signbit if the IEEE 128-bit
7866 floating point value is in a GPR.
7867 * config/rs6000/rs6000.md (Fsignbit): Delete.
7868 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
7869 Update the length attribute if the value is in a GPR.
7870 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
7871 the sign or zero extension instruction, since the value is always 0/1.
7872 (signbit<mode>2_dm2): Delete using <Fsignbit>.
7875 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
7876 extracting SImode to a GPR register so that we can generate a
7877 store, limit the vector to be in a traditional Altivec register
7878 for the vextuwrx instruction.
7880 2017-01-03 Ian Lance Taylor <iant@google.com>
7882 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
7884 2017-01-03 Martin Sebor <msebor@redhat.com>
7886 PR tree-optimization/78696
7887 * gimple-ssa-sprintf.c (format_floating): Correct handling of
7888 precision. Use MPFR for %f for greater fidelity. Correct handling
7890 (pass_sprintf_length::compute_format_length): Set width and precision
7891 specified by asrerisk to void_node for vararg functions.
7892 (try_substitute_return_value): Adjust dump output.
7894 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
7896 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
7898 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
7900 * doc/invoke.texi (SPARC options): Document -mlra as the default.
7901 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
7902 -mlra/-mno-lra was passed to the compiler.
7904 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
7906 PR rtl-optimization/65618
7907 * emit-rtl.c (try_split): Move initialization of "before" and
7908 "after" to just before the call to emit_insn_after_setloc.
7910 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
7912 * doc/md.texi (Standard Names): Remove reference to Java frontend.
7914 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
7916 * dwarf2out.c (gen_enumeration_type_die): When
7917 -gno-strict-dwarf, add a DW_AT_encoding attribute.
7919 2017-01-03 Jakub Jelinek <jakub@redhat.com>
7921 PR tree-optimization/78965
7922 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
7923 Change first argument from const call_info & to call_info &. For %n
7924 set info.nowrite to false.
7927 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
7928 possibly throwing calls.
7930 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
7931 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
7932 and fns handling, rather than in a separate case SSA_NAME.
7934 2017-01-02 Jeff Law <law@redhat.com>
7936 * config/darwin-driver.c (darwin_driver_init): Const-correctness
7937 fixes for first_period and second_period variables.
7939 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
7942 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
7943 (*insvqi_1): New insn pattern.
7944 (*insvqi_1_mem_rex64): Ditto.
7946 (*insvqi_3): Rename from *insvqi.
7948 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
7950 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7952 * doc/cfg.texi (Edges): Remove reference to Java.
7953 (Maintaining the CFG): Ditto.
7955 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7958 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
7959 transparent aliases.
7961 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7964 * predict.def (PRED_CALL): Update hitrate.
7965 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
7966 * predict.c (tree_estimate_probability_bb): Split CALL predictor
7967 into direct/indirect/polymorphic variants.
7969 2017-01-01 Jakub Jelinek <jakub@redhat.com>
7971 Update copyright years.
7973 * gcc.c (process_command): Update copyright notice dates.
7974 * gcov-dump.c (print_version): Ditto.
7975 * gcov.c (print_version): Ditto.
7976 * gcov-tool.c (print_version): Ditto.
7977 * gengtype.c (create_file): Ditto.
7978 * doc/cpp.texi: Bump @copying's copyright year.
7979 * doc/cppinternals.texi: Ditto.
7980 * doc/gcc.texi: Ditto.
7981 * doc/gccint.texi: Ditto.
7982 * doc/gcov.texi: Ditto.
7983 * doc/install.texi: Ditto.
7984 * doc/invoke.texi: Ditto.
7986 Copyright (C) 2017 Free Software Foundation, Inc.
7988 Copying and distribution of this file, with or without modification,
7989 are permitted in any medium without royalty provided the copyright
7990 notice and this notice are preserved.