1 2017-04-18 Jeff Law <law@redhat.com>
4 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
5 predecessors after walking up the insn chain.
7 2017-04-18 Jakub Jelinek <jakub@redhat.com>
10 * dwarf2out.c (modified_type_die): Try harder not to emit internal
11 sizetype type into debug info.
13 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
17 unneeded test for TARGET_UPPER_REGS_SF.
18 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
20 2017-04-18 Jakub Jelinek <jakub@redhat.com>
23 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
24 instead of gsi_after_labels.
26 2017-04-18 Jeff Law <law@redhat.com>
28 * regcprop.c (maybe_mode_change): Avoid creating copies of the
32 2017-04-13 Jeff Law <law@redhat.com>
33 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
34 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
36 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
39 * config/avr/avr.c (intl.h): Include it.
40 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
42 2017-04-18 Martin Liska <mliska@suse.cz>
45 * gcov-tool.c (gcov_output_files): Validate that destination
46 file is either removed by the tool or by a user.
48 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
49 Guy Benyei <guybe@mellanox.com>
51 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
52 block, and do not negate it, the stored id is already negative.
54 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
56 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
58 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
61 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
62 masks of options that should be turned off if the VSX vector
63 options are turned off.
64 (OTHER_P8_VECTOR_MASKS): Likewise.
65 (OTHER_VSX_VECTOR_MASKS): Likewise.
66 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
67 rs6000_disable_incompatible_switches to validate no type switches
69 (rs6000_incompatible_switch): New function to disallow turning on
70 other vector options if -mno-vsx, -mno-power8-vector, or
71 -mno-power9-vector are specified.
73 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
75 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
77 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
79 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
80 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
81 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
82 (ARG_POINTER_CFA_OFFSET): Likewise.
84 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
86 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
87 conditions to take advantage of various optimizations.
89 2017-04-13 Jeff Law <law@redhat.com>
91 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
92 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
93 (zero_extendsidi2_dext): Likewise.
95 2017-04-13 Jakub Jelinek <jakub@redhat.com>
98 * fold-const.c (fold_ternary_loc): Revert
99 use op0 instead of fold_convert_loc (loc, type, arg0) part of
102 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
104 PR rtl-optimization/80343
105 * lra-remat.c (update_scratch_ops): Assign original hard reg to
108 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
111 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
112 to ubsan_encode_value.
114 2017-04-13 Jeff Law <law@redhat.com>
116 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
117 appearing in DEBUG_INSNs.
119 2017-04-13 Martin Liska <mliska@suse.cz>
121 PR gcov-profile/80413
122 * gcov-io.c (gcov_write_string): Copy to buffer just when
123 allocated size is greater than zero.
125 2017-04-13 Jakub Jelinek <jakub@redhat.com>
128 * dwarf2out.c (decls_for_scope): Ignore declarations of
129 current_function_decl in BLOCK_NONLOCALIZED_VARS.
131 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
134 * ipa-visibility.c (non_local_p): Fix typos.
135 (localize_node): When localizing symbol in same comdat group,
136 dissolve the group only when we know external symbols are going
138 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
140 2017-04-12 Jakub Jelinek <jakub@redhat.com>
142 PR tree-optimization/79390
143 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
144 order does not result in usable sequence, retry with reversed operand
150 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
151 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
152 op0 instead of fold_convert_loc (loc, type, arg0).
154 2017-04-12 Jeff Law <law@redhat.com>
156 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
157 has a delay slot in the generated code.
159 * config/cris/cris.md (cris_preferred_reload_class): Return
160 GENNONACR_REGS rather than GENERAL_REGS.
162 2017-04-12 Jakub Jelinek <jakub@redhat.com>
165 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
166 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
167 signedness of the result type.
169 2017-04-12 Richard Biener <rguenther@suse.de>
170 Jeff Law <law@redhat.com>
172 PR tree-optimization/80359
173 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
174 trim stores to TARGET_MEM_REFs.
176 2017-04-12 Richard Biener <rguenther@suse.de>
178 PR tree-optimization/79390
179 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
180 threading case even more.
182 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
185 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
186 for quad_address_p for TImode, instead of just not indexed_address.
188 2017-04-12 Richard Biener <rguenther@suse.de>
189 Bernd Edlinger <bernd.edlinger@hotmail.de>
192 * alias.c (component_uses_parent_alias_set_from): Handle
193 TYPE_TYPELESS_STORAGE.
194 (get_alias_set): Likewise.
195 * tree-core.h (tree_type_common): Add typeless_storage flag.
196 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
197 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
198 for types containing members with TYPE_TYPELESS_STORAGE.
199 (place_field): Likewise.
200 (layout_type): Likewise for ARRAY_TYPE.
201 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
202 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
203 TYPE_TYPELESS_STORAGE.
204 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
206 2017-04-12 Jakub Jelinek <jakub@redhat.com>
209 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
210 first argument to type.
212 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
216 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
217 CONST0_RTX (mode) rather than const0_rtx where appropriate.
218 (rs6000_expand_binop_builtin): Likewise.
219 (rs6000_expand_ternop_builtin): Likewise; also add missing
220 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
222 * doc/extend.texi: Document that vec_xxpermdi's third argument
225 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
227 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
228 Use shift_const cost parameter when calculating gain of STV shifts.
230 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
232 PR rtl-optimization/70478
233 * lra-constraints.c (process_alt_operands): Check memory for
234 disfavoring memory insn operand.
236 2017-04-11 Jakub Jelinek <jakub@redhat.com>
239 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
240 left shift in unsigned HOST_WIDE_INT type.
242 PR rtl-optimization/80385
243 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
244 (not (neg X)) into (plus X -1) for complex or non-integral modes.
247 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
248 if they have any depend clauses.
250 2017-04-11 Martin Liska <mliska@suse.cz>
253 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
254 * ipa-split.c (split_function): Create a local comdat symbol
255 if caller is in a comdat group.
257 2017-04-11 Martin Liska <mliska@suse.cz>
260 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
263 2017-04-11 Martin Sebor <msebor@redhat.com>
266 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
267 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
269 (directive::set_width, directive::set_precision, format_character):
271 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
274 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
277 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
278 conflict, set target->arch_name instead of target->cpu_name.
280 2017-04-11 Richard Biener <rguenther@suse.de>
282 PR tree-optimization/80374
283 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
284 build_zero_cst, remove fold_convertible_p check again.
286 2017-04-11 Martin Liska <mliska@suse.cz>
289 * ubsan.c (instrument_object_size): Do not instrument register
292 2017-04-11 Jakub Jelinek <jakub@redhat.com>
295 * config/i386/i386-builtin-types.def
296 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
297 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
298 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
299 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
300 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
301 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
302 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
303 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
304 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
305 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
306 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
307 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
308 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
309 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
310 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
311 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
312 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
313 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
314 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
315 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
316 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
317 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
318 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
319 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
320 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
321 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
322 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
323 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
324 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
325 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
326 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
327 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
328 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
329 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
330 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
331 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
332 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
333 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
334 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
335 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
336 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
337 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
338 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
339 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
340 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
341 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
343 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
344 flag to second_arg_count, handle 4 argument function type _COUNT
345 aliases, handle second_arg_count on second argument rather than last.
347 2017-04-10 Jeff Law <law@redhat.com>
349 PR tree-optimization/80374
350 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
351 record anything if we can not convert integer_zero_node to the
354 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
357 * config/rs6000/rs6000.c (rs6000_option_override_internal):
358 Enhance special handling given to the TARGET_P9_MINMAX option in
359 relation to certain other options.
361 2017-04-10 Bin Cheng <bin.cheng@arm.com>
363 PR tree-optimization/80153
364 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
365 remove POINTER_PLUS_EXPR's base part directly, rather than through
368 2017-04-10 Richard Biener <rguenther@suse.de>
369 Bin Cheng <bin.cheng@arm.com>
371 PR tree-optimization/80153
372 * tree-affine.c (aff_combination_to_tree): Get base pointer from
373 the first element of pointer type aff_tree. Build result expr in
375 (add_elt_to_tree): Convert to type unconditionally. Remove other
377 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
378 (rewrite_use_nonlinear_expr): Check invariant using iv information.
380 2017-04-10 Richard Biener <rguenther@suse.de>
382 * tree-ssa-structalias.c (find_func_aliases): Properly handle
385 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
387 PR rtl-optimization/70478
388 * lra-constraints.c (curr_small_class_check): New.
389 (update_and_check_small_class_inputs): New.
390 (process_alt_operands): Update curr_small_class_check. Disfavor
391 alternative insn memory operands. Check available regs for small
394 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
397 * config/mips/mips.opt (-mvirt): Update description.
398 * doc/invoke.texi (-mvirt): Likewise.
400 2017-04-10 Richard Biener <rguenther@suse.de>
403 * fold-const.c (fold_binary_loc): Look at unstripped ops when
404 looking for NEGATE_EXPR in -A / -B to A / B folding.
406 2017-04-10 Martin Liska <mliska@suse.cz>
408 PR gcov-profile/80224
409 * gcov.c (print_usage): Fix usage string.
410 (get_gcov_intermediate_filename): Remove.
411 (output_gcov_file): Use both for normal and intermediate format.
412 (generate_results): Do not initialize special file for
415 2017-04-10 Richard Biener <rguenther@suse.de>
417 PR tree-optimization/80304
418 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
421 2017-04-10 Nathan Sidwell <nathan@acm.org>
424 * config/rs6000/rs6000.c (rs6000_vector_type): New.
425 (rs6000_init_builtins): Use it.
427 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
429 * config/arm/arm.md (<mrc>): Add mode to SET source.
432 2017-04-10 Richard Biener <rguenther@suse.de>
435 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
437 2017-04-10 Jakub Jelinek <jakub@redhat.com>
440 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
441 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
442 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
443 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
444 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
445 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
446 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
447 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
448 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
449 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
450 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
451 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
452 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
453 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
454 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
455 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
456 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
457 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
458 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
459 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
460 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
461 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
462 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
464 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
466 PR rtl-optimization/70478
467 * lra-constraints.c: Reverse the last patch.
469 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
471 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
472 Add comment for WCHAR_T.
474 2017-04-08 Martin Liska <mliska@suse.cz>
477 2017-04-07 Martin Liska <mliska@suse.cz>
480 * ipa-split.c (split_function): Add function part to a same comdat
483 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
486 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
488 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
490 * rs6000/rs6000.c (vec_load_pendulum): Rename...
491 (vec_pairing): ...to this.
492 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
493 (rs6000_sched_init): Adjust for name change.
494 (struct rs6000_sched_context): Likewise.
495 (rs6000_init_sched_context): Likewise.
496 (rs6000_set_sched_context): Likewise.
498 2017-04-07 Jakub Jelinek <jakub@redhat.com>
504 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
506 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
507 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
508 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
510 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
512 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
514 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
516 PR rtl-optimization/70703
517 * ira-color.c (update_conflict_hard_regno_costs): Use
518 int64_t instead of HOST_WIDE_INT.
520 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
522 PR rtl-optimization/70478
523 * lra-constraints.c (process_alt_operands): Disfavor alternative
524 insn memory operands.
526 2017-04-07 Jeff Law <law@redhat.com>
528 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
529 CALL and NOTE_INSN_CALL_ARG_LOCATION.
531 2017-04-07 Martin Liska <mliska@suse.cz>
534 * config/aarch64/aarch64.c (aarch64_process_target_attr):
535 Show error message instead of an ICE.
537 2017-04-07 Martin Liska <mliska@suse.cz>
540 * ipa-split.c (split_function): Add function part to a same comdat
543 2017-04-07 Richard Biener <rguenther@suse.de>
546 * tree.c (get_unwidened): Also handle ! for_type case for
548 * convert.c (do_narrow): Split out from ...
549 (convert_to_integer_1): ... here. Do not pass final truncation
550 type to get_unwidened for TRUNC_DIV_EXPR.
552 2017-04-07 Richard Biener <rguenther@suse.de>
554 * tree-affine.c (wide_int_ext_for_comb): Take type rather
556 (aff_combination_const): Adjust.
557 (aff_combination_scale): Likewise.
558 (aff_combination_add_elt): Likewise.
559 (aff_combination_add_cst): Likewise.
560 (aff_combination_convert): Likewise.
561 (add_elt_to_tree): Likewise. Remove unused argument.
562 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
564 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
566 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
568 * config/arm/arm.c (arm_default_short_enums): Use
569 ARM_DEFAULT_SHORT_ENUMS.
570 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
572 2017-04-06 Jakub Jelinek <jakub@redhat.com>
575 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
576 members with redundant out-of-class redeclaration.
578 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
582 * config/i386/i386.md (*zero_extendsidi2):
583 Add (?*x,*x) and (?*v,*v) alternatives.
585 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
588 * config/i386/i386.c (ix86_expand_builtin)
589 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
590 mode from insn data. Convert operands to insn operand mode.
591 Copy operands that don't satisfy insn predicate to a register.
593 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
595 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
598 2017-04-06 Richard Biener <rguenther@suse.de>
600 PR tree-optimization/80334
601 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
602 preserve alignment of accesses.
604 2017-04-06 Richard Biener <rguenther@suse.de>
606 PR tree-optimization/80262
607 * tree-sra.c (build_ref_for_offset): Preserve address-space
609 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
610 Drop useless address-space information on MEM_REF offsets.
612 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
614 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
616 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
618 PR rtl-optimization/70703
619 * ira-color.c (update_conflict_hard_regno_costs): Use
620 HOST_WIDE_INT instead of long.
622 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
625 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
626 not defined for x86_64 target. Add -mmmx target option when __SSE2__
628 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
629 for x86_64 target. Handle -m3dnowa option.
631 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
633 PR rtl-optimization/70703
634 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
635 (update_conflict_hard_regno_costs): Use long instead of unsigned
636 arithmetic for cost calculation.
638 2017-04-05 Jakub Jelinek <jakub@redhat.com>
639 Bernd Edlinger <bernd.edlinger@hotmail.de>
642 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
645 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
648 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
649 ptr_mode with Pmode throughout.
650 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
651 into probe_stack_range and use DImode.
653 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
656 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
657 call_eh_return is true.
659 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
661 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
662 Initialize last_match_fntype_index.
664 2017-04-05 Jakub Jelinek <jakub@redhat.com>
667 * tree-nvr.c: Include internal-fn.h.
668 (pass_return_slot::execute): Ignore internal calls without
671 2017-04-04 Jakub Jelinek <jakub@redhat.com>
672 Richard Biener <rguenther@suse.de>
675 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
676 captures used multiple times, except for the last use.
677 * generic-match-head.c: Include gimplify.h.
679 2017-04-04 Jakub Jelinek <jakub@redhat.com>
681 PR tree-optimization/79390
682 * target.h (struct noce_if_info): Declare.
683 * targhooks.h (default_noce_conversion_profitable_p): Declare.
684 * target.def (noce_conversion_profitable_p): New target hook.
685 * ifcvt.h (struct noce_if_info): New type, moved from ...
686 * ifcvt.c (struct noce_if_info): ... here.
687 (noce_conversion_profitable_p): Renamed to ...
688 (default_noce_conversion_profitable_p): ... this. No longer
690 (noce_try_store_flag_constants, noce_try_addcc,
691 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
692 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
693 instead of noce_conversion_profitable_p.
694 * config/i386/i386.c: Include ifcvt.h.
695 (ix86_option_override_internal): Don't override
696 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
697 (ix86_noce_conversion_profitable_p): New function.
698 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
699 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
700 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
701 * doc/tm.texi: Regenerated.
703 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
705 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
708 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
711 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
712 instructions for small multiply cores.
714 2017-04-04 Jeff Law <law@redhat.com>
716 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
718 (mips_expand_vec_perm_const): Initialize elements in orig_perm
719 that are not set by the loop over the elements.
721 2017-04-04 Jakub Jelinek <jakub@redhat.com>
724 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
725 int mode, convert_modes it to mode as unsigned, otherwise use
726 lowpart_subreg to mode rather than SImode.
727 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
728 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
729 Use DImode instead of SImode for the shift count operand.
730 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
733 2017-04-04 Richard Biener <rguenther@suse.de>
736 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
737 arithmetic done for the negate or the plus. Simplify.
738 (A - (-B) -> A + B): Likewise.
739 * fold-const.c (split_tree): Make sure to not negate pointers.
741 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
743 PR rtl-optimization/60818
744 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
745 a compare of comparisons with the thing compared if this results
746 in a different machine mode.
748 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
750 * alias.c (base_alias_check): Fix typo in comment.
751 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
752 * cgraphunit.c (symbol_table::compile): Likewise.
753 * collect2.c (maybe_run_lto_and_relink): Likewise.
754 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
755 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
756 * config/avr/avr.c (avr_map_op_t): Likewise.
757 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
758 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
759 * config/epiphany/epiphany.md (movcc): Likewise.
760 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
761 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
763 * config/mips/mips.c (mips_save_restore_reg): Likewise.
764 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
765 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
766 * config/sh/sh.c (sh_rtx_costs): Likewise.
767 * fold-const.c (fold_truth_andor): Likewise.
768 * genautomata.c (collapse_flag): Likewise.
769 * gengtype.h (struct type::u::s): Likewise.
770 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
771 * input.c (FORMAT_AMOUNT): Likewise.
772 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
773 (known_aggs_to_agg_replacement_list): Likewise.
774 * ipa-inline-analysis.c: Likewise.
775 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
776 * ipa-polymorphic-call.c
777 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
778 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
779 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
781 * modulo-sched.c (apply_reg_moves): Likewise.
782 * omp-expand.c (build_omp_regions_1): Likewise.
783 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
784 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
785 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
786 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
787 * value-prof.c: Likewise.
788 * var-tracking.c (val_reset): Likewise.
790 2017-04-03 Richard Biener <rguenther@suse.de>
792 PR tree-optimization/80275
793 * fold-const.c (split_address_to_core_and_offset): Handle
796 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
798 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
799 descriptors is at least equal to that of functions.
801 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
803 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
805 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
808 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
809 (mov<IMOD4:mode>): New expander.
810 (*mov<IMOD4:mode>_internal): New insn and split pattern.
812 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
814 PR rtl-optimization/79405
815 * fwprop.c (propagations_left): New variable.
816 (forward_propagate_into): Decrement it.
817 (fwprop_init): Initialize it.
818 (fw_prop): If the variable has reached zero, stop propagating.
819 (fwprop_addr): Ditto.
821 2017-03-31 Jakub Jelinek <jakub@redhat.com>
824 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
825 a FUNCTION_DECL, pass it as decl instead of origin to
828 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
830 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
833 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
836 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
837 TARGET_VSX_SMALL_INTEGER.
839 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
841 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
842 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
844 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
846 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
847 extraction from odd-numbered MSA register.
849 2017-03-31 Jakub Jelinek <jakub@redhat.com>
852 * expmed.c (store_bit_field_1): Don't attempt to create
853 a word subreg out of hard registers wider than word if they
854 have HARD_REGNO_NREGS of 1 for their mode.
857 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
858 conversions to integer types wider than word and pointer.
861 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
862 (rtx_equal_for_cselib_p): Pass 0 to it.
863 * cselib.c (cselib_hasher::equal): Likewise.
864 (rtx_equal_for_cselib_1): Add depth argument. If depth
865 is 128, don't look up VALUE locs and punt. Increment
866 depth in recursive calls when walking VALUE locs.
868 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
870 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
871 (make_gcov_file_name): Use the canonical path name for generating
873 (read_line): Fix handling of files with ascii null bytes.
875 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
877 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
878 to initialise a vector register instead
879 of using a const_int.
881 2017-03-30 Jakub Jelinek <jakub@redhat.com>
884 * gimplify.c (omp_default_clause): Use %qs instead of %s in
887 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
890 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
891 (dfp_diex_<mode>): Update mode of operand 1.
892 * doc/extend.texi (dxex, dxexq): Document change to return type.
893 (diex, diexq): Document change to argument type.
895 2017-03-30 Martin Jambor <mjambor@suse.cz>
898 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
899 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
900 it reflects the signature changes performed at the callee side.
901 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
902 to cgraph_build_function_type_skip_args.
903 (build_function_decl_skip_args): Adjust call to the above function.
905 2017-03-30 Jakub Jelinek <jakub@redhat.com>
909 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
910 register as dest whenever it is a MEM not rtx_equal_p to the
911 corresponding dup operand, and when forcing into reg move the
912 reg into the memory afterwards.
913 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
914 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
915 for the force_reg mode.
916 (avx512vl_vextractf128<mode>): Use register as dest either
917 always when a MEM, or when it is a MEM not rtx_equal_p to the
918 corresponding dup operand, or even not when it is a CONST_VECTOR
919 depending on the mode and lo vs. hi.
920 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
922 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
923 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
924 Likewise. Require that operands[2] is even.
925 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
926 Remove extraneous parens. Require that operands[2] is a multiple
928 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
929 operands[0] is a MEM if <mask_applied>, the predicates/constraints
930 disallow memory then.
932 2017-03-30 Richard Biener <rguenther@suse.de>
934 PR tree-optimization/77498
935 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
936 to non-constants over backedges.
938 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
940 PR rtl-optimization/80233
941 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
942 as last_combined_insn. Do not test for BARRIER_P separately.
944 2017-03-29 Andreas Schwab <schwab@suse.de>
947 * calls.c (prepare_call_address): Convert funexp to Pmode before
950 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
952 PR tree-optimization/80158
953 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
954 Handle possible future case of more than one alternate
956 (replace_rhs_if_not_dup): Likewise.
957 (replace_one_candidate): Likewise.
959 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
961 PR rtl-optimization/80193
962 * ira.c (ira): Do not check allocation for LRA.
964 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
966 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
967 (nvptx_output_simt_exit): Declare.
968 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
969 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
970 (init_softstack_frame): Move initialization of crtl->is_leaf to...
971 (nvptx_declare_function_name): ...here. Emit declaration of local
972 memory space buffer for omp_simt_enter insn.
973 (nvptx_output_unisimt_switch): New.
974 (nvptx_output_softstack_switch): New.
975 (nvptx_output_simt_enter): New.
976 (nvptx_output_simt_exit): New.
977 * config/nvptx/nvptx.h (struct machine_function): New fields
978 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
979 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
980 (UNSPECV_SIMT_EXIT): Ditto.
981 (omp_simt_enter_insn): New insn.
982 (omp_simt_enter): New expansion.
983 (omp_simt_exit): New insn.
984 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
986 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
987 (expand_GOMP_SIMT_ENTER_ALLOC): New.
988 (expand_GOMP_SIMT_EXIT): New.
989 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
990 (GOMP_SIMT_ENTER_ALLOC): Ditto.
991 (GOMP_SIMT_EXIT): Ditto.
992 * target-insns.def (omp_simt_enter): New insn.
993 (omp_simt_exit): Ditto.
994 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
996 (lower_rec_simd_input_clauses): Implement SIMT privatization.
997 (lower_rec_input_clauses): Likewise.
998 (lower_lastprivate_clauses): Handle SIMT privatization.
1000 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
1001 (ompdevlow_adjust_simt_enter): New.
1002 (find_simtpriv_var_op): New.
1003 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
1004 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
1006 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
1007 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
1008 (copy_decl_for_dup_finish): Ditto.
1010 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
1012 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
1015 * config/i386/i386.c (ix86_option_override_internal): Always
1016 allow -mpreferred-stack-boundary=3 for 64-bit targets.
1018 2017-03-28 Bin Cheng <bin.cheng@arm.com>
1020 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
1022 2017-03-28 Bin Cheng <bin.cheng@arm.com>
1024 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
1025 mark new edge's irreducible flag accordign to it.
1026 (vect_do_peeling): Check loop preheader edge's irreducible flag
1027 and pass it to function slpeel_add_loop_guard.
1029 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
1031 PR tree-optimization/80218
1032 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1033 Update block frequencies and counts.
1035 2017-03-28 Richard Biener <rguenther@suse.de>
1037 PR tree-optimization/78644
1038 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
1039 of a simplification result we may not use it at all.
1041 2017-03-28 Richard Biener <rguenther@suse.de>
1044 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
1045 without arguments, generate default definition of a SSA name.
1047 2017-03-28 Richard Biener <rguenther@suse.de>
1050 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
1051 TYPE_REF_CAN_ALIAS_ALL references.
1052 * fold-const.c (fold_indirect_ref_1): Likewise.
1054 2017-03-28 Martin Liska <mliska@suse.cz>
1057 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
1058 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
1060 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
1061 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
1063 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
1064 (EXTRA_SPECS): Define.
1065 (SUBTARGET_EXTRA_SPECS): Likewise.
1066 (SUBTARGET_CPP_SPEC): Likewise.
1067 * config/arc/elf.h (EXTRA_SPECS): Renamed to
1068 SUBTARGET_EXTRA_SPECS.
1069 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
1071 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
1073 * config/arc/simdext.md (vst64_insn): Update pattern.
1074 (vld32wh_insn): Likewise.
1075 (vld32wl_insn): Likewise.
1076 (vld64_insn): Likewise.
1077 (vld32_insn): Likewise.
1079 2017-03-28 Marek Polacek <polacek@redhat.com>
1082 * fold-const.c (fold_comparison): Use protected_set_expr_location
1083 instead of SET_EXPR_LOCATION.
1085 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1087 * tree.c (add_expr): Avoid name lookup warning.
1089 2017-03-27 Jeff Law <law@redhat.com>
1091 PR tree-optimization/80216
1092 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
1093 function name. Limit recursion depth.
1094 (record_temporary_equivalences): Corresponding changes.
1096 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
1098 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
1101 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1104 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
1106 * cfgcleanup.c (reg_note_cfa_p): New array.
1107 (insns_have_identical_cfa_notes): New function.
1108 (old_insns_match_p): Don't cross-jump in between /f
1109 and non-/f instructions. If both i1 and i2 are frame related,
1110 verify all CFA notes, their order and content.
1112 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1115 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
1116 HImode and SImode with zero extend to DImode to one insn.
1117 (bswap<mode>2_extenddi): Likewise.
1118 (bswapsi2_extenddi): Likewise.
1119 (bswaphi2_extendsi): Likewise.
1120 (bswaphi2): Combine bswap HImode and SImode into one insn.
1121 Separate memory insns from swapping register.
1122 (bswapsi2): Likewise.
1123 (bswap<mode>2): Likewise.
1124 (bswaphi2_internal): Delete, no longer used.
1125 (bswapsi2_internal): Likewise.
1126 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
1127 store, and gpr<-gpr swap insns.
1128 (bswap<mode>2_store): Likewise.
1129 (bswaphi2_reg): Register only splitter, combine with the splitter.
1130 (bswaphi2 splitter): Likewise.
1131 (bswapsi2_reg): Likewise.
1132 (bswapsi2 splitter): Likewise.
1133 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
1134 the insns into load, store, and register/register insns.
1135 (bswapdi2_ldbrx): Likewise.
1136 (bswapdi2_load): Likewise.
1137 (bswapdi2_store): Likewise.
1138 (bswapdi2_reg): Likewise.
1140 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
1142 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
1143 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
1145 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
1148 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
1150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1151 special handling for target option conflicts between dform
1152 options (-mpower9-dform, -mpower9-dform-vector,
1153 -mpower9-dform-scalar) and -mno-direct-move.
1155 2017-03-27 Richard Biener <rguenther@suse.de>
1157 PR tree-optimization/80181
1158 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
1160 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1162 * config/arc/predicates.md (move_double_src_operand): Replace the
1163 call to move_double_src_operand with a call to address_operand.
1165 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1167 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
1168 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
1169 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
1171 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1173 * config/arc/predicates.md (long_immediate_loadstore_operand):
1174 Consider scaled addresses cases.
1176 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1178 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
1179 restored when in interrupt.
1180 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
1181 doesn't have delay slot.
1183 2017-03-27 Richard Biener <rguenther@suse.de>
1186 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
1187 inlined thunk clones.
1189 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1192 * asan.c (instrument_derefs): Copy over last operand from
1193 original COMPONENT_REF to the new COMPONENT_REF with
1194 DECL_BIT_FIELD_REPRESENTATIVE.
1195 * ubsan.c (instrument_object_size): Likewise.
1197 2017-03-27 Richard Biener <rguenther@suse.de>
1199 PR tree-optimization/80170
1200 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
1201 sure DR/SCEV didnt fold in constants we do not see when looking
1202 at the reference base alignment.
1204 2017-03-27 Richard Biener <rguenther@suse.de>
1207 * gimple-fold.c (fold_ctor_reference): Properly guard against
1208 NULL return value from canonicalize_constructor_val.
1210 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
1213 * config/i386/i386.c (ix86_expand_builtin)
1214 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
1215 flags reg setting and flags reg using instructions.
1216 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
1217 clobbering instructions to zero extend op2.
1219 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
1221 * doc/install.texi (Configuration) <--with-aix-soname>:
1222 Update link to AIX ld.
1224 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
1226 PR rtl-optimization/80160
1227 PR rtl-optimization/80159
1228 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
1229 reg_alternate_class into account.
1231 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
1234 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
1235 to consider in curr_insn_transform.
1237 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1239 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
1240 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
1241 and emit_mode_inner.
1243 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1245 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
1246 argument to the overloaded builtin variants. Use the new flag to
1247 deprecate certain builtin variants.
1248 * config/s390/s390-builtin-types.def: Add new builtin types.
1249 * config/s390/s390-builtins.h: Support new flags field for
1250 overloaded builtins.
1251 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
1252 (s390_macro_to_expand): Enable vector float data type.
1253 (s390_cpu_cpp_builtins_internal): Indicate support of the new
1254 builtins by incrementing the __VEC__ version number.
1255 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
1257 (s390_resolve_overloaded_builtin): Emit error messages depending
1258 on the builtin flags.
1259 * config/s390/s390.c (s390_expand_builtin): Support additional
1260 flags argument. Change error message to match the messages
1261 emitted in s390-c.c.
1262 * config/s390/s390.md: New UNSPEC_* constants.
1263 (op_type): Add new instruction types.
1264 * config/s390/vecintrin.h: Add new builtins and test data class
1266 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
1267 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
1268 (VEC_INEXACT, VEC_NOINEXACT): New constants.
1269 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
1270 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
1271 ("vec_mergel<mode>"): V_HW -> VEC_HW.
1273 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
1274 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
1275 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
1276 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
1278 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
1279 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
1280 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
1281 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
1283 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
1284 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
1285 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
1286 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
1287 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
1288 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
1289 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
1291 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
1292 ("vec_scatter_element<V_HW_4:mode>_DI")
1293 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
1294 ("vec_fpint<mode>", "vflls")
1295 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
1296 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
1297 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
1298 ("*vec_cmphe<mode>_cc"): ... these.
1300 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
1301 mode constant instead of magic value.
1303 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1305 * config/s390/s390.c (s390_expand_vec_compare): Support other
1306 vector floating point modes than just V2DF.
1307 (s390_expand_vcond): Likewise.
1308 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
1309 (s390_cannot_change_mode_class): Prevent mode changes between TF
1310 and V1TF in vector registers.
1311 * config/s390/s390.md (DF, SF): New mode attributes.
1312 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
1313 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
1314 SFmode support for VRs.
1315 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
1317 (VFT, VF_HW): New mode iterators.
1318 (vw, sdx): New mode attributes.
1319 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
1320 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
1321 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
1322 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
1323 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
1324 also the new vector floating point modes. Renaming to ...
1326 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
1327 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
1328 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
1329 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
1330 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
1331 ("vec_unordered<mode>"): ... these.
1333 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
1334 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
1335 ("*vec_extendv2df"): New insn definitions.
1337 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1339 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
1340 ("mulditi3_2", "*muldi3_sign"): New patterns.
1341 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
1342 rename the pattern definition.
1344 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1346 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
1348 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
1350 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1352 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
1353 instruction if possible.
1354 * config/s390/vector.md (vec_halfnumelts): New mode
1356 ("*vec_vllezlf<mode>"): New pattern.
1358 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1360 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
1361 ("popcountv4si2", "popcountv2di2"): Rename to ...
1362 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
1363 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
1365 ("popcount<mode>2_vxe"): New pattern.
1367 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1369 * common/config/s390/s390-common.c (processor_flags_table): Add
1371 * config.gcc: Add arch12.
1372 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1373 Default to arch12 for unknown CPU model numbers.
1374 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
1375 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
1376 PROCESSOR_max sanity check.
1377 * config/s390/s390-opts.h (enum processor_type): Add
1379 * config/s390/s390.c (processor_table): Add arch12.
1380 (s390_expand_builtin): Add check for B_VXE flag.
1381 (s390_issue_rate): Add PROCESSOR_ARCH12.
1382 (s390_get_sched_attrmask): Likewise.
1383 (s390_get_unit_mask): Likewise.
1384 (s390_sched_score): Enable z13 scheduling for arch12.
1385 (s390_sched_reorder): Likewise.
1386 (s390_sched_variable_issue): Likewise.
1387 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
1389 (s390_tune_attr): Use z13 scheduling also for arch12.
1390 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
1391 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
1392 (TARGET_VXE_P): New macros.
1393 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
1394 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
1395 * config/s390/s390.opt: Add arch12 as processor_type.
1397 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1399 * config/s390/s390.md
1400 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1401 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
1402 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
1404 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
1405 Rename expanders to ...
1407 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
1408 ("fixuns_truncdddi2_emu"): ... these.
1410 ("fixuns_trunc<mode>si2_emu"): New expander.
1412 ("*fixuns_truncdfdi2_z13"): Rename to ...
1413 ("*fixuns_truncdfdi2_vx"): ... this.
1415 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1417 * config/s390/2964.md: Remove the single element vector compare
1418 instructions which are no longer used.
1419 * config/s390/s390.c (s390_select_ccmode): Remove handling of
1421 (s390_canonicalize_comparison): Remove handling of DFmode
1423 (s390_expand_vec_compare_scalar): Remove function.
1424 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
1425 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
1427 ("*cmp<mode>_ccs"): Add wfcdb instruction.
1429 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1431 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
1433 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
1434 will anyway by matched by mov<mode>_64dfp.
1436 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1438 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1439 vlef/vstef. Add missing operand to vleif.
1441 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1443 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1444 pair for all vector types with 64 bit elements.
1445 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1446 * config/s390/vector.md (V_HW_64): ... here.
1447 (V_128_NOSINGLE): New mode iterator.
1448 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1449 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1450 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1451 ("*vec_load_pairv2di"): Change to ...
1452 ("*vec_load_pair<mode>"): ... this one.
1454 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1456 * config/s390/constraints.md: Add comments.
1457 (jKK): Reject element sizes > 8 bytes.
1458 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1460 * config/s390/s390.md: Add the s_operand checks formerly in
1461 s390_split_ok_p to various splitters where they are still
1463 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1464 for 128 bit vectors. Plus two splitters.
1466 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1468 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1471 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1474 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1475 error if the boundary argument is not constant.
1477 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1479 PR rtl-optimization/80112
1480 * loop-doloop.c (doloop_condition_get): Don't check condition
1481 if cmp isn't SET with IF_THEN_ELSE src.
1483 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1485 PR tree-optimization/80158
1486 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1487 replacing a candidate statement, also replace it for the
1488 candidate's alternate interpretation.
1489 (replace_rhs_if_not_dup): Likewise.
1490 (replace_one_candidate): Likewise.
1492 2017-03-24 Richard Biener <rguenther@suse.de>
1494 PR tree-optimization/80167
1495 * graphite-isl-ast-to-gimple.c
1496 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1498 (translate_isl_ast_to_gimple::get_rename): Likewise.
1500 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
1502 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1503 handling of certain combinations of target options, including the
1504 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1505 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1507 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1510 * config/arm/arm.md (*load_multiple): Add reload_completed to
1513 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1514 Richard Biener <rguenth@suse.de>
1516 PR tree-optimization/79908
1517 PR tree-optimization/80136
1518 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1519 been cast away, gimplify_and_add suffices.
1521 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
1523 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1525 2017-03-23 Richard Biener <rguenther@suse.de>
1527 PR tree-optimization/80032
1528 * gimplify.c (gimple_push_cleanup): Forced unconditional
1529 cleanups still have to go to the conditional_cleanups
1532 2017-03-22 Jakub Jelinek <jakub@redhat.com>
1534 PR tree-optimization/80072
1535 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1537 (next_operand_entry_id): Change type to unsigned int.
1538 (sort_by_operand_rank): Make sure to return the right return value
1539 even if unsigned fields are bigger than INT_MAX.
1540 (struct oecount): Change cnt and id type to unsigned int.
1541 (oecount_hasher::equal): Formatting fix.
1542 (oecount_cmp): Make sure to return the right return value
1543 even if unsigned fields are bigger than INT_MAX.
1544 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1547 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1548 TREE_READONLY on result if writing it more than once.
1551 * doc/invoke.texi (-fsanitize=thread): Document that with
1552 -fnon-call-exceptions atomics are not able to throw
1556 * tsan.c: Include tree-eh.h.
1557 (instrument_builtin_call): Call maybe_clean_eh_stmt or
1558 maybe_clean_or_replace_eh_stmt where needed.
1559 (instrument_memory_accesses): Add cfg_changed argument.
1560 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1561 if it returned true.
1562 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
1564 PR rtl-optimization/63191
1565 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1566 wrapper function, moved the whole old content into ...
1567 (ix86_delegitimize_address_1): ... this. New inline function.
1568 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1569 true as last argument instead of ix86_delegitimize_address.
1571 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1573 * config/aarch64/aarch64.c (generic_branch_cost): Copy
1574 cortexa57_branch_cost.
1576 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1578 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1580 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1583 * doc/md.texi (Constraints): Document wA constraint.
1584 * config/rs6000/constraints.md (wA): New.
1585 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1586 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1587 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1588 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1590 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
1593 * gimplify.c (is_oacc_declared): New function.
1594 (oacc_default_clause): Use it to set default flags for acc declared
1595 variables inside parallel regions.
1596 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1598 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
1599 declare attribute to any decl as necessary.
1601 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1604 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1605 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1606 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1607 (arm_arch_lpae): This.
1608 * config/arm/arm.c (arm_arch7ve): Rename into ...
1609 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
1610 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1613 2017-03-22 Martin Liska <mliska@suse.cz>
1616 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1617 error message instead of an ICE.
1619 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1621 * doc/extend.texi (6.11 Additional Floating Types): Revise.
1623 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
1625 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1627 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1630 2017-03-21 Martin Sebor <msebor@redhat.com>
1632 * doc/extend.texi: Use "cannot" instead of "can't."
1633 * doc/hostconfig.texi: Same.
1634 * doc/install.texi: Same.
1635 * doc/invoke.texi: Same.
1636 * doc/loop.texi: Same.
1637 * doc/md.texi: Same.
1638 * doc/objc.texi: Same.
1639 * doc/rtl.texi: Same.
1640 * doc/tm.texi: Same.
1641 * doc/tm.texi.in: Same.
1642 * doc/trouble.texi: Same.
1644 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
1647 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1648 (collect_checksum_attributes): Set it.
1649 (die_checksum_ordered): Use it.
1651 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1653 PR tree-optimization/79908
1654 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1655 change: For a VA_ARG whose LHS has been cast away, use
1656 force_gimple_operand to construct the side effects.
1658 2017-03-21 David Malcolm <dmalcolm@redhat.com>
1660 PR translation/80001
1661 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1662 more amenable to translation.
1663 (oacc_loop_auto_partitions): Likewise.
1665 2017-03-21 Marek Polacek <polacek@redhat.com>
1666 Martin Sebor <msebor@redhat.com>
1668 PR tree-optimization/80109
1669 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1672 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1673 Segher Boessenkool <segher@kernel.crashing.org>
1676 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1677 check reg_used_between_p between insn and one of succ or succ2
1678 depending on if succ is artificial insn not inserted into insn
1681 2017-03-21 Martin Liska <mliska@suse.cz>
1683 PR gcov-profile/80081
1684 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1685 * doc/gcc.texi: Include gcov-dump stuff.
1686 * doc/gcov-dump.texi: New file.
1688 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
1690 PR rtl-optimization/79150
1691 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1692 conditional jump, if the jump is the last insn of the loop.
1694 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1695 Richard Biener <rguenth@suse.de>
1697 PR tree-optimization/79908
1698 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1699 been cast away, use force_gimple_operand to construct the side
1702 2017-03-21 Martin Liska <mliska@suse.cz>
1705 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1708 2017-03-21 Brad Spengler <spender@grsecurity.net>
1711 * plugin.c (htab_hash_plugin): New function.
1712 (add_new_plugin): Use it and adjust.
1713 (parse_plugin_arg_opt): Adjust.
1714 (init_one_plugin): Likewise.
1716 2017-03-21 Richard Biener <rguenther@suse.de>
1718 PR tree-optimization/80032
1719 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1720 if set force the cleanup to happen unconditionally.
1721 (gimplify_target_expr): Push inserted clobbers with force_uncond
1722 to avoid them being removed by control-dependent DCE.
1724 2017-03-21 Richard Biener <rguenther@suse.de>
1726 PR tree-optimization/80122
1727 * tree-inline.c (copy_bb): Do not expans va-arg packs or
1728 va_arg_pack_len when the inlined call stmt requires pack
1730 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1732 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1735 * tsan.c (instrument_builtin_call): If the memory model argument
1736 is not a constant, assume it is valid.
1739 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1742 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1744 PR rtl-optimization/79910
1745 * combine.c (can_combine_p): Do not allow combining an I0 or I1
1746 if its dest is used by an insn before I2 (other than the combined
1747 insns themselves, which are properly handled already).
1749 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1752 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1754 * combine.c (record_used_regs): New static function.
1755 (try_combine): Handle situations where there is an additional
1756 instruction between I2 and I3 which needs to have a LOG_LINK
1760 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1762 * combine.c (try_combine): Delete redundant i1 test. Call
1763 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1765 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1768 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1771 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1773 PR tree-optimization/80054
1774 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1775 the optimization if a PHI or any of its arguments is not dominated
1776 by the candidate's basis. Use gphi* rather than gimple* as
1778 (replace_profitable_candidates): Clean up a gimple* variable that
1779 should be a gphi* variable.
1781 2017-03-20 Martin Sebor <msebor@redhat.com>
1784 * doc/extend.texi (attribute constructor): Document present limitation.
1786 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
1789 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1790 __POWER9_VECTOR__ #ifdef control, change template definition to
1791 use Power9-specific built-in function.
1792 (vec_any_eq): Likewise.
1793 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1794 to control outcomes from this test.
1795 (vector_ae_<mode>p): For VEC_F modes, likewise.
1797 2017-03-20 Ian Lance Taylor <iant@google.com>
1799 * config/i386/i386.c (ix86_function_regparm): Save an extra
1800 register for -fsplit-stack with DECL_STATIC_CHAIN.
1802 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1805 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1806 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1808 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1810 * config/riscv/riscv.c (riscv_print_operand): Use "fence
1812 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1815 2017-03-20 Marek Polacek <polacek@redhat.com>
1818 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1820 2017-03-20 Richard Biener <rguenther@suse.de>
1822 PR tree-optimization/80113
1823 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1824 allocate extra SSA name for PHI def.
1825 (add_close_phis_to_outer_loops): Likewise.
1826 (add_close_phis_to_merge_points): Likewise.
1827 (copy_loop_close_phi_args): Likewise.
1828 (copy_cond_phi_nodes): Likewise.
1830 2017-03-20 Martin Liska <mliska@suse.cz>
1833 * tree-chkp.c (chkp_build_returned_bound): Do not build
1834 returned bounds for a LHS that's not a BOUNDED_P type.
1836 2017-03-20 Martin Liska <mliska@suse.cz>
1840 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1841 COMPLEX_CST and VECTOR_CST.
1843 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1846 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1847 target operand. A new splitter adds the clobber statement in case
1848 the target operand is dead anyway.
1850 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1852 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1853 to age-old versions of binutils and glibc.
1855 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
1857 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1859 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1861 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1863 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1865 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1866 requirement for binutils 2.13.
1868 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1870 * combine.c (try_combine): Delete redundant i1 test. Call
1871 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1873 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
1875 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1876 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1878 <riscv64-*-elf>: Re-arrange section
1879 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1880 <riscv32-*-linux>: Likewise.
1881 <riscv64-*-elf>: Likewise
1882 <riscv64-*-linux>: Likewise.
1884 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
1887 * aarch64.opt(verbose-cost-dump): Fix typo.
1889 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
1892 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1893 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1895 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1897 * reload.c (find_reloads): When reloading a nonoffsettable address,
1898 use RELOAD_OTHER for it and its address reloads.
1900 PR rtl-optimization/79910
1901 * combine.c (record_used_regs): New static function.
1902 (try_combine): Handle situations where there is an additional
1903 instruction between I2 and I3 which needs to have a LOG_LINK
1906 2017-03-17 Jeff Law <law@redhat.com>
1908 PR tree-optimization/71437
1909 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1910 conditional in the hash table first.
1911 (vrp_dom_walker::before_dom_children): Extract condition from
1912 ASSERT_EXPR. Record condition, its inverion and any implied
1915 2017-03-17 Marek Polacek <polacek@redhat.com>
1916 Markus Trippelsdorf <markus@trippelsdorf.de>
1918 PR tree-optimization/80079
1919 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1922 2017-03-17 Richard Biener <rguenther@suse.de>
1925 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1926 Properly verify the LHS before the RHS possibly claims to be
1928 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
1931 2017-03-17 Martin Jambor <mjambor@suse.cz>
1933 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1934 (List of -O2 options): Likewise.
1935 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1938 2017-03-17 Tom de Vries <tom@codesourcery.com>
1940 * gcov-dump.c (print_usage): Print bug_report_url.
1942 2017-03-17 Richard Biener <rguenther@suse.de>
1945 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
1946 (parser::peek): Likewise.
1948 2017-03-17 Richard Biener <rguenther@suse.de>
1950 PR tree-optimization/80048
1951 * sese.c (free_sese_info): Properly release rename_map and
1952 copied_bb_map elements.
1954 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
1956 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
1957 Add linked-list forward and backlinks. Insert on
1958 construction, remove on destruction.
1959 (class pass_store_merging): Add m_stores_head field.
1960 (pass_store_merging::terminate_and_process_all_chains):
1961 Iterate over m_stores_head list.
1962 (pass_store_merging::terminate_all_aliasing_chains):
1964 (pass_store_merging::execute): Check for debug stmts first.
1965 Push new chains onto the m_stores_head stack.
1967 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1970 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1971 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1972 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1974 2017-03-16 Jeff Law <law@redhat.com>
1976 PR tree-optimization/71437
1977 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
1978 member function. Implementation moved into after_dom_children
1979 member function and into the threader's thread_outgoing_edges
1981 (dom_opt_dom_walker::after_dom_children): Simplify by moving
1982 some code into new thread_outgoing_edges.
1983 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
1984 definition. Simplify marker handling (do it here). Assume we always
1985 have the available expression and the const/copies tables.
1986 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
1988 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
1989 * tree-vrp.c (equiv_stack): No longer file scoped.
1990 (vrp_dom_walker): New class.
1991 (vrp_dom_walker::before_dom_children): New member function.
1992 (vrp_dom_walker::after_dom_children): Likewise.
1993 (identify_jump_threads): Setup domwalker. Use it rather than
1994 walking edges in a random order by hand. Simplify setup/finalization.
1995 (finalize_jump_threads): Remove.
1996 (vrp_finalize): Do not call identify_jump_threads here.
1997 (execute_vrp): Do it here instead and call thread_through_all_blocks
2000 PR tree-optimization/71437
2001 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
2003 (simplify_stmt_for_jump_threading): Add basic_block argument. All
2005 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
2006 (dom_opt_dom_walker::thread_across_edge): Remove
2007 handle_dominating_asserts argument. All callers changed.
2008 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
2009 changes. Remove calls to lhs_of_dominating_assert. Other
2010 uses of handle_dominating_asserts turn into unconditional code
2011 (simplify_control_stmt_condition_1): Likewise.
2012 (simplify_control_stmt_condition): Likewise.
2013 (thread_through_normal_block, thread_across_edge): Likewise.
2014 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
2015 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
2016 object if it is not an SSA_NAME.
2017 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
2018 before calling into the VRP specific simplifiers.
2019 (identify_jump_threads): Remove handle_dominating_asserts
2022 2017-03-16 Jakub Jelinek <jakub@redhat.com>
2025 * tree-diagnostic.c (default_tree_printer): No longer static.
2026 * tree-diagnostic.h (default_tree_printer): New prototype.
2028 2017-03-16 Tamar Christina <tamar.christina@arm.com>
2030 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
2031 Change ins into fmov.
2033 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2035 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
2036 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
2037 Use h_con constraint for operand 1.
2038 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
2039 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
2041 2017-03-15 Jeff Law <law@redhat.com>
2043 PR tree-optimization/71437
2044 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
2045 (record_temporary_equivalences): Use it.
2047 PR tree-optimization/71437
2048 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
2049 tree-ssa-scopedtables.
2050 (lookup_avail_expr, build_and_record_new_cond): Likewise.
2051 (record_conditions, record_cond, vuse_eq): Likewise.
2052 (record_edge_info): Adjust to API tweak of record_conditions.
2053 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
2054 (record_temporary_equivalences, optimize_stmt): Likewise.
2055 (eliminate_redundant_computations): Likewise.
2056 (record_equivalences_from_stmt): Likewise.
2057 * tree-ssa-scopedtables.c: Include options.h and params.h.
2058 (vuse_eq): New function, moved from tree-ssa-dom.c
2059 (build_and_record_new_cond): Likewise.
2060 (record_conditions): Likewise. Accept vector of conditions rather
2061 than edge_equivalence structure for first argument.
2062 for the first argument.
2063 (avail_exprs_stack::lookup_avail_expr): New member function, moved
2064 from tree-ssa-dom.c.
2065 (avail_exprs_stack::record_cond): Likewise.
2066 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
2067 from tree-ssa-dom.c.
2068 (avail_exprs_stack): Add new member functions lookup_avail_expr
2070 (record_conditions): Declare.
2072 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
2075 * lra-constraints.c (process_alt_operands): Increase reject for
2076 reloading an input/output operand.
2078 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2081 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
2082 insns to convert from signed/unsigned char/short to IEEE 128-bit
2084 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
2086 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
2089 * config/i386/i386.c (ix86_vector_duplicate_value): Create
2090 subreg of inner mode for values already in registers.
2092 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
2094 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
2095 iteration reg is used after the loop.
2097 2017-03-14 Martin Sebor <msebor@redhat.com>
2099 PR tree-optimization/79800
2100 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
2101 precision in negative-positive range.
2102 (format_floating): Call non-const overload with adjusted precision.
2104 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2107 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
2110 2017-03-14 Martin Sebor <msebor@redhat.com>
2113 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
2114 * builtins.def (aligned_alloc): Use it.
2117 * Makefile.in (GTFILES): Add calls.c.
2118 * calls.c: Include "gt-calls.h".
2120 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
2122 PR rtl-optimization/79728
2123 * regs.h (struct target_regs): New field
2124 x_contains_allocatable_regs_of_mode.
2125 (contains_allocatable_regs_of_mode): New macro.
2126 * reginfo.c (init_reg_sets_1): Initialize it, and change
2127 contains_reg_of_mode so it includes global regs as well.
2128 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
2129 rather than contains_regs_of_mode.
2131 2017-03-14 Martin Liska <mliska@suse.cz>
2133 * doc/invoke.texi: Document options that can't be combined with
2134 -fcheck-pointer-bounds.
2136 2017-03-14 Martin Liska <mliska@suse.cz>
2139 * doc/invoke.texi (-Wchkp): Document the option.
2141 2017-03-14 Martin Liska <mliska@suse.cz>
2143 * Makefile.in: Install gcov-dump.
2145 2017-03-14 Martin Liska <mliska@suse.cz>
2147 * multiple_target.c (expand_target_clones): Bail out for
2148 an invalid attribute.
2150 2017-03-14 Richard Biener <rguenther@suse.de>
2152 * alias.c (struct alias_set_entry): Pack properly.
2153 * cfgloop.h (struct loop): Likewise.
2154 * cse.c (struct set): Likewise.
2155 * ipa-utils.c (struct searchc_env): Likewise.
2156 * loop-invariant.c (struct invariant): Likewise.
2157 * lra-remat.c (struct cand): Likewise.
2158 * recog.c (struct change_t): Likewise.
2159 * rtl.h (struct address_info): Likewise.
2160 * symbol-summary.h (function_summary): Likewise.
2161 * tree-loop-distribution.c (struct partition): Likewise.
2162 * tree-object-size.c (struct object_size_info): Likewise.
2163 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
2164 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
2165 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
2166 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
2167 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
2168 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
2169 (struct _stmt_vec_info): Likewise.
2171 2017-03-14 Martin Liska <mliska@suse.cz>
2174 * multiple_target.c (create_dispatcher_calls): Check that
2175 a target can create a function dispatcher.
2177 2017-03-14 Martin Liska <mliska@suse.cz>
2180 * multiple_target.c (expand_target_clones): Drop local.local
2181 flag for default implementation.
2183 2017-03-14 Richard Biener <rguenther@suse.de>
2185 PR tree-optimization/80030
2186 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
2188 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
2190 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
2191 gcc_fallthrough() instead of __attribute__((fallthrough));
2193 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
2195 * doc/gcc.texi: Remove "up" link to (DIR).
2196 * doc/gccint.texi: Ditto.
2198 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
2200 * doc/install.texi (Specific) <avr>: Remove reference to
2203 2017-03-13 Jeff Law <law@redhat.com>
2205 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
2206 attribute rather than comments.
2208 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
2209 match_scratch operand is highest.
2211 2017-03-13 Martin Liska <mliska@suse.cz>
2214 * ipa-pure-const.c (warn_function_noreturn): If the declarations
2215 is a CHKP clone, use original declaration.
2217 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2219 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
2220 (arc_conditional_register_usage): Use a different allocation order
2221 when optimizing for size.
2222 * common/config/arc/arc-common.c (arc_option_optimization_table):
2223 Section anchors default on when optimizing for size.
2225 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2227 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
2229 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2231 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
2232 * config/arc/arc.md (cpu_facility): Add cd variant.
2233 (*movqi_insn): Add code density variant.
2234 (*movhi_insn): Likewise.
2235 (*movqi_insn): Likewise.
2236 (*addsi3_mixed): Likewise.
2237 (subsi3_insn): Likewise.
2239 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2241 * config/arc/arc.md (movsi_cond_exec): Update constraint.
2243 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2245 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
2246 expressions with MINUS and UNARY ops.
2248 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2251 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
2253 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
2254 between vec_select and vector argument.
2255 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
2256 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
2257 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
2258 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
2259 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
2260 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
2262 2017-03-13 Richard Biener <rguenther@suse.de>
2265 * params.def (vect-max-peeling-for-alignment): Fix typo.
2267 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2269 * doc/install.texi (Specific) <mips-*-*>: Remove description of
2270 issue that only occurred with binutils below 2.18.
2272 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2274 * doc/install.texi (Specific) <cris-axis-elf>: No longer
2275 refer to binutils 2.11/2.12 minimum.
2277 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2279 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
2280 ftp.kernel.org and simplify binutils requirement.
2282 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
2284 * doc/invoke.texi (Warning Options): Fix spelling of link-time
2286 (Optimize Options): Ditto. Also remove redundancy.
2288 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2290 PR translation/79848
2291 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
2293 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
2294 to G_ to avoid double translation.
2296 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2298 PR translation/79923
2299 * auto-profile.c (get_combined_location): Convert leading
2300 character of diagnostics to lower case and remove trailing period.
2301 (read_profile): Likewise for various diagnostics.
2302 * config/arm/arm.c (arm_option_override): Remove trailing period
2303 from various diagnostics.
2304 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
2305 (msp430_expand_delay_cycles): Likewise.
2307 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2310 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
2311 full command-line argument, rather than just "str".
2312 (aarch64_validate_march): Likewise.
2313 (aarch64_validate_mtune): Likewise.
2315 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
2317 PR rtl-optimization/78911
2318 * lra-assigns.c (must_not_spill_p): New function.
2319 (spill_for): Use it.
2321 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2323 PR tree-optimization/79981
2324 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
2325 ATOMIC_COMPARE_EXCHANGE ifn result.
2326 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
2327 IFN_ATOMIC_COMPARE_EXCHANGE.
2329 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2332 * opts.c (parse_sanitizer_options): Add missing question mark to
2333 "did you mean" message.
2335 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2337 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
2339 (VMULEUH_UNS): Likewise.
2340 (VMULOUB_UNS): Likewise.
2341 (VMULOUH_UNS): Likewise.
2342 * config/rs6000/rs6000.c (builtin_function_type): Remove
2343 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
2345 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2348 * read-rtl-function.c (function_reader::read_rtx_operand): Update
2349 x with result of extra_parsing_for_operand_code_0.
2350 (function_reader::extra_parsing_for_operand_code_0): Convert
2351 return type from void to rtx, returning x. When reading
2352 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
2353 larger size containing struct block_symbol.
2355 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
2357 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
2358 -mfloat128-hardware without -m64.
2360 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
2363 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
2364 entries to the case statement that marks unsigned arguments to
2365 overloaded functions.
2367 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
2369 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2370 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
2372 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
2375 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
2376 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
2378 2017-03-10 Martin Liska <mliska@suse.cz>
2382 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
2383 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
2386 2017-03-10 Olivier Hainque <hainque@adacore.com>
2388 * tree-switch-conversion (array_value_type): Start by resetting
2389 candidate type to it's main variant.
2391 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2393 PR rtl-optimization/79909
2394 * combine.c (try_combine): Use simplify_replace_rtx on individual
2395 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
2396 of the whole CALL_INSN_FUNCTION_USAGE.
2398 PR tree-optimization/79972
2399 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
2400 get_range_info on SSA_NAMEs. Formatting fixes.
2402 2017-03-10 Richard Biener <rguenther@suse.de>
2403 Jakub Jelinek <jakub@redhat.com>
2405 PR tree-optimization/77975
2406 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
2407 edge to be constant.
2408 (get_val_for): For constant x return it. Formatting fix.
2409 (loop_niter_by_eval): Avoid pointless looping if the next iteration
2410 would use the same bases as the current one.
2412 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2414 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
2415 instead of vec_select for V1TImode.
2416 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
2418 (VSX_LE_128): Add V1TI to this mode iterator.
2419 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
2420 (*vsx_le_perm_store_<mode>): Likewise.
2421 (pre-reload splitter for VSX stores): Likewise.
2422 (post-reload splitter for VSX stores): Likewise.
2423 (*vsx_xxpermdi2_le_<mode>): Likewise.
2424 (*vsx_lxvd2x2_le_<mode>): Likewise.
2425 (*vsx_stxvd2x2_le_<mode>): Likewise.
2427 2017-03-09 Michael Eager <eager@eagercon.com>
2429 Correct failures with --enable-checking=yes,rtl.
2431 * config/microblaze/microblaze.c (microblaze_expand_shift):
2432 Replace GET_CODE test with CONST_INT_P and INTVAL test with
2433 test for const0_rtx.
2434 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
2435 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2437 2017-03-09 Richard Biener <rguenther@suse.de>
2439 PR tree-optimization/79977
2440 * graphite-scop-detection.c (scop_detection::merge_sese):
2441 Handle the case of extra exits to blocks dominating the entry.
2443 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
2445 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2448 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
2450 PR rtl-optimization/79949
2451 * lra-constraints.c (process_alt_operands): Check memory when
2452 trying to predict a cycle. Print about the overall increase.
2454 2017-03-09 Richard Biener <rguenther@suse.de>
2457 * gimple-expr.c (useless_type_conversion_p): Preserve
2458 TYPE_SATURATING for fixed-point types.
2460 2017-03-09 Richard Biener <rguenther@suse.de>
2463 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2464 alignment of BLKmode params.
2466 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2469 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2470 (VALL_NO_V2Q): Likewise.
2472 * config/aarch64/aarch64-simd.md
2473 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2475 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2476 VALL_NO_V2Q mode iterator.
2477 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2479 2017-03-09 Martin Liska <mliska@suse.cz>
2481 PR tree-optimization/79631
2482 * tree-chkp-opt.c (chkp_is_constant_addr): Call
2483 tree_int_cst_sign_bit just for INTEGER constants.
2485 2017-03-09 Martin Liska <mliska@suse.cz>
2489 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2492 2017-03-09 Marek Polacek <polacek@redhat.com>
2495 * tree.c (inchash::add_expr): Handle TREE_VEC.
2497 2017-03-09 Martin Liska <mliska@suse.cz>
2500 (chkp_narrow_size_and_offset): New function.
2501 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2502 (void chkp_parse_bit_field_ref): New function.
2503 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2504 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2506 2017-03-09 Martin Liska <mliska@suse.cz>
2509 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2510 (chkp_find_bounds_1): Remove gcc_unreachable.
2512 2017-03-09 Jakub Jelinek <jakub@redhat.com>
2515 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2516 BUILT_IN_SYNC*, determine the access type from the size suffix and
2517 always build a MEM_REF with that type. Handle forgotten
2518 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2521 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2522 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2523 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2524 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2525 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2526 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2527 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2528 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2529 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2530 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2531 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2532 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2533 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2534 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2535 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2536 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2537 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2538 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2539 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2540 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2541 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2542 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2543 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2544 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2545 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2546 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2547 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2548 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2549 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2550 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2551 definitions outside of __OPTIMIZE__ guarded section.
2554 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2555 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2556 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2557 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2560 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2562 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2563 ("vfenez<mode>"): Add missing constraints.
2565 2017-03-08 Martin Sebor <msebor@redhat.com>
2568 * config/nds32/nds32.c (nds32_option_override):
2569 Fix misspelled diagnostic.
2571 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2574 * gimplify.c (gimplify_omp_for): Replace index var in outer
2575 taskloop statement with an artificial variable and add
2576 OMP_CLAUSE_PRIVATE clause for it.
2578 2017-03-08 Richard Biener <rguenther@suse.de>
2580 PR tree-optimization/79955
2581 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2582 for accesses that are completely outside of the variable.
2584 2017-03-08 Andrew Haley <aph@redhat.com>
2586 PR tree-optimization/79943
2587 * tree-ssa-loop-split.c (compute_new_first_bound): When
2588 calculating the new upper bound, (END-BEG) should be added, not
2591 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2593 * config/avr/avr.md (setmemhi): Make sure match_dup
2594 operand number comes before match_scratch.
2596 2017-03-08 Richard Biener <rguenther@suse.de>
2598 PR tree-optimization/79920
2599 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2600 with ncopies == 1 to ...
2601 (vect_transform_slp_perm_load): ... here. Properly compute
2602 all element loads by iterating VF times over the group. Do
2603 not handle ncopies (computed in a broken way) in
2604 vect_create_mask_and_perm.
2606 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2609 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2610 is a uniform vector, use uniform_vector_p return value instead of
2611 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2613 2017-03-07 Marek Polacek <polacek@redhat.com>
2616 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2617 (alloca_call_type): Likewise.
2619 2017-03-07 Martin Liska <mliska@suse.cz>
2621 * gcov.c (process_args): Put comment to correct location.
2623 2017-03-07 Martin Liska <mliska@suse.cz>
2626 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2627 Use array_at_struct_end_p instead of DECL_CHAIN (field).
2628 (chkp_narrow_bounds_for_field): Likewise.
2629 (chkp_parse_array_and_component_ref): Pass one more argument to
2632 2017-03-07 Richard Biener <rguenther@suse.de>
2634 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2637 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
2639 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2640 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2642 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2645 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2646 to end of description.
2647 (PARAM_MAX_STORES_TO_MERGE): Likewise.
2649 2017-03-07 Jakub Jelinek <jakub@redhat.com>
2651 PR rtl-optimization/79901
2652 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2654 (*avx512f_<code><mode>3<mask_name>): ... this.
2655 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2656 iterator instead of VI8_AVX2_AVX512BW.
2658 PR rtl-optimization/79901
2659 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2660 min/max expander, expand it using expand_vec_cond_expr.
2663 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2666 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2669 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2670 to void * for PCH reasons.
2671 * dwarf2out.c (output_loc_operands, output_die): Cast
2672 v.val_vec.array to unsigned char *.
2674 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
2677 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2680 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
2682 PR rtl-optimization/79571
2683 * lra-constraints.c (process_alt_operands): Calculate static
2684 reject and subtract it from overall when only addresses will be
2687 2017-03-06 Julia Koval <julia.koval@intel.com>
2690 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2691 incoming stack boundary to 128 for 64-bit targets.
2693 2017-03-06 Richard Biener <rguenther@suse.de>
2695 PR tree-optimization/79894
2696 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2697 to NULL after folding it.
2699 2017-03-06 Richard Biener <rguenther@suse.de>
2701 PR tree-optimization/79824
2702 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2703 check disabling peeling for gaps.
2705 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
2707 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2708 attributes): Document gettimeofday.
2710 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2712 * config/s390/s390.c (s390_option_override_internal): Set
2713 PARAM_MIN_VECT_LOOP_BOUND
2715 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2717 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2718 * config/s390/s390.md: Likewise.
2720 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2723 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2724 (<avx2_avx512>_perm<mode>): Rename to ...
2725 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
2727 (<avx512>_perm<mode>_mask): Rename to ...
2728 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
2730 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2731 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
2732 instead of VI8F_256_512.
2733 (avx512f_perm<mode>): New define_expand.
2734 (avx512f_perm<mode>_mask): Likewise.
2735 (avx512f_perm<mode>_1<mask_name>): New define_insn.
2736 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2738 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2740 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2741 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2743 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2745 2017-03-06 Martin Liska <mliska@suse.cz>
2748 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2749 when having a SSA NAME w/o VAR_DECL assigned to it.
2751 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2753 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2754 msa_dpsub_<su>_d): Fix MODE for vec_select.
2756 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2758 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2760 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2762 2017-03-06 Richard Biener <rguenther@suse.de>
2764 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2765 * plugin.c (register_plugin_info): Likewise.
2766 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2768 2017-03-05 Jakub Jelinek <jakub@redhat.com>
2770 * config/i386/sse.md (sse_storehps, sse_storelps,
2771 avx_<castmode><avxsizesuffix>_<castmode>,
2772 avx512f_<castmode><avxsizesuffix>_<castmode>,
2773 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2774 in condition that at least one operand is not a MEM.
2776 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2779 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2780 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2782 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2783 gimple_call_nothrow_p flag based on whether original builtin can throw.
2784 If it can, emit following stmts on the fallthrough edge.
2785 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2786 don't create new bb if inserting just debug stmts on the edge, try to
2787 insert them on the fallthru bb or just reset debug stmts.
2789 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
2792 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2793 restore recog_data (including the operand rtxes inside it) around
2794 the call to get_insn_template.
2796 2017-03-03 Martin Sebor <msebor@redhat.com>
2798 PR tree-optimization/79699
2799 * context.c (context::~context): Free MPFR caches to avoid
2800 a memory leak on program exit.
2802 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2804 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2805 Use wide_int::ulow () instead of .elt (0).
2807 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2809 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2810 (*pushxf): Limit oF constraint to 32bit targets and add oC
2811 constraint for 64bit targets.
2812 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2813 (*pushdf): Change rmF constraint to rmC.
2815 2017-03-03 Martin Liska <mliska@suse.cz>
2817 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2818 Remove unused variable.
2820 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2823 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2824 is a memory operand, increase num_memory.
2825 (ix86_expand_args_builtin): Likewise.
2827 2017-03-03 Jan Hubicka <jh@suse.cz>
2830 * ipa-devirt.c (maybe_record_node): Properly handle
2831 __cxa_pure_virtual visibility.
2833 2017-03-03 Martin Liska <mliska@suse.cz>
2835 PR tree-optimization/79803
2836 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2838 (pass_loop_prefetch::execute): Disabled optimization if an
2839 assumption about L1 cache size is not met.
2841 2017-03-03 Martin Liska <mliska@suse.cz>
2843 PR rtl-optimization/79574
2844 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2845 (hash_scan_set): Likewise.
2846 (dump_hash_table): Likewise.
2847 (hoist_code): Likewise.
2849 2017-03-03 Richard Biener <rguenther@suse.de>
2851 * fixed-value.c (fixed_from_string): Restore use of elt (1)
2852 in place of uhigh ().
2853 (fixed_convert_from_real): Likewise.
2855 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2858 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2860 2017-03-03 Richard Biener <rguenther@suse.de>
2863 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2864 TYPE_OVERFLOW_UNDEFINED check.
2866 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2868 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2870 (vector_ae_<mode>_p): Likewise.
2871 (vector_nez_<mode>_p): Likewise.
2872 (vector_ne_v2di_p): Likewise.
2873 (vector_ae_v2di_p): Likewise.
2874 (vector_ne_<mode>_p): Likewise.
2875 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2877 (vsx_tsqrt<mode>2_fe): Likewise.
2879 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
2882 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2884 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2886 PR rtl-optimization/79780
2887 * cprop.c (one_cprop_pass): When second and further conditional trap
2888 in a single basic block is turned into an unconditional trap, turn it
2889 into a deleted note to avoid RTL verification failures.
2891 2017-03-02 Richard Biener <rguenther@suse.de>
2893 * fold-const.c (const_binop): Use ulow () instead of elt (0).
2895 2017-03-02 Richard Biener <rguenther@suse.de>
2897 PR tree-optimization/79345
2899 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2900 param and abort the walk, returning -1 if it is hit.
2901 (walk_aliased_vdefs): Take a limit param and pass it on.
2902 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2903 defaulting to 0 and return a signed int.
2904 * tree-ssa-uninit.c (struct check_defs_data): New struct.
2905 (check_defs): New helper.
2906 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2907 about uninitialized memory.
2908 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2909 bogus uninitialized warning.
2910 (fixed_convert_from_real): Likewise.
2912 2017-03-02 Bin Cheng <bin.cheng@arm.com>
2914 PR tree-optimization/66768
2915 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2916 iv_use if base object can't be determined.
2918 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2920 PR tree-optimization/79345
2921 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2922 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2923 (get_pattern_stats): Initialize it.
2924 * genemit.c (gen_expand): Verify match_scratch numbers come after
2925 match_operand/match_dup numbers.
2926 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2927 match_scratch numbers.
2928 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2930 * config/s390/s390.md (trunctdsd2): Likewise.
2932 2017-03-02 Richard Biener <rguenther@suse.de>
2934 * wide-int.h (wide_int_storage::operator=): Implement in terms
2937 2017-03-02 Richard Biener <rguenther@suse.de>
2939 PR tree-optimization/79777
2940 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
2941 the to insert expression to sth existing.
2943 2017-03-01 Martin Sebor <msebor@redhat.com>
2946 * gimple-ssa-sprintf.c
2947 (directive::known_width_and_precision): New function.
2948 (format_integer): Use it.
2949 (get_mpfr_format_length): Consider the full range of precision
2950 when computing %g output with the # flag. Set the likely byte
2951 count to 3 rather than 1 when precision is indeterminate.
2952 (format_floating): Correct the lower bound of precision.
2954 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2956 * doc/invoke.texi: Document default code model for 64-bit Linux.
2958 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2961 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
2962 udiv rather than div since input pattern is unsigned.
2964 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
2966 * config/i386/i386.c (print_reg): Warn for values of
2967 unsupported size in integer register.
2969 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2972 * config/rs6000/predicates.md (current_file_function_operand): Do
2973 not allow self calls to be local if the function is replaceable.
2975 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2978 * config/rs6000/altivec.h (vec_ctz and others): Change the
2979 preprocessor macro that controls conditional compilation from
2980 _ARCH_PWR9 to __POWER9_VECTOR__.
2981 (vec_all_ne): Change parameterization of __altivec_scalar_pred
2982 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
2983 control (instead of _ARCH_PWR9 control) so that template
2984 definition uses power9-specific function.
2985 (vec_any_eq): Likewise.
2986 (vec_all_ne): Change macro definition to use a power9-specific
2987 expansion under #ifdef __POWER9_VECTOR__ control (instead of
2988 _ARCH_PWR9 control).
2989 (vec_any_eq) Likewise.
2990 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
2991 expansion for CMPNEF to remove support for xvcmpnesp instruction.
2992 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
2993 support for xvcmpnedp instruction.
2994 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
2995 macro expansion so that Power9 implementation of vec_all_ne does
2996 not use the AltiVec predicate framework.
2997 (VCMPNEH_P): Likewise.
2998 (VCMPNEW_P): Likewise.
2999 (VCMPNED_P): Likewise.
3000 (VCMPNEFP_P): Likewise.
3001 (VCMPNEDP_P): Likewise.
3002 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
3003 implementation of vec_any_eq to not use AltiVec predicate
3005 (VCMPAEH_P): Likewise.
3006 (VCMPAEW_P): Likewise.
3007 (VCMPAED_P): Likewise.
3008 (VCMPAEFP_P): Likewise.
3009 (VCMPAEDP_P): Likewise.
3010 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
3011 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
3012 not use the AltiVec predicate framework.
3013 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
3014 of vec_any_eq to not use AltiVec predicate framework.
3015 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
3016 support for predefined __POWER9_VECTOR__ macro to indicate that
3017 Power9 instruction selection is enabled.
3018 (altivec_overloaded_builtins): Remove extraneous
3019 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
3020 function argument types RS6000_BTI_bool_V16QI and
3021 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
3022 entry for overloaded function argument types RS6000_BTI_bool_V4SI
3023 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
3024 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
3025 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
3026 Power9 for implementations of vec_cmpne. Change the signature for
3027 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
3028 (representing vec_all_ne) to remove the previously described first
3029 argument of type RS6000_BTI_INTSI, as this was an artifact of
3030 reliance on the AltiVec predicate framework, which is no longer
3031 used in the implementation of these functions. Add
3032 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
3033 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
3034 since, unlike the AltiVec predicate framework implementation, we
3035 do not share function descriptors between vec_alle and vec_anyeq.
3036 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
3037 set of modes that receive special treatment even when
3038 TARGET_P9_VECTOR is true. The special treatment emits code that
3039 does not depend on Power9 instructions.
3040 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
3041 define_expand to not rely on AltiVec predicate framework.
3042 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
3044 (vector_ne_v2di_p): Change this define_expand to not rely on
3045 AltiVec predicate framework.
3046 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
3048 (vector_ne_<mode>_p): Change this define_expand to not rely on
3049 AltiVec predicate framework.
3050 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
3052 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
3053 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
3054 define_insn pattern.
3055 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
3056 define_insn pattern because the xvcmpne<VSs>. instruction is not
3058 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
3059 instruction is not supported.
3061 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3063 * config/nvptx/nvptx.c: Include intl.h.
3065 2017-03-01 Martin Jambor <mjambor@suse.cz>
3068 * ipa-prop.h (ipa_bits): Removed field known.
3069 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
3070 to pointers. Adjusted their comments to warn about their sharing.
3071 (ipcp_transformation_summary): Change bits to a vector of pointers.
3072 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
3073 (ipa_get_ipa_bits_for_value): Declare.
3074 * tree-vrp.h (value_range): Mark as GTY((for_user)).
3075 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
3076 (ipa_bits_hash_table): Likewise.
3077 (ipa_vr_ggc_hash_traits): Likewise.
3078 (ipa_vr_hash_table): Likewise.
3079 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
3080 being pointers and vr_known being removed.
3081 (ipa_set_jf_unknown): Likewise.
3082 (ipa_get_ipa_bits_for_value): New function.
3083 (ipa_set_jfunc_bits): Likewise.
3084 (ipa_get_value_range): New overloaded functions.
3085 (ipa_set_jfunc_vr): Likewise.
3086 (ipa_compute_jump_functions_for_edge): Use the above functions to
3087 construct bits and vr parts of jump functions.
3088 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
3089 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
3091 (ipcp_grow_transformations_if_necessary): Also allocate
3092 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
3094 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
3095 them. Fix too long lines.
3096 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
3097 vr_known being removed.
3098 (ipa_read_jump_function): Use new setter functions to construct bits
3099 and vr parts of jump functions or set them to NULL.
3100 (write_ipcp_transformation_info): Adjust for bits being pointers.
3101 (read_ipcp_transformation_info): Likewise.
3102 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
3104 Include gt-ipa-prop.h.
3105 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
3107 (ipcp_store_bits_results): Likewise.
3108 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
3109 Do not write to existing jump functions but use a temporary instead.
3111 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3114 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
3115 attempt to use its first operand as BIT_FIELD_REF base.
3117 2017-03-01 Richard Biener <rguenther@suse.de>
3120 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
3121 interpolating formula in wrapping arithmetic.
3122 (chrec_apply): Convert chrec_evaluate return value to wanted type.
3124 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3126 PR tree-optimization/79734
3127 * tree-vect-generic.c (expand_vector_condition): Optimize
3128 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
3129 Handle VEC_COND_EXPR where comparison has different inner width from
3132 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
3134 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
3135 markup, and similar issues. Remove @opindex entries for things
3136 that aren't options. Add missing -mmpy-option entries.
3138 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3140 PR tree-optimization/79737
3141 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
3142 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
3143 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
3144 instead of byte_size. Formatting fix.
3145 (shift_bytes_in_array_right): Formatting fix.
3147 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
3150 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
3151 condition on optimize for the leaf function test.
3153 2017-02-28 Martin Liska <mliska@suse.cz>
3156 * read-rtl-function.c (function_reader::handle_unknown_directive):
3157 Bail out when one uses -flto.
3159 2017-02-28 Martin Liska <mliska@suse.cz>
3161 * common.opt: Replace space with tabular for options of <number>
3163 * config/i386/i386.opt: Show <number> value for
3164 -mlarge-data-threshold.
3165 * opts.c (print_filtered_help): Do not display number in hexadecimal
3168 2017-02-28 Martin Liska <mliska@suse.cz>
3170 * common.opt: Fix --help=option -Q for options which are of
3173 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
3175 * config/i386/i386.c (print_reg): Error out for values
3176 of 8-bit size in invalid integer register.
3178 2017-02-28 Martin Sebor <msebor@redhat.com>
3180 PR tree-optimization/79691
3181 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
3183 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3186 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
3187 gcc_unreachable with output_operand_lossage.
3189 2017-02-28 Richard Biener <rguenther@suse.de>
3191 PR tree-optimization/79740
3192 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
3194 (visit_nary_op): Insert the nary into the hashtable if we
3195 pattern-matched sth.
3196 * tree-ssa-pre.c (eliminate_insert): Robustify.
3198 2017-02-28 Richard Biener <rguenther@suse.de>
3201 * fold-const.c (decode_field_reference): Reject out-of-bound
3204 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3206 * config/i386/i386.c: Include intl.h.
3207 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
3208 instead of just cond ? "..." : "...".
3209 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
3210 * coverage.c (read_counts_file): Likewise.
3211 * omp-offload.c: Include intl.h.
3212 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
3213 of just cond ? "..." : "...".
3214 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
3215 of just cond ? "..." : "...".
3217 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
3220 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
3222 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
3223 'tune for' CPU name.
3224 * config/arm/arm-cpu-data.h: Regenerated.
3226 2017-02-28 Richard Biener <rguenther@suse.de>
3228 PR tree-optimization/79732
3229 * tree-inline.c (expand_call_inline): Do not shadow var.
3231 2017-02-28 Richard Biener <rguenther@suse.de>
3233 PR tree-optimization/79723
3234 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
3235 address-space properly.
3237 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
3239 * doc/optinfo.texi (Optimization groups): Fix option used for
3241 * doc/invoke.texi (-fopt-info): Document "omp".
3242 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
3243 (OPTGROUP_ALL): Add OPTGROUP_OMP.
3244 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
3245 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
3246 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
3248 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
3250 * dumpfile.c (optgroup_options): Instead of "openmp", associate
3251 OPTGROUP_OMP with "omp".
3253 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
3256 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
3257 for arithmetic shift of unsigned V2DI.
3259 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
3261 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
3262 arc/linux.h headers.
3263 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
3264 (LINK_SPEC): Likewise.
3265 (ARC_TLS_EXTRA_START_SPEC): Likewise.
3266 (EXTRA_SPECS): Likewise.
3267 (STARTFILE_SPEC): Likewise.
3268 (ENDFILE_SPEC): Likewise.
3269 (LIB_SPEC): Likewise.
3270 (TARGET_SDATA_DEFAULT): Likewise.
3271 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
3272 (MULTILIB_DEFAULTS): Likewise.
3273 (DWARF2_UNWIND_INFO): Likewise.
3274 * config/arc/big.h: New file.
3275 * config/arc/elf.h: Likewise.
3276 * config/arc/linux.h: Likewise.
3277 * config/arc/t-uClibc: Remove.
3279 2017-02-27 Bin Cheng <bin.cheng@arm.com>
3281 PR tree-optimization/77536
3282 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
3283 (tree_transform_and_unroll_loop): Use above function to compute the
3284 estimated niter of unrolled loop and use it when scaling profile.
3285 Also use count info rather than frequency if it's non-zero.
3286 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
3287 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
3288 (vect_transform_loop): Call above function.
3290 2017-02-27 Richard Biener <rguenther@suse.de>
3292 PR tree-optimization/45397
3293 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
3294 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
3295 (visit_nary_op): Add pattern matching for CSEing sign-changed
3296 or truncated operations with wider ones.
3298 2017-02-27 Richard Biener <rguenther@suse.de>
3300 PR tree-optimization/79690
3301 * tree-vect-stmts.c (vectorizable_store): Use vector type
3302 built from the DR with address-space.
3304 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3306 * doc/invoke.texi (Optimize Options): Refine the description
3307 of asan-use-after-return.
3309 2017-02-25 Alan Modra <amodra@gmail.com>
3311 PR rtl-optimization/79584
3312 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
3313 base, not ad->base_term, the reg within base. Remove assertion
3314 that ad->base == ad->base_term. Replace gen_int_mode using
3315 bogus mode with const0_rtx.
3317 2017-02-25 Jakub Jelinek <jakub@redhat.com>
3320 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
3321 FMA_EXPR like tcc_binary or tcc_unary.
3323 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
3326 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
3328 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
3329 (output_loc_operands): Handle DW_OP_call_ref and
3330 DW_OP_GNU_variable_value.
3331 (struct variable_value_struct): New type.
3332 (struct variable_value_hasher): Likewise.
3333 (variable_value_hash): New variable.
3334 (string_types): Remove.
3335 (copy_loc_descr): New function.
3336 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
3337 (prepend_loc_descr_to_each): New function.
3338 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
3339 instead of add_loc_descr_to_each if the first argument is single
3340 location list and the second has multiple.
3341 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
3342 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
3343 when looking for variable value which doesn't have other location info.
3344 (loc_list_from_tree): Formatting fix.
3345 (gen_array_type_die): Simplify DW_AT_string_length handling.
3346 (adjust_string_types): Remove.
3347 (gen_subprogram_die): Don't call adjust_string_types nor test/set
3348 string_types. Call resolve_variable_values.
3349 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
3350 (resolve_addr_in_expr): Likewise. Add A argument.
3351 (copy_deref_exprloc): Remove deref argument. Adjust for the
3352 original expression being DW_OP_GNU_variable_value with optionally
3353 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
3354 optionally after it.
3355 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
3356 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
3357 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
3358 (variable_value_hasher::hash, variable_value_hasher::equal): New
3360 (resolve_variable_value_in_expr, resolve_variable_value,
3361 resolve_variable_values, note_variable_value_in_expr,
3362 note_variable_value): New functions.
3363 (dwarf2out_early_finish): Call note_variable_value on all toplevel
3366 2017-02-24 Jakub Jelinek <jakub@redhat.com>
3369 * opts.h (handle_generated_option): Add GENERATED_P argument.
3370 * opts-common.c (handle_option): Adjust function comment.
3371 (handle_generated_option): Add GENERATED_P argument, pass it to
3373 (control_warning_option): Pass false to handle_generated_option
3375 * opts.c (maybe_default_option): Pass true to handle_generated_option
3377 * optc-gen.awk: Likewise.
3379 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3381 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
3382 a REG, look at the REG it is a SUBREG of.
3383 (splitter for cmpeqsi_t): Ditto.
3385 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3387 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
3388 the special USEs with the pattern of the insn, not the insn itself.
3390 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
3393 * doc/invoke.texi: Document -mload-store-pairs.
3395 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3396 Sandra Loosemore <sandra@codesourcery.com>
3398 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
3399 argument isn't a CONST_INT.
3400 (nios2_alternate_compare_const): Assert op is a CONST_INT.
3401 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
3402 (nios2_validate_compare): Bypass alternate compare logic if *op2
3404 (ldstwm_operation_p): Return false if first_base is not a REG or
3405 if first_offset is not a CONST_INT.
3407 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3409 * config/cris/cris.md: Use correct operand in a define_peephole2.
3411 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3413 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
3415 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3417 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
3418 this_insn if it is an INSN or JUMP_INSN.
3419 (force_offsettable): Look at base, not at addr.
3420 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
3421 on things that aren't necessarily CONST_INTs.
3423 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
3425 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
3426 -mfpmath=sse is the default also for x86-32 targets with SSE2
3427 instruction set when @option{-ffast-math} is enabled
3429 2017-02-24 Jeff Law <law@redhat.com>
3431 PR rtl-optimizatoin/79286
3432 * ira.c (update_equiv_regs): Drop may_trap_p exception to
3435 2017-02-24 Richard Biener <rguenther@suse.de>
3437 PR tree-optimization/79389
3438 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3441 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
3443 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3444 function comment to reflect reality.
3445 (loop_exits_before_overflow): Fix typo in function description.
3447 2017-02-24 Richard Biener <rguenther@suse.de>
3449 PR tree-optimization/79389
3450 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3451 properly that a threading opportunity exists. Detect conditional
3452 copy/constant propagation opportunities.
3454 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
3456 * config/visium/visium.md (type): Add trap.
3457 (b): New mode attribute.
3458 (*btst): Rename into...
3459 (*btst<mode>): ...this and adjust.
3460 (*cbranchsi4_btst_insn): Rename into...
3461 (*cbranch<mode>4_btst_insn): ...this and adjust.
3462 (trap): New define_insn.
3464 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3466 PR tree-optimization/79389
3467 * ifcvt.c (struct noce_if_info): Add rev_cond field.
3468 (noce_reversed_cond_code): New function.
3469 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3470 reversed_comparison_code. Formatting fix.
3471 (noce_try_store_flag): Test rev_cond != NULL in addition to
3472 reversed_comparison_code.
3473 (noce_try_store_flag_constants): Likewise.
3474 (noce_try_store_flag_mask): Likewise.
3475 (noce_try_addcc): Use rev_cond if non-NULL instead of
3476 reversed_comparison_code.
3477 (noce_try_cmove_arith): Likewise. Formatting fixes.
3478 (noce_try_minmax, noce_try_abs): Clear rev_cond.
3479 (noce_find_if_block): Initialize rev_cond.
3480 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3481 instead of false as last argument never attempt to reverse it
3484 2017-02-23 Bin Cheng <bin.cheng@arm.com>
3486 PR tree-optimization/79663
3487 * tree-predcom.c (combine_chains): Process refs in reverse order
3488 only for ZERO length chains, and add explaining comment.
3490 2017-02-23 Jeff Law <law@redhat.com>
3492 PR tree-optimization/79578
3493 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3494 in call to operand_equal_p.
3496 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
3499 * config/i386/cpuid.h: Fix another undefined behavior.
3501 2017-02-23 Richard Biener <rguenther@suse.de>
3503 PR tree-optimization/79683
3504 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3505 vector types for data-refs.
3507 2017-02-23 Martin Liska <mliska@suse.cz>
3509 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3511 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3514 * internal-fn.c (get_range_pos_neg): Moved to ...
3515 * tree.c (get_range_pos_neg): ... here. No longer static.
3516 * tree.h (get_range_pos_neg): New prototype.
3517 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3518 are known to be in between 0 and signed maximum inclusive, try to
3519 expand both unsigned and signed divmod and use the cheaper one from
3522 2017-02-22 Jeff Law <law@redhat.com>
3524 PR tree-optimization/79578
3525 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3526 to compare base operands.
3528 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
3531 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3532 gpc_reg_operand instead of fpr_reg_operand.
3534 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
3536 * config/mips/mips.c (mips_return_in_memory): Force FP
3537 vector types to be returned in memory for o32 ABI.
3539 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3541 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3542 instead of DW_TAG_member for static data member declarations and don't
3543 set no_linkage_name for static inline data members.
3544 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3547 2017-02-22 Martin Liska <mliska@suse.cz>
3549 * doc/invoke.texi: Replace inequality signs with square brackets
3552 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3554 PR tree-optimization/68644
3555 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3557 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
3560 * lra-constraints.c (simplify_operand_subreg): Handle
3561 WORD_REGISTER_OPERATIONS targets.
3563 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3566 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3567 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3568 elimination by swapping fld*.
3570 2017-02-22 Richard Biener <rguenther@suse.de>
3572 PR tree-optimization/79673
3573 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3574 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3575 irrelevant address-space qualifiers and avoiding a
3576 ADDR_SPACE_CONVERT_EXPR from fold_convert.
3578 2017-02-22 Richard Biener <rguenther@suse.de>
3580 PR tree-optimization/79666
3581 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3582 to not symbolically negate if that may introduce undefined
3585 2017-02-22 Martin Liska <mliska@suse.cz>
3588 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3589 * data-streamer-out.c (streamer_write_gcov_count_stream):
3591 * value-prof.c (stream_out_histogram_value): Make assert more
3592 precise based on type of counter.
3594 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
3597 * config/i386/i386.md (standard_x87sse_constant_load splitter):
3598 Use nonimmediate_operand instead of memory_operand for operand 1.
3599 (float-extend standard_x87sse_constant_load splitter): Ditto.
3601 2017-02-21 Jeff Law <law@redhat.com>
3603 PR tree-optimization/79621
3604 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3605 blocks with edges to themselves.
3607 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3610 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3611 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3612 Use gimple_call_builtin_p.
3615 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3616 on temporarily removed DEBUG_INSNs.
3618 PR tree-optimization/79649
3619 * tree-loop-distribution.c (classify_partition): Give up on
3620 non-generic address space loads/stores.
3622 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
3624 * doc/loop.texi (Loop manipulation): Remove nonexistent
3625 tree_ssa_loop_version from the documentation.
3626 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3628 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3631 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3632 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3633 * config/rs6000/rs6000.c: Include except.h.
3634 (rs6000_expand_split_stack_prologue): Call
3635 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3637 2017-02-21 Martin Jambor <mjambor@suse.cz>
3640 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3643 2017-02-21 Martin Jambor <mjambor@suse.cz>
3645 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3646 for backward compatibility only.
3647 * doc/invoke.texi (Option Summary): Remove all references to
3650 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
3654 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3656 * lra-constraints.c (curr_insn_transform): Handle
3657 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3659 2017-02-21 Martin Liska <mliska@suse.cz>
3661 * config/i386/i386.opt: Replace -masm-dialect with -masm.
3663 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
3665 PR translation/79638
3666 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3668 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
3671 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3672 (arm_function_ok_for_sibcall): Return false for an indirect call by
3673 descriptor if all the argument registers are used.
3674 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3675 alignment of the function.
3677 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3679 PR tree-optimization/61441
3680 * simplify-rtx.c (simplify_const_unary_operation): For
3681 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3682 the sNaN unmodified.
3684 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3686 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3687 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3688 instead of SYSTEM_HEADER_DIR.
3690 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
3691 Martin Liška <mliska@suse.cz>
3693 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3694 Fix typos and grammar, use active voice, and clarify.
3696 2017-02-20 Marek Polacek <polacek@redhat.com>
3699 * gimplify.c (gimplify_expr): Handle unused *&&L;.
3702 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3704 2017-02-20 Jakub Jelinek <jakub@redhat.com>
3707 * config/i386/i386.c (ix86_expand_builtin): Handle
3708 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3709 ix86_builtins_isa[fcode].isa as a requirement of those
3710 flags and any other flag in the bitmask.
3711 (ix86_init_mmx_sse_builtins): Use 0 instead of
3712 ~OPTION_MASK_ISA_64BIT as mask.
3713 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3714 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3715 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3716 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3718 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3721 * lra-constraints.c (split_reg): Check requested split mode
3722 is supported by the register.
3724 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3726 * lra-constraints.c (simplify_operand_subreg): Remove early
3729 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3732 * lra-constraints.c (curr_insn_transform): Tighten condition
3733 for converting SUBREG reloads from OP_OUT to OP_INOUT.
3735 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3738 * lra-constraints.c (curr_insn_transform): Handle
3739 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3741 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
3744 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
3746 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3748 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
3751 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3754 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3756 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3759 2017-02-18 Jakub Jelinek <jakub@redhat.com>
3761 * final.c (last_columnnum, override_columnnum): New variables.
3762 (final_start_function): Set last_columnnum, pass it to begin_prologue
3763 hook and pass 0 to dwarf2out_begin_prologue.
3764 (final_scan_insn): Update override_columnnum. Pass last_columnnum
3765 to source_line debug hook.
3766 (notice_source_line): Compute last_columnnum and for debug_column_info
3767 return true on column changes.
3768 * debug.h (struct gcc_debug_hooks): Add column argument to
3769 source_line and begin_prologue hooks.
3770 (debug_nothing_int_charstar_int_bool): Remove prototype.
3771 (debug_nothing_int_int_charstar,
3772 debug_nothing_int_int_charstar_int_bool): New prototypes.
3773 (dwarf2out_begin_prologue): Add column argument.
3774 * debug.c (do_nothing_debug_hooks): Adjust source_line and
3775 begin_prologue hooks.
3776 (debug_nothing_int_charstar_int_bool): Remove.
3777 (debug_nothing_int_int_charstar,
3778 debug_nothing_int_int_charstar_int_bool): New functions.
3779 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3780 through to dwarf2out_source_line.
3781 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3782 (dwarf2out_source_line): Add column argument, emit it if requested.
3783 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3785 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3786 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3787 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3788 through to dwarf2out_begin_prologue.
3789 (vmsdbgout_source_line): Add column argument, pass it through to
3790 dwarf2out_source_line.
3791 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3792 dbxout_source_line caller.
3793 (dbxout_source_line): Add column argument.
3795 * common.opt (gno-column-info, gcolumn-info): New options.
3796 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3797 (check_die): Also test for multiple DW_AT_decl_column attributes.
3798 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3799 DW_AT_decl_column if requested.
3800 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3802 (gen_variable_die): Likewise.
3803 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3804 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3807 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3808 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3809 (ix86_handle_option): Handle OPT_m3dnowa.
3810 * doc/invoke.texi (-m3dnowa): Document.
3811 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3812 -m3dnowa instead of -m3dnow -march=athlon.
3815 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3816 instead of gcc_assert for K, r and R code checks. Formatting fixes.
3818 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3821 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3822 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3823 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3824 generator for vsx_xxpermdi_<mode>_be.
3825 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3826 force big-endian semantics.
3827 (vsx_xxpermdi_<mode>_be): New define_expand with same
3828 implementation as previous version of vsx_xxpermdi_<mode>.
3830 2017-02-17 Jakub Jelinek <jakub@redhat.com>
3832 PR tree-optimization/79327
3833 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3834 variable, its initialization and use.
3836 2017-02-17 Julia Koval <julia.koval@intel.com>
3838 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3839 (OPTION_MASK_ISA_PKU_UNSET): New.
3840 (ix86_handle_option): Handle -mrdpid.
3841 * config/i386/cpuid.h (bit_RDPID): New.
3842 * config/i386/driver-i386.c (host_detect_local_cpu):
3843 Detect RDPID feature.
3844 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3845 * config/i386/i386-c.c (ix86_target_macros_internal):
3847 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3848 (ix86_valid_target_attribute_inner_p): Add "rdpid".
3849 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3850 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3851 * config/i386/i386.md (define_insn "rdpid"): New.
3852 * config/i386/i386.opt Add -mrdpid.
3853 * config/i386/immintrin.h (_rdpid_u32): New.
3855 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
3857 PR rtl-optimization/79541
3858 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3859 instead of transforming it into USE.
3861 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
3863 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3864 If HONOR_SNANS (SFmode) force the input to a register.
3865 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3866 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3867 an frsp or similar insn.
3869 2017-02-17 Martin Liska <mliska@suse.cz>
3871 PR rtl-optimization/79577
3872 * params.def (selsched-max-sched-times): Increase minimum to 1.
3874 2017-02-17 Martin Liska <mliska@suse.cz>
3876 PR rtl-optimization/79574
3877 * gcse.c (want_to_gcse_p): Prevent integer overflow.
3879 2017-02-17 Martin Liska <mliska@suse.cz>
3881 PR tree-optimization/79529
3882 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3883 ssa_defined_default_def_p to handle cases which are implicitly
3885 * tree-ssa.c (ssa_defined_default_def_p): New function.
3886 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3887 which are implicitly defined.
3888 * tree-ssa.h (ssa_defined_default_def_p): Declare.
3890 2017-02-17 Richard Biener <rguenther@suse.de>
3893 * params.def (max-ssa-name-query-depth): Limit to 10.
3895 2017-02-17 Richard Biener <rguenther@suse.de>
3897 PR tree-optimization/79552
3898 * tree-ssa-structalias.c (visit_loadstore): Properly verify
3901 2017-02-17 Richard Biener <rguenther@suse.de>
3904 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3906 2017-02-17 Marek Polacek <polacek@redhat.com>
3909 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3910 (fold_negate_expr): New wrapper.
3912 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
3914 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
3915 Correct terminology and de-emphasize pre-standard behavior.
3917 2017-02-16 Alan Modra <amodra@gmail.com>
3919 PR rtl-optimization/79286
3920 * ira.c (def_dominates_uses): New function.
3921 (update_equiv_regs): Don't create an equivalence for insns that
3922 may trap where the register def does not dominate the use.
3924 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
3926 PR rtl-optimization/78127
3927 * lra.c (lra): Call lra_eliminate before finish the loop after
3930 2017-02-16 Richard Biener <rguenther@suse.de>
3932 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3934 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3935 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3936 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3937 (isl_val_int_from_wi): New function.
3938 (extract_affine_gmp): Rename to ...
3939 (extract_affine_wi): ... this, take a widest_int.
3940 (extract_affine_int): Just wrap extract_affine_wi.
3941 (add_param_constraints): Use isl_val_int_from_wi.
3942 (add_loop_constraints): Likewise, and extract_affine_wi.
3944 2017-02-15 Jeff Law <law@redhat.com>
3947 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
3948 ira_init_register_move_cost_if_necessary.
3950 2017-02-15 Martin Sebor <msebor@redhat.com>
3953 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
3954 removed in a prior commit.
3956 2017-02-15 Bin Cheng <bin.cheng@arm.com>
3958 PR tree-optimization/79347
3959 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
3960 counters during peeling.
3962 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
3964 * Makefile.in (site.exp): Remove "set ISLVER".
3966 2017-02-15 Jakub Jelinek <jakub@redhat.com>
3969 * real.c (real_from_integer): Call real_convert even for decimal.
3971 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3974 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3976 2017-02-14 Andrew Pinski <apinski@cavium.com>
3978 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
3979 cores and change the partno/implementer to be correct.
3980 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
3981 the 'B" as the implementer.
3982 * config/aarch64/aarch64-tune.md: Regenerate.
3984 2017-02-14 Carl Love <cel@us.ibm.com>
3986 * config/rs6000/rs6000.c: Add case statement entry to make the
3987 xvcvuxdsp built-in argument unsigned.
3988 * config/rs6000/vsx.md: Fix the source and return operand types so they
3989 match the instruction definitions from the ISA document. Fix typo
3990 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
3993 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
3996 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
3997 member early_clobber_alts.
3998 * lra-lives.c (reg_early_clobber_p): New.
3999 (process_bb_lives): Use it.
4000 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
4001 (debug_operand_data): Initialize early_clobber_alts.
4002 (setup_operand_alternative): Set up early_clobber_alts.
4003 (collect_non_operand_hard_regs): Ditto. Pass early clobber
4004 alternatives to new_insn_reg.
4005 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
4007 (lra_update_insn_regno_info): Pass the new arg.
4009 2017-02-14 Jakub Jelinek <jakub@redhat.com>
4012 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
4013 (new_oacc_loop_raw): Don't clear already cleared fields.
4016 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
4017 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
4018 _mm512_prefetch_i64gather_ps): New inline functions and macros.
4020 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
4023 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
4025 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
4028 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
4029 the extra instruction to the right place to store 128-bit constant
4032 2017-02-14 Martin Sebor <msebor@redhat.com>
4035 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
4036 warning for strings of unknown length.
4038 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
4040 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
4042 2017-02-14 Jeff Law <law@redhat.com>
4045 * ira-costs.c (scan_one_insn): Initialize register move costs
4046 for pseudos seen in USE/CLOBBER insns.
4048 PR tree-optimization/79095
4049 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
4050 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
4051 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
4052 if the operands are known to be not equal, then the resulting range
4054 (intersect_ranges): If the new range is ~[0,0] and the old range is
4055 wide, then prefer ~[0,0].
4056 * tree-vrp.c (overflow_comparison_p_1): New function.
4057 (overflow_comparison_p): New function.
4058 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
4059 if NAME is used in an overflow test.
4060 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
4061 overflow check that can be expressed as an equality test, then adjust
4062 ops to be that equality test.
4064 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4066 * config/s390/s390-builtin-types.def: Remove flags argument.
4067 * config/s390/s390.c (s390_init_builtins): Likewise.
4069 2017-02-14 Martin Liska <mliska@suse.cz>
4071 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
4072 vector. Fix trailing white spaces.
4074 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
4076 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
4079 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4081 PR rtl-optimization/68664
4082 * config/arm/arm.c (arm_sched_can_speculate_insn):
4083 New function. Declare prototype.
4084 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
4086 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4088 PR rtl-optimization/68664
4089 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
4091 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
4093 2017-02-14 Amit Pawar <amit.pawar@amd.com>
4095 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
4096 max skip bytes for function, loop and jump.
4098 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4100 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
4101 ABS_EXPR for gimple dump.
4103 2017-02-14 Jakub Jelinek <jakub@redhat.com>
4106 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
4108 PR tree-optimization/79408
4109 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
4110 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
4111 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4112 also if rhs1 is INTEGER_CST.
4114 2017-02-14 Richard Biener <rguenther@suse.de>
4117 * tree-into-ssa.c (insert_phi_nodes): When the function can
4118 have abnormal edges rewrite SSA names with broken use-def
4119 dominance out of SSA and register them for PHI insertion.
4121 2017-02-13 Martin Sebor <msebor@redhat.com>
4124 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
4125 clearing info.nowrite flag when snprintf size argument is a range.
4127 2017-02-13 Jakub Jelinek <jakub@redhat.com>
4129 * cprop.c (cprop_jump): Add missing space in string literal.
4130 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4131 (get_constraint_for_component_ref): Likewise.
4132 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4133 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
4134 * lra-constraints.c (process_alt_operands): Likewise.
4135 * ipa-inline.c (inline_small_functions): Likewise.
4136 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
4137 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4138 * trans-mem.c (diagnose_tm_1_op): Likewise.
4139 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
4140 (grid_parallel_clauses_gridifiable): Likewise.
4142 * config/nvptx/mkoffload.c (process): Add space in between
4145 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
4146 "MOD4_SSE_REGS" and "ALL_REGS".
4148 * spellcheck.c (test_data): Add , in between "foo" and "food".
4150 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4153 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
4154 boundary crossing check and subsequent code generation agree.
4156 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4158 * config/aarch64/aarch64.c (has_memory_op): Delete.
4159 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
4162 2017-02-13 Jakub Jelinek <jakub@redhat.com>
4164 PR rtl-optimization/79388
4165 PR rtl-optimization/79450
4166 * combine.c (distribute_notes): When removing TEM_INSN for which
4167 corresponding dest has last value recorded, invalidate that last
4170 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4172 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
4173 of explicit '@'. Add missing assembly comment marker on branch costs
4176 2017-02-13 Nathan Sidwell <nathan@acm.org>
4178 * gengtype-lex.l (<in_struct>): Add '/'.
4180 2017-02-13 Martin Liska <mliska@suse.cz>
4183 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
4185 2017-02-13 Richard Biener <rguenther@suse.de>
4187 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
4189 * configure: Re-generate.
4190 * config.in: Likewise.
4191 * graphite-dependences.c: Simplify as if
4192 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
4193 * graphite-isl-ast-to-gimple.c: Likewise.
4194 * graphite-optimize-isl.c: Likewise.
4195 * graphite-poly.c: Likewise.
4196 * graphite-sese-to-poly.c: Likewise.
4197 * graphite.h: Likewise.
4198 * toplev.c: Include isl/version.h and use isl_version () for
4199 printing the ISL version.
4200 * doc/install.texi: Update ISL requirement.
4202 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4204 * doc/standards.texi (Standards): Update reference to
4207 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4209 * doc/extend.texi (Named Address Spaces): sourceware.org now
4211 * doc/install.texi (Binaries): Ditto.
4214 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
4216 * doc/cpp.texi: Replace "stringify"/"stringification" with C
4217 standard terminology "stringize"/"stringizing" throughout.
4218 * doc/cppinternals.texi: Likewise.
4220 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
4222 * doc/extend.texi: Fix some spelling mistakes and typos.
4223 * doc/invoke.texi: Likewise.
4225 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4228 * params.def (inline-min-speedup) Change from 10 to 8.
4230 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4232 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
4235 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4238 * ipa-inline-analysis.c (get_minimal_bb): New function.
4239 (record_modified): Use it.
4240 (remap_edge_change_prob): Handle also ancestor functions.
4242 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
4244 * doc/contrib.texi (Contributors): Remove broken link into
4245 the Mauve CVS repository.
4247 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4250 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
4251 result computation whenever lhs doesn't have vector mode, not
4252 just when it has BLKmode.
4254 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4256 * doc/makefile.texi (profiledbootstrap): Refer to the
4257 installation instructions only in textual form.
4259 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4262 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
4264 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4266 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
4267 (Specific): Update mingw-w64 reference.
4269 (Specific): Remove broken link to Renesas RX processor.
4271 2017-02-10 Richard Biener <rguenther@suse.de>
4273 * toplev.c (process_options): Do not mention obsolete graphite
4274 options when printing sorry message about missing graphite support.
4275 Mention -floop-nest-optimize.
4277 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
4279 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
4280 (vtst_p16): Likewise.
4281 (vtstq_p8): Likewise.
4282 (vtstq_p16): Likewise.
4284 (vtstq_p64): Likewise.
4285 * config/arm/arm_neon.h (vgetq_lane_p64): New.
4286 (vset_lane_p64): New.
4287 (vsetq_lane_p64): New.
4289 2017-02-10 Jakub Jelinek <jakub@redhat.com>
4291 PR tree-optimization/79411
4292 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
4293 stmt operands are SSA_NAMEs used in abnormal phis.
4294 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
4297 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4300 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
4303 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4305 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
4307 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4309 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
4313 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
4314 not arbitrary TREE_CONSTANT.
4317 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
4318 "omp declare target link" attribute unless is_global_var.
4319 * omp-offload.c (find_link_var_op): Likewise.
4321 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4322 Chung-Lin Tang <cltang@codesourcery.com>
4324 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
4326 (gimplify_adjust_omp_clauses): Don't delete TILE.
4327 (gimplify_omp_for): Deal with TILE.
4328 * internal-fn.c (expand_GOACC_TILE): New function.
4329 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
4331 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
4332 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
4334 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
4335 avoid DIV for outermost collapse var.
4336 (expand_oacc_for): Insert tile element loop as needed. Adjust.
4337 Remove out of date comments, fix whitespace.
4338 * omp-general.c (omp_extract_for_data): Deal with tiling.
4339 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
4340 adjust OLF_DIM_BASE value.
4341 (struct omp_for_data): Add tiling field.
4342 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
4343 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
4344 for auto loops. Remove default auto determining, moved to
4345 oacc_loop_fixed_partitions.
4346 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
4347 stmts, add e_mask field.
4348 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
4349 (oacc_thread_numbers): Use oacc_dim_call.
4350 (oacc_xform_tile): New.
4351 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
4352 (finish_oacc_loop): Adjust for ifns vector.
4353 (oacc_loop_discover_walk): Append loop abstraction sites to list,
4354 add case for GOACC_TILE fns.
4355 (oacc_loop_xform_loop): Delete.
4356 (oacc_loop_process): Iterate over call list directly, and add
4357 handling for GOACC_TILE fns.
4358 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
4360 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
4361 vector partitioning to outer loops. Assign 2 partitions to loops
4362 when available. Add TILE handling.
4363 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
4364 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
4365 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
4366 * tree.c (omp_clause_num_ops): Adjust TILE ops.
4367 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
4369 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
4371 * configure.ac (ACX_BUGURL): Update.
4372 * configure: Regenerate.
4374 2017-02-09 Richard Biener <rguenther@suse.de>
4376 PR tree-optimization/69823
4377 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4378 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
4380 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4382 * config/arc/arc-c.def: Add __NPS400__ definition.
4383 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
4384 (TARGET_NPS400): Define.
4386 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4388 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
4390 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
4392 (arc_cpu_types): Fill the arch_info field with a pointer into the
4393 arc_arch_types table.
4394 (arc_selected_cpu): Declare.
4395 * config/arc/arc.c (arc_selected_cpu): Make global.
4396 (arc_selected_arch): Delete.
4397 (arc_base_cpu): Delete.
4398 (arc_override_options): Remove references to deleted variables,
4399 update access to arch information.
4400 (ARC_OPT): Update access to arch information.
4401 (ARC_OPTX): Likewise.
4402 * config/arc/arc.h (arc_base_cpu): Remove declaration.
4403 (TARGET_ARC600): Update access to arch information.
4404 (TARGET_ARC601): Likewise.
4405 (TARGET_ARC700): Likewise.
4406 (TARGET_EM): Likewise.
4407 (TARGET_HS): Likewise.
4408 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
4411 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
4414 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
4415 condition/operands for integer GE/LE/GEU/LEU operations.
4417 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
4419 PR translation/79397
4420 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
4423 2017-02-08 Martin Jambor <mjambor@suse.cz>
4426 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
4427 whether allocation happened.
4428 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
4429 nothing was allocated.
4431 2017-02-08 Jakub Jelinek <jakub@redhat.com>
4433 PR tree-optimization/79408
4434 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
4435 constant, but SSA_NAME with a known integer range, use the minimum
4436 of that range instead of op1 to determine if modulo can be replaced
4437 with its first operand.
4439 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4441 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4443 2017-02-08 Richard Biener <rguenther@suse.de>
4445 PR tree-optimization/71824
4446 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4447 Check all loops contained in the merged region.
4449 2017-02-07 Andrew Pinski <apinski@cavium.com>
4451 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4453 2017-02-07 Andrew Pinski <apinski@cavium.com>
4455 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4456 (thunderxt88): Likewise.
4457 (thunderxt81): Disable LSE and change v8.1 to v8.
4458 (thunderxt83): Likewise.
4460 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4461 Richard Biener <rguenther@suse.de>
4464 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4465 type from int to size_t.
4466 * ira-costs.c (struct_costs_size): Change type from int to size_t.
4468 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4470 PR rtl-optimization/79386
4471 * cprop.c (bypass_conditional_jumps): Initialize
4472 bypass_last_basic_block already before splitting bbs after
4473 unconditional traps...
4474 (bypass_conditional_jumps): ... rather than here.
4477 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4478 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4479 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4480 fix -masm=intel patterns.
4482 2017-02-07 Richard Biener <rguenther@suse.de>
4484 PR tree-optimization/79256
4486 * builtins.c (get_object_alignment_2): Use min_align_of_type
4487 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4488 and ADJUST_FIELD_ALIGN.
4490 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4492 * doc/tm.texi: Regenerate.
4493 * stor-layout.c (layout_decl): Adjust.
4494 (update_alignment_for_field): Likewise.
4495 (place_field): Likewise.
4496 (min_align_of_type): Likewise.
4497 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4498 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4499 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4500 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4501 * config/frv/frv.c (frv_adjust_field_align): Likewise.
4502 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4503 * config/i386/i386.c (x86_field_alignment): Likewise.
4504 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4505 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4506 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4507 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4508 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4509 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4513 2017-01-30 Richard Biener <rguenther@suse.de>
4515 PR tree-optimization/79256
4516 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4517 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4520 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
4522 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4523 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4524 builtins to SImode and emit a zero-extend, if necessary.
4526 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4528 * docs/invoke.texi (RISC-V Options): Alphabetize.
4530 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4532 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4535 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4537 * config/riscv/riscv.c: New file.
4538 * gcc/common/config/riscv/riscv-common.c: Likewise.
4539 * config.gcc: Likewise.
4540 * config/riscv/constraints.md: Likewise.
4541 * config/riscv/elf.h: Likewise.
4542 * config/riscv/generic.md: Likewise.
4543 * config/riscv/linux.h: Likewise.
4544 * config/riscv/multilib-generator: Likewise.
4545 * config/riscv/peephole.md: Likewise.
4546 * config/riscv/pic.md: Likewise.
4547 * config/riscv/predicates.md: Likewise.
4548 * config/riscv/riscv-builtins.c: Likewise.
4549 * config/riscv/riscv-c.c: Likewise.
4550 * config/riscv/riscv-ftypes.def: Likewise.
4551 * config/riscv/riscv-modes.def: Likewise.
4552 * config/riscv/riscv-opts.h: Likewise.
4553 * config/riscv/riscv-protos.h: Likewise.
4554 * config/riscv/riscv.h: Likewise.
4555 * config/riscv/riscv.md: Likewise.
4556 * config/riscv/riscv.opt: Likewise.
4557 * config/riscv/sync.md: Likewise.
4558 * config/riscv/t-elf-multilib: Likewise.
4559 * config/riscv/t-linux: Likewise.
4560 * config/riscv/t-linux-multilib: Likewise.
4561 * config/riscv/t-riscv: Likewise.
4562 * configure.ac: Likewise.
4563 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4564 Waterman as RISC-V maintainers.
4565 * doc/install.texi: Add RISC-V entries.
4566 * doc/invoke.texi: Add RISC-V options section.
4567 * doc/md.texi: Add RISC-V constraints section.
4568 * configure: Regenerated.
4570 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4573 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4574 false values to be constant vectors with all 0 or all 1 bits set.
4575 (vcondu<mode><mode>): Likewise.
4576 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4578 (fpmask_comparison_operator): Update comment.
4579 (vecint_comparison_operator): New predicate.
4580 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4581 vector conditionals when the true and false values are constant
4582 vectors with all 0 bits or all 1 bits set.
4584 2017-02-06 Martin Sebor <msebor@redhat.com>
4586 PR tree-optimization/79376
4587 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4589 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
4591 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4592 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
4593 to simplify split condition.
4595 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4597 * omp-expand.c (oxpand_omp_atomic_fetch_op,
4598 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4601 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
4603 PR rtl-optimization/68664
4604 * target.def (can_speculate_insn): New hook.
4605 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4606 * doc/tm.texi: Regenerate.
4607 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4608 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4609 (rs6000_sched_can_speculate_insn): New function.
4611 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4613 PR tree-optimization/79284
4614 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4615 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4616 vectorizable_mask_load_store, vectorizable_operation,
4617 vect_is_simple_cond, get_same_sized_vectype): Use it instead
4618 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4619 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4620 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4621 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4622 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4623 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4624 is_gimple_assign (stmt). Replace another such test with
4625 is_gimple_assign (stmt).
4627 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4630 * config/avr/avr.c (rtl-iter.h): Include it.
4631 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4632 (avr_legitimate_combined_insn): ...and implementation.
4634 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
4636 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4637 * config/s390/s390.c (s390_const_operand_ok)
4638 (s390_canonicalize_comparison, s390_extract_part)
4639 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4640 (s390_contiguous_bitmask_p, s390_rtx_costs)
4641 (legitimize_pic_address): Likewise.
4642 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4643 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4644 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4645 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4646 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4648 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4650 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4651 REGNO($0) == REGNO($1).
4653 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4655 * config/s390/linux.h(SIZE_TYPE): Add comment.
4657 2017-02-06 Julian Brown <julian@codesourcery.com>
4658 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4659 Virendra Pathak <virendra.pathak@broadcom.com>
4661 * config/aarch64/aarch64-cores.def: Change the scheduler
4663 * config/aarch64/aarch64.md: Include thunderx2t99.md.
4664 * config/aarch64/thunderx2t99.md: New file.
4666 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4668 * doc/standards.texi (Go Language): Update link to language
4671 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4673 * tree-eh.c (lower_resx): Sanitize profile.
4674 (cleanup_empty_eh_move_lp): Likewise.
4676 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4679 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4681 * cfgloopmanip.h (loop_version): Update prototype.
4682 * modulo-sched.c (sms_schedule): Update call of loop_version.
4683 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4684 * tree-parloops.c (gen_parallel_loop): Likewise.
4685 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4686 * tree-ssa-loop-split.c (split_loop): Likewise.
4687 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4688 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4690 2017-02-05 Martin Liska <mliska@suse.cz>
4693 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4695 (print_operand_address): Initialize a struct to zero.
4697 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4699 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4700 garbage collector only in textual form.
4702 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4704 * doc/extend.texi (x86 specific memory model extensions for
4705 transactional memory): Simplify a phrase.
4707 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
4710 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4711 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4712 (atomic_storedi_1): Likewise.
4714 2017-02-04 Jakub Jelinek <jakub@redhat.com>
4716 PR tree-optimization/79338
4717 * tree-parloops.c (gather_scalar_reductions): Don't call
4718 vect_analyze_loop_form for loop->inner before destroying loop's
4721 2017-02-03 Martin Sebor <msebor@redhat.com>
4723 PR tree-optimization/79327
4724 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4725 when precision has resulted in leading zeros.
4726 (format_integer): Adjust the likely counter to assume an unknown
4727 argument that may be zero is non-zero.
4729 2017-02-03 Jason Merrill <jason@redhat.com>
4732 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4733 avoid copying non-taken branch.
4735 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4737 PR tree-optimization/79340
4738 * tree-vect-loop.c (vectorizable_reduction): Release
4739 vec_defs elements after safe_splicing them into other vectors.
4742 PR tree-optimization/79327
4743 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4744 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4746 (format_integer): Use wide_int_to_tree instead of build_int_cst
4747 + to_?hwi. If argmin is NULL, just set argmin and argmax to
4748 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
4749 of shortest and longest sequence.
4751 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
4753 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4754 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4756 2017-02-03 Walter Lee <walt@tilera.com>
4759 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4760 after initial stackframe link reg save.
4761 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4763 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4766 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4767 wu for stxssp alternative.
4769 2017-02-03 Martin Sebor <msebor@redhat.com>
4771 PR tree-optimization/79352
4772 * gimple-fold.c (get_range_strlen): Add argument.
4773 (get_range_strlen): Change return type to bool.
4774 (get_maxval_strlen): Pass in a dummy argument.
4775 * gimple-fold.h (get_range_strlen): Change return type to bool.
4776 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4777 * tree.h (array_at_struct_end_p): Add argument.
4778 * tree.c (array_at_struct_end_p): Handle it.
4780 2017-02-03 Martin Liska <mliska@suse.cz>
4783 * multiple_target.c (create_dispatcher_calls): Redirect edge
4784 from a caller of a dispatcher.
4785 (expand_target_clones): Make the clones local.
4786 (ipa_target_clone): Do both target clones and resolvers.
4787 (ipa_dispatcher_calls): Remove the pass.
4788 (pass_dispatcher_calls::gate): Likewise.
4789 (make_pass_dispatcher_calls): Likewise.
4790 * passes.def (pass_target_clone): Put as very first IPA early
4793 2017-02-03 Martin Liska <mliska@suse.cz>
4795 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4796 in case of a function with ifunc attribute.
4798 2017-02-03 Martin Liska <mliska@suse.cz>
4800 * cgraph.c (cgraph_node::dump): Dump function version info.
4801 * symtab.c (symtab_node::dump_base): Add missing new line.
4803 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4805 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4806 (ifcombine_ifandif): Use it.
4808 2017-02-03 Martin Liska <mliska@suse.cz>
4810 * doc/invoke.texi: Document default value for
4811 use-after-scope-direct-emission-threshold.
4813 2017-02-03 Martin Liska <mliska@suse.cz>
4815 PR tree-optimization/79339
4816 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4817 (format_floating): Likewise.
4819 2017-02-03 Martin Liska <mliska@suse.cz>
4822 * ipa-prop.c (ipa_node_params_t::insert): Remove current
4824 (ipa_node_params_t::remove): Likewise.
4825 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4826 initialization from removed ipa_node_params_t::insert.
4827 (ipa_node_params::~ipa_node_params): Move from removed
4828 ipa_node_params_t::release.
4829 * symbol-summary.h (symbol_summary::m_released): New member.
4830 Do not release a summary twice. Do not allow to call finalizer
4831 for types of a summary that live in GGC memory.
4833 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4835 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4838 2017-02-02 Martin Sebor <msebor@redhat.com>
4841 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4842 (format_string): Tighten up the range of output for non-constant
4843 strings and correct the expected range for wide non-constant strings.
4845 2017-02-02 Martin Sebor <msebor@redhat.com>
4847 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4850 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4852 (-fdump-tree-@var): Add to index and document how to come up
4853 with pass-specific option and dump file names.
4854 (-fdump-passes): Clarify where to look for output.
4856 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4859 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4860 statistics of the analyzed path; allow threading for speed when
4861 any of BBs along the path are optimized for speed.
4863 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
4866 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4867 settings of the virtual registers.
4870 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4872 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4873 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4876 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4878 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4879 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4881 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4883 * config/s390/s390.md: Add missing comments with the expanded
4885 * config/s390/vector.md: Likewise.
4886 * config/s390/vx-builtins.md: Likewise.
4888 2017-02-02 Jakub Jelinek <jakub@redhat.com>
4891 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4892 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
4893 conditions on a single line.
4895 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4897 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4898 __S390_VX__ to __VX__.
4900 2017-02-01 Andrew Pinski <apinski@cavium.com>
4902 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4903 stmt_info to record_stmt_cost.
4904 (vect_get_known_peeling_cost): Pass stmt_info if known to
4906 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4907 cpu_vector_cost field into
4908 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
4909 field into vec_int_stmt_cost and vec_fp_stmt_cost.
4910 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4911 splitting of scalar_stmt_cost and vec_stmt_cost.
4912 (thunderx_vector_cost): Likewise.
4913 (cortexa57_vector_cost): LIkewise.
4914 (exynosm1_vector_cost): Likewise.
4915 (xgene1_vector_cost): Likewise.
4916 (thunderx2t99_vector_cost): Improve after the splitting of the two
4918 (aarch64_builtin_vectorization_cost): Update for the splitting of
4919 scalar_stmt_cost and vec_stmt_cost.
4921 2017-02-01 Torvald Riegel <triegel@redhat.com>
4922 Richard Henderson <rth@redhat.com>
4924 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4925 conditional on existance of a fast atomic load.
4926 * optabs-query.c (can_atomic_load_p): New function.
4927 * optabs-query.h (can_atomic_load_p): Declare it.
4928 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4929 no fast atomic load is available for the particular size of access.
4930 (expand_atomic_compare_and_swap): Likewise.
4931 (expand_atomic_load): Likewise.
4932 (expand_atomic_store): Likewise.
4933 (expand_atomic_fetch_op): Likewise.
4934 * testsuite/lib/target-supports.exp
4935 (check_effective_target_sync_int_128): Remove x86 because it provides
4936 no fast atomic load.
4937 (check_effective_target_sync_int_128_runtime): Likewise.
4939 2017-02-01 Richard Biener <rguenther@suse.de>
4941 * graphite.c: Include tree-vectorizer.h for find_loop_location.
4942 (graphite_transform_loops): Provide opt-info for optimized nests.
4943 * tree-parloop.c (parallelize_loops): Provide opt-info for
4946 2017-02-01 Richard Biener <rguenther@suse.de>
4949 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
4952 2017-02-01 Richard Biener <rguenther@suse.de>
4954 PR tree-optimization/71824
4955 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4956 Verify the loops are valid in the merged SESE region.
4957 (scop_detection::can_represent_loop_1): Check analyzing the
4958 evolution of the number of iterations in the region succeeds.
4960 2017-01-31 Ian Lance Taylor <iant@golang.org>
4962 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
4963 REG_ARGS_SIZE note to 32-bit push insns and call insn.
4965 2017-01-31 David Malcolm <dmalcolm@redhat.com>
4967 PR preprocessor/79210
4968 * input.c (get_substring_ranges_for_loc): Replace line_width
4969 assertion with error-handling.
4971 2017-01-31 Richard Biener <rguenther@suse.de>
4973 PR tree-optimization/77318
4974 * graphite-sese-to-poly.c (extract_affine): Fix assert.
4975 (create_pw_aff_from_tree): Take loop parameter.
4976 (add_condition_to_pbb): Pass loop of the condition to
4977 create_pw_aff_from_tree.
4979 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4981 * config/s390/s390.c (s390_asan_shadow_offset): New function.
4982 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
4984 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
4988 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
4990 (convert_int_to_float128): Likewise.
4991 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
4992 (convert_int_to_float128): Likewise.
4993 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
4994 (UNSPEC_IEEE128_CONVERT): Likewise.
4995 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
4996 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
4997 Use local variables for IBM extended format.
4998 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
4999 (fix_trunc<mode>si2_fprs): Likewise.
5000 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5001 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
5002 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
5003 to know that we can now have integers of all sizes in vector
5005 (fix<uns>_<mode>di2_hw): Likewise.
5006 (float<uns>_<mode>si2_hw): Likewise.
5007 (fix_<mode>si2_hw): Likewise.
5008 (fixuns_<mode>si2_hw): Likewise.
5009 (float<uns>_<mode>di2_hw): Likewise.
5010 (float_<mode>di2_hw): Likewise.
5011 (float_<mode>si2_hw): Likewise.
5012 (floatuns_<mode>di2_hw): Likewise.
5013 (floatuns_<mode>si2_hw): Likewise.
5014 (xscvqp<su>wz_<mode>): Delete, no longer used.
5015 (xscvqp<su>dz_<mode>): Likewise.
5016 (xscv<su>dqp_<mode>): Likewise.
5017 (ieee128_mfvsrd_64bit): Likewise.
5018 (ieee128_mfvsrd_32bit): Likewise.
5019 (ieee128_mfvsrwz): Likewise.
5020 (ieee128_mtvsrw): Likewise.
5021 (ieee128_mtvsrd_64bit): Likewise.
5022 (ieee128_mtvsrd_32bit): Likewise.
5024 2017-01-31 Martin Liska <mliska@suse.cz>
5027 * ipa-prop.c (ipa_free_all_node_params): Call release method
5028 instead of ~sumbol_summary to not to trigger double times
5031 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
5033 PR tree-optimization/71691
5034 * bitmap.h (class auto_bitmap): New.
5035 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
5036 is_maybe_undefined instead of ssa_undefined_value_p.
5038 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5040 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
5041 __S390_ARCH_LEVEL__ to __ARCH__.
5043 2017-01-31 Jakub Jelinek <jakub@redhat.com>
5045 PR tree-optimization/79267
5046 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
5047 if should_remove_lhs_p is true.
5049 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
5052 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
5053 (add_alignment_attribute): New.
5054 (base_type_die): Add alignment attribute.
5055 (subrange_type_die): Likewise.
5056 (modified_type_die): Likewise.
5057 (gen_array_type_die): Likewise.
5058 (gen_descr_array_type_die: Likewise.
5059 (gen_enumeration_type_die): Likewise.
5060 (gen_subprogram_die): Likewise.
5061 (gen_variable_die): Likewise.
5062 (gen_field_die): Likewise.
5063 (gen_ptr_to_mbr_type_die): Likewise.
5064 (gen_struct_or_union_type_die): Likewise.
5065 (gen_subroutine_type_die): Likewise.
5066 (gen_typedef_die): Likewise.
5067 (base_type_cmp): Compare alignment attribute.
5069 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5072 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
5073 (setb_unsigned) New pattern for setb with CCUNS.
5074 * config/rs6000/rs6000.c (expand_block_compare): Use a different
5075 subfc./subfe sequence to avoid overflow problems. Generate a
5076 shorter sequence with cmpld/setb for power9.
5077 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
5078 for generating subfc. instruction.
5079 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
5080 now uses this instruction.
5082 2017-01-30 Ian Lance Taylor <iant@google.com>
5085 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
5086 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
5088 2017-01-30 Martin Sebor <msebor@redhat.com>
5090 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
5091 Move constant to the right of a relational operator.
5092 (get_mpfr_format_length, format_character, format_string): Ditto.
5093 (should_warn_p, maybe_warn): Same.
5095 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
5097 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
5100 * asan.c (get_translation_unit_decl): Remove function.
5101 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
5103 2017-01-30 Martin Liska <mliska@suse.cz>
5105 PR gcov-profile/79259
5106 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
5109 2017-01-30 Martin Liska <mliska@suse.cz>
5112 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
5113 Initialize variables with NULL value.
5115 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
5118 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
5120 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
5122 2017-01-30 Richard Biener <rguenther@suse.de>
5124 PR tree-optimization/79276
5125 * tree-vrp.c (process_assert_insertions): Properly adjust common
5126 when removing a duplicate.
5128 * gcc.dg/torture/pr79276.c: New testcase.
5130 2017-01-30 Richard Biener <rguenther@suse.de>
5132 PR tree-optimization/79256
5133 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
5134 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
5136 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
5138 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
5141 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
5142 ("*r<noxa>sbg_<mode>_sll_bitmask")
5143 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5144 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
5145 Use contiguous_bitmask_nowrap_operand.
5147 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5150 * config/rs6000/altivec.h (vec_xl): Revise #define.
5151 (vec_xst): Likewise.
5153 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
5155 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
5157 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
5159 PR rtl-optimization/79194
5160 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
5161 traps before call to bypass_conditional_jumps.
5163 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
5165 PR tree-optimization/71374
5166 * lra-constraints.c (check_conflict_input_operands): New.
5167 (match_reload): Use it.
5169 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
5172 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
5173 account to calculate conflict_set.
5175 2017-01-27 Bin Cheng <bin.cheng@arm.com>
5177 PR rtl-optimization/78559
5178 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
5179 other_insn in combine.
5181 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
5183 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
5184 uint16_type_node for BT_UINT16.
5186 2017-01-27 David Malcolm <dmalcolm@redhat.com>
5188 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
5189 "RTL Tests" to menu.
5190 (GIMPLE Tests): New node.
5191 (RTL Tests): New node.
5193 2017-01-27 Richard Biener <rguenther@suse.de>
5195 PR tree-optimization/79245
5196 * tree-loop-distribution.c (distribute_loop): Apply cost
5197 modeling also to detected patterns.
5199 2017-01-27 Richard Biener <rguenther@suse.de>
5201 PR tree-optimization/71433
5202 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
5203 (compare_assert_loc): New function.
5204 (process_assert_insertions): Sort and optimize assert locations
5205 to remove duplicates and push down identical assertions on
5206 edges to their destination block.
5208 2017-01-27 Richard Biener <rguenther@suse.de>
5210 PR tree-optimization/79244
5211 * tree-vrp.c (remove_range_assertions): Forcefully propagate
5212 out SSA names even if abnormal.
5214 2017-01-27 Jakub Jelinek <jakub@redhat.com>
5216 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
5217 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
5218 instead of MPFR_RNDN.
5220 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
5223 * arm.c (arm_option_override): Don't call build_target_option_node
5224 until after doing all option overrides.
5225 (arm_valid_target_attribute_tree): Likewise.
5227 2017-01-27 Martin Liska <mliska@suse.cz>
5229 * doc/invoke.texi (-fprofile-arcs): Document profiling support
5230 for {cd}tors and C++ {cd}tors.
5232 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5234 * config/s390/s390.md ("*setmem_long_and")
5235 ("*setmem_long_and_31z"): Use zero_extend instead of and.
5237 2017-01-26 Martin Sebor <msebor@redhat.com>
5239 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
5242 2017-01-26 Martin Sebor <msebor@redhat.com>
5244 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
5245 HAVE_DFmode before using XFmode or DFmode.
5246 (parse_directive): Avoid using the z length modifier to avoid
5247 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
5250 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
5251 to accept adjustment as an array.
5252 (get_int_range): New function.
5253 (struct directive): Make width and prec arrays.
5254 (directive::set_width, directive::set_precision): Call get_int_range.
5255 (format_integer, format_floating): Handle width and precision ranges.
5256 (format_string, parse_directive): Same.
5258 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5261 * dwarf2out.c (generate_skeleton_bottom_up): For children with
5262 comdat_type_p set, just clone them, but keep the children in the
5266 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
5267 which have direct callers with -fvar-tracking-assignments enabled
5269 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
5270 inside of type units.
5272 2017-01-26 Martin Sebor <msebor@redhat.com>
5275 * gimple-ssa-sprintf.c (struct result_range): Add likely and
5277 (struct format_result): Replace number_chars, number_chars_min,
5278 and number_chars_max with a single member of struct result_range.
5280 (format_result::operator+=): Adjust.
5281 (struct fmtresult): Remove bounded. Handle likely and unlikely
5283 (fmtresult::adjust_for_width_or_precision): New function.
5284 (fmtresult:type_max_digits): New function.
5285 (bytes_remaining): Handle likely and unlikely counters.
5286 (min_bytes_remaining): Remove.
5287 (format_percent): Simplify.
5288 (format_integer, format_floating): Set likely and unlikely counters.
5289 (get_string_length, format_character, format_string): Same.
5290 (format_plain, should_warn_p): New function.
5291 (maybe_warn): Call should_warn_p. Update diagnostic messages
5292 and handle those for all directives, including plain strings.
5293 (format_directive): Handle likely and unlikely counters.
5294 Remove unnecessary quoting from diagnostics. Add an informational
5296 (add_bytes): Remove.
5297 (pass_sprintf_length::compute_format_length): Simplify.
5298 (try_substitute_return_value): Handle likely and unlikely counters.
5300 2017-01-26 Carl Love <cel@us.ibm.com>
5302 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
5303 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
5305 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
5308 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
5309 endianess for subregs into account.
5310 * lra-constraints.c (lra_constraints): Do risky transformations
5311 always on the first iteration.
5312 * lra-lives.c (check_pseudos_live_through_calls): Add arg
5313 last_call_used_reg_set.
5314 (process_bb_lives): Define and use last_call_used_reg_set.
5315 * lra.c (lra): Always continue after lra_constraints on the first
5318 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
5320 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
5322 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
5324 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5326 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
5327 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
5328 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
5329 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
5330 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
5331 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
5332 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
5333 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
5334 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
5336 2017-01-26 Marek Polacek <polacek@redhat.com>
5339 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
5340 for the third operand.
5342 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5345 * omp-low.c (struct omp_context): Add simt_stmt field.
5346 (scan_omp_for): Return omp_context *.
5347 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
5348 context to the _simt_ SIMD stmt.
5349 (lower_omp_for): For combined SIMD with sibling _simt_
5350 SIMD, make sure to use the same decls in _looptemp_
5351 clauses as in the sibling.
5353 2017-01-26 David Sherwood <david.sherwood@arm.com>
5356 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
5359 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5362 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
5363 emit fld b; fld a; if possible.
5365 * brig-builtins.def: Update copyright years.
5366 * config/arm/arm_acle_builtins.def: Update copyright years.
5368 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5371 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
5372 constraint instead of o for the stxsd instruction.
5374 2017-01-25 Carl Love <cel@us.ibm.com>
5376 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
5377 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
5379 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
5381 * doc/invoke.texi (C++ Dialect Options): Fix typo.
5383 2017-01-25 Richard Biener <rguenther@suse.de>
5385 PR tree-optimization/69264
5386 * target.def (vector_alignment_reachable): Improve documentation.
5387 * doc/tm.texi: Regenerate.
5388 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
5390 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
5391 earlier changes with respect to TYPE_USER_ALIGN.
5392 (vector_alignment_reachable_p): Likewise. Improve dumping.
5394 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5397 * config/arm/arm.md (xordi3): Force constant operand into a register
5400 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5402 * doc/invoke.texi (-fstore-merging): Correct default optimization
5403 levels at which it is enabled.
5404 (-O): Move -fstore-merging from list to...
5407 2017-01-25 Richard Biener <rguenther@suse.de>
5410 * omp-expand.c: Include debug.h.
5411 (expand_omp_taskreg): Make sure to generate early debug before
5412 outlining anything from a function.
5413 (expand_omp_target): Likewise.
5414 (grid_expand_target_grid_body): Likewise.
5416 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
5419 * asan.c (get_translation_unit_decl): New function.
5420 (asan_add_global): Extract modules file name from globals
5421 TRANSLATION_UNIT_DECL name.
5423 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
5426 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
5427 for long calls with APCS frame and VFP.
5429 2017-01-24 David Malcolm <dmalcolm@redhat.com>
5431 * cfg.c (original_copy_tables_initialized_p): New function.
5432 * cfg.h (original_copy_tables_initialized_p): New decl.
5433 * cfgrtl.c (relink_block_chain): Guard the call to
5434 free_original_copy_tables with a call to
5435 original_copy_tables_initialized_p.
5436 * cgraph.h (symtab_node::native_rtl_p): New decl.
5437 * cgraphunit.c (symtab_node::native_rtl_p): New function.
5438 (symtab_node::needed_p): Don't assert for early assembly output
5439 for __RTL functions.
5440 (cgraph_node::finalize_function): Set "force_output" for __RTL
5442 (cgraph_node::analyze): Bail out early for __RTL functions.
5443 (analyze_functions): Update assertion to support __RTL functions.
5444 (cgraph_node::expand): Bail out early for __RTL functions.
5445 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5447 * function.h (struct function): Update comment for field
5449 * gimple-expr.c: Include "tree-pass.h".
5450 (gimple_has_body_p): Return false for __RTL functions.
5451 * Makefile.in (OBJS): Add run-rtl-passes.o.
5452 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5454 (gcc::pass_manager::get_clean_slate): New accessor.
5455 * passes.c: Include "insn-addr.h".
5456 (should_skip_pass_p): Add logging. Update logic for running
5457 "expand" to be compatible with both __GIMPLE and __RTL. Guard
5458 property-provider override so it is only done for gimple passes.
5460 (skip_pass): New function.
5461 (execute_one_pass): Call skip_pass when skipping passes.
5462 * read-md.c (md_reader::read_char): Support filtering
5463 the input to a subset of line numbers.
5464 (md_reader::md_reader): Initialize fields
5465 m_first_line and m_last_line.
5466 (md_reader::read_file_fragment): New function.
5467 * read-md.h (md_reader::read_file_fragment): New decl.
5468 (md_reader::m_first_line): New field.
5469 (md_reader::m_last_line): New field.
5470 * read-rtl-function.c (function_reader::create_function): Only
5471 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
5472 curr_properties. Set DECL_INITIAL to a dummy block.
5473 (read_rtl_function_body_from_file_range): New function.
5474 * read-rtl-function.h (read_rtl_function_body_from_file_range):
5476 * run-rtl-passes.c: New file.
5477 * run-rtl-passes.h: New file.
5479 2017-01-24 Jeff Law <law@redhat.com>
5481 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5484 2017-01-24 Bin Cheng <bin.cheng@arm.com>
5486 PR tree-optimization/79159
5487 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5488 (record_nonwrapping_iv): Improve boundary using above function if no
5489 value range information.
5491 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5492 Martin Jambor <mjambor@suse.cz>
5494 * brig-builtins.def: New file.
5495 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5496 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5497 (DEF_HSAIL_SAT_BUILTIN): Likewise.
5498 (DEF_HSAIL_INTR_BUILTIN): Likewise.
5499 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5500 * builtin-types.def (BT_INT8): New.
5501 (BT_INT16): Likewise.
5502 (BT_UINT8): Likewise.
5503 (BT_UINT16): Likewise.
5504 (BT_FN_ULONG): Likewise.
5505 (BT_FN_UINT_INT): Likewise.
5506 (BT_FN_UINT_ULONG): Likewise.
5507 (BT_FN_UINT_LONG): Likewise.
5508 (BT_FN_UINT_PTR): Likewise.
5509 (BT_FN_ULONG_PTR): Likewise.
5510 (BT_FN_INT8_FLOAT): Likewise.
5511 (BT_FN_INT16_FLOAT): Likewise.
5512 (BT_FN_UINT32_FLOAT): Likewise.
5513 (BT_FN_UINT16_FLOAT): Likewise.
5514 (BT_FN_UINT8_FLOAT): Likewise.
5515 (BT_FN_UINT64_FLOAT): Likewise.
5516 (BT_FN_UINT16_UINT32): Likewise.
5517 (BT_FN_UINT32_UINT16): Likewise.
5518 (BT_FN_UINT16_UINT16_UINT16): Likewise.
5519 (BT_FN_INT_PTR_INT): Likewise.
5520 (BT_FN_UINT_PTR_UINT): Likewise.
5521 (BT_FN_LONG_PTR_LONG): Likewise.
5522 (BT_FN_ULONG_PTR_ULONG): Likewise.
5523 (BT_FN_VOID_UINT64_UINT64): Likewise.
5524 (BT_FN_UINT8_UINT8_UINT8): Likewise.
5525 (BT_FN_INT8_INT8_INT8): Likewise.
5526 (BT_FN_INT16_INT16_INT16): Likewise.
5527 (BT_FN_INT_INT_INT): Likewise.
5528 (BT_FN_UINT_FLOAT_UINT): Likewise.
5529 (BT_FN_FLOAT_UINT_UINT): Likewise.
5530 (BT_FN_ULONG_UINT_UINT): Likewise.
5531 (BT_FN_ULONG_UINT_PTR): Likewise.
5532 (BT_FN_ULONG_ULONG_ULONG): Likewise.
5533 (BT_FN_UINT_UINT_UINT): Likewise.
5534 (BT_FN_VOID_UINT_PTR): Likewise.
5535 (BT_FN_UINT_UINT_PTR: Likewise.
5536 (BT_FN_UINT32_UINT64_PTR): Likewise.
5537 (BT_FN_INT_INT_UINT_UINT): Likewise.
5538 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5539 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5540 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5541 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5542 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5543 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5544 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5545 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5546 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5547 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5548 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5549 * doc/frontends.texi: List BRIG FE.
5550 * doc/install.texi (Testing): Add BRIG tesring requirements.
5551 * doc/invoke.texi (Overall Options): Mention BRIG.
5552 * doc/standards.texi (Standards): Doucment BRIG HSA version.
5554 2017-01-24 Richard Biener <rguenther@suse.de>
5556 PR translation/79208
5557 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5559 2017-01-24 Martin Jambor <mjambor@suse.cz>
5562 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5563 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5566 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
5569 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5570 casts from signed to unsigned really don't have a range.
5572 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
5574 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5575 GMP_RNDx for compatiblity.
5577 2017-01-24 Martin Liska <mliska@suse.cz>
5580 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5581 that would prevent us to call alloca with -1 as argument.
5583 2017-01-24 Jakub Jelinek <jakub@redhat.com>
5585 * dwarf2out.c (output_compilation_unit_header, output_file_names):
5586 Avoid -Wformat-security warning.
5588 2017-01-23 Andrew Pinski <apinski@cavium.com>
5590 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5593 2017-01-23 Martin Sebor <msebor@redhat.com>
5596 * gimple-ssa-sprintf.c (warn_level): New global.
5597 (format_integer): Use it here and throughout the rest of the file.
5598 Use the same switch to compute sign as base.
5599 (maybe_warn): New function.
5600 (format_directive): Factor out warnings into maybe_warn.
5601 Add debugging output. Use warn_level.
5602 (add_bytes): Use warn_level.
5603 (pass_sprintf_length::compute_format_length): Add debugging output.
5604 (try_substitute_return_value): Same.
5605 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5608 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5609 (struct fmtresult, format_integer, format_floating): Adjust.
5610 (fmtresult::fmtresult): Set max correctly in two argument ctor.
5611 (get_string_length, format_string,format_directive): Same.
5612 (pass_sprintf_length::compute_format_length): Same.
5613 (try_substitute_return_value): Simplify slightly.
5616 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5617 (fmtresult::operator+=): Outlined.
5618 (struct fmtresult): Add ctors.
5619 (struct conversion_spec): Rename...
5620 (struct directive): ...to this. Add and remove data members.
5621 (directive::set_width, directive::set_precision): New functions.
5622 (format_percent): Use fmtresult ctor.
5623 (get_width_and_precision): Remove.
5624 (format_integer): Make naming changes. Avoid computing width and
5626 (format_floating): Same. Adjust indentation.
5627 (format_character, format_none): New functions.
5628 (format_string): Moved character handling to format_character.
5629 (format_directive): Remove arguments, change return type.
5630 (parse_directive): New function.
5631 (pass_sprintf_length::compute_format_length): Move directive
5632 parsing to parse_directive.
5634 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5636 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5637 (assign_assembler_name_if_needed): ... this.
5638 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5639 (assign_assembler_name_if_needed): ... this.
5640 (free_lang_data_in_cgraph): Adjust callers.
5641 * cgraphunit.c (cgraph_node::analyze): Likewise.
5642 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5645 2017-01-23 Richard Biener <rguenther@suse.de>
5647 PR tree-optimization/79088
5648 PR tree-optimization/79188
5649 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5650 resetting loop bounds after last path deletion. Reset loop
5651 bounds of the target loop, make code match the comments.
5652 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5653 Make sure loops need no fixups.
5655 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
5657 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5658 exponent support with double type for first argument.
5659 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5660 type returned by __builtin_vec_extract_sig,
5661 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5662 functions from "vector int" to "vector unsigned int" or from
5663 "vector long long int" to "vector unsigned long long int".
5664 Changed type returned by __builtin_vec_extract_exp,
5665 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5666 functions from "vector int" to "vector unsigned int" or from
5667 "vector long long int" to "vector unsigned long long int".
5668 Changed return type of __builtin_vec_test_data_class,
5669 __builtin_vec_test_data_class_sp, and
5670 __builtin_vec_test_data_class_dp from "vector int" to
5671 "vector bool int" or from "vector long long int" to "vector bool
5672 long long int" and changed second argument type from "unsigned
5673 int" to "int". Added new overloaded function forms "vector float
5674 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5675 "vector float __builtin_vec_insert_exp_sp (vector float, vector
5676 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5677 double, vector unsigned long long int)" and "vector double
5678 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5679 long int)". Changed return type of
5680 __builtin_scalar_test_data_class and
5681 __builtin_scalar_test_data_class_sp and
5682 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5683 int" and changed second argument from "unsigned int" to "int".
5684 Changed type returned by __builtin_scalar_test_neg,
5685 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5686 from "int" to "bool int". Added new overloaded function form
5687 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5688 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5689 exponent double-precision with floating point first argument.
5690 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5691 documentation of scalar_test_data_class, scalar_test_neg,
5692 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5693 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5694 vec_test_data_class built-in functions to reflect refinements in
5695 their type signatures.
5697 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
5699 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5701 (aarch64_elf_asm_destructor): Likewise.
5703 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
5705 PR rtl-optimization/78634
5706 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5707 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5708 * ifcvt.c (noce_try_cmove): Add missing cost check.
5710 PR rtl-optimization/71724
5711 * combine.c (if_then_else_cond): Look for situations where it is
5712 beneficial to undo the work of one of the recursive calls.
5714 2017-01-23 Bin Cheng <bin.cheng@arm.com>
5716 PR tree-optimization/70754
5717 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5718 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
5719 combined stmt before it if not NULL.
5720 (combine_chains): Process refs reversely and compute dominance point
5723 2017-01-23 Martin Liska <mliska@suse.cz>
5725 PR tree-optimization/79196
5726 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5727 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
5729 (strlen_optimize_stmt): Call the renamed function.
5731 2017-01-23 Michael Matz <matz@suse.de>
5733 PR tree-optimization/78384
5734 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5736 2017-01-23 Richard Biener <rguenther@suse.de>
5738 PR tree-optimization/79186
5739 * tree-vrp.c (register_new_assert_for): Make sure we've seen
5740 both incoming edges before moving an assert.
5742 2017-01-23 Martin Jambor <mjambor@suse.cz>
5744 * ipa-prop.c (load_from_param_1): Removed.
5745 (load_from_unmodified_param): Bits from load_from_param_1 put back
5747 (load_from_param): Removed.
5748 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5749 with stmt. Reverted back to use of load_from_unmodified_param.
5751 2017-01-23 Martin Jambor <mjambor@suse.cz>
5754 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5755 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
5756 field a pointer to garbage collected vector, mark lattices and
5757 ipcp_orig_node with GTY((skip)).
5758 (ipa_get_param_count): Adjust to descriptors being a pointer.
5759 (ipa_get_param): Likewise.
5760 (ipa_get_type): Likewise.
5761 (ipa_get_param_move_cost): Likewise.
5762 (ipa_set_param_used): Likewise.
5763 (ipa_get_controlled_uses): Likewise.
5764 (ipa_set_controlled_uses): Likewise.
5765 (ipa_is_param_used): Likewise.
5766 (ipa_node_params_t): Move into garbage collector. New methods insert
5768 (ipa_node_params_sum): Annotate wth GTY(()).
5769 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5771 (ipa_load_from_parm_agg): Adjust declaration.
5772 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5773 * ipa-profile.c (ipa_profile): Likewise.
5774 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5775 (ipa_populate_param_decls): Make descriptors parameter garbage
5777 (ipa_dump_param): Adjust to descriptors being a pointer.
5778 (ipa_alloc_node_params): Likewise.
5779 (ipa_initialize_node_params): Likewise.
5780 (load_from_param_1): Make descriptors parameter garbage collected.
5781 (load_from_unmodified_param): Likewise.
5782 (load_from_param): Likewise.
5783 (ipa_load_from_parm_agg): Likewise.
5784 (ipa_node_params::~ipa_node_params): Removed.
5785 (ipa_free_all_node_params): Remove call to delete operator.
5786 (ipa_node_params_t::insert): New.
5787 (ipa_node_params_t::remove): Likewise.
5788 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5789 copy known_csts and known_contexts vectors.
5790 (ipa_read_node_info): Adjust to descriptors being a pointer.
5791 (ipcp_modif_dom_walker): Make m_descriptors field garbage
5793 (ipcp_transform_function): Make descriptors variable garbage
5796 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
5798 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5799 * config/i386/avx512dqintrin.h: Ditto.
5800 * config/i386/avx512fintrin.h: Ditto.
5801 * gcc/config/i386/i386.c: Handle new builtins.
5802 * config/i386/i386-builtin.def: Add new builtins.
5803 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5804 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5806 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5807 Martin Liska <mliska@suse.cz>
5809 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5810 * asan.c (asan_expand_poison_ifn): Support stores and use
5811 appropriate ASAN report function.
5812 * internal-fn.c (expand_ASAN_POISON_USE): New function.
5813 * internal-fn.def (ASAN_POISON_USE): Declare.
5814 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5815 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5816 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5817 ASAN_POISON calls w/o LHS.
5818 * tree-ssa.c (execute_update_addresses_taken): Create clobber
5819 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5820 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5821 * gimplify.c (asan_poison_variables): Add attribute
5822 use_after_scope_memory to variables that really needs to live
5824 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5825 having the attribute.
5827 2017-01-23 Martin Liska <mliska@suse.cz>
5829 * asan.c (create_asan_shadow_var): New function.
5830 (asan_expand_poison_ifn): Likewise.
5831 * asan.h (asan_expand_poison_ifn): New declaration.
5832 * internal-fn.c (expand_ASAN_POISON): Likewise.
5833 * internal-fn.def (ASAN_POISON): New builtin.
5834 * sanopt.c (pass_sanopt::execute): Expand
5835 asan_expand_poison_ifn.
5836 * tree-inline.c (copy_decl_for_dup_finish): Make function
5838 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5839 * tree-ssa.c (is_asan_mark_p): New function.
5840 (execute_update_addresses_taken): Rewrite local variables
5841 (identified just by use-after-scope as addressable) into SSA.
5843 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5845 * doc/install.texi (Specific): opensource.apple.com uses https
5846 now. Remove trailing slash.
5848 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5850 * README.Portability: Remove note on an Irix compatibility issue.
5852 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
5854 * gcov.c (INCLUDE_ALGORITHM): Define.
5855 (INCLUDE_VECTOR): Define.
5856 No longer include <vector> and <algorithm> directly.
5858 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
5860 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5862 * doc/invoke.texi (Code Gen Options): Ditto.
5864 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
5867 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5869 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
5871 rtl-optimization/79125
5872 * cprop.c (local_cprop_pass): Handle cases where we make an
5875 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
5879 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5880 read from, for big endian.
5882 2017-01-20 Jiong Wang <jiong.wang@arm.com>
5884 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5885 register pauth builtins for LP64 only.
5887 2017-01-20 Marek Polacek <polacek@redhat.com>
5890 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5893 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5895 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5897 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5898 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5899 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5901 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5904 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5905 in big-endian mode when they are not a single duplicated value.
5907 2017-01-20 Richard Biener <rguenther@suse.de>
5909 * BASE-VER: Bump to 7.0.1.
5911 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5913 * omp-low.c (omplow_simd_context): New struct. Use it...
5914 (lower_rec_simd_input_clauses): ...here and...
5915 (lower_rec_input_clauses): ...here to hold common data. Adjust all
5916 references to idx, lane, max_vf, is_simt.
5918 2017-01-20 Graham Markall <graham.markall@embecosm.com>
5920 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5923 2017-01-20 Martin Jambor <mjambor@suse.cz>
5925 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
5926 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
5928 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5929 (GTFILES): Rename hsa.c to hsa-common.c.
5930 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5931 * hsa-dump.c: Likewise.
5932 * hsa-gen.c: Likewise.
5933 * hsa-regalloc.c: Likewise.
5934 * ipa-hsa.c: Likewise.
5935 * omp-expand.c: Likewise.
5936 * omp-low.c: Likewise.
5937 * toplev.c: Likewise.
5939 2017-01-20 Marek Polacek <polacek@redhat.com>
5942 * doc/invoke.texi: Document -Wduplicated-branches.
5943 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
5944 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
5945 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
5946 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
5947 return 0 only when not OEP_LEXICOGRAPHIC.
5948 (fold_build_cleanup_point_expr): Use the expression
5949 location when building CLEANUP_POINT_EXPR.
5950 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
5951 * tree.c (add_expr): Handle error_mark_node.
5953 2017-01-20 Martin Liska <mliska@suse.cz>
5956 * tree-profile.c (init_ic_make_global_vars): Do not call
5958 (gimple_init_gcov_profiler): Likewise.
5960 2017-01-20 Martin Liska <mliska@suse.cz>
5963 * cgraph.h (maybe_create_reference): Remove argument and
5965 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
5967 * ipa-cp.c (create_specialized_node): Likewise.
5968 * symtab.c (symtab_node::maybe_create_reference): Handle
5969 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
5971 2017-01-20 Martin Liska <mliska@suse.cz>
5973 * read-rtl-function.c (function_reader::create_function): Use
5974 build_decl instread of build_decl_stat.
5976 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
5978 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
5979 * config/i386/avx512dqintrin.h: Ditto.
5980 * config/i386/avx512fintrin.h: Ditto.
5981 * config/i386/i386-builtin-types.def: Add new types.
5982 * gcc/config/i386/i386.c: Handle new types.
5983 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
5984 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
5985 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
5986 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
5987 (__builtin_ia32_kshiftridi): New.
5988 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
5990 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
5994 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
5995 define to rs6000_init_stack_protect_guard.
5996 (rs6000_init_stack_protect_guard): New function.
5998 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5999 Yunqiang Su <yunqiang.su@imgtec.com>
6001 * config.gcc (supported_defaults): Add madd4.
6002 (with_madd4): Add validation.
6003 (all_defaults): Add madd4.
6004 * config/mips/mips.opt (mmadd4): New option.
6005 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6007 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6009 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
6010 (ISA_HAS_FUSED_MADD4): Likewise.
6011 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
6012 * gcc/doc/install.texi (--with-madd4): Document the new option.
6014 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6016 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
6017 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
6018 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
6019 (aarch64_init_pauth_hint_builtins): New.
6020 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
6021 (aarch64_expand_builtin): Expand new builtins.
6023 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6025 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
6026 * combine-stack-adj.c (no_unhandled_cfa): Handle
6027 REG_CFA_TOGGLE_RA_MANGLE.
6028 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
6029 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
6030 info for return address signing.
6031 (aarch64_expand_epilogue): Likewise.
6033 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6035 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
6036 * config/aarch64/aarch64-protos.h
6037 (aarch64_return_address_signing_enabled): New declaration.
6038 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
6040 (aarch64_expand_prologue): Sign return address before it's pushed onto
6042 (aarch64_expand_epilogue): Authenticate return address fetched from
6044 (aarch64_override_options): Sanity check for ILP32 and ISA level.
6045 (aarch64_attributes): New function attributes for "sign-return-address".
6046 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
6047 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
6048 ("*do_return"): Generate combined instructions according to key index.
6049 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
6050 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
6052 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
6053 * config/aarch64/aarch64.opt (msign-return-address=): New.
6054 * doc/extend.texi (AArch64 Function Attributes): Documents
6055 "sign-return-address=".
6056 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
6058 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
6060 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
6061 overall option summary.
6063 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6065 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
6066 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
6067 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
6068 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
6070 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
6072 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
6073 -mpower9-minmax by default for -mcpu=power9.
6074 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
6075 128-bit floating point.
6077 2017-01-20 Alan Modra <amodra@gmail.com>
6079 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
6080 optimizing for size.
6082 2017-01-20 Alan Modra <amodra@gmail.com>
6085 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
6086 for strcmp and strncmp from corresponding builtin decl.
6088 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
6090 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
6091 instead of i386/rtems-64.h.
6092 * config/i386/rtems-64.h: Remove.
6094 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
6098 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6100 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
6102 2017-01-19 Tamar Christina <tamar.christina@arm.com>
6104 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
6105 Change int to HOST_WIDE_INT.
6106 * config/aarch64/aarch64-protos.h
6107 (aarch64_simd_gen_const_vector_dup): Likewise.
6108 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
6110 2017-01-19 David Malcolm <dmalcolm@redhat.com>
6112 * langhooks-def.h (lhd_type_for_size): New decl.
6113 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
6114 * langhooks.c (lhd_type_for_size): New function, taken from
6117 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
6119 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
6120 define_bypass for CR latency.
6121 (power9-cracked-alu): Update bypass latency and remove power9-branch.
6122 (power9-alu2): Add define_bypass for CR latency.
6124 (power9-mul): Update insn latency.
6125 (power9-mul-compare): Update insn latency, bypass latency and remove
6128 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6130 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6132 * config/aarch64/aarch64.md
6133 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
6134 aarch64_nopcrelative_literal_loads.
6135 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6137 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
6139 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
6141 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
6143 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
6146 * config.gcc (supported_defaults): Add lxc1-sxc1.
6147 (with_lxc1_sxc1): Add validation.
6148 (all_defaults): Add lxc1-sxc1.
6149 * config/mips/mips.opt (mlxc1-sxc1): New option.
6150 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6152 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6153 __mips_no_lxc1_sxc1.
6154 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
6155 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
6156 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
6158 2017-01-19 Richard Biener <rguenther@suse.de>
6160 PR tree-optimization/72488
6161 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
6162 sure to restore SSA info.
6163 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
6165 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
6167 PR rtl-optimization/79121
6168 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
6169 of the inner type when shifting an extended value.
6171 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6174 * symtab.c (symtab_node::equal_address_to): Fix comparing of
6175 interposable aliases.
6177 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
6180 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
6181 Use the evmergelohi instruction.
6182 (mov_si<mode>_e500_subreg4_2_le): Likewise.
6183 (mov_sitf_e500_subreg8_2_be): Likewise.
6184 (mov_sitf_e500_subreg12_2_le): Likewise.
6185 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
6186 (mov_si<mode>_e500_subreg4_2_be): Likewise.
6187 (mov_sitf_e500_subreg8_2_le): Likewise.
6188 (mov_sitf_e500_subreg12_2_be): Likewise.
6190 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6192 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
6193 attribute from vecsimple to vecperm.
6194 (altivec_vbpermq2): Likewise.
6196 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6199 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
6201 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6202 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
6203 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
6204 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
6205 case where N arg is SIZE_MAX.
6206 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
6207 (cmpstrsi): Add pattern.
6209 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6211 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6212 __builtin_vec_revb builtins.
6213 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
6214 built-in functions to support generation of the ISA 3.0 XXBR<x>
6215 vector byte reverse instructions.
6216 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
6217 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
6218 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
6219 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
6220 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
6221 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
6222 (P9V_BUILTIN_VEC_REVB): Likewise.
6223 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
6224 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
6225 (p9_xxbrq_v16qi): Likewise.
6226 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
6227 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
6228 (p9_xxbrh_v8hi): Likewise.
6229 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
6230 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
6231 vec_revb built-in functions.
6233 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
6235 PR rtl-optimization/78952
6236 * config/i386/i386.md (any_extract): New code iterator.
6237 (*insvqi_2): Use any_extract for source operand.
6238 (*insvqi_3): Use any_shiftrt for source operand.
6240 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
6242 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
6244 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
6246 2017-01-18 Matthias Klose <doko@ubuntu.com>
6248 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
6250 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6252 * config/rs6000/altivec.h (vec_bperm): Change #define.
6253 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
6254 (altivec_vbpermq2): New define_insn.
6255 (altivec_vbpermd): Likewise.
6256 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
6258 (VBPERMD): Likewise.
6259 (VBPERM): New polymorphic function interface.
6260 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
6261 Add entries for P9V_BUILTIN_VEC_VBPERM.
6262 * doc/extend.texi: Add interfaces for vec_bperm.
6264 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6266 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
6267 first letter of error messages.
6268 (s390_resolve_overloaded_builtin): Likewise.
6269 * config/s390/s390.c (s390_expand_builtin): Likewise.
6270 (s390_invalid_arg_for_unprototyped_fn): Likewise.
6271 (s390_valid_target_attribute_inner_p): Likewise.
6272 * config/s390/s390.md ("tabort"): Likewise.
6274 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
6276 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
6277 (ISA_AVOID_DIV_HILO): New macro.
6278 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
6279 (ISA_HAS_DDIV): Likewise.
6281 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6283 * doc/invoke.texi (fabi-version): Correct number of occurrences.
6285 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6287 * doc/invoke.texi (fabi-version): Spelling fix.
6289 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6292 * doc/invoke.texi (fabi-version): Mention mangling fix for
6295 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6298 * doc/invoke.texi (fabi-version): Document discriminator mangling.
6300 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
6303 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
6304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
6306 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
6308 (stack_protect_test): Ditto.
6309 * config/rs6000/rs6000.opt (mstack-protector-guard=,
6310 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
6312 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
6313 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
6314 -mstack-protector-guard-offset=.
6315 (RS/6000 and PowerPC Options): Ditto.
6317 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6319 * config/i386/i386.h (MASK_CLASS_P): New define.
6320 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
6321 there are no registers from different register sets also when
6322 mask registers are used. Update function comment.
6323 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
6324 to (*k/*r) and (*k/*km) alternatives.
6326 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
6328 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
6329 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
6330 (EH_RETURN_HANDLER_RTX): New define.
6331 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
6332 Force frame pointer in EH return functions.
6333 (aarch64_expand_epilogue): Add barrier for eh_return.
6334 (aarch64_final_eh_return_addr): Remove.
6335 (aarch64_eh_return_handler_rtx): New function.
6336 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
6338 (aarch64_eh_return_handler_rtx): New prototype.
6340 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6342 * config/rs6000/altivec.h (vec_rlmi): New #define.
6343 (vec_vrlnm): Likewise.
6344 (vec_rlnm): Likewise.
6345 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
6346 (UNSPEC_VRLNM): Likewise.
6347 (VIlong): New mode iterator.
6348 (altivec_vrl<VI_char>mi): New define_insn.
6349 (altivec_vrl<VI_char>nm): Likewise.
6350 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
6353 (RLNM): New polymorphic function entry.
6354 (VRLWMI): New monomorphic function entry.
6356 (RLMI): New polymorphic function entry.
6357 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
6358 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
6359 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
6362 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6365 * dwarf2out.c (field_byte_offset): Restore the
6366 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
6367 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
6368 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
6371 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6374 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
6376 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6379 * dwarf2out.c (add_data_member_location_attribute): For constant
6380 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
6381 instead of DW_AT_data_member_location, DW_AT_bit_offset and
6382 DW_AT_byte_size attributes.
6384 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6386 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
6387 after forcing to constant memory when the code model is medium.
6389 2017-01-17 Julia Koval <julia.koval@intel.com>
6392 * config/i386/avx512fintrin.h
6393 (_mm512_i32gather_ps): Change __addr type to void const*.
6394 (_mm512_mask_i32gather_ps): Ditto.
6395 (_mm512_i32gather_pd): Ditto.
6396 (_mm512_mask_i32gather_pd): Ditto.
6397 (_mm512_i64gather_ps): Ditto.
6398 (_mm512_mask_i64gather_ps): Ditto.
6399 (_mm512_i64gather_pd): Ditto.
6400 (_mm512_mask_i64gather_pd): Ditto.
6401 (_mm512_i32gather_epi32): Ditto.
6402 (_mm512_mask_i32gather_epi32): Ditto.
6403 (_mm512_i32gather_epi64): Ditto.
6404 (_mm512_mask_i32gather_epi64): Ditto.
6405 (_mm512_i64gather_epi32): Ditto.
6406 (_mm512_mask_i64gather_epi32): Ditto.
6407 (_mm512_i64gather_epi64): Ditto.
6408 (_mm512_mask_i64gather_epi64): Ditto.
6409 (_mm512_i32scatter_ps): Change __addr type to void*.
6410 (_mm512_mask_i32scatter_ps): Ditto.
6411 (_mm512_i32scatter_pd): Ditto.
6412 (_mm512_mask_i32scatter_pd): Ditto.
6413 (_mm512_i64scatter_ps): Ditto.
6414 (_mm512_mask_i64scatter_ps): Ditto.
6415 (_mm512_i64scatter_pd): Ditto.
6416 (_mm512_mask_i64scatter_pd): Ditto.
6417 (_mm512_i32scatter_epi32): Ditto.
6418 (_mm512_mask_i32scatter_epi32): Ditto.
6419 (_mm512_i32scatter_epi64): Ditto.
6420 (_mm512_mask_i32scatter_epi64): Ditto.
6421 (_mm512_i64scatter_epi32): Ditto.
6422 (_mm512_mask_i64scatter_epi32): Ditto.
6423 (_mm512_i64scatter_epi64): Ditto.
6424 (_mm512_mask_i64scatter_epi64): Ditto.
6425 * config/i386/avx512pfintrin.h
6426 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
6427 (_mm512_mask_prefetch_i32gather_ps): Ditto.
6428 (_mm512_mask_prefetch_i64gather_pd): Ditto.
6429 (_mm512_mask_prefetch_i64gather_ps): Ditto.
6430 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
6431 (_mm512_prefetch_i32scatter_ps): Ditto.
6432 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
6433 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
6434 (_mm512_prefetch_i64scatter_pd): Ditto.
6435 (_mm512_prefetch_i64scatter_ps): Ditto.
6436 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6437 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6438 * config/i386/avx512vlintrin.h
6439 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6440 (_mm_mmask_i32gather_ps): Ditto.
6441 (_mm256_mmask_i32gather_pd): Ditto.
6442 (_mm_mmask_i32gather_pd): Ditto.
6443 (_mm256_mmask_i64gather_ps): Ditto.
6444 (_mm_mmask_i64gather_ps): Ditto.
6445 (_mm256_mmask_i64gather_pd): Ditto.
6446 (_mm_mmask_i64gather_pd): Ditto.
6447 (_mm256_mmask_i32gather_epi32): Ditto.
6448 (_mm_mmask_i32gather_epi32): Ditto.
6449 (_mm256_mmask_i32gather_epi64): Ditto.
6450 (_mm_mmask_i32gather_epi64): Ditto.
6451 (_mm256_mmask_i64gather_epi32): Ditto.
6452 (_mm_mmask_i64gather_epi32): Ditto.
6453 (_mm256_mmask_i64gather_epi64): Ditto.
6454 (_mm_mmask_i64gather_epi64): Ditto.
6455 (_mm256_i32scatter_ps): Change __addr type to void*.
6456 (_mm256_mask_i32scatter_ps): Ditto.
6457 (_mm_i32scatter_ps): Ditto.
6458 (_mm_mask_i32scatter_ps): Ditto.
6459 (_mm256_i32scatter_pd): Ditto.
6460 (_mm256_mask_i32scatter_pd): Ditto.
6461 (_mm_i32scatter_pd): Ditto.
6462 (_mm_mask_i32scatter_pd): Ditto.
6463 (_mm256_i64scatter_ps): Ditto.
6464 (_mm256_mask_i64scatter_ps): Ditto.
6465 (_mm_i64scatter_ps): Ditto.
6466 (_mm_mask_i64scatter_ps): Ditto.
6467 (_mm256_i64scatter_pd): Ditto.
6468 (_mm256_mask_i64scatter_pd): Ditto.
6469 (_mm_i64scatter_pd): Ditto.
6470 (_mm_mask_i64scatter_pd): Ditto.
6471 (_mm256_i32scatter_epi32): Ditto.
6472 (_mm256_mask_i32scatter_epi32): Ditto.
6473 (_mm_i32scatter_epi32): Ditto.
6474 (_mm_mask_i32scatter_epi32): Ditto.
6475 (_mm256_i32scatter_epi64): Ditto.
6476 (_mm256_mask_i32scatter_epi64): Ditto.
6477 (_mm_i32scatter_epi64): Ditto.
6478 (_mm_mask_i32scatter_epi64): Ditto.
6479 (_mm256_i64scatter_epi32): Ditto.
6480 (_mm256_mask_i64scatter_epi32): Ditto.
6481 (_mm_i64scatter_epi32): Ditto.
6482 (_mm_mask_i64scatter_epi32): Ditto.
6483 (_mm256_i64scatter_epi64): Ditto.
6484 (_mm256_mask_i64scatter_epi64): Ditto.
6485 (_mm_i64scatter_epi64): Ditto.
6486 (_mm_mask_i64scatter_epi64): Ditto.
6487 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6488 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6489 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6490 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6491 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6492 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6493 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6494 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6495 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6496 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6497 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6498 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6499 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6500 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6501 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6502 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6503 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6504 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6505 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6506 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6507 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6508 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6509 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6510 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6511 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6512 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6513 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6514 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
6515 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6516 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6517 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6518 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6519 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6520 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6521 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6522 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6523 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6524 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6525 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6526 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6527 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6528 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6529 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6530 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6531 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6532 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6533 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6534 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6535 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6536 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6537 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6538 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6539 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6540 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6541 definitions accordingly.
6543 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
6544 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6547 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6550 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
6553 * ira-conflicts.c (ira_build_conflicts): Update total conflict
6554 hard regs for inner regno.
6556 2017-01-17 Martin Liska <mliska@suse.cz>
6559 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6560 assumption and add comment.
6562 2017-01-17 Nathan Sidwell <nathan@acm.org>
6564 * ipa-visibility.c (localize_node): New function, broken out of ...
6565 (function_and_variable_visibility): ... here. Call it.
6567 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6570 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6571 correctly set frequency of oudgoing edge.
6572 (duplicate_thread_path): Fix profile updating.
6574 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6577 * configure.ac: Add GCC_BASE_VER.
6578 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6579 version from BASE-VER file.
6580 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6581 (gcc.o): Depend on $(BASEVER).
6582 * common.opt (dumpfullversion): New option.
6583 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6584 * doc/invoke.texi: Document -dumpfullversion.
6585 * doc/install.texi: Document --with-gcc-major-version-only.
6586 * configure: Regenerated.
6588 2017-01-17 Richard Biener <rguenther@suse.de>
6590 PR tree-optimization/71433
6591 * tree-vrp.c (register_new_assert_for): Merge same asserts
6592 on all incoming edges.
6593 (process_assert_insertions_for): Handle insertions at the
6596 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
6598 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6599 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6601 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
6604 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6607 2017-01-17 Alan Modra <amodra@gmail.com>
6610 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6611 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6612 symbolic stack limit when pic.
6614 2017-01-16 Martin Sebor <msebor@redhat.com>
6616 PR tree-optimization/78608
6617 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6619 2017-01-16 Jeff Law <law@redhat.com>
6622 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
6623 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6624 for several include directories that may be relative to sysroot.
6625 * config/i386/x-mingw32 (gplus_includedir): Define.
6626 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6627 (native_system_includedir): Likewise.
6628 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6629 override if TARGET_SYSTEM_ROOT is defined.
6630 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6632 PR tree-optimization/79090
6633 PR tree-optimization/33562
6634 PR tree-optimization/61912
6635 PR tree-optimization/77485
6636 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
6637 and computed trims into the dump file.
6639 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6641 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6643 2017-01-16 Jakub Jelinek <jakub@redhat.com>
6646 * gimplify.c (gimplify_init_constructor): If want_value and
6647 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
6651 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6652 sequence. Formatting fixes.
6653 (doloop_optimize): Formatting fixes.
6656 * gcc.c (debug_level_greater_than_spec_func): New function.
6657 (static_spec_functions): Add debug-level-gt spec function.
6658 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6660 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6661 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6662 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6663 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6664 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6665 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6667 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
6669 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6670 QImode fixups to general and mask registers only.
6672 2017-01-16 Carl Love <cel@us.ibm.com>
6674 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6675 for built-in functions
6676 vector signed char vec_nabs (vector signed char)
6677 vector signed short vec_nabs (vector signed short)
6678 vector signed int vec_nabs (vector signed int)
6679 vector signed long long vec_nabs (vector signed long long)
6680 vector float vec_nabs (vector float)
6681 vector double vec_nabs (vector double)
6682 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6684 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6685 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6686 * doc/extend.texi: Update the documentation file for the new built-in
6689 2017-01-16 Martin Sebor <msebor@redhat.com>
6691 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6694 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6696 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6697 UNSPEC_VSX__XXSPLTD to require special splat handling.
6699 2017-01-16 David Malcolm <dmalcolm@redhat.com>
6702 * system.h: Poison strndup.
6704 2017-01-16 Alan Modra <amodra@gmail.com>
6707 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6710 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
6712 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6714 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
6716 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6717 call recog here. Assert that INSN_CODE (insn) is non-negative.
6719 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6722 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6724 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6725 in the currently scheduled RTL fragment.
6727 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6729 PR rtl-optimization/78751
6730 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6733 2017-01-14 Jeff Law <law@redhat.com>
6735 PR tree-optimization/79090
6736 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6737 variable length stores.
6738 (compute_trims): Delete dead assignment to *trim_tail.
6739 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6742 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
6744 PR rtl-optimization/78626
6745 PR rtl-optimization/78727
6746 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6747 of a block, and split such blocks after everything else is finished.
6749 2017-01-14 Alan Modra <amodra@gmail.com>
6752 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6753 target legitimate_combined_insn.
6754 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6755 (rs6000_legitimate_combined_insn): New function.
6756 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6758 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6759 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6760 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6762 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
6764 * doc/frontends.texi (G++ and GCC): Remove references to Java.
6766 2017-01-13 Jeff Law <law@redhat.com>
6768 PR tree-optimization/33562
6769 PR tree-optimization/61912
6770 PR tree-optimization/77485
6771 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6773 (delete_dead_assignment): Likewise.
6774 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6775 statement to delete_dead_call and delete_dead_assignment.
6777 2017-01-13 David Malcolm <dmalcolm@redhat.com>
6780 * substring-locations.c (format_warning_va): Strengthen case 1 so
6781 that both endpoints of the substring must be within the format
6782 range for just the substring to be printed.
6784 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
6786 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6787 * config/i386/i386.c (ix86_target_string): Add missing options
6788 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
6789 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6790 flags_other and ix86_target_other to flags2_other. Display unknown
6792 (ix86_valid_target_attribute_inner_p): Add missing options and
6793 reorder options by implied ISAs, as in ix86_target_string.
6795 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6797 * hash-table.h (hash_table::too_empty_p): New function.
6798 (hash_table::expand): Use it.
6799 (hash_table::traverse): Likewise.
6800 (hash_table::empty_slot): Use sizeof (value_type) instead of
6801 sizeof (PTR) to convert bytes to elements. Shrink the table
6802 if the current size is excessive for the current number of
6805 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6807 * ira-costs.c (record_reg_classes): Break from the inner loop
6808 early once alt_fail is known to be true. Update outer loop
6809 handling accordingly.
6811 2017-01-13 Jeff Law <law@redhat.com>
6813 * tree-ssa-dse.c (decrement_count): New function.
6814 (increment_start_addr, maybe_trim_memstar_call): Likewise.
6815 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6816 when we know the partially dead statement is a mem* function.
6818 PR tree-optimization/61912
6819 PR tree-optimization/77485
6820 * tree-ssa-dse.c: Include expr.h.
6821 (maybe_trim_constructor_store): New function.
6822 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6824 PR tree-optimization/33562
6825 PR tree-optimization/61912
6826 PR tree-optimization/77485
6827 * doc/invoke.texi: Document new dse-max-object-size param.
6828 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6829 * tree-ssa-dse.c: Include params.h.
6830 (dse_store_status): New enum.
6831 (initialize_ao_ref_for_dse): New, partially extracted from
6833 (valid_ao_ref_for_dse, normalize_ref): New.
6834 (setup_live_bytes_from_ref, compute_trims): Likewise.
6835 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6836 (maybe_trim_partially_dead_store): Likewise.
6837 (maybe_trim_complex_store): Likewise.
6838 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6839 Track what bytes live from the original store. Return tri-state
6840 for dead, partially dead or live.
6841 (dse_dom_walker): Add constructor, destructor and new private members.
6842 (delete_dead_call, delete_dead_assignment): New extracted from
6844 (dse_optimize_stmt): Make a member of dse_dom_walker.
6845 Use initialize_ao_ref_for_dse.
6847 PR tree-optimization/33562
6848 PR tree-optimization/61912
6849 PR tree-optimization/77485
6850 * sbitmap.h (bitmap_count_bits): Prototype.
6851 (bitmap_clear_range, bitmap_set_range): Likewise.
6852 * sbitmap.c (bitmap_clear_range): New function.
6853 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6855 2017-01-13 Martin Liska <mliska@suse.cz>
6858 * function.c (set_cfun): Add new argument force.
6859 * function.h (set_cfun): Likewise.
6860 * ipa-inline-transform.c (inline_call): Use the function when
6861 strict alising from is dropped for function we inline to.
6863 2017-01-13 Richard Biener <rguenther@suse.de>
6865 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6866 for dumping GIMPLE INTEGER_CSTs.
6868 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6870 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6871 to 201112L since C++17.
6873 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
6876 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6877 if -fsanitize=kernel-address is present.
6879 2017-01-13 Richard Biener <rguenther@suse.de>
6881 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6882 as _Literal ( type ) number in case usual suffixes do not
6883 preserve all information.
6885 2017-01-13 Richard Biener <rguenther@suse.de>
6887 PR tree-optimization/77283
6888 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6889 and ssa-iterators.h.
6890 (is_feasible_trace): Implement a cost model based on joiner
6893 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6896 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6897 char or short to __float128/_Float128 directly.
6899 2017-01-12 Martin Sebor <msebor@redhat.com>
6901 to -Wformat-overflow.
6902 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6903 (min_bytes_remaining): Same.
6904 (get_string_length): Same.
6905 (format_string): Same.
6906 (format_directive): Same.
6908 (pass_sprintf_length::handle_gimple_call): Same.
6910 2017-01-12 Jakub Jelinek <jakub@redhat.com>
6912 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6913 info.nowrite calls with no lhs that can't throw. Return bool
6914 whether gsi_remove has been called or not.
6915 (pass_sprintf_length::handle_gimple_call): Return bool whether
6916 try_substitute_return_value called gsi_remove. Formatting fix.
6917 (pass_sprintf_length::execute): Don't use gsi_remove if
6918 handle_gimple_call returned true.
6921 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6922 be removed due to side-effects, don't remove following barrier nor
6923 turn the successor edge into fallthru edge.
6925 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6928 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6929 element-reversing loads and stores as not swappable.
6931 2017-01-12 Nathan Sidwell <nathan@acm.org>
6932 Nicolai Stange <nicstange@gmail.com>
6934 * combine.c (try_combine): Don't ignore result of overlap checking
6935 loop. Combine overlap & asm check into single loop.
6937 2017-01-12 Richard Biener <rguenther@suse.de>
6939 * tree-pretty-print.c (dump_generic_node): Provide -gimple
6940 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
6942 2017-01-12 Richard Biener <rguenther@suse.de>
6944 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
6945 and TS_TARGET_OPTION directly derive from TS_BASE.
6946 * tree-core.h (tree_optimization_option): Derive from tree_base.
6947 (tree_target_option): Likewise.
6949 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
6951 * config/i386/i386.c (memory_address_length): Increase len
6952 only when rip_relative_addr_p returns false.
6954 2017-01-11 Julia Koval <julia.koval@intel.com>
6956 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
6957 (OPTION_MASK_ISA_SGX_SET): New.
6958 (ix86_handle_option): Handle OPT_msgx.
6959 * config.gcc: Added sgxintrin.h.
6960 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
6961 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
6962 * config/i386/i386.c (ix86_target_string): Add -msgx.
6964 (ix86_option_override_internal): Handle new options.
6965 (ix86_valid_target_attribute_inner_p): Add sgx.
6966 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
6967 * config/i386/i386.opt: Add msgx.
6968 * config/i386/sgxintrin.h: New file.
6969 * config/i386/x86intrin.h: Add sgxintrin.h.
6971 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6974 * fold-const.c (maybe_nonzero_address): Return 1 for function
6976 (tree_single_nonzero_warnv_p): Don't handle function local objects
6980 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
6983 2017-01-11 David Malcolm <dmalcolm@redhat.com>
6986 * opts.c: Include "spellcheck.h"
6987 (struct string_fragment): New struct.
6988 (struct edit_distance_traits<const string_fragment &>): New
6990 (get_closest_sanitizer_option): New function.
6991 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
6993 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6995 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
6997 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
6998 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
6999 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
7000 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
7001 for initial die_offset if dwarf_split_debug_info.
7002 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
7003 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
7005 (output_skeleton_debug_sections): Formatting fix. Use
7006 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
7007 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
7009 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
7011 * config/arm/cortex-a53.md: Add bypasses for
7013 (cortex_a53_r2f): Only use for transfers.
7014 (cortex_a53_f2r): Likewise.
7015 (cortex_a53_r2f_cvt): Add reservation for conversions.
7016 (cortex_a53_f2r_cvt): Likewise.
7018 2017-01-11 Tamar Christina <tamar.christina@arm.com>
7020 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
7021 to all inlined functions, change static to extern.
7023 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
7026 * config/arm/arm.c (legitimize_pic_address): Handle reference to
7028 (arm_assemble_integer): Likewise.
7030 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
7032 * config.gcc: Use new awk script to check CPU, FPU and architecture
7033 parameters for --with-... options.
7034 * config/arm/parsecpu.awk: New file
7035 * config/arm/arm-cpus.in: New file.
7036 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
7038 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
7040 * config/arm/t-arm: Update dependency rules.
7041 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
7042 of processing .def files.
7043 * config/arm/genopt.sh: Deleted.
7044 * config/arm/gentune.sh: Deleted.
7045 * config/arm/arm-cores.def: Deleted.
7046 * config/arm/arm-arches.def: Deleted.
7047 * config/arm/arm-fpus.def: Deleted.
7048 * config/arm/arm-tune.md: Regenerated.
7049 * config/arm/arm-tables.opt: Regenerated.
7050 * config/arm/arm-cpu.h: New generated file.
7051 * config/arm/arm-cpu-data.h: New generated file.
7052 * config/arm/arm-cpu-cdata.h: New generated file.
7054 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
7057 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
7059 (input_varpool_node): Unpack dynamically_initialized bit.
7061 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
7063 PR rtl-optimization/79032
7064 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
7065 the alignment of the adjusted memory reference against that of MODE,
7066 instead of the alignment of the original memory reference.
7068 2017-01-11 Martin Jambor <mjambor@suse.cz>
7070 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
7072 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
7073 decorated functions.
7075 2017-01-11 Richard Biener <rguenther@suse.de>
7077 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
7078 set range/nonnull info for PHI results. Do not set it on
7079 stmts marked for removal.
7081 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
7083 * expr.c (store_field): In the bitfield case, fetch the return value
7084 from the registers before applying a single big-endian adjustment.
7085 Always do a final load for a BLKmode value not larger than a word.
7087 2017-01-10 David Malcolm <dmalcolm@redhat.com>
7090 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7091 that we correctly handle column numbers greater than
7092 LINE_MAP_MAX_COLUMN_NUMBER.
7094 2017-01-10 Martin Sebor <msebor@redhat.com>
7097 * gimple-ssa-sprintf.c (get_destination_size): Call
7098 {init,fini}object_sizes.
7099 * tree-object-size.c (addr_object_size): Adjust.
7100 (pass_through_call): Adjust.
7101 (pass_object_sizes::execute): Adjust.
7102 * tree-object-size.h (fini_object_sizes): Declare.
7104 2017-01-10 Martin Sebor <msebor@redhat.com>
7106 PR tree-optimization/78775
7107 * builtins.c (get_size_range): Move...
7108 * calls.c: ...to here.
7109 (alloc_max_size): Accept zero argument.
7110 (operand_signed_p): Remove.
7111 (maybe_warn_alloc_args_overflow): Call get_size_range.
7112 * calls.h (get_size_range): Declare.
7114 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
7116 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
7117 from TI's devices.csv file as of September 2016.
7118 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
7120 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
7122 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
7123 * doc/invoke.texi: Likewise.
7124 * doc/md.texi: Likewise.
7125 * doc/objc.texi: Likewise.
7127 2017-01-10 Joshua Conner <joshconner@google.com>
7129 * config/arm/fuchsia-elf.h: New file.
7130 * config/fuchsia.h: New file.
7131 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
7132 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
7134 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
7136 2016-01-10 Richard Biener <rguenther@suse.de>
7138 PR tree-optimization/79034
7139 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
7140 Propagate out degenerate PHIs in the joiner.
7142 2017-01-10 Martin Liska <mliska@suse.cz>
7144 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
7145 (sort_congruence_classes_by_decl_uid): Likewise.
7146 (sort_congruence_class_groups_by_decl_uid): Likewise.
7147 (sem_item_optimizer::merge_classes): Sort class, groups in these
7148 classes and members in the groups by DECL_UID of declarations.
7149 This would make merge operations stable.
7151 2017-01-10 Martin Liska <mliska@suse.cz>
7153 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
7154 usage of m_classes_vec.
7155 (sem_item_optimizer::~sem_item_optimizer): Likewise.
7156 (sem_item_optimizer::get_group_by_hash): Likewise.
7157 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7158 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
7159 (sem_item_optimizer::verify_classes): Likewise.
7160 (sem_item_optimizer::process_cong_reduction): Likewise.
7161 (sem_item_optimizer::dump_cong_classes): Likewise.
7162 (sem_item_optimizer::merge_classes): Likewise.
7163 * ipa-icf.h (congruence_class_hash): Rename from
7164 congruence_class_group_hash. Remove declaration of m_classes_vec.
7166 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
7168 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
7169 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
7170 * config.gcc: Add avx512vpopcntdqintrin.h.
7171 * config/i386/avx512vpopcntdqintrin.h: New.
7172 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
7173 * config/i386/i386-builtin-types.def: Add new types.
7174 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
7175 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
7176 __builtin_ia32_vpopcountq_v8di_mask): New.
7177 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7178 __AVX512VPOPCNTDQ__.
7179 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
7180 (PTA_AVX512VPOPCNTDQ): Define.
7181 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
7182 TARGET_AVX512VPOPCNTDQ_P): Define.
7183 * config/i386/i386.opt: Add mavx512vpopcntdq.
7184 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
7185 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
7187 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7190 * predict.def (PRED_CALL): Set to 67.
7192 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
7194 * expr.c (store_field): In the bitfield case, if the value comes from
7195 a function call and is of an aggregate type returned in registers, do
7196 not modify the field mode; extract the value in all cases if the mode
7197 is BLKmode and the size is not larger than a word.
7199 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
7202 * config/i386/cpuid.h: Fix undefined behavior.
7204 2017-01-04 Jeff Law <law@redhat.com>
7206 PR tree-optimization/79007
7207 PR tree-optimization/67955
7208 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
7209 conservative for pt.null when flag_non_call_exceptions is on.
7211 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7213 PR translation/79019
7214 PR translation/79020
7215 * params.def (PARAM_INLINE_MIN_SPEEDUP,
7216 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
7217 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
7219 * config/avr/avr.opt (maccumulate-args): Likewise.
7220 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
7221 * common.opt (freport-bug): Likewise.
7222 * cif-code.def (CIF_FINAL_ERROR): Likewise.
7223 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
7224 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
7225 translatable string.
7226 * config/i386/i386.c (function_value_32): Likewise.
7227 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
7228 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
7230 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
7231 * common/config/msp430/msp430-common.c (msp430_handle_option):
7233 * symtab.c (symtab_node::verify_base): Likewise.
7234 * opts.c (set_debug_level): Likewise.
7235 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
7236 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7237 missing whitespace to translatable strings.
7238 * config/avr/avr.md (bswapsi2): Fix typo in comment.
7239 * config/sh/superh.h: Likewise.
7240 * config/i386/xopintrin.h: Likewise.
7241 * config/i386/znver1.md: Likewise.
7242 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
7243 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7244 * double-int.h (struct double_int): Likewise.
7245 * double-int.c (div_and_round_double): Likewise.
7246 * wide-int.cc: Likewise.
7247 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7248 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7249 * cfgcleanup.c (crossjumps_occured): Renamed to ...
7250 (crossjumps_occurred): ... this.
7251 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
7254 PR tree-optimization/78899
7255 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
7256 returning bool return struct loop *, NULL for failure and the new
7258 (versionable_outer_loop_p): Don't version outer loop if it has
7259 dont_vectorized bit set.
7260 (tree_if_conversion): When versioning outer loop, ensure
7261 tree_if_conversion is performed also on the inner loop of the
7262 non-vectorizable outer loop copy.
7263 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
7264 LOOP_VECTORIZED in inner loop of the scalar outer loop and
7265 prevent vectorization of it.
7266 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
7267 the outer loop vectorization of the non-scalar version is attempted
7268 before vectorization of the inner loop in scalar version. If
7269 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
7270 vectorization of its inner loop.
7271 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
7272 has 2 inner loops, rename also on edges from bb whose single pred
7273 is outer_loop->header. Fix typo in function comment.
7275 2017-01-09 Martin Sebor <msebor@redhat.com>
7278 * asan.c (asan_emit_stack_protection): Increase local buffer size
7279 to avoid snprintf truncation warning.
7281 2017-01-09 Andrew Pinski <apinski@cavium.com>
7283 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
7284 to reference thunderx2t99 for the tuning structure
7285 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
7287 (thunderx2t99_extra_costs): This.
7288 * config/aarch64/aarch64-tune.md: Regenerate.
7289 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
7290 (vulcan_addrcost_table): This.
7291 (vulcan_regmove_cost): Rename to ...
7292 (thunderx2t99_regmove_cost): This.
7293 (vulcan_vector_cost): Rename to ...
7294 (thunderx2t99_vector_cost): this.
7295 (vulcan_branch_cost): Rename to ...
7296 (thunderx2t99_branch_cost): This.
7297 (vulcan_tunings): Rename to ...
7298 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
7299 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
7301 2017-01-09 Martin Jambor <mjambor@suse.cz>
7305 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
7306 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
7307 (propagate_vr_accross_jump_function): Use the above function for all
7308 value range computations for pass-through jump functions and type
7309 converasion from explicit value range values.
7310 (ipcp_propagate_stage): Do not attempt to deduce types of formal
7311 parameters from TYPE_ARG_TYPES.
7312 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
7313 (ipa_write_node_info): Stream type of the actual argument.
7314 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
7316 2017-01-09 Martin Liska <mliska@suse.cz>
7319 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
7320 (lookup_compiler): Do not show error message with have_E.
7322 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7324 PR tree-optimization/78938
7325 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
7326 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
7327 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
7328 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
7331 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7333 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
7336 2017-01-09 Richard Biener <rguenther@suse.de>
7338 PR tree-optimization/78997
7339 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
7340 name condition properly.
7342 2017-01-09 Richard Biener <rguenther@suse.de>
7345 * dwarf2out.c (is_cxx): New overload with context.
7346 (is_naming_typedef_decl): Use it.
7348 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7350 * invoke.texi (Option Summary): Correct spacing in option lists
7351 and add line breaks to fix over-long lines.
7353 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7357 * extend.texi (Common Variable Attributes): Add xref to GCC
7358 Internals manual to explain mode attribute keywords.
7360 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7363 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
7364 and Preprocessor Options.
7365 (Options for Linking): Document -pthread here....
7366 (RS/6000 and PowerPC Options): ...not here.
7367 (Solaris 2 Options): ...or here.
7368 * doc/cppopts.texi: Document -pthread.
7370 2017-01-08 Martin Sebor <msebor@redhat.com>
7373 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
7374 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
7375 New member functions.
7376 (format_directive): Used them.
7378 (pass_sprintf_length::handle_gimple_call): Same.
7379 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
7380 to avoid truncation for any argument.
7381 (extract_affine_mul): Same.
7382 * tree.c (get_file_function_name): Same.
7384 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7387 * predict.def (PRED_INDIR_CALL): Set to 86.
7389 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7391 PR preprocessor/54124
7392 * doc/cppopts.texi: Reformat -d subtable to list the full name
7393 of the options. Add cross-reference to the docs for the general
7394 compiler -d options.
7395 * doc/invoke.texi (Developer Options): Add cross-reference to the
7396 preprocessor-specific -d option documentation.
7398 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7400 PR preprocessor/13498
7401 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
7402 redudant material, and reflect new command-line options.
7403 (System Headers): Likewise.
7405 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7407 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
7408 -isystem, and -idirafter. Copy-edit.
7409 * doc/cppopts.texi: Copy-edit. Remove contradiction about
7410 default for -ftrack-macro-expansion. Delete obsolete and
7411 badly-formatted implementation details about -fdebug-cpp output.
7412 * doc/cppwarnopts.texi: Copy-edit.
7414 2017-01-07 David Malcolm <dmalcolm@redhat.com>
7417 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7418 that the transition from a max line width >= 1<<10 to narrower
7419 lines works correctly.
7421 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
7423 * doc/options.texi (PerFunction): New.
7424 * opt-functions.awk (switch_flags): Map both Optimization and
7425 PerFunction to CL_OPTIMIZATION.
7426 * opth-gen.awk: Test for PerFunction flag along with
7428 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
7429 it only when the latter is present. Skip those that don't in
7430 the hash function generator.
7431 * common.opt (fvar-tracking): Mark as PerFunction instead of
7433 (fvar-tracking-assignments): Likewise.
7434 (fvar-tracking-assignments-toggle): Likewise.
7435 (fvar-tracking-uninit): Likewise.
7437 2017-01-07 Jakub Jelinek <jakub@redhat.com>
7439 PR translation/79018
7440 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7443 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
7446 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7447 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7448 TARGET_LONG_JUMP_TABLE_OFFSETS.
7449 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7450 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7451 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7452 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7453 * config/m68k/m68k.md (tablejump expander): Likewise.
7454 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7455 TARGET_LONG_JUMP_TABLE_OFFSETS.
7456 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7457 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7459 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7460 David Holsgrove <david.holsgrove@xilinx.com>
7462 * common/config/microblaze/microblaze-common.c
7463 (TARGET_EXCEPT_UNWIND_INFO): Remove.
7464 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7466 * config/microblaze/microblaze.c (microblaze_must_save_register)
7467 (microblaze_expand_epilogue, microblaze_return_addr): Handle
7469 (microblaze_eh_return): New function.
7470 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7471 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7472 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7473 * config/microblaze/microblaze.md (eh_return): New pattern.
7475 2017-01-06 Jakub Jelinek <jakub@redhat.com>
7477 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7478 GCC_DIAGNOSTIC_STRINGIFY): Define.
7480 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7482 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7484 * config/arm/arm.md (<mcrr>): New.
7486 * config/arm/arm.c (arm_arch5te): New.
7487 (arm_option_override): Set arm_arch5te.
7488 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7490 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7491 (arm_mcrr_qualifiers): ... this. New.
7492 (MRRC_QUALIFIERS): Define to...
7493 (arm_mrrc_qualifiers): ... this. New.
7494 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7496 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7497 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7498 (MRRCI, mrrc, MRRC): New.
7499 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7500 VUNSPEC_MRRC2): New.
7502 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7504 * config/arm/arm.md (<mcr>): New.
7506 * config/arm/arm.c (arm_coproc_builtin_available): Add
7507 support for mcr, mrc, mcr2 and mrc2.
7508 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7509 (arm_mcr_qualifiers): ... this. New.
7510 (MRC_QUALIFIERS): Define to ...
7511 (arm_mrc_qualifiers): ... this. New.
7512 (MCR_QUALIFIERS): Define to ...
7513 (arm_mcr_qualifiers): ... this. New.
7514 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7516 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7517 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7518 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7521 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7523 * config/arm/arm.md (*ldc): New.
7527 * config/arm/arm.c (arm_coproc_builtin_available): Add
7528 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7529 (arm_coproc_ldc_stc_legitimate_address): New.
7530 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7531 'qualifier_const_pointer'.
7532 (LDC_QUALIFIERS): Define to...
7533 (arm_ldc_qualifiers): ... this. New.
7534 (STC_QUALIFIERS): Define to...
7535 (arm_stc_qualifiers): ... this. New.
7536 * config/arm/arm-protos.h
7537 (arm_coproc_ldc_stc_legitimate_address): New.
7538 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7539 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7540 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7541 stc2, stcl, stc2l): New.
7542 * config/arm/constraints.md (Uz): New.
7543 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7544 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7545 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7546 VUNSPEC_STC2L): New.
7548 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7550 * config/arm/arm.md (<cdp>): New.
7551 * config/arm/arm.c (neon_const_bounds): Rename this ...
7552 (arm_const_bounds): ... this.
7553 (arm_coproc_builtin_available): New.
7554 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7555 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7556 (CDP_QUALIFIERS): Define to...
7557 (arm_cdp_qualifiers): ... this. New.
7559 (arm_expand_builtin_args): Add case for 6 arguments.
7560 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7561 (arm_const_bounds): ... this.
7562 (arm_coproc_builtin_available): New.
7563 * config/arm/arm_acle.h (__arm_cdp): New.
7565 * config/arm/arm_acle_builtins.def (cdp): New.
7567 * config/arm/iterators.md (CDPI,CDP,cdp): New.
7568 * config/arm/neon.md: Rename all 'neon_const_bounds' to
7570 * config/arm/types.md (coproc): New.
7571 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7572 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7573 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7574 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7576 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7578 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7579 (UBINOP_QUALIFIERS): New.
7581 (acle_builtin_data): New. Change comment.
7582 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7583 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7584 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7585 arm_acle_builtins.def.
7586 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7587 (arm_init_acle_builtins): New.
7588 (CRC32_BUILTIN): Remove.
7589 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7590 crc32cb, crc32ch and crc32cw.
7591 (arm_init_crc32_builtins): Remove.
7592 (arm_init_builtins): Use arm_init_acle_builtins rather
7593 than arm_init_crc32_builtins.
7594 (arm_expand_acle_builtin): New.
7595 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7596 * config/arm/arm_acle_builtins.def: New.
7598 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7600 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7601 (arm_builtin_datum): ... this.
7602 (arm_init_neon_builtin): Rename to ...
7603 (arm_init_builtin): ... this. Add a new parameters PREFIX
7604 and USE_SIG_IN_NAME.
7605 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7606 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7607 'arm_builtin_datum'.
7608 (arm_init_vfp_builtins): Likewise.
7609 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7610 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7611 (arm_expand_neon_args): Rename to ...
7612 (arm_expand_builtin_args): ... this. Rename builtin_arg
7613 enum values and differentiate between ARG_BUILTIN_MEMORY
7614 and ARG_BUILTIN_NEON_MEMORY.
7615 (arm_expand_neon_builtin_1): Rename to ...
7616 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7617 values, arm_expand_builtin_args and add bool parameter NEON.
7618 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7619 (arm_expand_vfp_builtin): Likewise.
7620 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7622 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7625 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7626 * predict.c (tree_estimate_probability_bb): Reverse direction of
7627 polymorphic call predictor.
7629 2017-01-06 David Malcolm <dmalcolm@redhat.com>
7631 * passes.c (execute_one_pass): Split out pass-skipping logic into...
7632 (determine_pass_name_match): ...this new function and...
7633 (should_skip_pass_p): ...this new function.
7635 2017-01-06 Nathan Sidwell <nathan@acm.org>
7637 * ipa-visibility.c (function_and_variable_visibility): Reformat
7638 comments and long lines. Remove extrneous if.
7639 * symtab.c (symtab_node::make_decl_local): Fix code format.
7640 (symtab_node::set_section_for_node): Fix comment typo.
7642 2017-01-06 Martin Liska <mliska@suse.cz>
7645 * lra-constraints.c: Rename invariant to lra_invariant.
7646 * predict.c (set_even_probabilities): Initialize e to NULL.
7648 2017-01-05 Martin Sebor <msebor@redhat.com>
7650 PR tree-optimization/78910
7651 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7652 (format_integer): Correct off-by-one error in the handling
7653 of precision with negative numbers in signed conversions..
7655 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
7657 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7659 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7661 PR tree-optimization/71016
7662 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7663 factor_out_conditional_conversion. Formatting fix.
7664 (factor_out_conditional_conversion): Add cond_stmt argument.
7665 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7666 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7669 2017-01-05 David Malcolm <dmalcolm@redhat.com>
7671 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7672 read-rtl-function.o, and selftest-rtl.o.
7673 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7674 (selftest::aarch64_test_loading_full_dump): New function.
7675 (selftest::aarch64_run_selftests): New function.
7676 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7677 selftest::aarch64_run_selftests.
7678 * config/i386/i386.c
7679 (selftest::ix86_test_loading_dump_fragment_1): New function.
7680 (selftest::ix86_test_loading_call_insn): New function.
7681 (selftest::ix86_test_loading_full_dump): New function.
7682 (selftest::ix86_test_loading_unspec): New function.
7683 (selftest::ix86_run_selftests): Call the new functions.
7684 * emit-rtl.c (maybe_set_max_label_num): New function.
7685 * emit-rtl.h (maybe_set_max_label_num): New decl.
7686 * function.c (instantiate_decls): Guard call to
7687 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7688 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7690 * gensupport.c (gen_reader::gen_reader): Pass "false"
7691 for new "compact" param of rtx_reader.
7692 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7693 rather than an empty string for NULL strings.
7694 * read-md.c: Potentially include config.h rather than bconfig.h.
7695 Wrap include of errors.h with #ifdef GENERATOR_FILE.
7696 (have_error): New global, copied from errors.c.
7697 (md_reader::read_name): Rename to...
7698 (md_reader::read_name_1): ...this, adding "out_loc" param,
7699 and converting "missing name or number" to returning false, rather
7701 (md_reader::read_name): Reimplement in terms of read_name_1.
7702 (md_reader::read_name_or_nil): New function.
7703 (md_reader::read_string): Handle "(nil)" by returning NULL.
7704 (md_reader::md_reader): Add new param "compact".
7705 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7706 (md_reader::read_file): New method.
7707 * read-md.h (md_reader::md_reader): Add new param "compact".
7708 (md_reader::read_file): New method.
7709 (md_reader::is_compact): New accessor.
7710 (md_reader::read_name): Convert return type from void to file_location.
7711 (md_reader::read_name_or_nil): New decl.
7712 (md_reader::read_name_1): New decl.
7713 (md_reader::m_compact): New field.
7714 (noop_reader::noop_reader): Pass "false" for new "compact" param
7716 (rtx_reader::rtx_reader): Add new "compact" param.
7717 (rtx_reader::read_rtx_operand): Make virtual and convert return
7718 type from void to rtx.
7719 (rtx_reader::read_until): New decl.
7720 (rtx_reader::handle_any_trailing_information): New virtual function.
7721 (rtx_reader::postprocess): New virtual function.
7722 (rtx_reader::finalize_string): New virtual function.
7723 (rtx_reader::m_in_call_function_usage): New field.
7724 (rtx_reader::m_reuse_rtx_by_id): New field.
7725 * read-rtl-function.c: New file.
7726 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7727 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7728 (selftest::verify_three_block_rtl_cfg): New decl.
7729 * read-rtl-function.h: New file.
7730 * read-rtl.c: Potentially include config.h rather than bconfig.h.
7731 For host, include function.h, memmodel.h, and emit-rtl.h.
7732 (one_time_initialization): New function.
7733 (struct compact_insn_name): New struct.
7734 (compact_insn_names): New array.
7735 (find_code): Handle insn codes in compact dumps.
7736 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7737 (bind_subst_iter_and_attr): Likewise.
7738 (add_condition_to_string): Likewise.
7739 (add_condition_to_rtx): Likewise.
7740 (apply_attribute_uses): Likewise.
7741 (add_current_iterators): Likewise.
7742 (apply_iterators): Likewise.
7743 (initialize_iterators): Guard usage of apply_subst_iterator with
7744 #ifdef GENERATOR_FILE.
7745 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7746 (md_reader::read_mapping): Likewise.
7747 (add_define_attr_for_define_subst): Likewise.
7748 (add_define_subst_attr): Likewise.
7749 (read_subst_mapping): Likewise.
7750 (check_code_iterator): Likewise.
7751 (rtx_reader::read_rtx): Likewise. Move one-time initialization
7753 (one_time_initialization): New function.
7754 (rtx_reader::read_until): New method.
7755 (read_flags): New function.
7756 (parse_reg_note_name): New function.
7757 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7758 Handle reuse_rtx ids.
7759 Wrap iterator lookup within #ifdef GENERATOR_FILE.
7760 Add parsing support for RTL dumps, mirroring the special-cases in
7761 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7762 values, and calling handle_any_trailing_information.
7763 (rtx_reader::read_rtx_operand): Convert return type from void
7764 to rtx, returning return_rtx. Handle case 'e'. Call
7765 finalize_string on XSTR and XTMPL fields.
7766 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
7767 "(nil)" values were omitted. Call the postprocess vfunc on the
7769 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7770 class ctor. Initialize m_in_call_function_usage. Call
7771 one_time_initialization.
7772 * rtl-tests.c (selftest::test_uncond_jump): Call
7773 set_new_first_and_last_insn.
7774 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7775 * selftest-rtl.c: New file.
7776 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7777 (selftest::get_insn_by_uid): New decl.
7778 * selftest-run-tests.c (selftest::run_tests): Call
7779 read_rtl_function_c_tests.
7780 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
7781 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7784 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
7786 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7787 operands in a special way. Assert that pos+len <= mode precision.
7789 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7791 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7792 3 argument Alias with unlimited for the negative form.
7793 (fno-vect-cost-model): Removed.
7795 2017-01-05 Martin Liska <mliska@suse.cz>
7797 * hsa-gen.c (gen_hsa_divmod): New function.
7798 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7800 2017-01-05 Martin Liska <mliska@suse.cz>
7803 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7806 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7808 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7809 small constant length operands.
7811 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7813 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7814 between loop iterations.
7816 2017-01-05 Martin Liska <mliska@suse.cz>
7819 * gimplify.c (gimplify_decl_expr): Compare to
7820 asan_poisoned_variables instread of checking flags.
7821 (gimplify_target_expr): Likewise.
7822 (gimplify_expr): Likewise.
7823 (gimplify_function_tree): Conditionally initialize
7824 asan_poisoned_variables.
7826 2017-01-04 Jeff Law <law@redhat.com>
7828 PR tree-optimizatin/78812
7829 * rtl.h (contains_mem_rtx_p): Prototype.
7830 * ifcvt.c (containts_mem_rtx_p): Move from here to...
7831 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7832 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7833 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
7834 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7836 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7838 * input.c (assert_char_at_range): Default-initialize actual_range.
7840 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7842 * df-scan.c (df_ref_create_structure): Make regno unsigned,
7843 to match the caller.
7845 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7847 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7848 insns after final jump in test to emit dummy move.
7850 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7852 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7853 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7855 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7857 * multiple_target.c (create_dispatcher_calls): Init e_next.
7858 * tree-ssa-loop-split.c (split_loop): Init border.
7859 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7862 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7867 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7868 (altivec_register_operand): Do not return true if the operand
7869 contains a SUBREG mixing SImode and SFmode.
7870 (vsx_register_operand): Likewise.
7871 (vsx_reg_sfsubreg_ok): New predicate.
7872 (vfloat_operand): Do not return true if the operand contains a
7873 SUBREG mixing SImode and SFmode.
7874 (vint_operand): Likewise.
7875 (vlogical_operand): Likewise.
7876 (gpc_reg_operand): Likewise.
7877 (int_reg_operand): Likewise.
7878 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7879 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7880 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7882 (rs6000_emit_move_si_sf_subreg): New helper function.
7883 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7884 fixup SUBREGs involving SImode and SFmode.
7885 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7886 numbers for the new peephole2 optimization.
7887 (peephole2 for SFmode unions): New peephole2 to optimize cases in
7888 the GLIBC math library that do AND/IOR/XOR operations on single
7889 precision floating point.
7890 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7891 target macros to say whether we need to avoid SUBREGs mixing
7893 (TARGET_ALLOW_SF_SUBREG): Likewise.
7894 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7895 (UNSPEC_SI_FROM_SF): Likewise.
7896 (iorxor): Change spacing.
7897 (and_ior_xor): New iterator for AND, IOR, and XOR.
7898 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7899 (movdi_from_sf_zero_ext): Likewise.
7900 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7901 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
7902 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7903 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7904 (fms<mode>4): Likewise.
7905 (fnma<mode>4): Likewise.
7906 (fnms<mode>4): Likewise.
7907 (nfma<mode>4): Likewise.
7908 (nfms<mode>4): Likewise.
7910 2017-01-04 Marek Polacek <polacek@redhat.com>
7913 * doc/invoke.texi: Document -Wpointer-compare.
7915 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7917 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7920 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7921 descriptions for -gdwarf-5 and emit them as uleb128 instead of
7924 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
7927 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7928 documentation of the powerpc_popcntb_ok attribute.
7929 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7930 code to issue warning messages if a requested CPU configuration is
7931 not supported by the binary (assembler and loader) toolchain.
7932 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7933 made to define a built-in function that has been disabled.
7934 (paired_init_builtins): Add assertion to prevent ICE if attempt is
7935 made to define a built-in function that has been disabled.
7936 (altivec_init_builtins): Add comment explaining why definition
7937 of the DST built-in functions is not preceded by an assertion
7938 check. Add assertions to prevent ICE if attempts are made to
7939 define an altivec predicate or an abs* built-in function that has
7941 (htm_init_builtins): Add comment explaining why definition of the
7942 htm built-in functions is not preceded by an assertion check.
7944 2017-01-04 Jeff Law <law@redhat.com>
7946 PR tree-optimizatin/67955
7947 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
7948 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
7949 the points-to solution does not include pt_null. Use DECL_PT_UID
7952 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
7954 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
7955 Use gen_int_mode instead of gen_lopwart for const_int operands.
7957 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7959 PR tree-optimization/71563
7960 * match.pd: Simplify X << Y into X if Y is known to be 0 or
7961 out of range value - has low bits known to be zero.
7963 2017-01-04 Alan Modra <amodra@gmail.com>
7965 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
7966 * configure: Regenerate.
7967 * config.in: Regenerate.
7969 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7972 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
7973 a substring of the message, but strcmp with the whole message. Ifdef
7974 ENABLE_NLS, translate the message first using dgettext.
7976 2017-01-03 Jeff Law <law@redhat.com>
7978 PR tree-optimizatin/78856
7979 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
7980 (mark_threaded_blocks): Remove code to truncate thread paths that
7981 cross multiple loop headers. Instead invalidate the cached loop
7982 iteration information and handle case of a thread path walking
7983 into an irreducible region.
7985 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7988 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
7989 assertions. Add support for doing the signbit if the IEEE 128-bit
7990 floating point value is in a GPR.
7991 * config/rs6000/rs6000.md (Fsignbit): Delete.
7992 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
7993 Update the length attribute if the value is in a GPR.
7994 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
7995 the sign or zero extension instruction, since the value is always 0/1.
7996 (signbit<mode>2_dm2): Delete using <Fsignbit>.
7999 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
8000 extracting SImode to a GPR register so that we can generate a
8001 store, limit the vector to be in a traditional Altivec register
8002 for the vextuwrx instruction.
8004 2017-01-03 Ian Lance Taylor <iant@google.com>
8006 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
8008 2017-01-03 Martin Sebor <msebor@redhat.com>
8010 PR tree-optimization/78696
8011 * gimple-ssa-sprintf.c (format_floating): Correct handling of
8012 precision. Use MPFR for %f for greater fidelity. Correct handling
8014 (pass_sprintf_length::compute_format_length): Set width and precision
8015 specified by asrerisk to void_node for vararg functions.
8016 (try_substitute_return_value): Adjust dump output.
8018 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
8020 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
8022 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
8024 * doc/invoke.texi (SPARC options): Document -mlra as the default.
8025 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
8026 -mlra/-mno-lra was passed to the compiler.
8028 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
8030 PR rtl-optimization/65618
8031 * emit-rtl.c (try_split): Move initialization of "before" and
8032 "after" to just before the call to emit_insn_after_setloc.
8034 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
8036 * doc/md.texi (Standard Names): Remove reference to Java frontend.
8038 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
8040 * dwarf2out.c (gen_enumeration_type_die): When
8041 -gno-strict-dwarf, add a DW_AT_encoding attribute.
8043 2017-01-03 Jakub Jelinek <jakub@redhat.com>
8045 PR tree-optimization/78965
8046 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
8047 Change first argument from const call_info & to call_info &. For %n
8048 set info.nowrite to false.
8051 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
8052 possibly throwing calls.
8054 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
8055 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
8056 and fns handling, rather than in a separate case SSA_NAME.
8058 2017-01-02 Jeff Law <law@redhat.com>
8060 * config/darwin-driver.c (darwin_driver_init): Const-correctness
8061 fixes for first_period and second_period variables.
8063 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
8066 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
8067 (*insvqi_1): New insn pattern.
8068 (*insvqi_1_mem_rex64): Ditto.
8070 (*insvqi_3): Rename from *insvqi.
8072 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
8074 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8076 * doc/cfg.texi (Edges): Remove reference to Java.
8077 (Maintaining the CFG): Ditto.
8079 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
8082 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
8083 transparent aliases.
8085 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
8088 * predict.def (PRED_CALL): Update hitrate.
8089 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
8090 * predict.c (tree_estimate_probability_bb): Split CALL predictor
8091 into direct/indirect/polymorphic variants.
8093 2017-01-01 Jakub Jelinek <jakub@redhat.com>
8095 Update copyright years.
8097 * gcc.c (process_command): Update copyright notice dates.
8098 * gcov-dump.c (print_version): Ditto.
8099 * gcov.c (print_version): Ditto.
8100 * gcov-tool.c (print_version): Ditto.
8101 * gengtype.c (create_file): Ditto.
8102 * doc/cpp.texi: Bump @copying's copyright year.
8103 * doc/cppinternals.texi: Ditto.
8104 * doc/gcc.texi: Ditto.
8105 * doc/gccint.texi: Ditto.
8106 * doc/gcov.texi: Ditto.
8107 * doc/install.texi: Ditto.
8108 * doc/invoke.texi: Ditto.
8110 Copyright (C) 2017 Free Software Foundation, Inc.
8112 Copying and distribution of this file, with or without modification,
8113 are permitted in any medium without royalty provided the copyright
8114 notice and this notice are preserved.