1 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
4 * config/avr/avr.c (tree.h): Include it.
5 (cgraph.h): Include it.
6 (avr_encode_section_info): Don't warn for uninitialized progmem
7 variable if it's just an alias.
9 2017-04-19 Richard Biener <rguenther@suse.de>
12 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
13 when needed by AutoPGO.
15 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
18 * doc/lto.texi: Remove an extra 'that'.
20 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
22 PR rtl-optimization/80429
23 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
24 are only used in debug insns.
26 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
27 Vladimir Makarov <vmakarov@redhat.com>
29 * config/sparc/predicates.md (input_operand): Add comment. Return
30 true for any memory operand when LRA is in progress.
31 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
33 2017-04-18 Jeff Law <law@redhat.com>
36 * mips.md ({return,simple_return}_internal): Do not overwrite
39 2017-04-18 Jakub Jelinek <jakub@redhat.com>
41 PR tree-optimization/80443
42 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
43 instead of adding 1, subtract -1 and similarly instead of subtracting
46 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
48 PR rtl-optimization/80357
49 * haifa-sched.c (tmp_bitmap): New variable.
50 (model_recompute): Handle duplicate use records.
51 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
52 (free_global_sched_pressure_data): Free it.
54 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
57 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
58 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
59 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
60 instead of SYSTEM_HEADER_DIR.
62 2017-04-18 Jeff Law <law@redhat.com>
65 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
66 predecessors after walking up the insn chain.
68 2017-04-18 Jakub Jelinek <jakub@redhat.com>
71 * dwarf2out.c (modified_type_die): Try harder not to emit internal
72 sizetype type into debug info.
74 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
77 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
78 unneeded test for TARGET_UPPER_REGS_SF.
79 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
81 2017-04-18 Jakub Jelinek <jakub@redhat.com>
84 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
85 instead of gsi_after_labels.
87 2017-04-18 Jeff Law <law@redhat.com>
89 * regcprop.c (maybe_mode_change): Avoid creating copies of the
93 2017-04-13 Jeff Law <law@redhat.com>
94 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
95 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
97 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
100 * config/avr/avr.c (intl.h): Include it.
101 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
103 2017-04-18 Martin Liska <mliska@suse.cz>
105 PR gcov-profile/78783
106 * gcov-tool.c (gcov_output_files): Validate that destination
107 file is either removed by the tool or by a user.
109 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
110 Guy Benyei <guybe@mellanox.com>
112 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
113 block, and do not negate it, the stored id is already negative.
115 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
117 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
119 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
122 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
123 masks of options that should be turned off if the VSX vector
124 options are turned off.
125 (OTHER_P8_VECTOR_MASKS): Likewise.
126 (OTHER_VSX_VECTOR_MASKS): Likewise.
127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
128 rs6000_disable_incompatible_switches to validate no type switches
130 (rs6000_incompatible_switch): New function to disallow turning on
131 other vector options if -mno-vsx, -mno-power8-vector, or
132 -mno-power9-vector are specified.
134 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
136 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
138 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
140 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
141 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
142 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
143 (ARG_POINTER_CFA_OFFSET): Likewise.
145 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
147 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
148 conditions to take advantage of various optimizations.
150 2017-04-13 Jeff Law <law@redhat.com>
152 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
153 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
154 (zero_extendsidi2_dext): Likewise.
156 2017-04-13 Jakub Jelinek <jakub@redhat.com>
159 * fold-const.c (fold_ternary_loc): Revert
160 use op0 instead of fold_convert_loc (loc, type, arg0) part of
163 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
165 PR rtl-optimization/80343
166 * lra-remat.c (update_scratch_ops): Assign original hard reg to
169 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
172 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
173 to ubsan_encode_value.
175 2017-04-13 Jeff Law <law@redhat.com>
177 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
178 appearing in DEBUG_INSNs.
180 2017-04-13 Martin Liska <mliska@suse.cz>
182 PR gcov-profile/80413
183 * gcov-io.c (gcov_write_string): Copy to buffer just when
184 allocated size is greater than zero.
186 2017-04-13 Jakub Jelinek <jakub@redhat.com>
189 * dwarf2out.c (decls_for_scope): Ignore declarations of
190 current_function_decl in BLOCK_NONLOCALIZED_VARS.
192 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
195 * ipa-visibility.c (non_local_p): Fix typos.
196 (localize_node): When localizing symbol in same comdat group,
197 dissolve the group only when we know external symbols are going
199 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
201 2017-04-12 Jakub Jelinek <jakub@redhat.com>
203 PR tree-optimization/79390
204 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
205 order does not result in usable sequence, retry with reversed operand
211 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
212 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
213 op0 instead of fold_convert_loc (loc, type, arg0).
215 2017-04-12 Jeff Law <law@redhat.com>
217 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
218 has a delay slot in the generated code.
220 * config/cris/cris.md (cris_preferred_reload_class): Return
221 GENNONACR_REGS rather than GENERAL_REGS.
223 2017-04-12 Jakub Jelinek <jakub@redhat.com>
226 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
227 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
228 signedness of the result type.
230 2017-04-12 Richard Biener <rguenther@suse.de>
231 Jeff Law <law@redhat.com>
233 PR tree-optimization/80359
234 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
235 trim stores to TARGET_MEM_REFs.
237 2017-04-12 Richard Biener <rguenther@suse.de>
239 PR tree-optimization/79390
240 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
241 threading case even more.
243 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
246 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
247 for quad_address_p for TImode, instead of just not indexed_address.
249 2017-04-12 Richard Biener <rguenther@suse.de>
250 Bernd Edlinger <bernd.edlinger@hotmail.de>
253 * alias.c (component_uses_parent_alias_set_from): Handle
254 TYPE_TYPELESS_STORAGE.
255 (get_alias_set): Likewise.
256 * tree-core.h (tree_type_common): Add typeless_storage flag.
257 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
258 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
259 for types containing members with TYPE_TYPELESS_STORAGE.
260 (place_field): Likewise.
261 (layout_type): Likewise for ARRAY_TYPE.
262 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
263 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
264 TYPE_TYPELESS_STORAGE.
265 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
267 2017-04-12 Jakub Jelinek <jakub@redhat.com>
270 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
271 first argument to type.
273 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
277 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
278 CONST0_RTX (mode) rather than const0_rtx where appropriate.
279 (rs6000_expand_binop_builtin): Likewise.
280 (rs6000_expand_ternop_builtin): Likewise; also add missing
281 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
283 * doc/extend.texi: Document that vec_xxpermdi's third argument
286 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
288 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
289 Use shift_const cost parameter when calculating gain of STV shifts.
291 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
293 PR rtl-optimization/70478
294 * lra-constraints.c (process_alt_operands): Check memory for
295 disfavoring memory insn operand.
297 2017-04-11 Jakub Jelinek <jakub@redhat.com>
300 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
301 left shift in unsigned HOST_WIDE_INT type.
303 PR rtl-optimization/80385
304 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
305 (not (neg X)) into (plus X -1) for complex or non-integral modes.
308 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
309 if they have any depend clauses.
311 2017-04-11 Martin Liska <mliska@suse.cz>
314 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
315 * ipa-split.c (split_function): Create a local comdat symbol
316 if caller is in a comdat group.
318 2017-04-11 Martin Liska <mliska@suse.cz>
321 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
324 2017-04-11 Martin Sebor <msebor@redhat.com>
327 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
328 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
330 (directive::set_width, directive::set_precision, format_character):
332 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
335 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
338 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
339 conflict, set target->arch_name instead of target->cpu_name.
341 2017-04-11 Richard Biener <rguenther@suse.de>
343 PR tree-optimization/80374
344 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
345 build_zero_cst, remove fold_convertible_p check again.
347 2017-04-11 Martin Liska <mliska@suse.cz>
350 * ubsan.c (instrument_object_size): Do not instrument register
353 2017-04-11 Jakub Jelinek <jakub@redhat.com>
356 * config/i386/i386-builtin-types.def
357 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
358 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
359 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
360 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
361 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
362 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
363 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
364 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
365 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
366 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
367 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
368 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
369 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
370 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
371 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
372 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
373 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
374 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
375 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
376 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
377 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
378 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
379 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
380 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
381 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
382 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
383 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
384 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
385 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
386 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
387 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
388 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
389 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
390 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
391 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
392 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
393 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
394 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
395 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
396 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
397 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
398 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
399 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
400 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
401 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
402 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
404 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
405 flag to second_arg_count, handle 4 argument function type _COUNT
406 aliases, handle second_arg_count on second argument rather than last.
408 2017-04-10 Jeff Law <law@redhat.com>
410 PR tree-optimization/80374
411 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
412 record anything if we can not convert integer_zero_node to the
415 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
418 * config/rs6000/rs6000.c (rs6000_option_override_internal):
419 Enhance special handling given to the TARGET_P9_MINMAX option in
420 relation to certain other options.
422 2017-04-10 Bin Cheng <bin.cheng@arm.com>
424 PR tree-optimization/80153
425 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
426 remove POINTER_PLUS_EXPR's base part directly, rather than through
429 2017-04-10 Richard Biener <rguenther@suse.de>
430 Bin Cheng <bin.cheng@arm.com>
432 PR tree-optimization/80153
433 * tree-affine.c (aff_combination_to_tree): Get base pointer from
434 the first element of pointer type aff_tree. Build result expr in
436 (add_elt_to_tree): Convert to type unconditionally. Remove other
438 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
439 (rewrite_use_nonlinear_expr): Check invariant using iv information.
441 2017-04-10 Richard Biener <rguenther@suse.de>
443 * tree-ssa-structalias.c (find_func_aliases): Properly handle
446 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
448 PR rtl-optimization/70478
449 * lra-constraints.c (curr_small_class_check): New.
450 (update_and_check_small_class_inputs): New.
451 (process_alt_operands): Update curr_small_class_check. Disfavor
452 alternative insn memory operands. Check available regs for small
455 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
458 * config/mips/mips.opt (-mvirt): Update description.
459 * doc/invoke.texi (-mvirt): Likewise.
461 2017-04-10 Richard Biener <rguenther@suse.de>
464 * fold-const.c (fold_binary_loc): Look at unstripped ops when
465 looking for NEGATE_EXPR in -A / -B to A / B folding.
467 2017-04-10 Martin Liska <mliska@suse.cz>
469 PR gcov-profile/80224
470 * gcov.c (print_usage): Fix usage string.
471 (get_gcov_intermediate_filename): Remove.
472 (output_gcov_file): Use both for normal and intermediate format.
473 (generate_results): Do not initialize special file for
476 2017-04-10 Richard Biener <rguenther@suse.de>
478 PR tree-optimization/80304
479 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
482 2017-04-10 Nathan Sidwell <nathan@acm.org>
485 * config/rs6000/rs6000.c (rs6000_vector_type): New.
486 (rs6000_init_builtins): Use it.
488 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
490 * config/arm/arm.md (<mrc>): Add mode to SET source.
493 2017-04-10 Richard Biener <rguenther@suse.de>
496 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
498 2017-04-10 Jakub Jelinek <jakub@redhat.com>
501 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
502 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
503 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
504 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
505 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
506 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
507 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
508 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
509 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
510 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
511 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
512 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
513 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
514 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
515 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
516 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
517 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
518 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
519 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
520 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
521 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
522 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
523 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
525 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
527 PR rtl-optimization/70478
528 * lra-constraints.c: Reverse the last patch.
530 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
532 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
533 Add comment for WCHAR_T.
535 2017-04-08 Martin Liska <mliska@suse.cz>
538 2017-04-07 Martin Liska <mliska@suse.cz>
541 * ipa-split.c (split_function): Add function part to a same comdat
544 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
547 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
549 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
551 * rs6000/rs6000.c (vec_load_pendulum): Rename...
552 (vec_pairing): ...to this.
553 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
554 (rs6000_sched_init): Adjust for name change.
555 (struct rs6000_sched_context): Likewise.
556 (rs6000_init_sched_context): Likewise.
557 (rs6000_set_sched_context): Likewise.
559 2017-04-07 Jakub Jelinek <jakub@redhat.com>
565 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
567 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
568 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
569 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
571 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
573 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
575 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
577 PR rtl-optimization/70703
578 * ira-color.c (update_conflict_hard_regno_costs): Use
579 int64_t instead of HOST_WIDE_INT.
581 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
583 PR rtl-optimization/70478
584 * lra-constraints.c (process_alt_operands): Disfavor alternative
585 insn memory operands.
587 2017-04-07 Jeff Law <law@redhat.com>
589 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
590 CALL and NOTE_INSN_CALL_ARG_LOCATION.
592 2017-04-07 Martin Liska <mliska@suse.cz>
595 * config/aarch64/aarch64.c (aarch64_process_target_attr):
596 Show error message instead of an ICE.
598 2017-04-07 Martin Liska <mliska@suse.cz>
601 * ipa-split.c (split_function): Add function part to a same comdat
604 2017-04-07 Richard Biener <rguenther@suse.de>
607 * tree.c (get_unwidened): Also handle ! for_type case for
609 * convert.c (do_narrow): Split out from ...
610 (convert_to_integer_1): ... here. Do not pass final truncation
611 type to get_unwidened for TRUNC_DIV_EXPR.
613 2017-04-07 Richard Biener <rguenther@suse.de>
615 * tree-affine.c (wide_int_ext_for_comb): Take type rather
617 (aff_combination_const): Adjust.
618 (aff_combination_scale): Likewise.
619 (aff_combination_add_elt): Likewise.
620 (aff_combination_add_cst): Likewise.
621 (aff_combination_convert): Likewise.
622 (add_elt_to_tree): Likewise. Remove unused argument.
623 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
625 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
627 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
629 * config/arm/arm.c (arm_default_short_enums): Use
630 ARM_DEFAULT_SHORT_ENUMS.
631 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
633 2017-04-06 Jakub Jelinek <jakub@redhat.com>
636 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
637 members with redundant out-of-class redeclaration.
639 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
642 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
643 * config/i386/i386.md (*zero_extendsidi2):
644 Add (?*x,*x) and (?*v,*v) alternatives.
646 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
649 * config/i386/i386.c (ix86_expand_builtin)
650 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
651 mode from insn data. Convert operands to insn operand mode.
652 Copy operands that don't satisfy insn predicate to a register.
654 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
656 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
659 2017-04-06 Richard Biener <rguenther@suse.de>
661 PR tree-optimization/80334
662 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
663 preserve alignment of accesses.
665 2017-04-06 Richard Biener <rguenther@suse.de>
667 PR tree-optimization/80262
668 * tree-sra.c (build_ref_for_offset): Preserve address-space
670 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
671 Drop useless address-space information on MEM_REF offsets.
673 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
675 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
677 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
679 PR rtl-optimization/70703
680 * ira-color.c (update_conflict_hard_regno_costs): Use
681 HOST_WIDE_INT instead of long.
683 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
686 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
687 not defined for x86_64 target. Add -mmmx target option when __SSE2__
689 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
690 for x86_64 target. Handle -m3dnowa option.
692 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
694 PR rtl-optimization/70703
695 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
696 (update_conflict_hard_regno_costs): Use long instead of unsigned
697 arithmetic for cost calculation.
699 2017-04-05 Jakub Jelinek <jakub@redhat.com>
700 Bernd Edlinger <bernd.edlinger@hotmail.de>
703 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
706 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
709 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
710 ptr_mode with Pmode throughout.
711 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
712 into probe_stack_range and use DImode.
714 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
717 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
718 call_eh_return is true.
720 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
722 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
723 Initialize last_match_fntype_index.
725 2017-04-05 Jakub Jelinek <jakub@redhat.com>
728 * tree-nvr.c: Include internal-fn.h.
729 (pass_return_slot::execute): Ignore internal calls without
732 2017-04-04 Jakub Jelinek <jakub@redhat.com>
733 Richard Biener <rguenther@suse.de>
736 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
737 captures used multiple times, except for the last use.
738 * generic-match-head.c: Include gimplify.h.
740 2017-04-04 Jakub Jelinek <jakub@redhat.com>
742 PR tree-optimization/79390
743 * target.h (struct noce_if_info): Declare.
744 * targhooks.h (default_noce_conversion_profitable_p): Declare.
745 * target.def (noce_conversion_profitable_p): New target hook.
746 * ifcvt.h (struct noce_if_info): New type, moved from ...
747 * ifcvt.c (struct noce_if_info): ... here.
748 (noce_conversion_profitable_p): Renamed to ...
749 (default_noce_conversion_profitable_p): ... this. No longer
751 (noce_try_store_flag_constants, noce_try_addcc,
752 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
753 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
754 instead of noce_conversion_profitable_p.
755 * config/i386/i386.c: Include ifcvt.h.
756 (ix86_option_override_internal): Don't override
757 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
758 (ix86_noce_conversion_profitable_p): New function.
759 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
760 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
761 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
762 * doc/tm.texi: Regenerated.
764 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
766 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
769 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
772 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
773 instructions for small multiply cores.
775 2017-04-04 Jeff Law <law@redhat.com>
777 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
779 (mips_expand_vec_perm_const): Initialize elements in orig_perm
780 that are not set by the loop over the elements.
782 2017-04-04 Jakub Jelinek <jakub@redhat.com>
785 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
786 int mode, convert_modes it to mode as unsigned, otherwise use
787 lowpart_subreg to mode rather than SImode.
788 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
789 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
790 Use DImode instead of SImode for the shift count operand.
791 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
794 2017-04-04 Richard Biener <rguenther@suse.de>
797 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
798 arithmetic done for the negate or the plus. Simplify.
799 (A - (-B) -> A + B): Likewise.
800 * fold-const.c (split_tree): Make sure to not negate pointers.
802 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
804 PR rtl-optimization/60818
805 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
806 a compare of comparisons with the thing compared if this results
807 in a different machine mode.
809 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
811 * alias.c (base_alias_check): Fix typo in comment.
812 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
813 * cgraphunit.c (symbol_table::compile): Likewise.
814 * collect2.c (maybe_run_lto_and_relink): Likewise.
815 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
816 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
817 * config/avr/avr.c (avr_map_op_t): Likewise.
818 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
819 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
820 * config/epiphany/epiphany.md (movcc): Likewise.
821 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
822 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
824 * config/mips/mips.c (mips_save_restore_reg): Likewise.
825 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
826 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
827 * config/sh/sh.c (sh_rtx_costs): Likewise.
828 * fold-const.c (fold_truth_andor): Likewise.
829 * genautomata.c (collapse_flag): Likewise.
830 * gengtype.h (struct type::u::s): Likewise.
831 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
832 * input.c (FORMAT_AMOUNT): Likewise.
833 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
834 (known_aggs_to_agg_replacement_list): Likewise.
835 * ipa-inline-analysis.c: Likewise.
836 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
837 * ipa-polymorphic-call.c
838 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
839 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
840 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
842 * modulo-sched.c (apply_reg_moves): Likewise.
843 * omp-expand.c (build_omp_regions_1): Likewise.
844 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
845 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
846 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
847 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
848 * value-prof.c: Likewise.
849 * var-tracking.c (val_reset): Likewise.
851 2017-04-03 Richard Biener <rguenther@suse.de>
853 PR tree-optimization/80275
854 * fold-const.c (split_address_to_core_and_offset): Handle
857 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
859 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
860 descriptors is at least equal to that of functions.
862 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
864 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
866 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
869 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
870 (mov<IMOD4:mode>): New expander.
871 (*mov<IMOD4:mode>_internal): New insn and split pattern.
873 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
875 PR rtl-optimization/79405
876 * fwprop.c (propagations_left): New variable.
877 (forward_propagate_into): Decrement it.
878 (fwprop_init): Initialize it.
879 (fw_prop): If the variable has reached zero, stop propagating.
880 (fwprop_addr): Ditto.
882 2017-03-31 Jakub Jelinek <jakub@redhat.com>
885 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
886 a FUNCTION_DECL, pass it as decl instead of origin to
889 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
891 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
894 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
897 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
898 TARGET_VSX_SMALL_INTEGER.
900 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
902 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
903 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
905 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
907 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
908 extraction from odd-numbered MSA register.
910 2017-03-31 Jakub Jelinek <jakub@redhat.com>
913 * expmed.c (store_bit_field_1): Don't attempt to create
914 a word subreg out of hard registers wider than word if they
915 have HARD_REGNO_NREGS of 1 for their mode.
918 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
919 conversions to integer types wider than word and pointer.
922 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
923 (rtx_equal_for_cselib_p): Pass 0 to it.
924 * cselib.c (cselib_hasher::equal): Likewise.
925 (rtx_equal_for_cselib_1): Add depth argument. If depth
926 is 128, don't look up VALUE locs and punt. Increment
927 depth in recursive calls when walking VALUE locs.
929 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
931 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
932 (make_gcov_file_name): Use the canonical path name for generating
934 (read_line): Fix handling of files with ascii null bytes.
936 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
938 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
939 to initialise a vector register instead
940 of using a const_int.
942 2017-03-30 Jakub Jelinek <jakub@redhat.com>
945 * gimplify.c (omp_default_clause): Use %qs instead of %s in
948 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
951 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
952 (dfp_diex_<mode>): Update mode of operand 1.
953 * doc/extend.texi (dxex, dxexq): Document change to return type.
954 (diex, diexq): Document change to argument type.
956 2017-03-30 Martin Jambor <mjambor@suse.cz>
959 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
960 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
961 it reflects the signature changes performed at the callee side.
962 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
963 to cgraph_build_function_type_skip_args.
964 (build_function_decl_skip_args): Adjust call to the above function.
966 2017-03-30 Jakub Jelinek <jakub@redhat.com>
970 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
971 register as dest whenever it is a MEM not rtx_equal_p to the
972 corresponding dup operand, and when forcing into reg move the
973 reg into the memory afterwards.
974 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
975 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
976 for the force_reg mode.
977 (avx512vl_vextractf128<mode>): Use register as dest either
978 always when a MEM, or when it is a MEM not rtx_equal_p to the
979 corresponding dup operand, or even not when it is a CONST_VECTOR
980 depending on the mode and lo vs. hi.
981 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
983 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
984 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
985 Likewise. Require that operands[2] is even.
986 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
987 Remove extraneous parens. Require that operands[2] is a multiple
989 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
990 operands[0] is a MEM if <mask_applied>, the predicates/constraints
991 disallow memory then.
993 2017-03-30 Richard Biener <rguenther@suse.de>
995 PR tree-optimization/77498
996 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
997 to non-constants over backedges.
999 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
1001 PR rtl-optimization/80233
1002 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
1003 as last_combined_insn. Do not test for BARRIER_P separately.
1005 2017-03-29 Andreas Schwab <schwab@suse.de>
1008 * calls.c (prepare_call_address): Convert funexp to Pmode before
1009 copying to temp reg.
1011 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1013 PR tree-optimization/80158
1014 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
1015 Handle possible future case of more than one alternate
1017 (replace_rhs_if_not_dup): Likewise.
1018 (replace_one_candidate): Likewise.
1020 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
1022 PR rtl-optimization/80193
1023 * ira.c (ira): Do not check allocation for LRA.
1025 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
1027 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
1028 (nvptx_output_simt_exit): Declare.
1029 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
1030 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
1031 (init_softstack_frame): Move initialization of crtl->is_leaf to...
1032 (nvptx_declare_function_name): ...here. Emit declaration of local
1033 memory space buffer for omp_simt_enter insn.
1034 (nvptx_output_unisimt_switch): New.
1035 (nvptx_output_softstack_switch): New.
1036 (nvptx_output_simt_enter): New.
1037 (nvptx_output_simt_exit): New.
1038 * config/nvptx/nvptx.h (struct machine_function): New fields
1039 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
1040 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
1041 (UNSPECV_SIMT_EXIT): Ditto.
1042 (omp_simt_enter_insn): New insn.
1043 (omp_simt_enter): New expansion.
1044 (omp_simt_exit): New insn.
1045 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
1047 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
1048 (expand_GOMP_SIMT_ENTER_ALLOC): New.
1049 (expand_GOMP_SIMT_EXIT): New.
1050 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
1051 (GOMP_SIMT_ENTER_ALLOC): Ditto.
1052 (GOMP_SIMT_EXIT): Ditto.
1053 * target-insns.def (omp_simt_enter): New insn.
1054 (omp_simt_exit): Ditto.
1055 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
1057 (lower_rec_simd_input_clauses): Implement SIMT privatization.
1058 (lower_rec_input_clauses): Likewise.
1059 (lower_lastprivate_clauses): Handle SIMT privatization.
1061 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
1062 (ompdevlow_adjust_simt_enter): New.
1063 (find_simtpriv_var_op): New.
1064 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
1065 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
1067 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
1068 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
1069 (copy_decl_for_dup_finish): Ditto.
1071 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
1073 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
1076 * config/i386/i386.c (ix86_option_override_internal): Always
1077 allow -mpreferred-stack-boundary=3 for 64-bit targets.
1079 2017-03-28 Bin Cheng <bin.cheng@arm.com>
1081 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
1083 2017-03-28 Bin Cheng <bin.cheng@arm.com>
1085 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
1086 mark new edge's irreducible flag accordign to it.
1087 (vect_do_peeling): Check loop preheader edge's irreducible flag
1088 and pass it to function slpeel_add_loop_guard.
1090 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
1092 PR tree-optimization/80218
1093 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1094 Update block frequencies and counts.
1096 2017-03-28 Richard Biener <rguenther@suse.de>
1098 PR tree-optimization/78644
1099 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
1100 of a simplification result we may not use it at all.
1102 2017-03-28 Richard Biener <rguenther@suse.de>
1105 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
1106 without arguments, generate default definition of a SSA name.
1108 2017-03-28 Richard Biener <rguenther@suse.de>
1111 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
1112 TYPE_REF_CAN_ALIAS_ALL references.
1113 * fold-const.c (fold_indirect_ref_1): Likewise.
1115 2017-03-28 Martin Liska <mliska@suse.cz>
1118 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
1119 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
1121 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
1122 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
1124 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
1125 (EXTRA_SPECS): Define.
1126 (SUBTARGET_EXTRA_SPECS): Likewise.
1127 (SUBTARGET_CPP_SPEC): Likewise.
1128 * config/arc/elf.h (EXTRA_SPECS): Renamed to
1129 SUBTARGET_EXTRA_SPECS.
1130 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
1132 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
1134 * config/arc/simdext.md (vst64_insn): Update pattern.
1135 (vld32wh_insn): Likewise.
1136 (vld32wl_insn): Likewise.
1137 (vld64_insn): Likewise.
1138 (vld32_insn): Likewise.
1140 2017-03-28 Marek Polacek <polacek@redhat.com>
1143 * fold-const.c (fold_comparison): Use protected_set_expr_location
1144 instead of SET_EXPR_LOCATION.
1146 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1148 * tree.c (add_expr): Avoid name lookup warning.
1150 2017-03-27 Jeff Law <law@redhat.com>
1152 PR tree-optimization/80216
1153 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
1154 function name. Limit recursion depth.
1155 (record_temporary_equivalences): Corresponding changes.
1157 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
1159 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
1162 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1165 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
1167 * cfgcleanup.c (reg_note_cfa_p): New array.
1168 (insns_have_identical_cfa_notes): New function.
1169 (old_insns_match_p): Don't cross-jump in between /f
1170 and non-/f instructions. If both i1 and i2 are frame related,
1171 verify all CFA notes, their order and content.
1173 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1176 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
1177 HImode and SImode with zero extend to DImode to one insn.
1178 (bswap<mode>2_extenddi): Likewise.
1179 (bswapsi2_extenddi): Likewise.
1180 (bswaphi2_extendsi): Likewise.
1181 (bswaphi2): Combine bswap HImode and SImode into one insn.
1182 Separate memory insns from swapping register.
1183 (bswapsi2): Likewise.
1184 (bswap<mode>2): Likewise.
1185 (bswaphi2_internal): Delete, no longer used.
1186 (bswapsi2_internal): Likewise.
1187 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
1188 store, and gpr<-gpr swap insns.
1189 (bswap<mode>2_store): Likewise.
1190 (bswaphi2_reg): Register only splitter, combine with the splitter.
1191 (bswaphi2 splitter): Likewise.
1192 (bswapsi2_reg): Likewise.
1193 (bswapsi2 splitter): Likewise.
1194 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
1195 the insns into load, store, and register/register insns.
1196 (bswapdi2_ldbrx): Likewise.
1197 (bswapdi2_load): Likewise.
1198 (bswapdi2_store): Likewise.
1199 (bswapdi2_reg): Likewise.
1201 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
1203 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
1204 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
1206 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
1209 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
1211 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1212 special handling for target option conflicts between dform
1213 options (-mpower9-dform, -mpower9-dform-vector,
1214 -mpower9-dform-scalar) and -mno-direct-move.
1216 2017-03-27 Richard Biener <rguenther@suse.de>
1218 PR tree-optimization/80181
1219 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
1221 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1223 * config/arc/predicates.md (move_double_src_operand): Replace the
1224 call to move_double_src_operand with a call to address_operand.
1226 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1228 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
1229 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
1230 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
1232 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1234 * config/arc/predicates.md (long_immediate_loadstore_operand):
1235 Consider scaled addresses cases.
1237 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
1239 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
1240 restored when in interrupt.
1241 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
1242 doesn't have delay slot.
1244 2017-03-27 Richard Biener <rguenther@suse.de>
1247 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
1248 inlined thunk clones.
1250 2017-03-27 Jakub Jelinek <jakub@redhat.com>
1253 * asan.c (instrument_derefs): Copy over last operand from
1254 original COMPONENT_REF to the new COMPONENT_REF with
1255 DECL_BIT_FIELD_REPRESENTATIVE.
1256 * ubsan.c (instrument_object_size): Likewise.
1258 2017-03-27 Richard Biener <rguenther@suse.de>
1260 PR tree-optimization/80170
1261 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
1262 sure DR/SCEV didnt fold in constants we do not see when looking
1263 at the reference base alignment.
1265 2017-03-27 Richard Biener <rguenther@suse.de>
1268 * gimple-fold.c (fold_ctor_reference): Properly guard against
1269 NULL return value from canonicalize_constructor_val.
1271 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
1274 * config/i386/i386.c (ix86_expand_builtin)
1275 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
1276 flags reg setting and flags reg using instructions.
1277 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
1278 clobbering instructions to zero extend op2.
1280 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
1282 * doc/install.texi (Configuration) <--with-aix-soname>:
1283 Update link to AIX ld.
1285 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
1287 PR rtl-optimization/80160
1288 PR rtl-optimization/80159
1289 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
1290 reg_alternate_class into account.
1292 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
1295 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
1296 to consider in curr_insn_transform.
1298 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1300 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
1301 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
1302 and emit_mode_inner.
1304 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1306 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
1307 argument to the overloaded builtin variants. Use the new flag to
1308 deprecate certain builtin variants.
1309 * config/s390/s390-builtin-types.def: Add new builtin types.
1310 * config/s390/s390-builtins.h: Support new flags field for
1311 overloaded builtins.
1312 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
1313 (s390_macro_to_expand): Enable vector float data type.
1314 (s390_cpu_cpp_builtins_internal): Indicate support of the new
1315 builtins by incrementing the __VEC__ version number.
1316 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
1318 (s390_resolve_overloaded_builtin): Emit error messages depending
1319 on the builtin flags.
1320 * config/s390/s390.c (s390_expand_builtin): Support additional
1321 flags argument. Change error message to match the messages
1322 emitted in s390-c.c.
1323 * config/s390/s390.md: New UNSPEC_* constants.
1324 (op_type): Add new instruction types.
1325 * config/s390/vecintrin.h: Add new builtins and test data class
1327 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
1328 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
1329 (VEC_INEXACT, VEC_NOINEXACT): New constants.
1330 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
1331 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
1332 ("vec_mergel<mode>"): V_HW -> VEC_HW.
1334 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
1335 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
1336 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
1337 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
1339 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
1340 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
1341 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
1342 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
1344 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
1345 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
1346 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
1347 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
1348 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
1349 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
1350 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
1352 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
1353 ("vec_scatter_element<V_HW_4:mode>_DI")
1354 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
1355 ("vec_fpint<mode>", "vflls")
1356 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
1357 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
1358 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
1359 ("*vec_cmphe<mode>_cc"): ... these.
1361 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
1362 mode constant instead of magic value.
1364 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1366 * config/s390/s390.c (s390_expand_vec_compare): Support other
1367 vector floating point modes than just V2DF.
1368 (s390_expand_vcond): Likewise.
1369 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
1370 (s390_cannot_change_mode_class): Prevent mode changes between TF
1371 and V1TF in vector registers.
1372 * config/s390/s390.md (DF, SF): New mode attributes.
1373 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
1374 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
1375 SFmode support for VRs.
1376 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
1378 (VFT, VF_HW): New mode iterators.
1379 (vw, sdx): New mode attributes.
1380 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
1381 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
1382 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
1383 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
1384 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
1385 also the new vector floating point modes. Renaming to ...
1387 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
1388 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
1389 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
1390 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
1391 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
1392 ("vec_unordered<mode>"): ... these.
1394 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
1395 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
1396 ("*vec_extendv2df"): New insn definitions.
1398 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1400 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
1401 ("mulditi3_2", "*muldi3_sign"): New patterns.
1402 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
1403 rename the pattern definition.
1405 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1407 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
1409 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
1411 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1413 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
1414 instruction if possible.
1415 * config/s390/vector.md (vec_halfnumelts): New mode
1417 ("*vec_vllezlf<mode>"): New pattern.
1419 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1421 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
1422 ("popcountv4si2", "popcountv2di2"): Rename to ...
1423 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
1424 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
1426 ("popcount<mode>2_vxe"): New pattern.
1428 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1430 * common/config/s390/s390-common.c (processor_flags_table): Add
1432 * config.gcc: Add arch12.
1433 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1434 Default to arch12 for unknown CPU model numbers.
1435 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
1436 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
1437 PROCESSOR_max sanity check.
1438 * config/s390/s390-opts.h (enum processor_type): Add
1440 * config/s390/s390.c (processor_table): Add arch12.
1441 (s390_expand_builtin): Add check for B_VXE flag.
1442 (s390_issue_rate): Add PROCESSOR_ARCH12.
1443 (s390_get_sched_attrmask): Likewise.
1444 (s390_get_unit_mask): Likewise.
1445 (s390_sched_score): Enable z13 scheduling for arch12.
1446 (s390_sched_reorder): Likewise.
1447 (s390_sched_variable_issue): Likewise.
1448 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
1450 (s390_tune_attr): Use z13 scheduling also for arch12.
1451 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
1452 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
1453 (TARGET_VXE_P): New macros.
1454 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
1455 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
1456 * config/s390/s390.opt: Add arch12 as processor_type.
1458 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1460 * config/s390/s390.md
1461 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1462 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
1463 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
1465 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
1466 Rename expanders to ...
1468 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
1469 ("fixuns_truncdddi2_emu"): ... these.
1471 ("fixuns_trunc<mode>si2_emu"): New expander.
1473 ("*fixuns_truncdfdi2_z13"): Rename to ...
1474 ("*fixuns_truncdfdi2_vx"): ... this.
1476 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1478 * config/s390/2964.md: Remove the single element vector compare
1479 instructions which are no longer used.
1480 * config/s390/s390.c (s390_select_ccmode): Remove handling of
1482 (s390_canonicalize_comparison): Remove handling of DFmode
1484 (s390_expand_vec_compare_scalar): Remove function.
1485 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
1486 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
1488 ("*cmp<mode>_ccs"): Add wfcdb instruction.
1490 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1492 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
1494 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
1495 will anyway by matched by mov<mode>_64dfp.
1497 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1499 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1500 vlef/vstef. Add missing operand to vleif.
1502 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1504 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1505 pair for all vector types with 64 bit elements.
1506 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1507 * config/s390/vector.md (V_HW_64): ... here.
1508 (V_128_NOSINGLE): New mode iterator.
1509 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1510 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1511 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1512 ("*vec_load_pairv2di"): Change to ...
1513 ("*vec_load_pair<mode>"): ... this one.
1515 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1517 * config/s390/constraints.md: Add comments.
1518 (jKK): Reject element sizes > 8 bytes.
1519 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1521 * config/s390/s390.md: Add the s_operand checks formerly in
1522 s390_split_ok_p to various splitters where they are still
1524 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1525 for 128 bit vectors. Plus two splitters.
1527 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1529 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1532 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1535 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1536 error if the boundary argument is not constant.
1538 2017-03-24 Jakub Jelinek <jakub@redhat.com>
1540 PR rtl-optimization/80112
1541 * loop-doloop.c (doloop_condition_get): Don't check condition
1542 if cmp isn't SET with IF_THEN_ELSE src.
1544 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1546 PR tree-optimization/80158
1547 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1548 replacing a candidate statement, also replace it for the
1549 candidate's alternate interpretation.
1550 (replace_rhs_if_not_dup): Likewise.
1551 (replace_one_candidate): Likewise.
1553 2017-03-24 Richard Biener <rguenther@suse.de>
1555 PR tree-optimization/80167
1556 * graphite-isl-ast-to-gimple.c
1557 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1559 (translate_isl_ast_to_gimple::get_rename): Likewise.
1561 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
1563 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1564 handling of certain combinations of target options, including the
1565 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1566 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1568 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1571 * config/arm/arm.md (*load_multiple): Add reload_completed to
1574 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1575 Richard Biener <rguenth@suse.de>
1577 PR tree-optimization/79908
1578 PR tree-optimization/80136
1579 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1580 been cast away, gimplify_and_add suffices.
1582 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
1584 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1586 2017-03-23 Richard Biener <rguenther@suse.de>
1588 PR tree-optimization/80032
1589 * gimplify.c (gimple_push_cleanup): Forced unconditional
1590 cleanups still have to go to the conditional_cleanups
1593 2017-03-22 Jakub Jelinek <jakub@redhat.com>
1595 PR tree-optimization/80072
1596 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1598 (next_operand_entry_id): Change type to unsigned int.
1599 (sort_by_operand_rank): Make sure to return the right return value
1600 even if unsigned fields are bigger than INT_MAX.
1601 (struct oecount): Change cnt and id type to unsigned int.
1602 (oecount_hasher::equal): Formatting fix.
1603 (oecount_cmp): Make sure to return the right return value
1604 even if unsigned fields are bigger than INT_MAX.
1605 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1608 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1609 TREE_READONLY on result if writing it more than once.
1612 * doc/invoke.texi (-fsanitize=thread): Document that with
1613 -fnon-call-exceptions atomics are not able to throw
1617 * tsan.c: Include tree-eh.h.
1618 (instrument_builtin_call): Call maybe_clean_eh_stmt or
1619 maybe_clean_or_replace_eh_stmt where needed.
1620 (instrument_memory_accesses): Add cfg_changed argument.
1621 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1622 if it returned true.
1623 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
1625 PR rtl-optimization/63191
1626 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1627 wrapper function, moved the whole old content into ...
1628 (ix86_delegitimize_address_1): ... this. New inline function.
1629 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1630 true as last argument instead of ix86_delegitimize_address.
1632 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1634 * config/aarch64/aarch64.c (generic_branch_cost): Copy
1635 cortexa57_branch_cost.
1637 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
1639 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1641 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1644 * doc/md.texi (Constraints): Document wA constraint.
1645 * config/rs6000/constraints.md (wA): New.
1646 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1647 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1648 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1649 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1651 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
1654 * gimplify.c (is_oacc_declared): New function.
1655 (oacc_default_clause): Use it to set default flags for acc declared
1656 variables inside parallel regions.
1657 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1659 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
1660 declare attribute to any decl as necessary.
1662 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1665 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1666 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1667 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1668 (arm_arch_lpae): This.
1669 * config/arm/arm.c (arm_arch7ve): Rename into ...
1670 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
1671 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1674 2017-03-22 Martin Liska <mliska@suse.cz>
1677 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1678 error message instead of an ICE.
1680 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1682 * doc/extend.texi (6.11 Additional Floating Types): Revise.
1684 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
1686 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1688 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1691 2017-03-21 Martin Sebor <msebor@redhat.com>
1693 * doc/extend.texi: Use "cannot" instead of "can't."
1694 * doc/hostconfig.texi: Same.
1695 * doc/install.texi: Same.
1696 * doc/invoke.texi: Same.
1697 * doc/loop.texi: Same.
1698 * doc/md.texi: Same.
1699 * doc/objc.texi: Same.
1700 * doc/rtl.texi: Same.
1701 * doc/tm.texi: Same.
1702 * doc/tm.texi.in: Same.
1703 * doc/trouble.texi: Same.
1705 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
1708 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1709 (collect_checksum_attributes): Set it.
1710 (die_checksum_ordered): Use it.
1712 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1714 PR tree-optimization/79908
1715 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1716 change: For a VA_ARG whose LHS has been cast away, use
1717 force_gimple_operand to construct the side effects.
1719 2017-03-21 David Malcolm <dmalcolm@redhat.com>
1721 PR translation/80001
1722 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1723 more amenable to translation.
1724 (oacc_loop_auto_partitions): Likewise.
1726 2017-03-21 Marek Polacek <polacek@redhat.com>
1727 Martin Sebor <msebor@redhat.com>
1729 PR tree-optimization/80109
1730 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1733 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1734 Segher Boessenkool <segher@kernel.crashing.org>
1737 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1738 check reg_used_between_p between insn and one of succ or succ2
1739 depending on if succ is artificial insn not inserted into insn
1742 2017-03-21 Martin Liska <mliska@suse.cz>
1744 PR gcov-profile/80081
1745 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1746 * doc/gcc.texi: Include gcov-dump stuff.
1747 * doc/gcov-dump.texi: New file.
1749 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
1751 PR rtl-optimization/79150
1752 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1753 conditional jump, if the jump is the last insn of the loop.
1755 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1756 Richard Biener <rguenth@suse.de>
1758 PR tree-optimization/79908
1759 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1760 been cast away, use force_gimple_operand to construct the side
1763 2017-03-21 Martin Liska <mliska@suse.cz>
1766 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1769 2017-03-21 Brad Spengler <spender@grsecurity.net>
1772 * plugin.c (htab_hash_plugin): New function.
1773 (add_new_plugin): Use it and adjust.
1774 (parse_plugin_arg_opt): Adjust.
1775 (init_one_plugin): Likewise.
1777 2017-03-21 Richard Biener <rguenther@suse.de>
1779 PR tree-optimization/80032
1780 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1781 if set force the cleanup to happen unconditionally.
1782 (gimplify_target_expr): Push inserted clobbers with force_uncond
1783 to avoid them being removed by control-dependent DCE.
1785 2017-03-21 Richard Biener <rguenther@suse.de>
1787 PR tree-optimization/80122
1788 * tree-inline.c (copy_bb): Do not expans va-arg packs or
1789 va_arg_pack_len when the inlined call stmt requires pack
1791 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1793 2017-03-21 Jakub Jelinek <jakub@redhat.com>
1796 * tsan.c (instrument_builtin_call): If the memory model argument
1797 is not a constant, assume it is valid.
1800 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1803 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1805 PR rtl-optimization/79910
1806 * combine.c (can_combine_p): Do not allow combining an I0 or I1
1807 if its dest is used by an insn before I2 (other than the combined
1808 insns themselves, which are properly handled already).
1810 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
1813 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1815 * combine.c (record_used_regs): New static function.
1816 (try_combine): Handle situations where there is an additional
1817 instruction between I2 and I3 which needs to have a LOG_LINK
1821 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1823 * combine.c (try_combine): Delete redundant i1 test. Call
1824 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1826 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1829 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1832 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1834 PR tree-optimization/80054
1835 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1836 the optimization if a PHI or any of its arguments is not dominated
1837 by the candidate's basis. Use gphi* rather than gimple* as
1839 (replace_profitable_candidates): Clean up a gimple* variable that
1840 should be a gphi* variable.
1842 2017-03-20 Martin Sebor <msebor@redhat.com>
1845 * doc/extend.texi (attribute constructor): Document present limitation.
1847 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
1850 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1851 __POWER9_VECTOR__ #ifdef control, change template definition to
1852 use Power9-specific built-in function.
1853 (vec_any_eq): Likewise.
1854 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1855 to control outcomes from this test.
1856 (vector_ae_<mode>p): For VEC_F modes, likewise.
1858 2017-03-20 Ian Lance Taylor <iant@google.com>
1860 * config/i386/i386.c (ix86_function_regparm): Save an extra
1861 register for -fsplit-stack with DECL_STATIC_CHAIN.
1863 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1866 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1867 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1869 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
1871 * config/riscv/riscv.c (riscv_print_operand): Use "fence
1873 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1876 2017-03-20 Marek Polacek <polacek@redhat.com>
1879 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1881 2017-03-20 Richard Biener <rguenther@suse.de>
1883 PR tree-optimization/80113
1884 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1885 allocate extra SSA name for PHI def.
1886 (add_close_phis_to_outer_loops): Likewise.
1887 (add_close_phis_to_merge_points): Likewise.
1888 (copy_loop_close_phi_args): Likewise.
1889 (copy_cond_phi_nodes): Likewise.
1891 2017-03-20 Martin Liska <mliska@suse.cz>
1894 * tree-chkp.c (chkp_build_returned_bound): Do not build
1895 returned bounds for a LHS that's not a BOUNDED_P type.
1897 2017-03-20 Martin Liska <mliska@suse.cz>
1901 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1902 COMPLEX_CST and VECTOR_CST.
1904 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1907 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1908 target operand. A new splitter adds the clobber statement in case
1909 the target operand is dead anyway.
1911 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1913 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1914 to age-old versions of binutils and glibc.
1916 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
1918 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1920 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1922 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1924 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1926 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1927 requirement for binutils 2.13.
1929 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1931 * combine.c (try_combine): Delete redundant i1 test. Call
1932 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1934 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
1936 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1937 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1939 <riscv64-*-elf>: Re-arrange section
1940 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1941 <riscv32-*-linux>: Likewise.
1942 <riscv64-*-elf>: Likewise
1943 <riscv64-*-linux>: Likewise.
1945 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
1948 * aarch64.opt(verbose-cost-dump): Fix typo.
1950 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
1953 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1954 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1956 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1958 * reload.c (find_reloads): When reloading a nonoffsettable address,
1959 use RELOAD_OTHER for it and its address reloads.
1961 PR rtl-optimization/79910
1962 * combine.c (record_used_regs): New static function.
1963 (try_combine): Handle situations where there is an additional
1964 instruction between I2 and I3 which needs to have a LOG_LINK
1967 2017-03-17 Jeff Law <law@redhat.com>
1969 PR tree-optimization/71437
1970 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1971 conditional in the hash table first.
1972 (vrp_dom_walker::before_dom_children): Extract condition from
1973 ASSERT_EXPR. Record condition, its inverion and any implied
1976 2017-03-17 Marek Polacek <polacek@redhat.com>
1977 Markus Trippelsdorf <markus@trippelsdorf.de>
1979 PR tree-optimization/80079
1980 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1983 2017-03-17 Richard Biener <rguenther@suse.de>
1986 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1987 Properly verify the LHS before the RHS possibly claims to be
1989 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
1992 2017-03-17 Martin Jambor <mjambor@suse.cz>
1994 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1995 (List of -O2 options): Likewise.
1996 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1999 2017-03-17 Tom de Vries <tom@codesourcery.com>
2001 * gcov-dump.c (print_usage): Print bug_report_url.
2003 2017-03-17 Richard Biener <rguenther@suse.de>
2006 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
2007 (parser::peek): Likewise.
2009 2017-03-17 Richard Biener <rguenther@suse.de>
2011 PR tree-optimization/80048
2012 * sese.c (free_sese_info): Properly release rename_map and
2013 copied_bb_map elements.
2015 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
2017 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
2018 Add linked-list forward and backlinks. Insert on
2019 construction, remove on destruction.
2020 (class pass_store_merging): Add m_stores_head field.
2021 (pass_store_merging::terminate_and_process_all_chains):
2022 Iterate over m_stores_head list.
2023 (pass_store_merging::terminate_all_aliasing_chains):
2025 (pass_store_merging::execute): Check for debug stmts first.
2026 Push new chains onto the m_stores_head stack.
2028 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
2031 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
2032 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
2033 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
2035 2017-03-16 Jeff Law <law@redhat.com>
2037 PR tree-optimization/71437
2038 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
2039 member function. Implementation moved into after_dom_children
2040 member function and into the threader's thread_outgoing_edges
2042 (dom_opt_dom_walker::after_dom_children): Simplify by moving
2043 some code into new thread_outgoing_edges.
2044 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
2045 definition. Simplify marker handling (do it here). Assume we always
2046 have the available expression and the const/copies tables.
2047 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
2049 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
2050 * tree-vrp.c (equiv_stack): No longer file scoped.
2051 (vrp_dom_walker): New class.
2052 (vrp_dom_walker::before_dom_children): New member function.
2053 (vrp_dom_walker::after_dom_children): Likewise.
2054 (identify_jump_threads): Setup domwalker. Use it rather than
2055 walking edges in a random order by hand. Simplify setup/finalization.
2056 (finalize_jump_threads): Remove.
2057 (vrp_finalize): Do not call identify_jump_threads here.
2058 (execute_vrp): Do it here instead and call thread_through_all_blocks
2061 PR tree-optimization/71437
2062 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
2064 (simplify_stmt_for_jump_threading): Add basic_block argument. All
2066 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
2067 (dom_opt_dom_walker::thread_across_edge): Remove
2068 handle_dominating_asserts argument. All callers changed.
2069 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
2070 changes. Remove calls to lhs_of_dominating_assert. Other
2071 uses of handle_dominating_asserts turn into unconditional code
2072 (simplify_control_stmt_condition_1): Likewise.
2073 (simplify_control_stmt_condition): Likewise.
2074 (thread_through_normal_block, thread_across_edge): Likewise.
2075 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
2076 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
2077 object if it is not an SSA_NAME.
2078 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
2079 before calling into the VRP specific simplifiers.
2080 (identify_jump_threads): Remove handle_dominating_asserts
2083 2017-03-16 Jakub Jelinek <jakub@redhat.com>
2086 * tree-diagnostic.c (default_tree_printer): No longer static.
2087 * tree-diagnostic.h (default_tree_printer): New prototype.
2089 2017-03-16 Tamar Christina <tamar.christina@arm.com>
2091 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
2092 Change ins into fmov.
2094 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2096 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
2097 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
2098 Use h_con constraint for operand 1.
2099 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
2100 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
2102 2017-03-15 Jeff Law <law@redhat.com>
2104 PR tree-optimization/71437
2105 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
2106 (record_temporary_equivalences): Use it.
2108 PR tree-optimization/71437
2109 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
2110 tree-ssa-scopedtables.
2111 (lookup_avail_expr, build_and_record_new_cond): Likewise.
2112 (record_conditions, record_cond, vuse_eq): Likewise.
2113 (record_edge_info): Adjust to API tweak of record_conditions.
2114 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
2115 (record_temporary_equivalences, optimize_stmt): Likewise.
2116 (eliminate_redundant_computations): Likewise.
2117 (record_equivalences_from_stmt): Likewise.
2118 * tree-ssa-scopedtables.c: Include options.h and params.h.
2119 (vuse_eq): New function, moved from tree-ssa-dom.c
2120 (build_and_record_new_cond): Likewise.
2121 (record_conditions): Likewise. Accept vector of conditions rather
2122 than edge_equivalence structure for first argument.
2123 for the first argument.
2124 (avail_exprs_stack::lookup_avail_expr): New member function, moved
2125 from tree-ssa-dom.c.
2126 (avail_exprs_stack::record_cond): Likewise.
2127 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
2128 from tree-ssa-dom.c.
2129 (avail_exprs_stack): Add new member functions lookup_avail_expr
2131 (record_conditions): Declare.
2133 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
2136 * lra-constraints.c (process_alt_operands): Increase reject for
2137 reloading an input/output operand.
2139 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2142 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
2143 insns to convert from signed/unsigned char/short to IEEE 128-bit
2145 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
2147 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
2150 * config/i386/i386.c (ix86_vector_duplicate_value): Create
2151 subreg of inner mode for values already in registers.
2153 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
2155 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
2156 iteration reg is used after the loop.
2158 2017-03-14 Martin Sebor <msebor@redhat.com>
2160 PR tree-optimization/79800
2161 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
2162 precision in negative-positive range.
2163 (format_floating): Call non-const overload with adjusted precision.
2165 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2168 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
2171 2017-03-14 Martin Sebor <msebor@redhat.com>
2174 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
2175 * builtins.def (aligned_alloc): Use it.
2178 * Makefile.in (GTFILES): Add calls.c.
2179 * calls.c: Include "gt-calls.h".
2181 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
2183 PR rtl-optimization/79728
2184 * regs.h (struct target_regs): New field
2185 x_contains_allocatable_regs_of_mode.
2186 (contains_allocatable_regs_of_mode): New macro.
2187 * reginfo.c (init_reg_sets_1): Initialize it, and change
2188 contains_reg_of_mode so it includes global regs as well.
2189 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
2190 rather than contains_regs_of_mode.
2192 2017-03-14 Martin Liska <mliska@suse.cz>
2194 * doc/invoke.texi: Document options that can't be combined with
2195 -fcheck-pointer-bounds.
2197 2017-03-14 Martin Liska <mliska@suse.cz>
2200 * doc/invoke.texi (-Wchkp): Document the option.
2202 2017-03-14 Martin Liska <mliska@suse.cz>
2204 * Makefile.in: Install gcov-dump.
2206 2017-03-14 Martin Liska <mliska@suse.cz>
2208 * multiple_target.c (expand_target_clones): Bail out for
2209 an invalid attribute.
2211 2017-03-14 Richard Biener <rguenther@suse.de>
2213 * alias.c (struct alias_set_entry): Pack properly.
2214 * cfgloop.h (struct loop): Likewise.
2215 * cse.c (struct set): Likewise.
2216 * ipa-utils.c (struct searchc_env): Likewise.
2217 * loop-invariant.c (struct invariant): Likewise.
2218 * lra-remat.c (struct cand): Likewise.
2219 * recog.c (struct change_t): Likewise.
2220 * rtl.h (struct address_info): Likewise.
2221 * symbol-summary.h (function_summary): Likewise.
2222 * tree-loop-distribution.c (struct partition): Likewise.
2223 * tree-object-size.c (struct object_size_info): Likewise.
2224 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
2225 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
2226 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
2227 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
2228 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
2229 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
2230 (struct _stmt_vec_info): Likewise.
2232 2017-03-14 Martin Liska <mliska@suse.cz>
2235 * multiple_target.c (create_dispatcher_calls): Check that
2236 a target can create a function dispatcher.
2238 2017-03-14 Martin Liska <mliska@suse.cz>
2241 * multiple_target.c (expand_target_clones): Drop local.local
2242 flag for default implementation.
2244 2017-03-14 Richard Biener <rguenther@suse.de>
2246 PR tree-optimization/80030
2247 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
2249 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
2251 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
2252 gcc_fallthrough() instead of __attribute__((fallthrough));
2254 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
2256 * doc/gcc.texi: Remove "up" link to (DIR).
2257 * doc/gccint.texi: Ditto.
2259 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
2261 * doc/install.texi (Specific) <avr>: Remove reference to
2264 2017-03-13 Jeff Law <law@redhat.com>
2266 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
2267 attribute rather than comments.
2269 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
2270 match_scratch operand is highest.
2272 2017-03-13 Martin Liska <mliska@suse.cz>
2275 * ipa-pure-const.c (warn_function_noreturn): If the declarations
2276 is a CHKP clone, use original declaration.
2278 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2280 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
2281 (arc_conditional_register_usage): Use a different allocation order
2282 when optimizing for size.
2283 * common/config/arc/arc-common.c (arc_option_optimization_table):
2284 Section anchors default on when optimizing for size.
2286 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2288 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
2290 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2292 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
2293 * config/arc/arc.md (cpu_facility): Add cd variant.
2294 (*movqi_insn): Add code density variant.
2295 (*movhi_insn): Likewise.
2296 (*movqi_insn): Likewise.
2297 (*addsi3_mixed): Likewise.
2298 (subsi3_insn): Likewise.
2300 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2302 * config/arc/arc.md (movsi_cond_exec): Update constraint.
2304 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
2306 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
2307 expressions with MINUS and UNARY ops.
2309 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2312 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
2314 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
2315 between vec_select and vector argument.
2316 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
2317 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
2318 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
2319 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
2320 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
2321 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
2323 2017-03-13 Richard Biener <rguenther@suse.de>
2326 * params.def (vect-max-peeling-for-alignment): Fix typo.
2328 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2330 * doc/install.texi (Specific) <mips-*-*>: Remove description of
2331 issue that only occurred with binutils below 2.18.
2333 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2335 * doc/install.texi (Specific) <cris-axis-elf>: No longer
2336 refer to binutils 2.11/2.12 minimum.
2338 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2340 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
2341 ftp.kernel.org and simplify binutils requirement.
2343 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
2345 * doc/invoke.texi (Warning Options): Fix spelling of link-time
2347 (Optimize Options): Ditto. Also remove redundancy.
2349 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2351 PR translation/79848
2352 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
2354 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
2355 to G_ to avoid double translation.
2357 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2359 PR translation/79923
2360 * auto-profile.c (get_combined_location): Convert leading
2361 character of diagnostics to lower case and remove trailing period.
2362 (read_profile): Likewise for various diagnostics.
2363 * config/arm/arm.c (arm_option_override): Remove trailing period
2364 from various diagnostics.
2365 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
2366 (msp430_expand_delay_cycles): Likewise.
2368 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2371 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
2372 full command-line argument, rather than just "str".
2373 (aarch64_validate_march): Likewise.
2374 (aarch64_validate_mtune): Likewise.
2376 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
2378 PR rtl-optimization/78911
2379 * lra-assigns.c (must_not_spill_p): New function.
2380 (spill_for): Use it.
2382 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2384 PR tree-optimization/79981
2385 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
2386 ATOMIC_COMPARE_EXCHANGE ifn result.
2387 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
2388 IFN_ATOMIC_COMPARE_EXCHANGE.
2390 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2393 * opts.c (parse_sanitizer_options): Add missing question mark to
2394 "did you mean" message.
2396 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2398 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
2400 (VMULEUH_UNS): Likewise.
2401 (VMULOUB_UNS): Likewise.
2402 (VMULOUH_UNS): Likewise.
2403 * config/rs6000/rs6000.c (builtin_function_type): Remove
2404 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
2406 2017-03-10 David Malcolm <dmalcolm@redhat.com>
2409 * read-rtl-function.c (function_reader::read_rtx_operand): Update
2410 x with result of extra_parsing_for_operand_code_0.
2411 (function_reader::extra_parsing_for_operand_code_0): Convert
2412 return type from void to rtx, returning x. When reading
2413 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
2414 larger size containing struct block_symbol.
2416 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
2418 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
2419 -mfloat128-hardware without -m64.
2421 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
2424 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
2425 entries to the case statement that marks unsigned arguments to
2426 overloaded functions.
2428 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
2430 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2431 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
2433 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
2436 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
2437 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
2439 2017-03-10 Martin Liska <mliska@suse.cz>
2443 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
2444 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
2447 2017-03-10 Olivier Hainque <hainque@adacore.com>
2449 * tree-switch-conversion (array_value_type): Start by resetting
2450 candidate type to it's main variant.
2452 2017-03-10 Jakub Jelinek <jakub@redhat.com>
2454 PR rtl-optimization/79909
2455 * combine.c (try_combine): Use simplify_replace_rtx on individual
2456 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
2457 of the whole CALL_INSN_FUNCTION_USAGE.
2459 PR tree-optimization/79972
2460 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
2461 get_range_info on SSA_NAMEs. Formatting fixes.
2463 2017-03-10 Richard Biener <rguenther@suse.de>
2464 Jakub Jelinek <jakub@redhat.com>
2466 PR tree-optimization/77975
2467 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
2468 edge to be constant.
2469 (get_val_for): For constant x return it. Formatting fix.
2470 (loop_niter_by_eval): Avoid pointless looping if the next iteration
2471 would use the same bases as the current one.
2473 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2475 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
2476 instead of vec_select for V1TImode.
2477 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
2479 (VSX_LE_128): Add V1TI to this mode iterator.
2480 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
2481 (*vsx_le_perm_store_<mode>): Likewise.
2482 (pre-reload splitter for VSX stores): Likewise.
2483 (post-reload splitter for VSX stores): Likewise.
2484 (*vsx_xxpermdi2_le_<mode>): Likewise.
2485 (*vsx_lxvd2x2_le_<mode>): Likewise.
2486 (*vsx_stxvd2x2_le_<mode>): Likewise.
2488 2017-03-09 Michael Eager <eager@eagercon.com>
2490 Correct failures with --enable-checking=yes,rtl.
2492 * config/microblaze/microblaze.c (microblaze_expand_shift):
2493 Replace GET_CODE test with CONST_INT_P and INTVAL test with
2494 test for const0_rtx.
2495 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
2496 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2498 2017-03-09 Richard Biener <rguenther@suse.de>
2500 PR tree-optimization/79977
2501 * graphite-scop-detection.c (scop_detection::merge_sese):
2502 Handle the case of extra exits to blocks dominating the entry.
2504 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
2506 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2509 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
2511 PR rtl-optimization/79949
2512 * lra-constraints.c (process_alt_operands): Check memory when
2513 trying to predict a cycle. Print about the overall increase.
2515 2017-03-09 Richard Biener <rguenther@suse.de>
2518 * gimple-expr.c (useless_type_conversion_p): Preserve
2519 TYPE_SATURATING for fixed-point types.
2521 2017-03-09 Richard Biener <rguenther@suse.de>
2524 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2525 alignment of BLKmode params.
2527 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2530 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2531 (VALL_NO_V2Q): Likewise.
2533 * config/aarch64/aarch64-simd.md
2534 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2536 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2537 VALL_NO_V2Q mode iterator.
2538 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2540 2017-03-09 Martin Liska <mliska@suse.cz>
2542 PR tree-optimization/79631
2543 * tree-chkp-opt.c (chkp_is_constant_addr): Call
2544 tree_int_cst_sign_bit just for INTEGER constants.
2546 2017-03-09 Martin Liska <mliska@suse.cz>
2550 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2553 2017-03-09 Marek Polacek <polacek@redhat.com>
2556 * tree.c (inchash::add_expr): Handle TREE_VEC.
2558 2017-03-09 Martin Liska <mliska@suse.cz>
2561 (chkp_narrow_size_and_offset): New function.
2562 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2563 (void chkp_parse_bit_field_ref): New function.
2564 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2565 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2567 2017-03-09 Martin Liska <mliska@suse.cz>
2570 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2571 (chkp_find_bounds_1): Remove gcc_unreachable.
2573 2017-03-09 Jakub Jelinek <jakub@redhat.com>
2576 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2577 BUILT_IN_SYNC*, determine the access type from the size suffix and
2578 always build a MEM_REF with that type. Handle forgotten
2579 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2582 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2583 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2584 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2585 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2586 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2587 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2588 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2589 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2590 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2591 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2592 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2593 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2594 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2595 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2596 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2597 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2598 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2599 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2600 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2601 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2602 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2603 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2604 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2605 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2606 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2607 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2608 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2609 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2610 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2611 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2612 definitions outside of __OPTIMIZE__ guarded section.
2615 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2616 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2617 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2618 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2621 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2623 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2624 ("vfenez<mode>"): Add missing constraints.
2626 2017-03-08 Martin Sebor <msebor@redhat.com>
2629 * config/nds32/nds32.c (nds32_option_override):
2630 Fix misspelled diagnostic.
2632 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2635 * gimplify.c (gimplify_omp_for): Replace index var in outer
2636 taskloop statement with an artificial variable and add
2637 OMP_CLAUSE_PRIVATE clause for it.
2639 2017-03-08 Richard Biener <rguenther@suse.de>
2641 PR tree-optimization/79955
2642 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2643 for accesses that are completely outside of the variable.
2645 2017-03-08 Andrew Haley <aph@redhat.com>
2647 PR tree-optimization/79943
2648 * tree-ssa-loop-split.c (compute_new_first_bound): When
2649 calculating the new upper bound, (END-BEG) should be added, not
2652 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2654 * config/avr/avr.md (setmemhi): Make sure match_dup
2655 operand number comes before match_scratch.
2657 2017-03-08 Richard Biener <rguenther@suse.de>
2659 PR tree-optimization/79920
2660 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2661 with ncopies == 1 to ...
2662 (vect_transform_slp_perm_load): ... here. Properly compute
2663 all element loads by iterating VF times over the group. Do
2664 not handle ncopies (computed in a broken way) in
2665 vect_create_mask_and_perm.
2667 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2670 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2671 is a uniform vector, use uniform_vector_p return value instead of
2672 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2674 2017-03-07 Marek Polacek <polacek@redhat.com>
2677 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2678 (alloca_call_type): Likewise.
2680 2017-03-07 Martin Liska <mliska@suse.cz>
2682 * gcov.c (process_args): Put comment to correct location.
2684 2017-03-07 Martin Liska <mliska@suse.cz>
2687 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2688 Use array_at_struct_end_p instead of DECL_CHAIN (field).
2689 (chkp_narrow_bounds_for_field): Likewise.
2690 (chkp_parse_array_and_component_ref): Pass one more argument to
2693 2017-03-07 Richard Biener <rguenther@suse.de>
2695 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2698 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
2700 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2701 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2703 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2706 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2707 to end of description.
2708 (PARAM_MAX_STORES_TO_MERGE): Likewise.
2710 2017-03-07 Jakub Jelinek <jakub@redhat.com>
2712 PR rtl-optimization/79901
2713 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2715 (*avx512f_<code><mode>3<mask_name>): ... this.
2716 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2717 iterator instead of VI8_AVX2_AVX512BW.
2719 PR rtl-optimization/79901
2720 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2721 min/max expander, expand it using expand_vec_cond_expr.
2724 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2727 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2730 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2731 to void * for PCH reasons.
2732 * dwarf2out.c (output_loc_operands, output_die): Cast
2733 v.val_vec.array to unsigned char *.
2735 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
2738 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2741 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
2743 PR rtl-optimization/79571
2744 * lra-constraints.c (process_alt_operands): Calculate static
2745 reject and subtract it from overall when only addresses will be
2748 2017-03-06 Julia Koval <julia.koval@intel.com>
2751 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2752 incoming stack boundary to 128 for 64-bit targets.
2754 2017-03-06 Richard Biener <rguenther@suse.de>
2756 PR tree-optimization/79894
2757 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2758 to NULL after folding it.
2760 2017-03-06 Richard Biener <rguenther@suse.de>
2762 PR tree-optimization/79824
2763 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2764 check disabling peeling for gaps.
2766 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
2768 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2769 attributes): Document gettimeofday.
2771 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2773 * config/s390/s390.c (s390_option_override_internal): Set
2774 PARAM_MIN_VECT_LOOP_BOUND
2776 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
2778 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2779 * config/s390/s390.md: Likewise.
2781 2017-03-06 Jakub Jelinek <jakub@redhat.com>
2784 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2785 (<avx2_avx512>_perm<mode>): Rename to ...
2786 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
2788 (<avx512>_perm<mode>_mask): Rename to ...
2789 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
2791 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2792 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
2793 instead of VI8F_256_512.
2794 (avx512f_perm<mode>): New define_expand.
2795 (avx512f_perm<mode>_mask): Likewise.
2796 (avx512f_perm<mode>_1<mask_name>): New define_insn.
2797 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2799 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2801 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2802 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2804 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2806 2017-03-06 Martin Liska <mliska@suse.cz>
2809 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2810 when having a SSA NAME w/o VAR_DECL assigned to it.
2812 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2814 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2815 msa_dpsub_<su>_d): Fix MODE for vec_select.
2817 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
2819 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2821 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2823 2017-03-06 Richard Biener <rguenther@suse.de>
2825 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2826 * plugin.c (register_plugin_info): Likewise.
2827 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2829 2017-03-05 Jakub Jelinek <jakub@redhat.com>
2831 * config/i386/sse.md (sse_storehps, sse_storelps,
2832 avx_<castmode><avxsizesuffix>_<castmode>,
2833 avx512f_<castmode><avxsizesuffix>_<castmode>,
2834 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2835 in condition that at least one operand is not a MEM.
2837 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2840 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2841 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2843 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2844 gimple_call_nothrow_p flag based on whether original builtin can throw.
2845 If it can, emit following stmts on the fallthrough edge.
2846 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2847 don't create new bb if inserting just debug stmts on the edge, try to
2848 insert them on the fallthru bb or just reset debug stmts.
2850 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
2853 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2854 restore recog_data (including the operand rtxes inside it) around
2855 the call to get_insn_template.
2857 2017-03-03 Martin Sebor <msebor@redhat.com>
2859 PR tree-optimization/79699
2860 * context.c (context::~context): Free MPFR caches to avoid
2861 a memory leak on program exit.
2863 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2865 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2866 Use wide_int::ulow () instead of .elt (0).
2868 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2870 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2871 (*pushxf): Limit oF constraint to 32bit targets and add oC
2872 constraint for 64bit targets.
2873 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2874 (*pushdf): Change rmF constraint to rmC.
2876 2017-03-03 Martin Liska <mliska@suse.cz>
2878 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2879 Remove unused variable.
2881 2017-03-03 Jakub Jelinek <jakub@redhat.com>
2884 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2885 is a memory operand, increase num_memory.
2886 (ix86_expand_args_builtin): Likewise.
2888 2017-03-03 Jan Hubicka <jh@suse.cz>
2891 * ipa-devirt.c (maybe_record_node): Properly handle
2892 __cxa_pure_virtual visibility.
2894 2017-03-03 Martin Liska <mliska@suse.cz>
2896 PR tree-optimization/79803
2897 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2899 (pass_loop_prefetch::execute): Disabled optimization if an
2900 assumption about L1 cache size is not met.
2902 2017-03-03 Martin Liska <mliska@suse.cz>
2904 PR rtl-optimization/79574
2905 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2906 (hash_scan_set): Likewise.
2907 (dump_hash_table): Likewise.
2908 (hoist_code): Likewise.
2910 2017-03-03 Richard Biener <rguenther@suse.de>
2912 * fixed-value.c (fixed_from_string): Restore use of elt (1)
2913 in place of uhigh ().
2914 (fixed_convert_from_real): Likewise.
2916 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2919 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2921 2017-03-03 Richard Biener <rguenther@suse.de>
2924 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2925 TYPE_OVERFLOW_UNDEFINED check.
2927 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2929 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2931 (vector_ae_<mode>_p): Likewise.
2932 (vector_nez_<mode>_p): Likewise.
2933 (vector_ne_v2di_p): Likewise.
2934 (vector_ae_v2di_p): Likewise.
2935 (vector_ne_<mode>_p): Likewise.
2936 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2938 (vsx_tsqrt<mode>2_fe): Likewise.
2940 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
2943 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2945 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2947 PR rtl-optimization/79780
2948 * cprop.c (one_cprop_pass): When second and further conditional trap
2949 in a single basic block is turned into an unconditional trap, turn it
2950 into a deleted note to avoid RTL verification failures.
2952 2017-03-02 Richard Biener <rguenther@suse.de>
2954 * fold-const.c (const_binop): Use ulow () instead of elt (0).
2956 2017-03-02 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/79345
2960 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2961 param and abort the walk, returning -1 if it is hit.
2962 (walk_aliased_vdefs): Take a limit param and pass it on.
2963 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2964 defaulting to 0 and return a signed int.
2965 * tree-ssa-uninit.c (struct check_defs_data): New struct.
2966 (check_defs): New helper.
2967 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2968 about uninitialized memory.
2969 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2970 bogus uninitialized warning.
2971 (fixed_convert_from_real): Likewise.
2973 2017-03-02 Bin Cheng <bin.cheng@arm.com>
2975 PR tree-optimization/66768
2976 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2977 iv_use if base object can't be determined.
2979 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2981 PR tree-optimization/79345
2982 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2983 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2984 (get_pattern_stats): Initialize it.
2985 * genemit.c (gen_expand): Verify match_scratch numbers come after
2986 match_operand/match_dup numbers.
2987 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2988 match_scratch numbers.
2989 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2991 * config/s390/s390.md (trunctdsd2): Likewise.
2993 2017-03-02 Richard Biener <rguenther@suse.de>
2995 * wide-int.h (wide_int_storage::operator=): Implement in terms
2998 2017-03-02 Richard Biener <rguenther@suse.de>
3000 PR tree-optimization/79777
3001 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
3002 the to insert expression to sth existing.
3004 2017-03-01 Martin Sebor <msebor@redhat.com>
3007 * gimple-ssa-sprintf.c
3008 (directive::known_width_and_precision): New function.
3009 (format_integer): Use it.
3010 (get_mpfr_format_length): Consider the full range of precision
3011 when computing %g output with the # flag. Set the likely byte
3012 count to 3 rather than 1 when precision is indeterminate.
3013 (format_floating): Correct the lower bound of precision.
3015 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3017 * doc/invoke.texi: Document default code model for 64-bit Linux.
3019 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3022 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
3023 udiv rather than div since input pattern is unsigned.
3025 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
3027 * config/i386/i386.c (print_reg): Warn for values of
3028 unsupported size in integer register.
3030 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
3033 * config/rs6000/predicates.md (current_file_function_operand): Do
3034 not allow self calls to be local if the function is replaceable.
3036 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
3039 * config/rs6000/altivec.h (vec_ctz and others): Change the
3040 preprocessor macro that controls conditional compilation from
3041 _ARCH_PWR9 to __POWER9_VECTOR__.
3042 (vec_all_ne): Change parameterization of __altivec_scalar_pred
3043 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
3044 control (instead of _ARCH_PWR9 control) so that template
3045 definition uses power9-specific function.
3046 (vec_any_eq): Likewise.
3047 (vec_all_ne): Change macro definition to use a power9-specific
3048 expansion under #ifdef __POWER9_VECTOR__ control (instead of
3049 _ARCH_PWR9 control).
3050 (vec_any_eq) Likewise.
3051 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
3052 expansion for CMPNEF to remove support for xvcmpnesp instruction.
3053 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
3054 support for xvcmpnedp instruction.
3055 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
3056 macro expansion so that Power9 implementation of vec_all_ne does
3057 not use the AltiVec predicate framework.
3058 (VCMPNEH_P): Likewise.
3059 (VCMPNEW_P): Likewise.
3060 (VCMPNED_P): Likewise.
3061 (VCMPNEFP_P): Likewise.
3062 (VCMPNEDP_P): Likewise.
3063 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
3064 implementation of vec_any_eq to not use AltiVec predicate
3066 (VCMPAEH_P): Likewise.
3067 (VCMPAEW_P): Likewise.
3068 (VCMPAED_P): Likewise.
3069 (VCMPAEFP_P): Likewise.
3070 (VCMPAEDP_P): Likewise.
3071 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
3072 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
3073 not use the AltiVec predicate framework.
3074 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
3075 of vec_any_eq to not use AltiVec predicate framework.
3076 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
3077 support for predefined __POWER9_VECTOR__ macro to indicate that
3078 Power9 instruction selection is enabled.
3079 (altivec_overloaded_builtins): Remove extraneous
3080 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
3081 function argument types RS6000_BTI_bool_V16QI and
3082 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
3083 entry for overloaded function argument types RS6000_BTI_bool_V4SI
3084 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
3085 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
3086 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
3087 Power9 for implementations of vec_cmpne. Change the signature for
3088 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
3089 (representing vec_all_ne) to remove the previously described first
3090 argument of type RS6000_BTI_INTSI, as this was an artifact of
3091 reliance on the AltiVec predicate framework, which is no longer
3092 used in the implementation of these functions. Add
3093 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
3094 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
3095 since, unlike the AltiVec predicate framework implementation, we
3096 do not share function descriptors between vec_alle and vec_anyeq.
3097 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
3098 set of modes that receive special treatment even when
3099 TARGET_P9_VECTOR is true. The special treatment emits code that
3100 does not depend on Power9 instructions.
3101 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
3102 define_expand to not rely on AltiVec predicate framework.
3103 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
3105 (vector_ne_v2di_p): Change this define_expand to not rely on
3106 AltiVec predicate framework.
3107 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
3109 (vector_ne_<mode>_p): Change this define_expand to not rely on
3110 AltiVec predicate framework.
3111 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
3113 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
3114 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
3115 define_insn pattern.
3116 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
3117 define_insn pattern because the xvcmpne<VSs>. instruction is not
3119 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
3120 instruction is not supported.
3122 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3124 * config/nvptx/nvptx.c: Include intl.h.
3126 2017-03-01 Martin Jambor <mjambor@suse.cz>
3129 * ipa-prop.h (ipa_bits): Removed field known.
3130 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
3131 to pointers. Adjusted their comments to warn about their sharing.
3132 (ipcp_transformation_summary): Change bits to a vector of pointers.
3133 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
3134 (ipa_get_ipa_bits_for_value): Declare.
3135 * tree-vrp.h (value_range): Mark as GTY((for_user)).
3136 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
3137 (ipa_bits_hash_table): Likewise.
3138 (ipa_vr_ggc_hash_traits): Likewise.
3139 (ipa_vr_hash_table): Likewise.
3140 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
3141 being pointers and vr_known being removed.
3142 (ipa_set_jf_unknown): Likewise.
3143 (ipa_get_ipa_bits_for_value): New function.
3144 (ipa_set_jfunc_bits): Likewise.
3145 (ipa_get_value_range): New overloaded functions.
3146 (ipa_set_jfunc_vr): Likewise.
3147 (ipa_compute_jump_functions_for_edge): Use the above functions to
3148 construct bits and vr parts of jump functions.
3149 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
3150 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
3152 (ipcp_grow_transformations_if_necessary): Also allocate
3153 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
3155 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
3156 them. Fix too long lines.
3157 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
3158 vr_known being removed.
3159 (ipa_read_jump_function): Use new setter functions to construct bits
3160 and vr parts of jump functions or set them to NULL.
3161 (write_ipcp_transformation_info): Adjust for bits being pointers.
3162 (read_ipcp_transformation_info): Likewise.
3163 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
3165 Include gt-ipa-prop.h.
3166 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
3168 (ipcp_store_bits_results): Likewise.
3169 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
3170 Do not write to existing jump functions but use a temporary instead.
3172 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3175 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
3176 attempt to use its first operand as BIT_FIELD_REF base.
3178 2017-03-01 Richard Biener <rguenther@suse.de>
3181 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
3182 interpolating formula in wrapping arithmetic.
3183 (chrec_apply): Convert chrec_evaluate return value to wanted type.
3185 2017-03-01 Jakub Jelinek <jakub@redhat.com>
3187 PR tree-optimization/79734
3188 * tree-vect-generic.c (expand_vector_condition): Optimize
3189 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
3190 Handle VEC_COND_EXPR where comparison has different inner width from
3193 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
3195 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
3196 markup, and similar issues. Remove @opindex entries for things
3197 that aren't options. Add missing -mmpy-option entries.
3199 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3201 PR tree-optimization/79737
3202 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
3203 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
3204 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
3205 instead of byte_size. Formatting fix.
3206 (shift_bytes_in_array_right): Formatting fix.
3208 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
3211 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
3212 condition on optimize for the leaf function test.
3214 2017-02-28 Martin Liska <mliska@suse.cz>
3217 * read-rtl-function.c (function_reader::handle_unknown_directive):
3218 Bail out when one uses -flto.
3220 2017-02-28 Martin Liska <mliska@suse.cz>
3222 * common.opt: Replace space with tabular for options of <number>
3224 * config/i386/i386.opt: Show <number> value for
3225 -mlarge-data-threshold.
3226 * opts.c (print_filtered_help): Do not display number in hexadecimal
3229 2017-02-28 Martin Liska <mliska@suse.cz>
3231 * common.opt: Fix --help=option -Q for options which are of
3234 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
3236 * config/i386/i386.c (print_reg): Error out for values
3237 of 8-bit size in invalid integer register.
3239 2017-02-28 Martin Sebor <msebor@redhat.com>
3241 PR tree-optimization/79691
3242 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
3244 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3247 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
3248 gcc_unreachable with output_operand_lossage.
3250 2017-02-28 Richard Biener <rguenther@suse.de>
3252 PR tree-optimization/79740
3253 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
3255 (visit_nary_op): Insert the nary into the hashtable if we
3256 pattern-matched sth.
3257 * tree-ssa-pre.c (eliminate_insert): Robustify.
3259 2017-02-28 Richard Biener <rguenther@suse.de>
3262 * fold-const.c (decode_field_reference): Reject out-of-bound
3265 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3267 * config/i386/i386.c: Include intl.h.
3268 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
3269 instead of just cond ? "..." : "...".
3270 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
3271 * coverage.c (read_counts_file): Likewise.
3272 * omp-offload.c: Include intl.h.
3273 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
3274 of just cond ? "..." : "...".
3275 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
3276 of just cond ? "..." : "...".
3278 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
3281 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
3283 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
3284 'tune for' CPU name.
3285 * config/arm/arm-cpu-data.h: Regenerated.
3287 2017-02-28 Richard Biener <rguenther@suse.de>
3289 PR tree-optimization/79732
3290 * tree-inline.c (expand_call_inline): Do not shadow var.
3292 2017-02-28 Richard Biener <rguenther@suse.de>
3294 PR tree-optimization/79723
3295 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
3296 address-space properly.
3298 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
3300 * doc/optinfo.texi (Optimization groups): Fix option used for
3302 * doc/invoke.texi (-fopt-info): Document "omp".
3303 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
3304 (OPTGROUP_ALL): Add OPTGROUP_OMP.
3305 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
3306 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
3307 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
3309 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
3311 * dumpfile.c (optgroup_options): Instead of "openmp", associate
3312 OPTGROUP_OMP with "omp".
3314 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
3317 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
3318 for arithmetic shift of unsigned V2DI.
3320 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
3322 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
3323 arc/linux.h headers.
3324 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
3325 (LINK_SPEC): Likewise.
3326 (ARC_TLS_EXTRA_START_SPEC): Likewise.
3327 (EXTRA_SPECS): Likewise.
3328 (STARTFILE_SPEC): Likewise.
3329 (ENDFILE_SPEC): Likewise.
3330 (LIB_SPEC): Likewise.
3331 (TARGET_SDATA_DEFAULT): Likewise.
3332 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
3333 (MULTILIB_DEFAULTS): Likewise.
3334 (DWARF2_UNWIND_INFO): Likewise.
3335 * config/arc/big.h: New file.
3336 * config/arc/elf.h: Likewise.
3337 * config/arc/linux.h: Likewise.
3338 * config/arc/t-uClibc: Remove.
3340 2017-02-27 Bin Cheng <bin.cheng@arm.com>
3342 PR tree-optimization/77536
3343 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
3344 (tree_transform_and_unroll_loop): Use above function to compute the
3345 estimated niter of unrolled loop and use it when scaling profile.
3346 Also use count info rather than frequency if it's non-zero.
3347 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
3348 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
3349 (vect_transform_loop): Call above function.
3351 2017-02-27 Richard Biener <rguenther@suse.de>
3353 PR tree-optimization/45397
3354 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
3355 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
3356 (visit_nary_op): Add pattern matching for CSEing sign-changed
3357 or truncated operations with wider ones.
3359 2017-02-27 Richard Biener <rguenther@suse.de>
3361 PR tree-optimization/79690
3362 * tree-vect-stmts.c (vectorizable_store): Use vector type
3363 built from the DR with address-space.
3365 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
3367 * doc/invoke.texi (Optimize Options): Refine the description
3368 of asan-use-after-return.
3370 2017-02-25 Alan Modra <amodra@gmail.com>
3372 PR rtl-optimization/79584
3373 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
3374 base, not ad->base_term, the reg within base. Remove assertion
3375 that ad->base == ad->base_term. Replace gen_int_mode using
3376 bogus mode with const0_rtx.
3378 2017-02-25 Jakub Jelinek <jakub@redhat.com>
3381 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
3382 FMA_EXPR like tcc_binary or tcc_unary.
3384 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
3387 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
3389 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
3390 (output_loc_operands): Handle DW_OP_call_ref and
3391 DW_OP_GNU_variable_value.
3392 (struct variable_value_struct): New type.
3393 (struct variable_value_hasher): Likewise.
3394 (variable_value_hash): New variable.
3395 (string_types): Remove.
3396 (copy_loc_descr): New function.
3397 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
3398 (prepend_loc_descr_to_each): New function.
3399 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
3400 instead of add_loc_descr_to_each if the first argument is single
3401 location list and the second has multiple.
3402 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
3403 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
3404 when looking for variable value which doesn't have other location info.
3405 (loc_list_from_tree): Formatting fix.
3406 (gen_array_type_die): Simplify DW_AT_string_length handling.
3407 (adjust_string_types): Remove.
3408 (gen_subprogram_die): Don't call adjust_string_types nor test/set
3409 string_types. Call resolve_variable_values.
3410 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
3411 (resolve_addr_in_expr): Likewise. Add A argument.
3412 (copy_deref_exprloc): Remove deref argument. Adjust for the
3413 original expression being DW_OP_GNU_variable_value with optionally
3414 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
3415 optionally after it.
3416 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
3417 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
3418 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
3419 (variable_value_hasher::hash, variable_value_hasher::equal): New
3421 (resolve_variable_value_in_expr, resolve_variable_value,
3422 resolve_variable_values, note_variable_value_in_expr,
3423 note_variable_value): New functions.
3424 (dwarf2out_early_finish): Call note_variable_value on all toplevel
3427 2017-02-24 Jakub Jelinek <jakub@redhat.com>
3430 * opts.h (handle_generated_option): Add GENERATED_P argument.
3431 * opts-common.c (handle_option): Adjust function comment.
3432 (handle_generated_option): Add GENERATED_P argument, pass it to
3434 (control_warning_option): Pass false to handle_generated_option
3436 * opts.c (maybe_default_option): Pass true to handle_generated_option
3438 * optc-gen.awk: Likewise.
3440 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3442 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
3443 a REG, look at the REG it is a SUBREG of.
3444 (splitter for cmpeqsi_t): Ditto.
3446 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3448 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
3449 the special USEs with the pattern of the insn, not the insn itself.
3451 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
3454 * doc/invoke.texi: Document -mload-store-pairs.
3456 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3457 Sandra Loosemore <sandra@codesourcery.com>
3459 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
3460 argument isn't a CONST_INT.
3461 (nios2_alternate_compare_const): Assert op is a CONST_INT.
3462 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
3463 (nios2_validate_compare): Bypass alternate compare logic if *op2
3465 (ldstwm_operation_p): Return false if first_base is not a REG or
3466 if first_offset is not a CONST_INT.
3468 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3470 * config/cris/cris.md: Use correct operand in a define_peephole2.
3472 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3474 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
3476 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
3478 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
3479 this_insn if it is an INSN or JUMP_INSN.
3480 (force_offsettable): Look at base, not at addr.
3481 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
3482 on things that aren't necessarily CONST_INTs.
3484 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
3486 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
3487 -mfpmath=sse is the default also for x86-32 targets with SSE2
3488 instruction set when @option{-ffast-math} is enabled
3490 2017-02-24 Jeff Law <law@redhat.com>
3492 PR rtl-optimizatoin/79286
3493 * ira.c (update_equiv_regs): Drop may_trap_p exception to
3496 2017-02-24 Richard Biener <rguenther@suse.de>
3498 PR tree-optimization/79389
3499 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3502 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
3504 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3505 function comment to reflect reality.
3506 (loop_exits_before_overflow): Fix typo in function description.
3508 2017-02-24 Richard Biener <rguenther@suse.de>
3510 PR tree-optimization/79389
3511 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3512 properly that a threading opportunity exists. Detect conditional
3513 copy/constant propagation opportunities.
3515 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
3517 * config/visium/visium.md (type): Add trap.
3518 (b): New mode attribute.
3519 (*btst): Rename into...
3520 (*btst<mode>): ...this and adjust.
3521 (*cbranchsi4_btst_insn): Rename into...
3522 (*cbranch<mode>4_btst_insn): ...this and adjust.
3523 (trap): New define_insn.
3525 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3527 PR tree-optimization/79389
3528 * ifcvt.c (struct noce_if_info): Add rev_cond field.
3529 (noce_reversed_cond_code): New function.
3530 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3531 reversed_comparison_code. Formatting fix.
3532 (noce_try_store_flag): Test rev_cond != NULL in addition to
3533 reversed_comparison_code.
3534 (noce_try_store_flag_constants): Likewise.
3535 (noce_try_store_flag_mask): Likewise.
3536 (noce_try_addcc): Use rev_cond if non-NULL instead of
3537 reversed_comparison_code.
3538 (noce_try_cmove_arith): Likewise. Formatting fixes.
3539 (noce_try_minmax, noce_try_abs): Clear rev_cond.
3540 (noce_find_if_block): Initialize rev_cond.
3541 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3542 instead of false as last argument never attempt to reverse it
3545 2017-02-23 Bin Cheng <bin.cheng@arm.com>
3547 PR tree-optimization/79663
3548 * tree-predcom.c (combine_chains): Process refs in reverse order
3549 only for ZERO length chains, and add explaining comment.
3551 2017-02-23 Jeff Law <law@redhat.com>
3553 PR tree-optimization/79578
3554 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3555 in call to operand_equal_p.
3557 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
3560 * config/i386/cpuid.h: Fix another undefined behavior.
3562 2017-02-23 Richard Biener <rguenther@suse.de>
3564 PR tree-optimization/79683
3565 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3566 vector types for data-refs.
3568 2017-02-23 Martin Liska <mliska@suse.cz>
3570 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3572 2017-02-23 Jakub Jelinek <jakub@redhat.com>
3575 * internal-fn.c (get_range_pos_neg): Moved to ...
3576 * tree.c (get_range_pos_neg): ... here. No longer static.
3577 * tree.h (get_range_pos_neg): New prototype.
3578 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3579 are known to be in between 0 and signed maximum inclusive, try to
3580 expand both unsigned and signed divmod and use the cheaper one from
3583 2017-02-22 Jeff Law <law@redhat.com>
3585 PR tree-optimization/79578
3586 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3587 to compare base operands.
3589 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
3592 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3593 gpc_reg_operand instead of fpr_reg_operand.
3595 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
3597 * config/mips/mips.c (mips_return_in_memory): Force FP
3598 vector types to be returned in memory for o32 ABI.
3600 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3602 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3603 instead of DW_TAG_member for static data member declarations and don't
3604 set no_linkage_name for static inline data members.
3605 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3608 2017-02-22 Martin Liska <mliska@suse.cz>
3610 * doc/invoke.texi: Replace inequality signs with square brackets
3613 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3615 PR tree-optimization/68644
3616 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3618 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
3621 * lra-constraints.c (simplify_operand_subreg): Handle
3622 WORD_REGISTER_OPERATIONS targets.
3624 2017-02-22 Jakub Jelinek <jakub@redhat.com>
3627 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3628 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3629 elimination by swapping fld*.
3631 2017-02-22 Richard Biener <rguenther@suse.de>
3633 PR tree-optimization/79673
3634 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3635 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3636 irrelevant address-space qualifiers and avoiding a
3637 ADDR_SPACE_CONVERT_EXPR from fold_convert.
3639 2017-02-22 Richard Biener <rguenther@suse.de>
3641 PR tree-optimization/79666
3642 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3643 to not symbolically negate if that may introduce undefined
3646 2017-02-22 Martin Liska <mliska@suse.cz>
3649 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3650 * data-streamer-out.c (streamer_write_gcov_count_stream):
3652 * value-prof.c (stream_out_histogram_value): Make assert more
3653 precise based on type of counter.
3655 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
3658 * config/i386/i386.md (standard_x87sse_constant_load splitter):
3659 Use nonimmediate_operand instead of memory_operand for operand 1.
3660 (float-extend standard_x87sse_constant_load splitter): Ditto.
3662 2017-02-21 Jeff Law <law@redhat.com>
3664 PR tree-optimization/79621
3665 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3666 blocks with edges to themselves.
3668 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3671 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3672 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3673 Use gimple_call_builtin_p.
3676 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3677 on temporarily removed DEBUG_INSNs.
3679 PR tree-optimization/79649
3680 * tree-loop-distribution.c (classify_partition): Give up on
3681 non-generic address space loads/stores.
3683 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
3685 * doc/loop.texi (Loop manipulation): Remove nonexistent
3686 tree_ssa_loop_version from the documentation.
3687 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3689 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3692 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3693 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3694 * config/rs6000/rs6000.c: Include except.h.
3695 (rs6000_expand_split_stack_prologue): Call
3696 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3698 2017-02-21 Martin Jambor <mjambor@suse.cz>
3701 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3704 2017-02-21 Martin Jambor <mjambor@suse.cz>
3706 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3707 for backward compatibility only.
3708 * doc/invoke.texi (Option Summary): Remove all references to
3711 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
3715 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3717 * lra-constraints.c (curr_insn_transform): Handle
3718 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3720 2017-02-21 Martin Liska <mliska@suse.cz>
3722 * config/i386/i386.opt: Replace -masm-dialect with -masm.
3724 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
3726 PR translation/79638
3727 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3729 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
3732 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3733 (arm_function_ok_for_sibcall): Return false for an indirect call by
3734 descriptor if all the argument registers are used.
3735 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3736 alignment of the function.
3738 2017-02-21 Jakub Jelinek <jakub@redhat.com>
3740 PR tree-optimization/61441
3741 * simplify-rtx.c (simplify_const_unary_operation): For
3742 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3743 the sNaN unmodified.
3745 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3747 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3748 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3749 instead of SYSTEM_HEADER_DIR.
3751 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
3752 Martin Liška <mliska@suse.cz>
3754 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3755 Fix typos and grammar, use active voice, and clarify.
3757 2017-02-20 Marek Polacek <polacek@redhat.com>
3760 * gimplify.c (gimplify_expr): Handle unused *&&L;.
3763 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3765 2017-02-20 Jakub Jelinek <jakub@redhat.com>
3768 * config/i386/i386.c (ix86_expand_builtin): Handle
3769 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3770 ix86_builtins_isa[fcode].isa as a requirement of those
3771 flags and any other flag in the bitmask.
3772 (ix86_init_mmx_sse_builtins): Use 0 instead of
3773 ~OPTION_MASK_ISA_64BIT as mask.
3774 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3775 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3776 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3777 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3779 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3782 * lra-constraints.c (split_reg): Check requested split mode
3783 is supported by the register.
3785 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3787 * lra-constraints.c (simplify_operand_subreg): Remove early
3790 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3793 * lra-constraints.c (curr_insn_transform): Tighten condition
3794 for converting SUBREG reloads from OP_OUT to OP_INOUT.
3796 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
3799 * lra-constraints.c (curr_insn_transform): Handle
3800 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3802 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
3805 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
3807 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3809 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
3812 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3815 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3817 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3820 2017-02-18 Jakub Jelinek <jakub@redhat.com>
3822 * final.c (last_columnnum, override_columnnum): New variables.
3823 (final_start_function): Set last_columnnum, pass it to begin_prologue
3824 hook and pass 0 to dwarf2out_begin_prologue.
3825 (final_scan_insn): Update override_columnnum. Pass last_columnnum
3826 to source_line debug hook.
3827 (notice_source_line): Compute last_columnnum and for debug_column_info
3828 return true on column changes.
3829 * debug.h (struct gcc_debug_hooks): Add column argument to
3830 source_line and begin_prologue hooks.
3831 (debug_nothing_int_charstar_int_bool): Remove prototype.
3832 (debug_nothing_int_int_charstar,
3833 debug_nothing_int_int_charstar_int_bool): New prototypes.
3834 (dwarf2out_begin_prologue): Add column argument.
3835 * debug.c (do_nothing_debug_hooks): Adjust source_line and
3836 begin_prologue hooks.
3837 (debug_nothing_int_charstar_int_bool): Remove.
3838 (debug_nothing_int_int_charstar,
3839 debug_nothing_int_int_charstar_int_bool): New functions.
3840 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3841 through to dwarf2out_source_line.
3842 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3843 (dwarf2out_source_line): Add column argument, emit it if requested.
3844 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3846 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3847 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3848 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3849 through to dwarf2out_begin_prologue.
3850 (vmsdbgout_source_line): Add column argument, pass it through to
3851 dwarf2out_source_line.
3852 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3853 dbxout_source_line caller.
3854 (dbxout_source_line): Add column argument.
3856 * common.opt (gno-column-info, gcolumn-info): New options.
3857 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3858 (check_die): Also test for multiple DW_AT_decl_column attributes.
3859 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3860 DW_AT_decl_column if requested.
3861 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3863 (gen_variable_die): Likewise.
3864 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3865 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3868 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3869 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3870 (ix86_handle_option): Handle OPT_m3dnowa.
3871 * doc/invoke.texi (-m3dnowa): Document.
3872 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3873 -m3dnowa instead of -m3dnow -march=athlon.
3876 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3877 instead of gcc_assert for K, r and R code checks. Formatting fixes.
3879 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3882 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3883 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3884 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3885 generator for vsx_xxpermdi_<mode>_be.
3886 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3887 force big-endian semantics.
3888 (vsx_xxpermdi_<mode>_be): New define_expand with same
3889 implementation as previous version of vsx_xxpermdi_<mode>.
3891 2017-02-17 Jakub Jelinek <jakub@redhat.com>
3893 PR tree-optimization/79327
3894 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3895 variable, its initialization and use.
3897 2017-02-17 Julia Koval <julia.koval@intel.com>
3899 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3900 (OPTION_MASK_ISA_PKU_UNSET): New.
3901 (ix86_handle_option): Handle -mrdpid.
3902 * config/i386/cpuid.h (bit_RDPID): New.
3903 * config/i386/driver-i386.c (host_detect_local_cpu):
3904 Detect RDPID feature.
3905 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3906 * config/i386/i386-c.c (ix86_target_macros_internal):
3908 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3909 (ix86_valid_target_attribute_inner_p): Add "rdpid".
3910 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3911 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3912 * config/i386/i386.md (define_insn "rdpid"): New.
3913 * config/i386/i386.opt Add -mrdpid.
3914 * config/i386/immintrin.h (_rdpid_u32): New.
3916 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
3918 PR rtl-optimization/79541
3919 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3920 instead of transforming it into USE.
3922 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
3924 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3925 If HONOR_SNANS (SFmode) force the input to a register.
3926 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3927 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3928 an frsp or similar insn.
3930 2017-02-17 Martin Liska <mliska@suse.cz>
3932 PR rtl-optimization/79577
3933 * params.def (selsched-max-sched-times): Increase minimum to 1.
3935 2017-02-17 Martin Liska <mliska@suse.cz>
3937 PR rtl-optimization/79574
3938 * gcse.c (want_to_gcse_p): Prevent integer overflow.
3940 2017-02-17 Martin Liska <mliska@suse.cz>
3942 PR tree-optimization/79529
3943 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3944 ssa_defined_default_def_p to handle cases which are implicitly
3946 * tree-ssa.c (ssa_defined_default_def_p): New function.
3947 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3948 which are implicitly defined.
3949 * tree-ssa.h (ssa_defined_default_def_p): Declare.
3951 2017-02-17 Richard Biener <rguenther@suse.de>
3954 * params.def (max-ssa-name-query-depth): Limit to 10.
3956 2017-02-17 Richard Biener <rguenther@suse.de>
3958 PR tree-optimization/79552
3959 * tree-ssa-structalias.c (visit_loadstore): Properly verify
3962 2017-02-17 Richard Biener <rguenther@suse.de>
3965 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3967 2017-02-17 Marek Polacek <polacek@redhat.com>
3970 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3971 (fold_negate_expr): New wrapper.
3973 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
3975 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
3976 Correct terminology and de-emphasize pre-standard behavior.
3978 2017-02-16 Alan Modra <amodra@gmail.com>
3980 PR rtl-optimization/79286
3981 * ira.c (def_dominates_uses): New function.
3982 (update_equiv_regs): Don't create an equivalence for insns that
3983 may trap where the register def does not dominate the use.
3985 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
3987 PR rtl-optimization/78127
3988 * lra.c (lra): Call lra_eliminate before finish the loop after
3991 2017-02-16 Richard Biener <rguenther@suse.de>
3993 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3995 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3996 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3997 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3998 (isl_val_int_from_wi): New function.
3999 (extract_affine_gmp): Rename to ...
4000 (extract_affine_wi): ... this, take a widest_int.
4001 (extract_affine_int): Just wrap extract_affine_wi.
4002 (add_param_constraints): Use isl_val_int_from_wi.
4003 (add_loop_constraints): Likewise, and extract_affine_wi.
4005 2017-02-15 Jeff Law <law@redhat.com>
4008 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
4009 ira_init_register_move_cost_if_necessary.
4011 2017-02-15 Martin Sebor <msebor@redhat.com>
4014 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
4015 removed in a prior commit.
4017 2017-02-15 Bin Cheng <bin.cheng@arm.com>
4019 PR tree-optimization/79347
4020 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
4021 counters during peeling.
4023 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
4025 * Makefile.in (site.exp): Remove "set ISLVER".
4027 2017-02-15 Jakub Jelinek <jakub@redhat.com>
4030 * real.c (real_from_integer): Call real_convert even for decimal.
4032 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
4035 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
4037 2017-02-14 Andrew Pinski <apinski@cavium.com>
4039 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
4040 cores and change the partno/implementer to be correct.
4041 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
4042 the 'B" as the implementer.
4043 * config/aarch64/aarch64-tune.md: Regenerate.
4045 2017-02-14 Carl Love <cel@us.ibm.com>
4047 * config/rs6000/rs6000.c: Add case statement entry to make the
4048 xvcvuxdsp built-in argument unsigned.
4049 * config/rs6000/vsx.md: Fix the source and return operand types so they
4050 match the instruction definitions from the ISA document. Fix typo
4051 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
4054 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
4057 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
4058 member early_clobber_alts.
4059 * lra-lives.c (reg_early_clobber_p): New.
4060 (process_bb_lives): Use it.
4061 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
4062 (debug_operand_data): Initialize early_clobber_alts.
4063 (setup_operand_alternative): Set up early_clobber_alts.
4064 (collect_non_operand_hard_regs): Ditto. Pass early clobber
4065 alternatives to new_insn_reg.
4066 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
4068 (lra_update_insn_regno_info): Pass the new arg.
4070 2017-02-14 Jakub Jelinek <jakub@redhat.com>
4073 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
4074 (new_oacc_loop_raw): Don't clear already cleared fields.
4077 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
4078 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
4079 _mm512_prefetch_i64gather_ps): New inline functions and macros.
4081 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
4084 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
4086 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
4089 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
4090 the extra instruction to the right place to store 128-bit constant
4093 2017-02-14 Martin Sebor <msebor@redhat.com>
4096 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
4097 warning for strings of unknown length.
4099 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
4101 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
4103 2017-02-14 Jeff Law <law@redhat.com>
4106 * ira-costs.c (scan_one_insn): Initialize register move costs
4107 for pseudos seen in USE/CLOBBER insns.
4109 PR tree-optimization/79095
4110 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
4111 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
4112 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
4113 if the operands are known to be not equal, then the resulting range
4115 (intersect_ranges): If the new range is ~[0,0] and the old range is
4116 wide, then prefer ~[0,0].
4117 * tree-vrp.c (overflow_comparison_p_1): New function.
4118 (overflow_comparison_p): New function.
4119 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
4120 if NAME is used in an overflow test.
4121 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
4122 overflow check that can be expressed as an equality test, then adjust
4123 ops to be that equality test.
4125 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4127 * config/s390/s390-builtin-types.def: Remove flags argument.
4128 * config/s390/s390.c (s390_init_builtins): Likewise.
4130 2017-02-14 Martin Liska <mliska@suse.cz>
4132 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
4133 vector. Fix trailing white spaces.
4135 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
4137 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
4140 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4142 PR rtl-optimization/68664
4143 * config/arm/arm.c (arm_sched_can_speculate_insn):
4144 New function. Declare prototype.
4145 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
4147 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4149 PR rtl-optimization/68664
4150 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
4152 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
4154 2017-02-14 Amit Pawar <amit.pawar@amd.com>
4156 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
4157 max skip bytes for function, loop and jump.
4159 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4161 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
4162 ABS_EXPR for gimple dump.
4164 2017-02-14 Jakub Jelinek <jakub@redhat.com>
4167 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
4169 PR tree-optimization/79408
4170 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
4171 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
4172 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4173 also if rhs1 is INTEGER_CST.
4175 2017-02-14 Richard Biener <rguenther@suse.de>
4178 * tree-into-ssa.c (insert_phi_nodes): When the function can
4179 have abnormal edges rewrite SSA names with broken use-def
4180 dominance out of SSA and register them for PHI insertion.
4182 2017-02-13 Martin Sebor <msebor@redhat.com>
4185 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
4186 clearing info.nowrite flag when snprintf size argument is a range.
4188 2017-02-13 Jakub Jelinek <jakub@redhat.com>
4190 * cprop.c (cprop_jump): Add missing space in string literal.
4191 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4192 (get_constraint_for_component_ref): Likewise.
4193 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4194 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
4195 * lra-constraints.c (process_alt_operands): Likewise.
4196 * ipa-inline.c (inline_small_functions): Likewise.
4197 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
4198 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4199 * trans-mem.c (diagnose_tm_1_op): Likewise.
4200 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
4201 (grid_parallel_clauses_gridifiable): Likewise.
4203 * config/nvptx/mkoffload.c (process): Add space in between
4206 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
4207 "MOD4_SSE_REGS" and "ALL_REGS".
4209 * spellcheck.c (test_data): Add , in between "foo" and "food".
4211 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4214 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
4215 boundary crossing check and subsequent code generation agree.
4217 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4219 * config/aarch64/aarch64.c (has_memory_op): Delete.
4220 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
4223 2017-02-13 Jakub Jelinek <jakub@redhat.com>
4225 PR rtl-optimization/79388
4226 PR rtl-optimization/79450
4227 * combine.c (distribute_notes): When removing TEM_INSN for which
4228 corresponding dest has last value recorded, invalidate that last
4231 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4233 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
4234 of explicit '@'. Add missing assembly comment marker on branch costs
4237 2017-02-13 Nathan Sidwell <nathan@acm.org>
4239 * gengtype-lex.l (<in_struct>): Add '/'.
4241 2017-02-13 Martin Liska <mliska@suse.cz>
4244 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
4246 2017-02-13 Richard Biener <rguenther@suse.de>
4248 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
4250 * configure: Re-generate.
4251 * config.in: Likewise.
4252 * graphite-dependences.c: Simplify as if
4253 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
4254 * graphite-isl-ast-to-gimple.c: Likewise.
4255 * graphite-optimize-isl.c: Likewise.
4256 * graphite-poly.c: Likewise.
4257 * graphite-sese-to-poly.c: Likewise.
4258 * graphite.h: Likewise.
4259 * toplev.c: Include isl/version.h and use isl_version () for
4260 printing the ISL version.
4261 * doc/install.texi: Update ISL requirement.
4263 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4265 * doc/standards.texi (Standards): Update reference to
4268 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4270 * doc/extend.texi (Named Address Spaces): sourceware.org now
4272 * doc/install.texi (Binaries): Ditto.
4275 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
4277 * doc/cpp.texi: Replace "stringify"/"stringification" with C
4278 standard terminology "stringize"/"stringizing" throughout.
4279 * doc/cppinternals.texi: Likewise.
4281 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
4283 * doc/extend.texi: Fix some spelling mistakes and typos.
4284 * doc/invoke.texi: Likewise.
4286 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4289 * params.def (inline-min-speedup) Change from 10 to 8.
4291 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4293 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
4296 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
4299 * ipa-inline-analysis.c (get_minimal_bb): New function.
4300 (record_modified): Use it.
4301 (remap_edge_change_prob): Handle also ancestor functions.
4303 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
4305 * doc/contrib.texi (Contributors): Remove broken link into
4306 the Mauve CVS repository.
4308 2017-02-11 Jakub Jelinek <jakub@redhat.com>
4311 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
4312 result computation whenever lhs doesn't have vector mode, not
4313 just when it has BLKmode.
4315 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4317 * doc/makefile.texi (profiledbootstrap): Refer to the
4318 installation instructions only in textual form.
4320 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4323 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
4325 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
4327 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
4328 (Specific): Update mingw-w64 reference.
4330 (Specific): Remove broken link to Renesas RX processor.
4332 2017-02-10 Richard Biener <rguenther@suse.de>
4334 * toplev.c (process_options): Do not mention obsolete graphite
4335 options when printing sorry message about missing graphite support.
4336 Mention -floop-nest-optimize.
4338 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
4340 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
4341 (vtst_p16): Likewise.
4342 (vtstq_p8): Likewise.
4343 (vtstq_p16): Likewise.
4345 (vtstq_p64): Likewise.
4346 * config/arm/arm_neon.h (vgetq_lane_p64): New.
4347 (vset_lane_p64): New.
4348 (vsetq_lane_p64): New.
4350 2017-02-10 Jakub Jelinek <jakub@redhat.com>
4352 PR tree-optimization/79411
4353 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
4354 stmt operands are SSA_NAMEs used in abnormal phis.
4355 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
4358 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4361 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
4364 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
4366 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
4368 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4370 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
4374 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
4375 not arbitrary TREE_CONSTANT.
4378 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
4379 "omp declare target link" attribute unless is_global_var.
4380 * omp-offload.c (find_link_var_op): Likewise.
4382 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4383 Chung-Lin Tang <cltang@codesourcery.com>
4385 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
4387 (gimplify_adjust_omp_clauses): Don't delete TILE.
4388 (gimplify_omp_for): Deal with TILE.
4389 * internal-fn.c (expand_GOACC_TILE): New function.
4390 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
4392 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
4393 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
4395 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
4396 avoid DIV for outermost collapse var.
4397 (expand_oacc_for): Insert tile element loop as needed. Adjust.
4398 Remove out of date comments, fix whitespace.
4399 * omp-general.c (omp_extract_for_data): Deal with tiling.
4400 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
4401 adjust OLF_DIM_BASE value.
4402 (struct omp_for_data): Add tiling field.
4403 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
4404 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
4405 for auto loops. Remove default auto determining, moved to
4406 oacc_loop_fixed_partitions.
4407 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
4408 stmts, add e_mask field.
4409 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
4410 (oacc_thread_numbers): Use oacc_dim_call.
4411 (oacc_xform_tile): New.
4412 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
4413 (finish_oacc_loop): Adjust for ifns vector.
4414 (oacc_loop_discover_walk): Append loop abstraction sites to list,
4415 add case for GOACC_TILE fns.
4416 (oacc_loop_xform_loop): Delete.
4417 (oacc_loop_process): Iterate over call list directly, and add
4418 handling for GOACC_TILE fns.
4419 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
4421 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
4422 vector partitioning to outer loops. Assign 2 partitions to loops
4423 when available. Add TILE handling.
4424 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
4425 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
4426 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
4427 * tree.c (omp_clause_num_ops): Adjust TILE ops.
4428 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
4430 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
4432 * configure.ac (ACX_BUGURL): Update.
4433 * configure: Regenerate.
4435 2017-02-09 Richard Biener <rguenther@suse.de>
4437 PR tree-optimization/69823
4438 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4439 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
4441 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * config/arc/arc-c.def: Add __NPS400__ definition.
4444 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
4445 (TARGET_NPS400): Define.
4447 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4449 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
4451 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
4453 (arc_cpu_types): Fill the arch_info field with a pointer into the
4454 arc_arch_types table.
4455 (arc_selected_cpu): Declare.
4456 * config/arc/arc.c (arc_selected_cpu): Make global.
4457 (arc_selected_arch): Delete.
4458 (arc_base_cpu): Delete.
4459 (arc_override_options): Remove references to deleted variables,
4460 update access to arch information.
4461 (ARC_OPT): Update access to arch information.
4462 (ARC_OPTX): Likewise.
4463 * config/arc/arc.h (arc_base_cpu): Remove declaration.
4464 (TARGET_ARC600): Update access to arch information.
4465 (TARGET_ARC601): Likewise.
4466 (TARGET_ARC700): Likewise.
4467 (TARGET_EM): Likewise.
4468 (TARGET_HS): Likewise.
4469 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
4472 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
4475 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
4476 condition/operands for integer GE/LE/GEU/LEU operations.
4478 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
4480 PR translation/79397
4481 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
4484 2017-02-08 Martin Jambor <mjambor@suse.cz>
4487 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
4488 whether allocation happened.
4489 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
4490 nothing was allocated.
4492 2017-02-08 Jakub Jelinek <jakub@redhat.com>
4494 PR tree-optimization/79408
4495 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
4496 constant, but SSA_NAME with a known integer range, use the minimum
4497 of that range instead of op1 to determine if modulo can be replaced
4498 with its first operand.
4500 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4502 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4504 2017-02-08 Richard Biener <rguenther@suse.de>
4506 PR tree-optimization/71824
4507 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4508 Check all loops contained in the merged region.
4510 2017-02-07 Andrew Pinski <apinski@cavium.com>
4512 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4514 2017-02-07 Andrew Pinski <apinski@cavium.com>
4516 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4517 (thunderxt88): Likewise.
4518 (thunderxt81): Disable LSE and change v8.1 to v8.
4519 (thunderxt83): Likewise.
4521 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4522 Richard Biener <rguenther@suse.de>
4525 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4526 type from int to size_t.
4527 * ira-costs.c (struct_costs_size): Change type from int to size_t.
4529 2017-02-07 Jakub Jelinek <jakub@redhat.com>
4531 PR rtl-optimization/79386
4532 * cprop.c (bypass_conditional_jumps): Initialize
4533 bypass_last_basic_block already before splitting bbs after
4534 unconditional traps...
4535 (bypass_conditional_jumps): ... rather than here.
4538 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4539 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4540 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4541 fix -masm=intel patterns.
4543 2017-02-07 Richard Biener <rguenther@suse.de>
4545 PR tree-optimization/79256
4547 * builtins.c (get_object_alignment_2): Use min_align_of_type
4548 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4549 and ADJUST_FIELD_ALIGN.
4551 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4553 * doc/tm.texi: Regenerate.
4554 * stor-layout.c (layout_decl): Adjust.
4555 (update_alignment_for_field): Likewise.
4556 (place_field): Likewise.
4557 (min_align_of_type): Likewise.
4558 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4559 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4560 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4561 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4562 * config/frv/frv.c (frv_adjust_field_align): Likewise.
4563 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4564 * config/i386/i386.c (x86_field_alignment): Likewise.
4565 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4566 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4567 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4568 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4569 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4570 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4574 2017-01-30 Richard Biener <rguenther@suse.de>
4576 PR tree-optimization/79256
4577 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4578 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4581 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
4583 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4584 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4585 builtins to SImode and emit a zero-extend, if necessary.
4587 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4589 * docs/invoke.texi (RISC-V Options): Alphabetize.
4591 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4593 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4596 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
4598 * config/riscv/riscv.c: New file.
4599 * gcc/common/config/riscv/riscv-common.c: Likewise.
4600 * config.gcc: Likewise.
4601 * config/riscv/constraints.md: Likewise.
4602 * config/riscv/elf.h: Likewise.
4603 * config/riscv/generic.md: Likewise.
4604 * config/riscv/linux.h: Likewise.
4605 * config/riscv/multilib-generator: Likewise.
4606 * config/riscv/peephole.md: Likewise.
4607 * config/riscv/pic.md: Likewise.
4608 * config/riscv/predicates.md: Likewise.
4609 * config/riscv/riscv-builtins.c: Likewise.
4610 * config/riscv/riscv-c.c: Likewise.
4611 * config/riscv/riscv-ftypes.def: Likewise.
4612 * config/riscv/riscv-modes.def: Likewise.
4613 * config/riscv/riscv-opts.h: Likewise.
4614 * config/riscv/riscv-protos.h: Likewise.
4615 * config/riscv/riscv.h: Likewise.
4616 * config/riscv/riscv.md: Likewise.
4617 * config/riscv/riscv.opt: Likewise.
4618 * config/riscv/sync.md: Likewise.
4619 * config/riscv/t-elf-multilib: Likewise.
4620 * config/riscv/t-linux: Likewise.
4621 * config/riscv/t-linux-multilib: Likewise.
4622 * config/riscv/t-riscv: Likewise.
4623 * configure.ac: Likewise.
4624 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4625 Waterman as RISC-V maintainers.
4626 * doc/install.texi: Add RISC-V entries.
4627 * doc/invoke.texi: Add RISC-V options section.
4628 * doc/md.texi: Add RISC-V constraints section.
4629 * configure: Regenerated.
4631 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4634 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4635 false values to be constant vectors with all 0 or all 1 bits set.
4636 (vcondu<mode><mode>): Likewise.
4637 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4639 (fpmask_comparison_operator): Update comment.
4640 (vecint_comparison_operator): New predicate.
4641 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4642 vector conditionals when the true and false values are constant
4643 vectors with all 0 bits or all 1 bits set.
4645 2017-02-06 Martin Sebor <msebor@redhat.com>
4647 PR tree-optimization/79376
4648 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4650 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
4652 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4653 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
4654 to simplify split condition.
4656 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4658 * omp-expand.c (oxpand_omp_atomic_fetch_op,
4659 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4662 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
4664 PR rtl-optimization/68664
4665 * target.def (can_speculate_insn): New hook.
4666 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4667 * doc/tm.texi: Regenerate.
4668 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4669 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4670 (rs6000_sched_can_speculate_insn): New function.
4672 2017-02-06 Jakub Jelinek <jakub@redhat.com>
4674 PR tree-optimization/79284
4675 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4676 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4677 vectorizable_mask_load_store, vectorizable_operation,
4678 vect_is_simple_cond, get_same_sized_vectype): Use it instead
4679 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4680 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4681 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4682 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4683 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4684 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4685 is_gimple_assign (stmt). Replace another such test with
4686 is_gimple_assign (stmt).
4688 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4691 * config/avr/avr.c (rtl-iter.h): Include it.
4692 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4693 (avr_legitimate_combined_insn): ...and implementation.
4695 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
4697 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4698 * config/s390/s390.c (s390_const_operand_ok)
4699 (s390_canonicalize_comparison, s390_extract_part)
4700 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4701 (s390_contiguous_bitmask_p, s390_rtx_costs)
4702 (legitimize_pic_address): Likewise.
4703 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4704 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4705 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4706 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4707 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4709 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
4711 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4712 REGNO($0) == REGNO($1).
4714 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4716 * config/s390/linux.h(SIZE_TYPE): Add comment.
4718 2017-02-06 Julian Brown <julian@codesourcery.com>
4719 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4720 Virendra Pathak <virendra.pathak@broadcom.com>
4722 * config/aarch64/aarch64-cores.def: Change the scheduler
4724 * config/aarch64/aarch64.md: Include thunderx2t99.md.
4725 * config/aarch64/thunderx2t99.md: New file.
4727 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4729 * doc/standards.texi (Go Language): Update link to language
4732 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4734 * tree-eh.c (lower_resx): Sanitize profile.
4735 (cleanup_empty_eh_move_lp): Likewise.
4737 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
4740 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4742 * cfgloopmanip.h (loop_version): Update prototype.
4743 * modulo-sched.c (sms_schedule): Update call of loop_version.
4744 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4745 * tree-parloops.c (gen_parallel_loop): Likewise.
4746 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4747 * tree-ssa-loop-split.c (split_loop): Likewise.
4748 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4749 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4751 2017-02-05 Martin Liska <mliska@suse.cz>
4754 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4756 (print_operand_address): Initialize a struct to zero.
4758 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4760 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4761 garbage collector only in textual form.
4763 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
4765 * doc/extend.texi (x86 specific memory model extensions for
4766 transactional memory): Simplify a phrase.
4768 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
4771 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4772 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4773 (atomic_storedi_1): Likewise.
4775 2017-02-04 Jakub Jelinek <jakub@redhat.com>
4777 PR tree-optimization/79338
4778 * tree-parloops.c (gather_scalar_reductions): Don't call
4779 vect_analyze_loop_form for loop->inner before destroying loop's
4782 2017-02-03 Martin Sebor <msebor@redhat.com>
4784 PR tree-optimization/79327
4785 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4786 when precision has resulted in leading zeros.
4787 (format_integer): Adjust the likely counter to assume an unknown
4788 argument that may be zero is non-zero.
4790 2017-02-03 Jason Merrill <jason@redhat.com>
4793 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4794 avoid copying non-taken branch.
4796 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4798 PR tree-optimization/79340
4799 * tree-vect-loop.c (vectorizable_reduction): Release
4800 vec_defs elements after safe_splicing them into other vectors.
4803 PR tree-optimization/79327
4804 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4805 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4807 (format_integer): Use wide_int_to_tree instead of build_int_cst
4808 + to_?hwi. If argmin is NULL, just set argmin and argmax to
4809 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
4810 of shortest and longest sequence.
4812 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
4814 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4815 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4817 2017-02-03 Walter Lee <walt@tilera.com>
4820 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4821 after initial stackframe link reg save.
4822 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4824 2017-02-03 Jakub Jelinek <jakub@redhat.com>
4827 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4828 wu for stxssp alternative.
4830 2017-02-03 Martin Sebor <msebor@redhat.com>
4832 PR tree-optimization/79352
4833 * gimple-fold.c (get_range_strlen): Add argument.
4834 (get_range_strlen): Change return type to bool.
4835 (get_maxval_strlen): Pass in a dummy argument.
4836 * gimple-fold.h (get_range_strlen): Change return type to bool.
4837 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4838 * tree.h (array_at_struct_end_p): Add argument.
4839 * tree.c (array_at_struct_end_p): Handle it.
4841 2017-02-03 Martin Liska <mliska@suse.cz>
4844 * multiple_target.c (create_dispatcher_calls): Redirect edge
4845 from a caller of a dispatcher.
4846 (expand_target_clones): Make the clones local.
4847 (ipa_target_clone): Do both target clones and resolvers.
4848 (ipa_dispatcher_calls): Remove the pass.
4849 (pass_dispatcher_calls::gate): Likewise.
4850 (make_pass_dispatcher_calls): Likewise.
4851 * passes.def (pass_target_clone): Put as very first IPA early
4854 2017-02-03 Martin Liska <mliska@suse.cz>
4856 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4857 in case of a function with ifunc attribute.
4859 2017-02-03 Martin Liska <mliska@suse.cz>
4861 * cgraph.c (cgraph_node::dump): Dump function version info.
4862 * symtab.c (symtab_node::dump_base): Add missing new line.
4864 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4866 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4867 (ifcombine_ifandif): Use it.
4869 2017-02-03 Martin Liska <mliska@suse.cz>
4871 * doc/invoke.texi: Document default value for
4872 use-after-scope-direct-emission-threshold.
4874 2017-02-03 Martin Liska <mliska@suse.cz>
4876 PR tree-optimization/79339
4877 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4878 (format_floating): Likewise.
4880 2017-02-03 Martin Liska <mliska@suse.cz>
4883 * ipa-prop.c (ipa_node_params_t::insert): Remove current
4885 (ipa_node_params_t::remove): Likewise.
4886 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4887 initialization from removed ipa_node_params_t::insert.
4888 (ipa_node_params::~ipa_node_params): Move from removed
4889 ipa_node_params_t::release.
4890 * symbol-summary.h (symbol_summary::m_released): New member.
4891 Do not release a summary twice. Do not allow to call finalizer
4892 for types of a summary that live in GGC memory.
4894 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4896 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4899 2017-02-02 Martin Sebor <msebor@redhat.com>
4902 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4903 (format_string): Tighten up the range of output for non-constant
4904 strings and correct the expected range for wide non-constant strings.
4906 2017-02-02 Martin Sebor <msebor@redhat.com>
4908 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4911 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4913 (-fdump-tree-@var): Add to index and document how to come up
4914 with pass-specific option and dump file names.
4915 (-fdump-passes): Clarify where to look for output.
4917 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4920 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4921 statistics of the analyzed path; allow threading for speed when
4922 any of BBs along the path are optimized for speed.
4924 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
4927 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4928 settings of the virtual registers.
4931 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4933 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4934 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4937 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4939 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4940 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4942 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4944 * config/s390/s390.md: Add missing comments with the expanded
4946 * config/s390/vector.md: Likewise.
4947 * config/s390/vx-builtins.md: Likewise.
4949 2017-02-02 Jakub Jelinek <jakub@redhat.com>
4952 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4953 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
4954 conditions on a single line.
4956 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4958 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4959 __S390_VX__ to __VX__.
4961 2017-02-01 Andrew Pinski <apinski@cavium.com>
4963 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4964 stmt_info to record_stmt_cost.
4965 (vect_get_known_peeling_cost): Pass stmt_info if known to
4967 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4968 cpu_vector_cost field into
4969 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
4970 field into vec_int_stmt_cost and vec_fp_stmt_cost.
4971 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4972 splitting of scalar_stmt_cost and vec_stmt_cost.
4973 (thunderx_vector_cost): Likewise.
4974 (cortexa57_vector_cost): LIkewise.
4975 (exynosm1_vector_cost): Likewise.
4976 (xgene1_vector_cost): Likewise.
4977 (thunderx2t99_vector_cost): Improve after the splitting of the two
4979 (aarch64_builtin_vectorization_cost): Update for the splitting of
4980 scalar_stmt_cost and vec_stmt_cost.
4982 2017-02-01 Torvald Riegel <triegel@redhat.com>
4983 Richard Henderson <rth@redhat.com>
4985 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4986 conditional on existance of a fast atomic load.
4987 * optabs-query.c (can_atomic_load_p): New function.
4988 * optabs-query.h (can_atomic_load_p): Declare it.
4989 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4990 no fast atomic load is available for the particular size of access.
4991 (expand_atomic_compare_and_swap): Likewise.
4992 (expand_atomic_load): Likewise.
4993 (expand_atomic_store): Likewise.
4994 (expand_atomic_fetch_op): Likewise.
4995 * testsuite/lib/target-supports.exp
4996 (check_effective_target_sync_int_128): Remove x86 because it provides
4997 no fast atomic load.
4998 (check_effective_target_sync_int_128_runtime): Likewise.
5000 2017-02-01 Richard Biener <rguenther@suse.de>
5002 * graphite.c: Include tree-vectorizer.h for find_loop_location.
5003 (graphite_transform_loops): Provide opt-info for optimized nests.
5004 * tree-parloop.c (parallelize_loops): Provide opt-info for
5007 2017-02-01 Richard Biener <rguenther@suse.de>
5010 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
5013 2017-02-01 Richard Biener <rguenther@suse.de>
5015 PR tree-optimization/71824
5016 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
5017 Verify the loops are valid in the merged SESE region.
5018 (scop_detection::can_represent_loop_1): Check analyzing the
5019 evolution of the number of iterations in the region succeeds.
5021 2017-01-31 Ian Lance Taylor <iant@golang.org>
5023 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
5024 REG_ARGS_SIZE note to 32-bit push insns and call insn.
5026 2017-01-31 David Malcolm <dmalcolm@redhat.com>
5028 PR preprocessor/79210
5029 * input.c (get_substring_ranges_for_loc): Replace line_width
5030 assertion with error-handling.
5032 2017-01-31 Richard Biener <rguenther@suse.de>
5034 PR tree-optimization/77318
5035 * graphite-sese-to-poly.c (extract_affine): Fix assert.
5036 (create_pw_aff_from_tree): Take loop parameter.
5037 (add_condition_to_pbb): Pass loop of the condition to
5038 create_pw_aff_from_tree.
5040 2017-01-31 Jakub Jelinek <jakub@redhat.com>
5042 * config/s390/s390.c (s390_asan_shadow_offset): New function.
5043 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
5045 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5049 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
5051 (convert_int_to_float128): Likewise.
5052 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
5053 (convert_int_to_float128): Likewise.
5054 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
5055 (UNSPEC_IEEE128_CONVERT): Likewise.
5056 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
5057 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
5058 Use local variables for IBM extended format.
5059 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
5060 (fix_trunc<mode>si2_fprs): Likewise.
5061 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5062 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
5063 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
5064 to know that we can now have integers of all sizes in vector
5066 (fix<uns>_<mode>di2_hw): Likewise.
5067 (float<uns>_<mode>si2_hw): Likewise.
5068 (fix_<mode>si2_hw): Likewise.
5069 (fixuns_<mode>si2_hw): Likewise.
5070 (float<uns>_<mode>di2_hw): Likewise.
5071 (float_<mode>di2_hw): Likewise.
5072 (float_<mode>si2_hw): Likewise.
5073 (floatuns_<mode>di2_hw): Likewise.
5074 (floatuns_<mode>si2_hw): Likewise.
5075 (xscvqp<su>wz_<mode>): Delete, no longer used.
5076 (xscvqp<su>dz_<mode>): Likewise.
5077 (xscv<su>dqp_<mode>): Likewise.
5078 (ieee128_mfvsrd_64bit): Likewise.
5079 (ieee128_mfvsrd_32bit): Likewise.
5080 (ieee128_mfvsrwz): Likewise.
5081 (ieee128_mtvsrw): Likewise.
5082 (ieee128_mtvsrd_64bit): Likewise.
5083 (ieee128_mtvsrd_32bit): Likewise.
5085 2017-01-31 Martin Liska <mliska@suse.cz>
5088 * ipa-prop.c (ipa_free_all_node_params): Call release method
5089 instead of ~sumbol_summary to not to trigger double times
5092 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
5094 PR tree-optimization/71691
5095 * bitmap.h (class auto_bitmap): New.
5096 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
5097 is_maybe_undefined instead of ssa_undefined_value_p.
5099 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5101 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
5102 __S390_ARCH_LEVEL__ to __ARCH__.
5104 2017-01-31 Jakub Jelinek <jakub@redhat.com>
5106 PR tree-optimization/79267
5107 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
5108 if should_remove_lhs_p is true.
5110 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
5113 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
5114 (add_alignment_attribute): New.
5115 (base_type_die): Add alignment attribute.
5116 (subrange_type_die): Likewise.
5117 (modified_type_die): Likewise.
5118 (gen_array_type_die): Likewise.
5119 (gen_descr_array_type_die: Likewise.
5120 (gen_enumeration_type_die): Likewise.
5121 (gen_subprogram_die): Likewise.
5122 (gen_variable_die): Likewise.
5123 (gen_field_die): Likewise.
5124 (gen_ptr_to_mbr_type_die): Likewise.
5125 (gen_struct_or_union_type_die): Likewise.
5126 (gen_subroutine_type_die): Likewise.
5127 (gen_typedef_die): Likewise.
5128 (base_type_cmp): Compare alignment attribute.
5130 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5133 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
5134 (setb_unsigned) New pattern for setb with CCUNS.
5135 * config/rs6000/rs6000.c (expand_block_compare): Use a different
5136 subfc./subfe sequence to avoid overflow problems. Generate a
5137 shorter sequence with cmpld/setb for power9.
5138 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
5139 for generating subfc. instruction.
5140 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
5141 now uses this instruction.
5143 2017-01-30 Ian Lance Taylor <iant@google.com>
5146 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
5147 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
5149 2017-01-30 Martin Sebor <msebor@redhat.com>
5151 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
5152 Move constant to the right of a relational operator.
5153 (get_mpfr_format_length, format_character, format_string): Ditto.
5154 (should_warn_p, maybe_warn): Same.
5156 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
5158 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
5161 * asan.c (get_translation_unit_decl): Remove function.
5162 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
5164 2017-01-30 Martin Liska <mliska@suse.cz>
5166 PR gcov-profile/79259
5167 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
5170 2017-01-30 Martin Liska <mliska@suse.cz>
5173 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
5174 Initialize variables with NULL value.
5176 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
5179 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
5181 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
5183 2017-01-30 Richard Biener <rguenther@suse.de>
5185 PR tree-optimization/79276
5186 * tree-vrp.c (process_assert_insertions): Properly adjust common
5187 when removing a duplicate.
5189 * gcc.dg/torture/pr79276.c: New testcase.
5191 2017-01-30 Richard Biener <rguenther@suse.de>
5193 PR tree-optimization/79256
5194 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
5195 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
5197 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
5199 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
5202 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
5203 ("*r<noxa>sbg_<mode>_sll_bitmask")
5204 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5205 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
5206 Use contiguous_bitmask_nowrap_operand.
5208 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5211 * config/rs6000/altivec.h (vec_xl): Revise #define.
5212 (vec_xst): Likewise.
5214 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
5216 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
5218 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
5220 PR rtl-optimization/79194
5221 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
5222 traps before call to bypass_conditional_jumps.
5224 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
5226 PR tree-optimization/71374
5227 * lra-constraints.c (check_conflict_input_operands): New.
5228 (match_reload): Use it.
5230 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
5233 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
5234 account to calculate conflict_set.
5236 2017-01-27 Bin Cheng <bin.cheng@arm.com>
5238 PR rtl-optimization/78559
5239 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
5240 other_insn in combine.
5242 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
5244 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
5245 uint16_type_node for BT_UINT16.
5247 2017-01-27 David Malcolm <dmalcolm@redhat.com>
5249 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
5250 "RTL Tests" to menu.
5251 (GIMPLE Tests): New node.
5252 (RTL Tests): New node.
5254 2017-01-27 Richard Biener <rguenther@suse.de>
5256 PR tree-optimization/79245
5257 * tree-loop-distribution.c (distribute_loop): Apply cost
5258 modeling also to detected patterns.
5260 2017-01-27 Richard Biener <rguenther@suse.de>
5262 PR tree-optimization/71433
5263 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
5264 (compare_assert_loc): New function.
5265 (process_assert_insertions): Sort and optimize assert locations
5266 to remove duplicates and push down identical assertions on
5267 edges to their destination block.
5269 2017-01-27 Richard Biener <rguenther@suse.de>
5271 PR tree-optimization/79244
5272 * tree-vrp.c (remove_range_assertions): Forcefully propagate
5273 out SSA names even if abnormal.
5275 2017-01-27 Jakub Jelinek <jakub@redhat.com>
5277 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
5278 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
5279 instead of MPFR_RNDN.
5281 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
5284 * arm.c (arm_option_override): Don't call build_target_option_node
5285 until after doing all option overrides.
5286 (arm_valid_target_attribute_tree): Likewise.
5288 2017-01-27 Martin Liska <mliska@suse.cz>
5290 * doc/invoke.texi (-fprofile-arcs): Document profiling support
5291 for {cd}tors and C++ {cd}tors.
5293 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5295 * config/s390/s390.md ("*setmem_long_and")
5296 ("*setmem_long_and_31z"): Use zero_extend instead of and.
5298 2017-01-26 Martin Sebor <msebor@redhat.com>
5300 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
5303 2017-01-26 Martin Sebor <msebor@redhat.com>
5305 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
5306 HAVE_DFmode before using XFmode or DFmode.
5307 (parse_directive): Avoid using the z length modifier to avoid
5308 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
5311 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
5312 to accept adjustment as an array.
5313 (get_int_range): New function.
5314 (struct directive): Make width and prec arrays.
5315 (directive::set_width, directive::set_precision): Call get_int_range.
5316 (format_integer, format_floating): Handle width and precision ranges.
5317 (format_string, parse_directive): Same.
5319 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5322 * dwarf2out.c (generate_skeleton_bottom_up): For children with
5323 comdat_type_p set, just clone them, but keep the children in the
5327 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
5328 which have direct callers with -fvar-tracking-assignments enabled
5330 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
5331 inside of type units.
5333 2017-01-26 Martin Sebor <msebor@redhat.com>
5336 * gimple-ssa-sprintf.c (struct result_range): Add likely and
5338 (struct format_result): Replace number_chars, number_chars_min,
5339 and number_chars_max with a single member of struct result_range.
5341 (format_result::operator+=): Adjust.
5342 (struct fmtresult): Remove bounded. Handle likely and unlikely
5344 (fmtresult::adjust_for_width_or_precision): New function.
5345 (fmtresult:type_max_digits): New function.
5346 (bytes_remaining): Handle likely and unlikely counters.
5347 (min_bytes_remaining): Remove.
5348 (format_percent): Simplify.
5349 (format_integer, format_floating): Set likely and unlikely counters.
5350 (get_string_length, format_character, format_string): Same.
5351 (format_plain, should_warn_p): New function.
5352 (maybe_warn): Call should_warn_p. Update diagnostic messages
5353 and handle those for all directives, including plain strings.
5354 (format_directive): Handle likely and unlikely counters.
5355 Remove unnecessary quoting from diagnostics. Add an informational
5357 (add_bytes): Remove.
5358 (pass_sprintf_length::compute_format_length): Simplify.
5359 (try_substitute_return_value): Handle likely and unlikely counters.
5361 2017-01-26 Carl Love <cel@us.ibm.com>
5363 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
5364 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
5366 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
5369 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
5370 endianess for subregs into account.
5371 * lra-constraints.c (lra_constraints): Do risky transformations
5372 always on the first iteration.
5373 * lra-lives.c (check_pseudos_live_through_calls): Add arg
5374 last_call_used_reg_set.
5375 (process_bb_lives): Define and use last_call_used_reg_set.
5376 * lra.c (lra): Always continue after lra_constraints on the first
5379 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
5381 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
5383 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
5385 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5387 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
5388 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
5389 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
5390 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
5391 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
5392 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
5393 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
5394 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
5395 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
5397 2017-01-26 Marek Polacek <polacek@redhat.com>
5400 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
5401 for the third operand.
5403 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5406 * omp-low.c (struct omp_context): Add simt_stmt field.
5407 (scan_omp_for): Return omp_context *.
5408 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
5409 context to the _simt_ SIMD stmt.
5410 (lower_omp_for): For combined SIMD with sibling _simt_
5411 SIMD, make sure to use the same decls in _looptemp_
5412 clauses as in the sibling.
5414 2017-01-26 David Sherwood <david.sherwood@arm.com>
5417 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
5420 2017-01-26 Jakub Jelinek <jakub@redhat.com>
5423 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
5424 emit fld b; fld a; if possible.
5426 * brig-builtins.def: Update copyright years.
5427 * config/arm/arm_acle_builtins.def: Update copyright years.
5429 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5432 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
5433 constraint instead of o for the stxsd instruction.
5435 2017-01-25 Carl Love <cel@us.ibm.com>
5437 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
5438 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
5440 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
5442 * doc/invoke.texi (C++ Dialect Options): Fix typo.
5444 2017-01-25 Richard Biener <rguenther@suse.de>
5446 PR tree-optimization/69264
5447 * target.def (vector_alignment_reachable): Improve documentation.
5448 * doc/tm.texi: Regenerate.
5449 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
5451 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
5452 earlier changes with respect to TYPE_USER_ALIGN.
5453 (vector_alignment_reachable_p): Likewise. Improve dumping.
5455 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5458 * config/arm/arm.md (xordi3): Force constant operand into a register
5461 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5463 * doc/invoke.texi (-fstore-merging): Correct default optimization
5464 levels at which it is enabled.
5465 (-O): Move -fstore-merging from list to...
5468 2017-01-25 Richard Biener <rguenther@suse.de>
5471 * omp-expand.c: Include debug.h.
5472 (expand_omp_taskreg): Make sure to generate early debug before
5473 outlining anything from a function.
5474 (expand_omp_target): Likewise.
5475 (grid_expand_target_grid_body): Likewise.
5477 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
5480 * asan.c (get_translation_unit_decl): New function.
5481 (asan_add_global): Extract modules file name from globals
5482 TRANSLATION_UNIT_DECL name.
5484 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
5487 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
5488 for long calls with APCS frame and VFP.
5490 2017-01-24 David Malcolm <dmalcolm@redhat.com>
5492 * cfg.c (original_copy_tables_initialized_p): New function.
5493 * cfg.h (original_copy_tables_initialized_p): New decl.
5494 * cfgrtl.c (relink_block_chain): Guard the call to
5495 free_original_copy_tables with a call to
5496 original_copy_tables_initialized_p.
5497 * cgraph.h (symtab_node::native_rtl_p): New decl.
5498 * cgraphunit.c (symtab_node::native_rtl_p): New function.
5499 (symtab_node::needed_p): Don't assert for early assembly output
5500 for __RTL functions.
5501 (cgraph_node::finalize_function): Set "force_output" for __RTL
5503 (cgraph_node::analyze): Bail out early for __RTL functions.
5504 (analyze_functions): Update assertion to support __RTL functions.
5505 (cgraph_node::expand): Bail out early for __RTL functions.
5506 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5508 * function.h (struct function): Update comment for field
5510 * gimple-expr.c: Include "tree-pass.h".
5511 (gimple_has_body_p): Return false for __RTL functions.
5512 * Makefile.in (OBJS): Add run-rtl-passes.o.
5513 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5515 (gcc::pass_manager::get_clean_slate): New accessor.
5516 * passes.c: Include "insn-addr.h".
5517 (should_skip_pass_p): Add logging. Update logic for running
5518 "expand" to be compatible with both __GIMPLE and __RTL. Guard
5519 property-provider override so it is only done for gimple passes.
5521 (skip_pass): New function.
5522 (execute_one_pass): Call skip_pass when skipping passes.
5523 * read-md.c (md_reader::read_char): Support filtering
5524 the input to a subset of line numbers.
5525 (md_reader::md_reader): Initialize fields
5526 m_first_line and m_last_line.
5527 (md_reader::read_file_fragment): New function.
5528 * read-md.h (md_reader::read_file_fragment): New decl.
5529 (md_reader::m_first_line): New field.
5530 (md_reader::m_last_line): New field.
5531 * read-rtl-function.c (function_reader::create_function): Only
5532 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
5533 curr_properties. Set DECL_INITIAL to a dummy block.
5534 (read_rtl_function_body_from_file_range): New function.
5535 * read-rtl-function.h (read_rtl_function_body_from_file_range):
5537 * run-rtl-passes.c: New file.
5538 * run-rtl-passes.h: New file.
5540 2017-01-24 Jeff Law <law@redhat.com>
5542 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5545 2017-01-24 Bin Cheng <bin.cheng@arm.com>
5547 PR tree-optimization/79159
5548 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5549 (record_nonwrapping_iv): Improve boundary using above function if no
5550 value range information.
5552 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
5553 Martin Jambor <mjambor@suse.cz>
5555 * brig-builtins.def: New file.
5556 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5557 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5558 (DEF_HSAIL_SAT_BUILTIN): Likewise.
5559 (DEF_HSAIL_INTR_BUILTIN): Likewise.
5560 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5561 * builtin-types.def (BT_INT8): New.
5562 (BT_INT16): Likewise.
5563 (BT_UINT8): Likewise.
5564 (BT_UINT16): Likewise.
5565 (BT_FN_ULONG): Likewise.
5566 (BT_FN_UINT_INT): Likewise.
5567 (BT_FN_UINT_ULONG): Likewise.
5568 (BT_FN_UINT_LONG): Likewise.
5569 (BT_FN_UINT_PTR): Likewise.
5570 (BT_FN_ULONG_PTR): Likewise.
5571 (BT_FN_INT8_FLOAT): Likewise.
5572 (BT_FN_INT16_FLOAT): Likewise.
5573 (BT_FN_UINT32_FLOAT): Likewise.
5574 (BT_FN_UINT16_FLOAT): Likewise.
5575 (BT_FN_UINT8_FLOAT): Likewise.
5576 (BT_FN_UINT64_FLOAT): Likewise.
5577 (BT_FN_UINT16_UINT32): Likewise.
5578 (BT_FN_UINT32_UINT16): Likewise.
5579 (BT_FN_UINT16_UINT16_UINT16): Likewise.
5580 (BT_FN_INT_PTR_INT): Likewise.
5581 (BT_FN_UINT_PTR_UINT): Likewise.
5582 (BT_FN_LONG_PTR_LONG): Likewise.
5583 (BT_FN_ULONG_PTR_ULONG): Likewise.
5584 (BT_FN_VOID_UINT64_UINT64): Likewise.
5585 (BT_FN_UINT8_UINT8_UINT8): Likewise.
5586 (BT_FN_INT8_INT8_INT8): Likewise.
5587 (BT_FN_INT16_INT16_INT16): Likewise.
5588 (BT_FN_INT_INT_INT): Likewise.
5589 (BT_FN_UINT_FLOAT_UINT): Likewise.
5590 (BT_FN_FLOAT_UINT_UINT): Likewise.
5591 (BT_FN_ULONG_UINT_UINT): Likewise.
5592 (BT_FN_ULONG_UINT_PTR): Likewise.
5593 (BT_FN_ULONG_ULONG_ULONG): Likewise.
5594 (BT_FN_UINT_UINT_UINT): Likewise.
5595 (BT_FN_VOID_UINT_PTR): Likewise.
5596 (BT_FN_UINT_UINT_PTR: Likewise.
5597 (BT_FN_UINT32_UINT64_PTR): Likewise.
5598 (BT_FN_INT_INT_UINT_UINT): Likewise.
5599 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5600 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5601 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5602 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5603 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5604 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5605 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5606 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5607 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5608 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5609 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5610 * doc/frontends.texi: List BRIG FE.
5611 * doc/install.texi (Testing): Add BRIG tesring requirements.
5612 * doc/invoke.texi (Overall Options): Mention BRIG.
5613 * doc/standards.texi (Standards): Doucment BRIG HSA version.
5615 2017-01-24 Richard Biener <rguenther@suse.de>
5617 PR translation/79208
5618 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5620 2017-01-24 Martin Jambor <mjambor@suse.cz>
5623 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5624 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5627 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
5630 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5631 casts from signed to unsigned really don't have a range.
5633 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
5635 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5636 GMP_RNDx for compatiblity.
5638 2017-01-24 Martin Liska <mliska@suse.cz>
5641 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5642 that would prevent us to call alloca with -1 as argument.
5644 2017-01-24 Jakub Jelinek <jakub@redhat.com>
5646 * dwarf2out.c (output_compilation_unit_header, output_file_names):
5647 Avoid -Wformat-security warning.
5649 2017-01-23 Andrew Pinski <apinski@cavium.com>
5651 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5654 2017-01-23 Martin Sebor <msebor@redhat.com>
5657 * gimple-ssa-sprintf.c (warn_level): New global.
5658 (format_integer): Use it here and throughout the rest of the file.
5659 Use the same switch to compute sign as base.
5660 (maybe_warn): New function.
5661 (format_directive): Factor out warnings into maybe_warn.
5662 Add debugging output. Use warn_level.
5663 (add_bytes): Use warn_level.
5664 (pass_sprintf_length::compute_format_length): Add debugging output.
5665 (try_substitute_return_value): Same.
5666 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5669 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5670 (struct fmtresult, format_integer, format_floating): Adjust.
5671 (fmtresult::fmtresult): Set max correctly in two argument ctor.
5672 (get_string_length, format_string,format_directive): Same.
5673 (pass_sprintf_length::compute_format_length): Same.
5674 (try_substitute_return_value): Simplify slightly.
5677 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5678 (fmtresult::operator+=): Outlined.
5679 (struct fmtresult): Add ctors.
5680 (struct conversion_spec): Rename...
5681 (struct directive): ...to this. Add and remove data members.
5682 (directive::set_width, directive::set_precision): New functions.
5683 (format_percent): Use fmtresult ctor.
5684 (get_width_and_precision): Remove.
5685 (format_integer): Make naming changes. Avoid computing width and
5687 (format_floating): Same. Adjust indentation.
5688 (format_character, format_none): New functions.
5689 (format_string): Moved character handling to format_character.
5690 (format_directive): Remove arguments, change return type.
5691 (parse_directive): New function.
5692 (pass_sprintf_length::compute_format_length): Move directive
5693 parsing to parse_directive.
5695 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5697 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5698 (assign_assembler_name_if_needed): ... this.
5699 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5700 (assign_assembler_name_if_needed): ... this.
5701 (free_lang_data_in_cgraph): Adjust callers.
5702 * cgraphunit.c (cgraph_node::analyze): Likewise.
5703 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5706 2017-01-23 Richard Biener <rguenther@suse.de>
5708 PR tree-optimization/79088
5709 PR tree-optimization/79188
5710 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5711 resetting loop bounds after last path deletion. Reset loop
5712 bounds of the target loop, make code match the comments.
5713 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5714 Make sure loops need no fixups.
5716 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
5718 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5719 exponent support with double type for first argument.
5720 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5721 type returned by __builtin_vec_extract_sig,
5722 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5723 functions from "vector int" to "vector unsigned int" or from
5724 "vector long long int" to "vector unsigned long long int".
5725 Changed type returned by __builtin_vec_extract_exp,
5726 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5727 functions from "vector int" to "vector unsigned int" or from
5728 "vector long long int" to "vector unsigned long long int".
5729 Changed return type of __builtin_vec_test_data_class,
5730 __builtin_vec_test_data_class_sp, and
5731 __builtin_vec_test_data_class_dp from "vector int" to
5732 "vector bool int" or from "vector long long int" to "vector bool
5733 long long int" and changed second argument type from "unsigned
5734 int" to "int". Added new overloaded function forms "vector float
5735 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5736 "vector float __builtin_vec_insert_exp_sp (vector float, vector
5737 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5738 double, vector unsigned long long int)" and "vector double
5739 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5740 long int)". Changed return type of
5741 __builtin_scalar_test_data_class and
5742 __builtin_scalar_test_data_class_sp and
5743 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5744 int" and changed second argument from "unsigned int" to "int".
5745 Changed type returned by __builtin_scalar_test_neg,
5746 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5747 from "int" to "bool int". Added new overloaded function form
5748 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5749 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5750 exponent double-precision with floating point first argument.
5751 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5752 documentation of scalar_test_data_class, scalar_test_neg,
5753 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5754 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5755 vec_test_data_class built-in functions to reflect refinements in
5756 their type signatures.
5758 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
5760 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5762 (aarch64_elf_asm_destructor): Likewise.
5764 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
5766 PR rtl-optimization/78634
5767 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5768 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5769 * ifcvt.c (noce_try_cmove): Add missing cost check.
5771 PR rtl-optimization/71724
5772 * combine.c (if_then_else_cond): Look for situations where it is
5773 beneficial to undo the work of one of the recursive calls.
5775 2017-01-23 Bin Cheng <bin.cheng@arm.com>
5777 PR tree-optimization/70754
5778 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5779 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
5780 combined stmt before it if not NULL.
5781 (combine_chains): Process refs reversely and compute dominance point
5784 2017-01-23 Martin Liska <mliska@suse.cz>
5786 PR tree-optimization/79196
5787 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5788 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
5790 (strlen_optimize_stmt): Call the renamed function.
5792 2017-01-23 Michael Matz <matz@suse.de>
5794 PR tree-optimization/78384
5795 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5797 2017-01-23 Richard Biener <rguenther@suse.de>
5799 PR tree-optimization/79186
5800 * tree-vrp.c (register_new_assert_for): Make sure we've seen
5801 both incoming edges before moving an assert.
5803 2017-01-23 Martin Jambor <mjambor@suse.cz>
5805 * ipa-prop.c (load_from_param_1): Removed.
5806 (load_from_unmodified_param): Bits from load_from_param_1 put back
5808 (load_from_param): Removed.
5809 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5810 with stmt. Reverted back to use of load_from_unmodified_param.
5812 2017-01-23 Martin Jambor <mjambor@suse.cz>
5815 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5816 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
5817 field a pointer to garbage collected vector, mark lattices and
5818 ipcp_orig_node with GTY((skip)).
5819 (ipa_get_param_count): Adjust to descriptors being a pointer.
5820 (ipa_get_param): Likewise.
5821 (ipa_get_type): Likewise.
5822 (ipa_get_param_move_cost): Likewise.
5823 (ipa_set_param_used): Likewise.
5824 (ipa_get_controlled_uses): Likewise.
5825 (ipa_set_controlled_uses): Likewise.
5826 (ipa_is_param_used): Likewise.
5827 (ipa_node_params_t): Move into garbage collector. New methods insert
5829 (ipa_node_params_sum): Annotate wth GTY(()).
5830 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5832 (ipa_load_from_parm_agg): Adjust declaration.
5833 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5834 * ipa-profile.c (ipa_profile): Likewise.
5835 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5836 (ipa_populate_param_decls): Make descriptors parameter garbage
5838 (ipa_dump_param): Adjust to descriptors being a pointer.
5839 (ipa_alloc_node_params): Likewise.
5840 (ipa_initialize_node_params): Likewise.
5841 (load_from_param_1): Make descriptors parameter garbage collected.
5842 (load_from_unmodified_param): Likewise.
5843 (load_from_param): Likewise.
5844 (ipa_load_from_parm_agg): Likewise.
5845 (ipa_node_params::~ipa_node_params): Removed.
5846 (ipa_free_all_node_params): Remove call to delete operator.
5847 (ipa_node_params_t::insert): New.
5848 (ipa_node_params_t::remove): Likewise.
5849 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5850 copy known_csts and known_contexts vectors.
5851 (ipa_read_node_info): Adjust to descriptors being a pointer.
5852 (ipcp_modif_dom_walker): Make m_descriptors field garbage
5854 (ipcp_transform_function): Make descriptors variable garbage
5857 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
5859 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5860 * config/i386/avx512dqintrin.h: Ditto.
5861 * config/i386/avx512fintrin.h: Ditto.
5862 * gcc/config/i386/i386.c: Handle new builtins.
5863 * config/i386/i386-builtin.def: Add new builtins.
5864 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5865 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5867 2017-01-23 Jakub Jelinek <jakub@redhat.com>
5868 Martin Liska <mliska@suse.cz>
5870 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5871 * asan.c (asan_expand_poison_ifn): Support stores and use
5872 appropriate ASAN report function.
5873 * internal-fn.c (expand_ASAN_POISON_USE): New function.
5874 * internal-fn.def (ASAN_POISON_USE): Declare.
5875 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5876 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5877 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5878 ASAN_POISON calls w/o LHS.
5879 * tree-ssa.c (execute_update_addresses_taken): Create clobber
5880 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5881 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5882 * gimplify.c (asan_poison_variables): Add attribute
5883 use_after_scope_memory to variables that really needs to live
5885 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5886 having the attribute.
5888 2017-01-23 Martin Liska <mliska@suse.cz>
5890 * asan.c (create_asan_shadow_var): New function.
5891 (asan_expand_poison_ifn): Likewise.
5892 * asan.h (asan_expand_poison_ifn): New declaration.
5893 * internal-fn.c (expand_ASAN_POISON): Likewise.
5894 * internal-fn.def (ASAN_POISON): New builtin.
5895 * sanopt.c (pass_sanopt::execute): Expand
5896 asan_expand_poison_ifn.
5897 * tree-inline.c (copy_decl_for_dup_finish): Make function
5899 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5900 * tree-ssa.c (is_asan_mark_p): New function.
5901 (execute_update_addresses_taken): Rewrite local variables
5902 (identified just by use-after-scope as addressable) into SSA.
5904 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5906 * doc/install.texi (Specific): opensource.apple.com uses https
5907 now. Remove trailing slash.
5909 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5911 * README.Portability: Remove note on an Irix compatibility issue.
5913 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
5915 * gcov.c (INCLUDE_ALGORITHM): Define.
5916 (INCLUDE_VECTOR): Define.
5917 No longer include <vector> and <algorithm> directly.
5919 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
5921 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5923 * doc/invoke.texi (Code Gen Options): Ditto.
5925 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
5928 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5930 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
5932 rtl-optimization/79125
5933 * cprop.c (local_cprop_pass): Handle cases where we make an
5936 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
5940 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5941 read from, for big endian.
5943 2017-01-20 Jiong Wang <jiong.wang@arm.com>
5945 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5946 register pauth builtins for LP64 only.
5948 2017-01-20 Marek Polacek <polacek@redhat.com>
5951 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5954 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5956 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5958 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5959 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5960 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5962 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5965 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5966 in big-endian mode when they are not a single duplicated value.
5968 2017-01-20 Richard Biener <rguenther@suse.de>
5970 * BASE-VER: Bump to 7.0.1.
5972 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5974 * omp-low.c (omplow_simd_context): New struct. Use it...
5975 (lower_rec_simd_input_clauses): ...here and...
5976 (lower_rec_input_clauses): ...here to hold common data. Adjust all
5977 references to idx, lane, max_vf, is_simt.
5979 2017-01-20 Graham Markall <graham.markall@embecosm.com>
5981 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5984 2017-01-20 Martin Jambor <mjambor@suse.cz>
5986 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
5987 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
5989 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5990 (GTFILES): Rename hsa.c to hsa-common.c.
5991 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5992 * hsa-dump.c: Likewise.
5993 * hsa-gen.c: Likewise.
5994 * hsa-regalloc.c: Likewise.
5995 * ipa-hsa.c: Likewise.
5996 * omp-expand.c: Likewise.
5997 * omp-low.c: Likewise.
5998 * toplev.c: Likewise.
6000 2017-01-20 Marek Polacek <polacek@redhat.com>
6003 * doc/invoke.texi: Document -Wduplicated-branches.
6004 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
6005 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
6006 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
6007 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
6008 return 0 only when not OEP_LEXICOGRAPHIC.
6009 (fold_build_cleanup_point_expr): Use the expression
6010 location when building CLEANUP_POINT_EXPR.
6011 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
6012 * tree.c (add_expr): Handle error_mark_node.
6014 2017-01-20 Martin Liska <mliska@suse.cz>
6017 * tree-profile.c (init_ic_make_global_vars): Do not call
6019 (gimple_init_gcov_profiler): Likewise.
6021 2017-01-20 Martin Liska <mliska@suse.cz>
6024 * cgraph.h (maybe_create_reference): Remove argument and
6026 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
6028 * ipa-cp.c (create_specialized_node): Likewise.
6029 * symtab.c (symtab_node::maybe_create_reference): Handle
6030 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
6032 2017-01-20 Martin Liska <mliska@suse.cz>
6034 * read-rtl-function.c (function_reader::create_function): Use
6035 build_decl instread of build_decl_stat.
6037 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
6039 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
6040 * config/i386/avx512dqintrin.h: Ditto.
6041 * config/i386/avx512fintrin.h: Ditto.
6042 * config/i386/i386-builtin-types.def: Add new types.
6043 * gcc/config/i386/i386.c: Handle new types.
6044 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
6045 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
6046 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
6047 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
6048 (__builtin_ia32_kshiftridi): New.
6049 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
6051 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
6055 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
6056 define to rs6000_init_stack_protect_guard.
6057 (rs6000_init_stack_protect_guard): New function.
6059 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
6060 Yunqiang Su <yunqiang.su@imgtec.com>
6062 * config.gcc (supported_defaults): Add madd4.
6063 (with_madd4): Add validation.
6064 (all_defaults): Add madd4.
6065 * config/mips/mips.opt (mmadd4): New option.
6066 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6068 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6070 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
6071 (ISA_HAS_FUSED_MADD4): Likewise.
6072 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
6073 * gcc/doc/install.texi (--with-madd4): Document the new option.
6075 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6077 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
6078 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
6079 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
6080 (aarch64_init_pauth_hint_builtins): New.
6081 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
6082 (aarch64_expand_builtin): Expand new builtins.
6084 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6086 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
6087 * combine-stack-adj.c (no_unhandled_cfa): Handle
6088 REG_CFA_TOGGLE_RA_MANGLE.
6089 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
6090 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
6091 info for return address signing.
6092 (aarch64_expand_epilogue): Likewise.
6094 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6096 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
6097 * config/aarch64/aarch64-protos.h
6098 (aarch64_return_address_signing_enabled): New declaration.
6099 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
6101 (aarch64_expand_prologue): Sign return address before it's pushed onto
6103 (aarch64_expand_epilogue): Authenticate return address fetched from
6105 (aarch64_override_options): Sanity check for ILP32 and ISA level.
6106 (aarch64_attributes): New function attributes for "sign-return-address".
6107 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
6108 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
6109 ("*do_return"): Generate combined instructions according to key index.
6110 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
6111 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
6113 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
6114 * config/aarch64/aarch64.opt (msign-return-address=): New.
6115 * doc/extend.texi (AArch64 Function Attributes): Documents
6116 "sign-return-address=".
6117 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
6119 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
6121 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
6122 overall option summary.
6124 2017-01-19 Jiong Wang <jiong.wang@arm.com>
6126 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
6127 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
6128 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
6129 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
6131 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
6133 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
6134 -mpower9-minmax by default for -mcpu=power9.
6135 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
6136 128-bit floating point.
6138 2017-01-20 Alan Modra <amodra@gmail.com>
6140 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
6141 optimizing for size.
6143 2017-01-20 Alan Modra <amodra@gmail.com>
6146 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
6147 for strcmp and strncmp from corresponding builtin decl.
6149 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
6151 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
6152 instead of i386/rtems-64.h.
6153 * config/i386/rtems-64.h: Remove.
6155 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
6159 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6161 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
6163 2017-01-19 Tamar Christina <tamar.christina@arm.com>
6165 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
6166 Change int to HOST_WIDE_INT.
6167 * config/aarch64/aarch64-protos.h
6168 (aarch64_simd_gen_const_vector_dup): Likewise.
6169 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
6171 2017-01-19 David Malcolm <dmalcolm@redhat.com>
6173 * langhooks-def.h (lhd_type_for_size): New decl.
6174 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
6175 * langhooks.c (lhd_type_for_size): New function, taken from
6178 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
6180 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
6181 define_bypass for CR latency.
6182 (power9-cracked-alu): Update bypass latency and remove power9-branch.
6183 (power9-alu2): Add define_bypass for CR latency.
6185 (power9-mul): Update insn latency.
6186 (power9-mul-compare): Update insn latency, bypass latency and remove
6189 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6191 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6193 * config/aarch64/aarch64.md
6194 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
6195 aarch64_nopcrelative_literal_loads.
6196 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6198 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
6200 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
6202 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
6204 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
6207 * config.gcc (supported_defaults): Add lxc1-sxc1.
6208 (with_lxc1_sxc1): Add validation.
6209 (all_defaults): Add lxc1-sxc1.
6210 * config/mips/mips.opt (mlxc1-sxc1): New option.
6211 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6213 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6214 __mips_no_lxc1_sxc1.
6215 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
6216 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
6217 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
6219 2017-01-19 Richard Biener <rguenther@suse.de>
6221 PR tree-optimization/72488
6222 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
6223 sure to restore SSA info.
6224 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
6226 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
6228 PR rtl-optimization/79121
6229 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
6230 of the inner type when shifting an extended value.
6232 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6235 * symtab.c (symtab_node::equal_address_to): Fix comparing of
6236 interposable aliases.
6238 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
6241 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
6242 Use the evmergelohi instruction.
6243 (mov_si<mode>_e500_subreg4_2_le): Likewise.
6244 (mov_sitf_e500_subreg8_2_be): Likewise.
6245 (mov_sitf_e500_subreg12_2_le): Likewise.
6246 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
6247 (mov_si<mode>_e500_subreg4_2_be): Likewise.
6248 (mov_sitf_e500_subreg8_2_le): Likewise.
6249 (mov_sitf_e500_subreg12_2_be): Likewise.
6251 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6253 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
6254 attribute from vecsimple to vecperm.
6255 (altivec_vbpermq2): Likewise.
6257 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6260 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
6262 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6263 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
6264 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
6265 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
6266 case where N arg is SIZE_MAX.
6267 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
6268 (cmpstrsi): Add pattern.
6270 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6272 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6273 __builtin_vec_revb builtins.
6274 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
6275 built-in functions to support generation of the ISA 3.0 XXBR<x>
6276 vector byte reverse instructions.
6277 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
6278 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
6279 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
6280 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
6281 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
6282 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
6283 (P9V_BUILTIN_VEC_REVB): Likewise.
6284 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
6285 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
6286 (p9_xxbrq_v16qi): Likewise.
6287 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
6288 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
6289 (p9_xxbrh_v8hi): Likewise.
6290 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
6291 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
6292 vec_revb built-in functions.
6294 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
6296 PR rtl-optimization/78952
6297 * config/i386/i386.md (any_extract): New code iterator.
6298 (*insvqi_2): Use any_extract for source operand.
6299 (*insvqi_3): Use any_shiftrt for source operand.
6301 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
6303 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
6305 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
6307 2017-01-18 Matthias Klose <doko@ubuntu.com>
6309 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
6311 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6313 * config/rs6000/altivec.h (vec_bperm): Change #define.
6314 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
6315 (altivec_vbpermq2): New define_insn.
6316 (altivec_vbpermd): Likewise.
6317 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
6319 (VBPERMD): Likewise.
6320 (VBPERM): New polymorphic function interface.
6321 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
6322 Add entries for P9V_BUILTIN_VEC_VBPERM.
6323 * doc/extend.texi: Add interfaces for vec_bperm.
6325 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6327 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
6328 first letter of error messages.
6329 (s390_resolve_overloaded_builtin): Likewise.
6330 * config/s390/s390.c (s390_expand_builtin): Likewise.
6331 (s390_invalid_arg_for_unprototyped_fn): Likewise.
6332 (s390_valid_target_attribute_inner_p): Likewise.
6333 * config/s390/s390.md ("tabort"): Likewise.
6335 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
6337 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
6338 (ISA_AVOID_DIV_HILO): New macro.
6339 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
6340 (ISA_HAS_DDIV): Likewise.
6342 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6344 * doc/invoke.texi (fabi-version): Correct number of occurrences.
6346 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6348 * doc/invoke.texi (fabi-version): Spelling fix.
6350 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6353 * doc/invoke.texi (fabi-version): Mention mangling fix for
6356 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
6359 * doc/invoke.texi (fabi-version): Document discriminator mangling.
6361 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
6364 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
6365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
6367 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
6369 (stack_protect_test): Ditto.
6370 * config/rs6000/rs6000.opt (mstack-protector-guard=,
6371 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
6373 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
6374 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
6375 -mstack-protector-guard-offset=.
6376 (RS/6000 and PowerPC Options): Ditto.
6378 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6380 * config/i386/i386.h (MASK_CLASS_P): New define.
6381 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
6382 there are no registers from different register sets also when
6383 mask registers are used. Update function comment.
6384 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
6385 to (*k/*r) and (*k/*km) alternatives.
6387 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
6389 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
6390 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
6391 (EH_RETURN_HANDLER_RTX): New define.
6392 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
6393 Force frame pointer in EH return functions.
6394 (aarch64_expand_epilogue): Add barrier for eh_return.
6395 (aarch64_final_eh_return_addr): Remove.
6396 (aarch64_eh_return_handler_rtx): New function.
6397 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
6399 (aarch64_eh_return_handler_rtx): New prototype.
6401 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6403 * config/rs6000/altivec.h (vec_rlmi): New #define.
6404 (vec_vrlnm): Likewise.
6405 (vec_rlnm): Likewise.
6406 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
6407 (UNSPEC_VRLNM): Likewise.
6408 (VIlong): New mode iterator.
6409 (altivec_vrl<VI_char>mi): New define_insn.
6410 (altivec_vrl<VI_char>nm): Likewise.
6411 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
6414 (RLNM): New polymorphic function entry.
6415 (VRLWMI): New monomorphic function entry.
6417 (RLMI): New polymorphic function entry.
6418 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
6419 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
6420 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
6423 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6426 * dwarf2out.c (field_byte_offset): Restore the
6427 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
6428 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
6429 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
6432 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6435 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
6437 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6440 * dwarf2out.c (add_data_member_location_attribute): For constant
6441 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
6442 instead of DW_AT_data_member_location, DW_AT_bit_offset and
6443 DW_AT_byte_size attributes.
6445 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
6447 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
6448 after forcing to constant memory when the code model is medium.
6450 2017-01-17 Julia Koval <julia.koval@intel.com>
6453 * config/i386/avx512fintrin.h
6454 (_mm512_i32gather_ps): Change __addr type to void const*.
6455 (_mm512_mask_i32gather_ps): Ditto.
6456 (_mm512_i32gather_pd): Ditto.
6457 (_mm512_mask_i32gather_pd): Ditto.
6458 (_mm512_i64gather_ps): Ditto.
6459 (_mm512_mask_i64gather_ps): Ditto.
6460 (_mm512_i64gather_pd): Ditto.
6461 (_mm512_mask_i64gather_pd): Ditto.
6462 (_mm512_i32gather_epi32): Ditto.
6463 (_mm512_mask_i32gather_epi32): Ditto.
6464 (_mm512_i32gather_epi64): Ditto.
6465 (_mm512_mask_i32gather_epi64): Ditto.
6466 (_mm512_i64gather_epi32): Ditto.
6467 (_mm512_mask_i64gather_epi32): Ditto.
6468 (_mm512_i64gather_epi64): Ditto.
6469 (_mm512_mask_i64gather_epi64): Ditto.
6470 (_mm512_i32scatter_ps): Change __addr type to void*.
6471 (_mm512_mask_i32scatter_ps): Ditto.
6472 (_mm512_i32scatter_pd): Ditto.
6473 (_mm512_mask_i32scatter_pd): Ditto.
6474 (_mm512_i64scatter_ps): Ditto.
6475 (_mm512_mask_i64scatter_ps): Ditto.
6476 (_mm512_i64scatter_pd): Ditto.
6477 (_mm512_mask_i64scatter_pd): Ditto.
6478 (_mm512_i32scatter_epi32): Ditto.
6479 (_mm512_mask_i32scatter_epi32): Ditto.
6480 (_mm512_i32scatter_epi64): Ditto.
6481 (_mm512_mask_i32scatter_epi64): Ditto.
6482 (_mm512_i64scatter_epi32): Ditto.
6483 (_mm512_mask_i64scatter_epi32): Ditto.
6484 (_mm512_i64scatter_epi64): Ditto.
6485 (_mm512_mask_i64scatter_epi64): Ditto.
6486 * config/i386/avx512pfintrin.h
6487 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
6488 (_mm512_mask_prefetch_i32gather_ps): Ditto.
6489 (_mm512_mask_prefetch_i64gather_pd): Ditto.
6490 (_mm512_mask_prefetch_i64gather_ps): Ditto.
6491 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
6492 (_mm512_prefetch_i32scatter_ps): Ditto.
6493 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
6494 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
6495 (_mm512_prefetch_i64scatter_pd): Ditto.
6496 (_mm512_prefetch_i64scatter_ps): Ditto.
6497 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6498 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6499 * config/i386/avx512vlintrin.h
6500 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6501 (_mm_mmask_i32gather_ps): Ditto.
6502 (_mm256_mmask_i32gather_pd): Ditto.
6503 (_mm_mmask_i32gather_pd): Ditto.
6504 (_mm256_mmask_i64gather_ps): Ditto.
6505 (_mm_mmask_i64gather_ps): Ditto.
6506 (_mm256_mmask_i64gather_pd): Ditto.
6507 (_mm_mmask_i64gather_pd): Ditto.
6508 (_mm256_mmask_i32gather_epi32): Ditto.
6509 (_mm_mmask_i32gather_epi32): Ditto.
6510 (_mm256_mmask_i32gather_epi64): Ditto.
6511 (_mm_mmask_i32gather_epi64): Ditto.
6512 (_mm256_mmask_i64gather_epi32): Ditto.
6513 (_mm_mmask_i64gather_epi32): Ditto.
6514 (_mm256_mmask_i64gather_epi64): Ditto.
6515 (_mm_mmask_i64gather_epi64): Ditto.
6516 (_mm256_i32scatter_ps): Change __addr type to void*.
6517 (_mm256_mask_i32scatter_ps): Ditto.
6518 (_mm_i32scatter_ps): Ditto.
6519 (_mm_mask_i32scatter_ps): Ditto.
6520 (_mm256_i32scatter_pd): Ditto.
6521 (_mm256_mask_i32scatter_pd): Ditto.
6522 (_mm_i32scatter_pd): Ditto.
6523 (_mm_mask_i32scatter_pd): Ditto.
6524 (_mm256_i64scatter_ps): Ditto.
6525 (_mm256_mask_i64scatter_ps): Ditto.
6526 (_mm_i64scatter_ps): Ditto.
6527 (_mm_mask_i64scatter_ps): Ditto.
6528 (_mm256_i64scatter_pd): Ditto.
6529 (_mm256_mask_i64scatter_pd): Ditto.
6530 (_mm_i64scatter_pd): Ditto.
6531 (_mm_mask_i64scatter_pd): Ditto.
6532 (_mm256_i32scatter_epi32): Ditto.
6533 (_mm256_mask_i32scatter_epi32): Ditto.
6534 (_mm_i32scatter_epi32): Ditto.
6535 (_mm_mask_i32scatter_epi32): Ditto.
6536 (_mm256_i32scatter_epi64): Ditto.
6537 (_mm256_mask_i32scatter_epi64): Ditto.
6538 (_mm_i32scatter_epi64): Ditto.
6539 (_mm_mask_i32scatter_epi64): Ditto.
6540 (_mm256_i64scatter_epi32): Ditto.
6541 (_mm256_mask_i64scatter_epi32): Ditto.
6542 (_mm_i64scatter_epi32): Ditto.
6543 (_mm_mask_i64scatter_epi32): Ditto.
6544 (_mm256_i64scatter_epi64): Ditto.
6545 (_mm256_mask_i64scatter_epi64): Ditto.
6546 (_mm_i64scatter_epi64): Ditto.
6547 (_mm_mask_i64scatter_epi64): Ditto.
6548 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6549 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6550 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6551 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6552 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6553 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6554 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6555 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6556 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6557 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6558 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6559 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6560 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6561 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6562 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6563 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6564 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6565 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6566 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6567 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6568 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6569 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6570 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6571 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6572 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6573 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6574 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6575 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
6576 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6577 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6578 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6579 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6580 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6581 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6582 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6583 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6584 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6585 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6586 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6587 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6588 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6589 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6590 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6591 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6592 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6593 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6594 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6595 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6596 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6597 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6598 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6599 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6600 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6601 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6602 definitions accordingly.
6604 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
6605 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6608 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6611 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
6614 * ira-conflicts.c (ira_build_conflicts): Update total conflict
6615 hard regs for inner regno.
6617 2017-01-17 Martin Liska <mliska@suse.cz>
6620 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6621 assumption and add comment.
6623 2017-01-17 Nathan Sidwell <nathan@acm.org>
6625 * ipa-visibility.c (localize_node): New function, broken out of ...
6626 (function_and_variable_visibility): ... here. Call it.
6628 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
6631 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6632 correctly set frequency of oudgoing edge.
6633 (duplicate_thread_path): Fix profile updating.
6635 2017-01-17 Jakub Jelinek <jakub@redhat.com>
6638 * configure.ac: Add GCC_BASE_VER.
6639 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6640 version from BASE-VER file.
6641 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6642 (gcc.o): Depend on $(BASEVER).
6643 * common.opt (dumpfullversion): New option.
6644 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6645 * doc/invoke.texi: Document -dumpfullversion.
6646 * doc/install.texi: Document --with-gcc-major-version-only.
6647 * configure: Regenerated.
6649 2017-01-17 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/71433
6652 * tree-vrp.c (register_new_assert_for): Merge same asserts
6653 on all incoming edges.
6654 (process_assert_insertions_for): Handle insertions at the
6657 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
6659 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6660 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6662 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
6665 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6668 2017-01-17 Alan Modra <amodra@gmail.com>
6671 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6672 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6673 symbolic stack limit when pic.
6675 2017-01-16 Martin Sebor <msebor@redhat.com>
6677 PR tree-optimization/78608
6678 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6680 2017-01-16 Jeff Law <law@redhat.com>
6683 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
6684 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6685 for several include directories that may be relative to sysroot.
6686 * config/i386/x-mingw32 (gplus_includedir): Define.
6687 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6688 (native_system_includedir): Likewise.
6689 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6690 override if TARGET_SYSTEM_ROOT is defined.
6691 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6693 PR tree-optimization/79090
6694 PR tree-optimization/33562
6695 PR tree-optimization/61912
6696 PR tree-optimization/77485
6697 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
6698 and computed trims into the dump file.
6700 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
6702 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6704 2017-01-16 Jakub Jelinek <jakub@redhat.com>
6707 * gimplify.c (gimplify_init_constructor): If want_value and
6708 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
6712 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6713 sequence. Formatting fixes.
6714 (doloop_optimize): Formatting fixes.
6717 * gcc.c (debug_level_greater_than_spec_func): New function.
6718 (static_spec_functions): Add debug-level-gt spec function.
6719 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6721 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6722 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6723 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6724 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6725 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6726 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6728 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
6730 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6731 QImode fixups to general and mask registers only.
6733 2017-01-16 Carl Love <cel@us.ibm.com>
6735 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6736 for built-in functions
6737 vector signed char vec_nabs (vector signed char)
6738 vector signed short vec_nabs (vector signed short)
6739 vector signed int vec_nabs (vector signed int)
6740 vector signed long long vec_nabs (vector signed long long)
6741 vector float vec_nabs (vector float)
6742 vector double vec_nabs (vector double)
6743 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6745 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6746 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6747 * doc/extend.texi: Update the documentation file for the new built-in
6750 2017-01-16 Martin Sebor <msebor@redhat.com>
6752 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6755 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6757 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6758 UNSPEC_VSX__XXSPLTD to require special splat handling.
6760 2017-01-16 David Malcolm <dmalcolm@redhat.com>
6763 * system.h: Poison strndup.
6765 2017-01-16 Alan Modra <amodra@gmail.com>
6768 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6771 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
6773 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6775 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
6777 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6778 call recog here. Assert that INSN_CODE (insn) is non-negative.
6780 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6783 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6785 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6786 in the currently scheduled RTL fragment.
6788 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
6790 PR rtl-optimization/78751
6791 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6794 2017-01-14 Jeff Law <law@redhat.com>
6796 PR tree-optimization/79090
6797 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6798 variable length stores.
6799 (compute_trims): Delete dead assignment to *trim_tail.
6800 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6803 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
6805 PR rtl-optimization/78626
6806 PR rtl-optimization/78727
6807 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6808 of a block, and split such blocks after everything else is finished.
6810 2017-01-14 Alan Modra <amodra@gmail.com>
6813 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6814 target legitimate_combined_insn.
6815 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6816 (rs6000_legitimate_combined_insn): New function.
6817 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6819 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6820 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6821 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6823 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
6825 * doc/frontends.texi (G++ and GCC): Remove references to Java.
6827 2017-01-13 Jeff Law <law@redhat.com>
6829 PR tree-optimization/33562
6830 PR tree-optimization/61912
6831 PR tree-optimization/77485
6832 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6834 (delete_dead_assignment): Likewise.
6835 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6836 statement to delete_dead_call and delete_dead_assignment.
6838 2017-01-13 David Malcolm <dmalcolm@redhat.com>
6841 * substring-locations.c (format_warning_va): Strengthen case 1 so
6842 that both endpoints of the substring must be within the format
6843 range for just the substring to be printed.
6845 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
6847 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6848 * config/i386/i386.c (ix86_target_string): Add missing options
6849 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
6850 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6851 flags_other and ix86_target_other to flags2_other. Display unknown
6853 (ix86_valid_target_attribute_inner_p): Add missing options and
6854 reorder options by implied ISAs, as in ix86_target_string.
6856 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6858 * hash-table.h (hash_table::too_empty_p): New function.
6859 (hash_table::expand): Use it.
6860 (hash_table::traverse): Likewise.
6861 (hash_table::empty_slot): Use sizeof (value_type) instead of
6862 sizeof (PTR) to convert bytes to elements. Shrink the table
6863 if the current size is excessive for the current number of
6866 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
6868 * ira-costs.c (record_reg_classes): Break from the inner loop
6869 early once alt_fail is known to be true. Update outer loop
6870 handling accordingly.
6872 2017-01-13 Jeff Law <law@redhat.com>
6874 * tree-ssa-dse.c (decrement_count): New function.
6875 (increment_start_addr, maybe_trim_memstar_call): Likewise.
6876 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6877 when we know the partially dead statement is a mem* function.
6879 PR tree-optimization/61912
6880 PR tree-optimization/77485
6881 * tree-ssa-dse.c: Include expr.h.
6882 (maybe_trim_constructor_store): New function.
6883 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6885 PR tree-optimization/33562
6886 PR tree-optimization/61912
6887 PR tree-optimization/77485
6888 * doc/invoke.texi: Document new dse-max-object-size param.
6889 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6890 * tree-ssa-dse.c: Include params.h.
6891 (dse_store_status): New enum.
6892 (initialize_ao_ref_for_dse): New, partially extracted from
6894 (valid_ao_ref_for_dse, normalize_ref): New.
6895 (setup_live_bytes_from_ref, compute_trims): Likewise.
6896 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6897 (maybe_trim_partially_dead_store): Likewise.
6898 (maybe_trim_complex_store): Likewise.
6899 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6900 Track what bytes live from the original store. Return tri-state
6901 for dead, partially dead or live.
6902 (dse_dom_walker): Add constructor, destructor and new private members.
6903 (delete_dead_call, delete_dead_assignment): New extracted from
6905 (dse_optimize_stmt): Make a member of dse_dom_walker.
6906 Use initialize_ao_ref_for_dse.
6908 PR tree-optimization/33562
6909 PR tree-optimization/61912
6910 PR tree-optimization/77485
6911 * sbitmap.h (bitmap_count_bits): Prototype.
6912 (bitmap_clear_range, bitmap_set_range): Likewise.
6913 * sbitmap.c (bitmap_clear_range): New function.
6914 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6916 2017-01-13 Martin Liska <mliska@suse.cz>
6919 * function.c (set_cfun): Add new argument force.
6920 * function.h (set_cfun): Likewise.
6921 * ipa-inline-transform.c (inline_call): Use the function when
6922 strict alising from is dropped for function we inline to.
6924 2017-01-13 Richard Biener <rguenther@suse.de>
6926 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6927 for dumping GIMPLE INTEGER_CSTs.
6929 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6931 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6932 to 201112L since C++17.
6934 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
6937 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6938 if -fsanitize=kernel-address is present.
6940 2017-01-13 Richard Biener <rguenther@suse.de>
6942 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6943 as _Literal ( type ) number in case usual suffixes do not
6944 preserve all information.
6946 2017-01-13 Richard Biener <rguenther@suse.de>
6948 PR tree-optimization/77283
6949 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6950 and ssa-iterators.h.
6951 (is_feasible_trace): Implement a cost model based on joiner
6954 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6957 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6958 char or short to __float128/_Float128 directly.
6960 2017-01-12 Martin Sebor <msebor@redhat.com>
6962 to -Wformat-overflow.
6963 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6964 (min_bytes_remaining): Same.
6965 (get_string_length): Same.
6966 (format_string): Same.
6967 (format_directive): Same.
6969 (pass_sprintf_length::handle_gimple_call): Same.
6971 2017-01-12 Jakub Jelinek <jakub@redhat.com>
6973 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6974 info.nowrite calls with no lhs that can't throw. Return bool
6975 whether gsi_remove has been called or not.
6976 (pass_sprintf_length::handle_gimple_call): Return bool whether
6977 try_substitute_return_value called gsi_remove. Formatting fix.
6978 (pass_sprintf_length::execute): Don't use gsi_remove if
6979 handle_gimple_call returned true.
6982 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6983 be removed due to side-effects, don't remove following barrier nor
6984 turn the successor edge into fallthru edge.
6986 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6989 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6990 element-reversing loads and stores as not swappable.
6992 2017-01-12 Nathan Sidwell <nathan@acm.org>
6993 Nicolai Stange <nicstange@gmail.com>
6995 * combine.c (try_combine): Don't ignore result of overlap checking
6996 loop. Combine overlap & asm check into single loop.
6998 2017-01-12 Richard Biener <rguenther@suse.de>
7000 * tree-pretty-print.c (dump_generic_node): Provide -gimple
7001 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
7003 2017-01-12 Richard Biener <rguenther@suse.de>
7005 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
7006 and TS_TARGET_OPTION directly derive from TS_BASE.
7007 * tree-core.h (tree_optimization_option): Derive from tree_base.
7008 (tree_target_option): Likewise.
7010 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
7012 * config/i386/i386.c (memory_address_length): Increase len
7013 only when rip_relative_addr_p returns false.
7015 2017-01-11 Julia Koval <julia.koval@intel.com>
7017 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
7018 (OPTION_MASK_ISA_SGX_SET): New.
7019 (ix86_handle_option): Handle OPT_msgx.
7020 * config.gcc: Added sgxintrin.h.
7021 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
7022 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
7023 * config/i386/i386.c (ix86_target_string): Add -msgx.
7025 (ix86_option_override_internal): Handle new options.
7026 (ix86_valid_target_attribute_inner_p): Add sgx.
7027 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
7028 * config/i386/i386.opt: Add msgx.
7029 * config/i386/sgxintrin.h: New file.
7030 * config/i386/x86intrin.h: Add sgxintrin.h.
7032 2017-01-11 Jakub Jelinek <jakub@redhat.com>
7035 * fold-const.c (maybe_nonzero_address): Return 1 for function
7037 (tree_single_nonzero_warnv_p): Don't handle function local objects
7041 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
7044 2017-01-11 David Malcolm <dmalcolm@redhat.com>
7047 * opts.c: Include "spellcheck.h"
7048 (struct string_fragment): New struct.
7049 (struct edit_distance_traits<const string_fragment &>): New
7051 (get_closest_sanitizer_option): New function.
7052 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
7054 2017-01-11 Jakub Jelinek <jakub@redhat.com>
7056 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
7058 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
7059 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
7060 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
7061 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
7062 for initial die_offset if dwarf_split_debug_info.
7063 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
7064 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
7066 (output_skeleton_debug_sections): Formatting fix. Use
7067 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
7068 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
7070 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
7072 * config/arm/cortex-a53.md: Add bypasses for
7074 (cortex_a53_r2f): Only use for transfers.
7075 (cortex_a53_f2r): Likewise.
7076 (cortex_a53_r2f_cvt): Add reservation for conversions.
7077 (cortex_a53_f2r_cvt): Likewise.
7079 2017-01-11 Tamar Christina <tamar.christina@arm.com>
7081 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
7082 to all inlined functions, change static to extern.
7084 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
7087 * config/arm/arm.c (legitimize_pic_address): Handle reference to
7089 (arm_assemble_integer): Likewise.
7091 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
7093 * config.gcc: Use new awk script to check CPU, FPU and architecture
7094 parameters for --with-... options.
7095 * config/arm/parsecpu.awk: New file
7096 * config/arm/arm-cpus.in: New file.
7097 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
7099 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
7101 * config/arm/t-arm: Update dependency rules.
7102 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
7103 of processing .def files.
7104 * config/arm/genopt.sh: Deleted.
7105 * config/arm/gentune.sh: Deleted.
7106 * config/arm/arm-cores.def: Deleted.
7107 * config/arm/arm-arches.def: Deleted.
7108 * config/arm/arm-fpus.def: Deleted.
7109 * config/arm/arm-tune.md: Regenerated.
7110 * config/arm/arm-tables.opt: Regenerated.
7111 * config/arm/arm-cpu.h: New generated file.
7112 * config/arm/arm-cpu-data.h: New generated file.
7113 * config/arm/arm-cpu-cdata.h: New generated file.
7115 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
7118 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
7120 (input_varpool_node): Unpack dynamically_initialized bit.
7122 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
7124 PR rtl-optimization/79032
7125 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
7126 the alignment of the adjusted memory reference against that of MODE,
7127 instead of the alignment of the original memory reference.
7129 2017-01-11 Martin Jambor <mjambor@suse.cz>
7131 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
7133 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
7134 decorated functions.
7136 2017-01-11 Richard Biener <rguenther@suse.de>
7138 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
7139 set range/nonnull info for PHI results. Do not set it on
7140 stmts marked for removal.
7142 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
7144 * expr.c (store_field): In the bitfield case, fetch the return value
7145 from the registers before applying a single big-endian adjustment.
7146 Always do a final load for a BLKmode value not larger than a word.
7148 2017-01-10 David Malcolm <dmalcolm@redhat.com>
7151 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7152 that we correctly handle column numbers greater than
7153 LINE_MAP_MAX_COLUMN_NUMBER.
7155 2017-01-10 Martin Sebor <msebor@redhat.com>
7158 * gimple-ssa-sprintf.c (get_destination_size): Call
7159 {init,fini}object_sizes.
7160 * tree-object-size.c (addr_object_size): Adjust.
7161 (pass_through_call): Adjust.
7162 (pass_object_sizes::execute): Adjust.
7163 * tree-object-size.h (fini_object_sizes): Declare.
7165 2017-01-10 Martin Sebor <msebor@redhat.com>
7167 PR tree-optimization/78775
7168 * builtins.c (get_size_range): Move...
7169 * calls.c: ...to here.
7170 (alloc_max_size): Accept zero argument.
7171 (operand_signed_p): Remove.
7172 (maybe_warn_alloc_args_overflow): Call get_size_range.
7173 * calls.h (get_size_range): Declare.
7175 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
7177 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
7178 from TI's devices.csv file as of September 2016.
7179 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
7181 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
7183 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
7184 * doc/invoke.texi: Likewise.
7185 * doc/md.texi: Likewise.
7186 * doc/objc.texi: Likewise.
7188 2017-01-10 Joshua Conner <joshconner@google.com>
7190 * config/arm/fuchsia-elf.h: New file.
7191 * config/fuchsia.h: New file.
7192 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
7193 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
7195 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
7197 2016-01-10 Richard Biener <rguenther@suse.de>
7199 PR tree-optimization/79034
7200 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
7201 Propagate out degenerate PHIs in the joiner.
7203 2017-01-10 Martin Liska <mliska@suse.cz>
7205 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
7206 (sort_congruence_classes_by_decl_uid): Likewise.
7207 (sort_congruence_class_groups_by_decl_uid): Likewise.
7208 (sem_item_optimizer::merge_classes): Sort class, groups in these
7209 classes and members in the groups by DECL_UID of declarations.
7210 This would make merge operations stable.
7212 2017-01-10 Martin Liska <mliska@suse.cz>
7214 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
7215 usage of m_classes_vec.
7216 (sem_item_optimizer::~sem_item_optimizer): Likewise.
7217 (sem_item_optimizer::get_group_by_hash): Likewise.
7218 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7219 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
7220 (sem_item_optimizer::verify_classes): Likewise.
7221 (sem_item_optimizer::process_cong_reduction): Likewise.
7222 (sem_item_optimizer::dump_cong_classes): Likewise.
7223 (sem_item_optimizer::merge_classes): Likewise.
7224 * ipa-icf.h (congruence_class_hash): Rename from
7225 congruence_class_group_hash. Remove declaration of m_classes_vec.
7227 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
7229 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
7230 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
7231 * config.gcc: Add avx512vpopcntdqintrin.h.
7232 * config/i386/avx512vpopcntdqintrin.h: New.
7233 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
7234 * config/i386/i386-builtin-types.def: Add new types.
7235 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
7236 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
7237 __builtin_ia32_vpopcountq_v8di_mask): New.
7238 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7239 __AVX512VPOPCNTDQ__.
7240 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
7241 (PTA_AVX512VPOPCNTDQ): Define.
7242 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
7243 TARGET_AVX512VPOPCNTDQ_P): Define.
7244 * config/i386/i386.opt: Add mavx512vpopcntdq.
7245 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
7246 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
7248 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7251 * predict.def (PRED_CALL): Set to 67.
7253 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
7255 * expr.c (store_field): In the bitfield case, if the value comes from
7256 a function call and is of an aggregate type returned in registers, do
7257 not modify the field mode; extract the value in all cases if the mode
7258 is BLKmode and the size is not larger than a word.
7260 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
7263 * config/i386/cpuid.h: Fix undefined behavior.
7265 2017-01-04 Jeff Law <law@redhat.com>
7267 PR tree-optimization/79007
7268 PR tree-optimization/67955
7269 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
7270 conservative for pt.null when flag_non_call_exceptions is on.
7272 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7274 PR translation/79019
7275 PR translation/79020
7276 * params.def (PARAM_INLINE_MIN_SPEEDUP,
7277 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
7278 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
7280 * config/avr/avr.opt (maccumulate-args): Likewise.
7281 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
7282 * common.opt (freport-bug): Likewise.
7283 * cif-code.def (CIF_FINAL_ERROR): Likewise.
7284 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
7285 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
7286 translatable string.
7287 * config/i386/i386.c (function_value_32): Likewise.
7288 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
7289 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
7291 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
7292 * common/config/msp430/msp430-common.c (msp430_handle_option):
7294 * symtab.c (symtab_node::verify_base): Likewise.
7295 * opts.c (set_debug_level): Likewise.
7296 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
7297 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7298 missing whitespace to translatable strings.
7299 * config/avr/avr.md (bswapsi2): Fix typo in comment.
7300 * config/sh/superh.h: Likewise.
7301 * config/i386/xopintrin.h: Likewise.
7302 * config/i386/znver1.md: Likewise.
7303 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
7304 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7305 * double-int.h (struct double_int): Likewise.
7306 * double-int.c (div_and_round_double): Likewise.
7307 * wide-int.cc: Likewise.
7308 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7309 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7310 * cfgcleanup.c (crossjumps_occured): Renamed to ...
7311 (crossjumps_occurred): ... this.
7312 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
7315 PR tree-optimization/78899
7316 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
7317 returning bool return struct loop *, NULL for failure and the new
7319 (versionable_outer_loop_p): Don't version outer loop if it has
7320 dont_vectorized bit set.
7321 (tree_if_conversion): When versioning outer loop, ensure
7322 tree_if_conversion is performed also on the inner loop of the
7323 non-vectorizable outer loop copy.
7324 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
7325 LOOP_VECTORIZED in inner loop of the scalar outer loop and
7326 prevent vectorization of it.
7327 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
7328 the outer loop vectorization of the non-scalar version is attempted
7329 before vectorization of the inner loop in scalar version. If
7330 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
7331 vectorization of its inner loop.
7332 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
7333 has 2 inner loops, rename also on edges from bb whose single pred
7334 is outer_loop->header. Fix typo in function comment.
7336 2017-01-09 Martin Sebor <msebor@redhat.com>
7339 * asan.c (asan_emit_stack_protection): Increase local buffer size
7340 to avoid snprintf truncation warning.
7342 2017-01-09 Andrew Pinski <apinski@cavium.com>
7344 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
7345 to reference thunderx2t99 for the tuning structure
7346 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
7348 (thunderx2t99_extra_costs): This.
7349 * config/aarch64/aarch64-tune.md: Regenerate.
7350 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
7351 (vulcan_addrcost_table): This.
7352 (vulcan_regmove_cost): Rename to ...
7353 (thunderx2t99_regmove_cost): This.
7354 (vulcan_vector_cost): Rename to ...
7355 (thunderx2t99_vector_cost): this.
7356 (vulcan_branch_cost): Rename to ...
7357 (thunderx2t99_branch_cost): This.
7358 (vulcan_tunings): Rename to ...
7359 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
7360 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
7362 2017-01-09 Martin Jambor <mjambor@suse.cz>
7366 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
7367 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
7368 (propagate_vr_accross_jump_function): Use the above function for all
7369 value range computations for pass-through jump functions and type
7370 converasion from explicit value range values.
7371 (ipcp_propagate_stage): Do not attempt to deduce types of formal
7372 parameters from TYPE_ARG_TYPES.
7373 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
7374 (ipa_write_node_info): Stream type of the actual argument.
7375 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
7377 2017-01-09 Martin Liska <mliska@suse.cz>
7380 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
7381 (lookup_compiler): Do not show error message with have_E.
7383 2017-01-09 Jakub Jelinek <jakub@redhat.com>
7385 PR tree-optimization/78938
7386 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
7387 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
7388 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
7389 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
7392 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7394 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
7397 2017-01-09 Richard Biener <rguenther@suse.de>
7399 PR tree-optimization/78997
7400 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
7401 name condition properly.
7403 2017-01-09 Richard Biener <rguenther@suse.de>
7406 * dwarf2out.c (is_cxx): New overload with context.
7407 (is_naming_typedef_decl): Use it.
7409 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7411 * invoke.texi (Option Summary): Correct spacing in option lists
7412 and add line breaks to fix over-long lines.
7414 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7418 * extend.texi (Common Variable Attributes): Add xref to GCC
7419 Internals manual to explain mode attribute keywords.
7421 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
7424 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
7425 and Preprocessor Options.
7426 (Options for Linking): Document -pthread here....
7427 (RS/6000 and PowerPC Options): ...not here.
7428 (Solaris 2 Options): ...or here.
7429 * doc/cppopts.texi: Document -pthread.
7431 2017-01-08 Martin Sebor <msebor@redhat.com>
7434 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
7435 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
7436 New member functions.
7437 (format_directive): Used them.
7439 (pass_sprintf_length::handle_gimple_call): Same.
7440 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
7441 to avoid truncation for any argument.
7442 (extract_affine_mul): Same.
7443 * tree.c (get_file_function_name): Same.
7445 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7448 * predict.def (PRED_INDIR_CALL): Set to 86.
7450 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7452 PR preprocessor/54124
7453 * doc/cppopts.texi: Reformat -d subtable to list the full name
7454 of the options. Add cross-reference to the docs for the general
7455 compiler -d options.
7456 * doc/invoke.texi (Developer Options): Add cross-reference to the
7457 preprocessor-specific -d option documentation.
7459 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7461 PR preprocessor/13498
7462 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
7463 redudant material, and reflect new command-line options.
7464 (System Headers): Likewise.
7466 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
7468 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
7469 -isystem, and -idirafter. Copy-edit.
7470 * doc/cppopts.texi: Copy-edit. Remove contradiction about
7471 default for -ftrack-macro-expansion. Delete obsolete and
7472 badly-formatted implementation details about -fdebug-cpp output.
7473 * doc/cppwarnopts.texi: Copy-edit.
7475 2017-01-07 David Malcolm <dmalcolm@redhat.com>
7478 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7479 that the transition from a max line width >= 1<<10 to narrower
7480 lines works correctly.
7482 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
7484 * doc/options.texi (PerFunction): New.
7485 * opt-functions.awk (switch_flags): Map both Optimization and
7486 PerFunction to CL_OPTIMIZATION.
7487 * opth-gen.awk: Test for PerFunction flag along with
7489 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
7490 it only when the latter is present. Skip those that don't in
7491 the hash function generator.
7492 * common.opt (fvar-tracking): Mark as PerFunction instead of
7494 (fvar-tracking-assignments): Likewise.
7495 (fvar-tracking-assignments-toggle): Likewise.
7496 (fvar-tracking-uninit): Likewise.
7498 2017-01-07 Jakub Jelinek <jakub@redhat.com>
7500 PR translation/79018
7501 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7504 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
7507 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7508 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7509 TARGET_LONG_JUMP_TABLE_OFFSETS.
7510 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7511 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7512 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7513 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7514 * config/m68k/m68k.md (tablejump expander): Likewise.
7515 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7516 TARGET_LONG_JUMP_TABLE_OFFSETS.
7517 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7518 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7520 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7521 David Holsgrove <david.holsgrove@xilinx.com>
7523 * common/config/microblaze/microblaze-common.c
7524 (TARGET_EXCEPT_UNWIND_INFO): Remove.
7525 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7527 * config/microblaze/microblaze.c (microblaze_must_save_register)
7528 (microblaze_expand_epilogue, microblaze_return_addr): Handle
7530 (microblaze_eh_return): New function.
7531 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7532 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7533 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7534 * config/microblaze/microblaze.md (eh_return): New pattern.
7536 2017-01-06 Jakub Jelinek <jakub@redhat.com>
7538 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7539 GCC_DIAGNOSTIC_STRINGIFY): Define.
7541 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7543 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7545 * config/arm/arm.md (<mcrr>): New.
7547 * config/arm/arm.c (arm_arch5te): New.
7548 (arm_option_override): Set arm_arch5te.
7549 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7551 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7552 (arm_mcrr_qualifiers): ... this. New.
7553 (MRRC_QUALIFIERS): Define to...
7554 (arm_mrrc_qualifiers): ... this. New.
7555 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7557 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7558 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7559 (MRRCI, mrrc, MRRC): New.
7560 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7561 VUNSPEC_MRRC2): New.
7563 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7565 * config/arm/arm.md (<mcr>): New.
7567 * config/arm/arm.c (arm_coproc_builtin_available): Add
7568 support for mcr, mrc, mcr2 and mrc2.
7569 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7570 (arm_mcr_qualifiers): ... this. New.
7571 (MRC_QUALIFIERS): Define to ...
7572 (arm_mrc_qualifiers): ... this. New.
7573 (MCR_QUALIFIERS): Define to ...
7574 (arm_mcr_qualifiers): ... this. New.
7575 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7577 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7578 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7579 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7582 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7584 * config/arm/arm.md (*ldc): New.
7588 * config/arm/arm.c (arm_coproc_builtin_available): Add
7589 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7590 (arm_coproc_ldc_stc_legitimate_address): New.
7591 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7592 'qualifier_const_pointer'.
7593 (LDC_QUALIFIERS): Define to...
7594 (arm_ldc_qualifiers): ... this. New.
7595 (STC_QUALIFIERS): Define to...
7596 (arm_stc_qualifiers): ... this. New.
7597 * config/arm/arm-protos.h
7598 (arm_coproc_ldc_stc_legitimate_address): New.
7599 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7600 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7601 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7602 stc2, stcl, stc2l): New.
7603 * config/arm/constraints.md (Uz): New.
7604 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7605 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7606 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7607 VUNSPEC_STC2L): New.
7609 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7611 * config/arm/arm.md (<cdp>): New.
7612 * config/arm/arm.c (neon_const_bounds): Rename this ...
7613 (arm_const_bounds): ... this.
7614 (arm_coproc_builtin_available): New.
7615 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7616 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7617 (CDP_QUALIFIERS): Define to...
7618 (arm_cdp_qualifiers): ... this. New.
7620 (arm_expand_builtin_args): Add case for 6 arguments.
7621 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7622 (arm_const_bounds): ... this.
7623 (arm_coproc_builtin_available): New.
7624 * config/arm/arm_acle.h (__arm_cdp): New.
7626 * config/arm/arm_acle_builtins.def (cdp): New.
7628 * config/arm/iterators.md (CDPI,CDP,cdp): New.
7629 * config/arm/neon.md: Rename all 'neon_const_bounds' to
7631 * config/arm/types.md (coproc): New.
7632 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7633 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7634 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7635 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7637 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7639 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7640 (UBINOP_QUALIFIERS): New.
7642 (acle_builtin_data): New. Change comment.
7643 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7644 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7645 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7646 arm_acle_builtins.def.
7647 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7648 (arm_init_acle_builtins): New.
7649 (CRC32_BUILTIN): Remove.
7650 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7651 crc32cb, crc32ch and crc32cw.
7652 (arm_init_crc32_builtins): Remove.
7653 (arm_init_builtins): Use arm_init_acle_builtins rather
7654 than arm_init_crc32_builtins.
7655 (arm_expand_acle_builtin): New.
7656 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7657 * config/arm/arm_acle_builtins.def: New.
7659 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
7661 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7662 (arm_builtin_datum): ... this.
7663 (arm_init_neon_builtin): Rename to ...
7664 (arm_init_builtin): ... this. Add a new parameters PREFIX
7665 and USE_SIG_IN_NAME.
7666 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7667 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7668 'arm_builtin_datum'.
7669 (arm_init_vfp_builtins): Likewise.
7670 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7671 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7672 (arm_expand_neon_args): Rename to ...
7673 (arm_expand_builtin_args): ... this. Rename builtin_arg
7674 enum values and differentiate between ARG_BUILTIN_MEMORY
7675 and ARG_BUILTIN_NEON_MEMORY.
7676 (arm_expand_neon_builtin_1): Rename to ...
7677 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7678 values, arm_expand_builtin_args and add bool parameter NEON.
7679 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7680 (arm_expand_vfp_builtin): Likewise.
7681 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7683 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7686 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7687 * predict.c (tree_estimate_probability_bb): Reverse direction of
7688 polymorphic call predictor.
7690 2017-01-06 David Malcolm <dmalcolm@redhat.com>
7692 * passes.c (execute_one_pass): Split out pass-skipping logic into...
7693 (determine_pass_name_match): ...this new function and...
7694 (should_skip_pass_p): ...this new function.
7696 2017-01-06 Nathan Sidwell <nathan@acm.org>
7698 * ipa-visibility.c (function_and_variable_visibility): Reformat
7699 comments and long lines. Remove extrneous if.
7700 * symtab.c (symtab_node::make_decl_local): Fix code format.
7701 (symtab_node::set_section_for_node): Fix comment typo.
7703 2017-01-06 Martin Liska <mliska@suse.cz>
7706 * lra-constraints.c: Rename invariant to lra_invariant.
7707 * predict.c (set_even_probabilities): Initialize e to NULL.
7709 2017-01-05 Martin Sebor <msebor@redhat.com>
7711 PR tree-optimization/78910
7712 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7713 (format_integer): Correct off-by-one error in the handling
7714 of precision with negative numbers in signed conversions..
7716 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
7718 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7720 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7722 PR tree-optimization/71016
7723 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7724 factor_out_conditional_conversion. Formatting fix.
7725 (factor_out_conditional_conversion): Add cond_stmt argument.
7726 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7727 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7730 2017-01-05 David Malcolm <dmalcolm@redhat.com>
7732 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7733 read-rtl-function.o, and selftest-rtl.o.
7734 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7735 (selftest::aarch64_test_loading_full_dump): New function.
7736 (selftest::aarch64_run_selftests): New function.
7737 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7738 selftest::aarch64_run_selftests.
7739 * config/i386/i386.c
7740 (selftest::ix86_test_loading_dump_fragment_1): New function.
7741 (selftest::ix86_test_loading_call_insn): New function.
7742 (selftest::ix86_test_loading_full_dump): New function.
7743 (selftest::ix86_test_loading_unspec): New function.
7744 (selftest::ix86_run_selftests): Call the new functions.
7745 * emit-rtl.c (maybe_set_max_label_num): New function.
7746 * emit-rtl.h (maybe_set_max_label_num): New decl.
7747 * function.c (instantiate_decls): Guard call to
7748 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7749 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7751 * gensupport.c (gen_reader::gen_reader): Pass "false"
7752 for new "compact" param of rtx_reader.
7753 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7754 rather than an empty string for NULL strings.
7755 * read-md.c: Potentially include config.h rather than bconfig.h.
7756 Wrap include of errors.h with #ifdef GENERATOR_FILE.
7757 (have_error): New global, copied from errors.c.
7758 (md_reader::read_name): Rename to...
7759 (md_reader::read_name_1): ...this, adding "out_loc" param,
7760 and converting "missing name or number" to returning false, rather
7762 (md_reader::read_name): Reimplement in terms of read_name_1.
7763 (md_reader::read_name_or_nil): New function.
7764 (md_reader::read_string): Handle "(nil)" by returning NULL.
7765 (md_reader::md_reader): Add new param "compact".
7766 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7767 (md_reader::read_file): New method.
7768 * read-md.h (md_reader::md_reader): Add new param "compact".
7769 (md_reader::read_file): New method.
7770 (md_reader::is_compact): New accessor.
7771 (md_reader::read_name): Convert return type from void to file_location.
7772 (md_reader::read_name_or_nil): New decl.
7773 (md_reader::read_name_1): New decl.
7774 (md_reader::m_compact): New field.
7775 (noop_reader::noop_reader): Pass "false" for new "compact" param
7777 (rtx_reader::rtx_reader): Add new "compact" param.
7778 (rtx_reader::read_rtx_operand): Make virtual and convert return
7779 type from void to rtx.
7780 (rtx_reader::read_until): New decl.
7781 (rtx_reader::handle_any_trailing_information): New virtual function.
7782 (rtx_reader::postprocess): New virtual function.
7783 (rtx_reader::finalize_string): New virtual function.
7784 (rtx_reader::m_in_call_function_usage): New field.
7785 (rtx_reader::m_reuse_rtx_by_id): New field.
7786 * read-rtl-function.c: New file.
7787 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7788 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7789 (selftest::verify_three_block_rtl_cfg): New decl.
7790 * read-rtl-function.h: New file.
7791 * read-rtl.c: Potentially include config.h rather than bconfig.h.
7792 For host, include function.h, memmodel.h, and emit-rtl.h.
7793 (one_time_initialization): New function.
7794 (struct compact_insn_name): New struct.
7795 (compact_insn_names): New array.
7796 (find_code): Handle insn codes in compact dumps.
7797 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7798 (bind_subst_iter_and_attr): Likewise.
7799 (add_condition_to_string): Likewise.
7800 (add_condition_to_rtx): Likewise.
7801 (apply_attribute_uses): Likewise.
7802 (add_current_iterators): Likewise.
7803 (apply_iterators): Likewise.
7804 (initialize_iterators): Guard usage of apply_subst_iterator with
7805 #ifdef GENERATOR_FILE.
7806 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7807 (md_reader::read_mapping): Likewise.
7808 (add_define_attr_for_define_subst): Likewise.
7809 (add_define_subst_attr): Likewise.
7810 (read_subst_mapping): Likewise.
7811 (check_code_iterator): Likewise.
7812 (rtx_reader::read_rtx): Likewise. Move one-time initialization
7814 (one_time_initialization): New function.
7815 (rtx_reader::read_until): New method.
7816 (read_flags): New function.
7817 (parse_reg_note_name): New function.
7818 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7819 Handle reuse_rtx ids.
7820 Wrap iterator lookup within #ifdef GENERATOR_FILE.
7821 Add parsing support for RTL dumps, mirroring the special-cases in
7822 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7823 values, and calling handle_any_trailing_information.
7824 (rtx_reader::read_rtx_operand): Convert return type from void
7825 to rtx, returning return_rtx. Handle case 'e'. Call
7826 finalize_string on XSTR and XTMPL fields.
7827 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
7828 "(nil)" values were omitted. Call the postprocess vfunc on the
7830 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7831 class ctor. Initialize m_in_call_function_usage. Call
7832 one_time_initialization.
7833 * rtl-tests.c (selftest::test_uncond_jump): Call
7834 set_new_first_and_last_insn.
7835 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7836 * selftest-rtl.c: New file.
7837 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7838 (selftest::get_insn_by_uid): New decl.
7839 * selftest-run-tests.c (selftest::run_tests): Call
7840 read_rtl_function_c_tests.
7841 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
7842 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7845 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
7847 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7848 operands in a special way. Assert that pos+len <= mode precision.
7850 2017-01-05 Jakub Jelinek <jakub@redhat.com>
7852 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7853 3 argument Alias with unlimited for the negative form.
7854 (fno-vect-cost-model): Removed.
7856 2017-01-05 Martin Liska <mliska@suse.cz>
7858 * hsa-gen.c (gen_hsa_divmod): New function.
7859 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7861 2017-01-05 Martin Liska <mliska@suse.cz>
7864 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7867 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7869 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7870 small constant length operands.
7872 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7874 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7875 between loop iterations.
7877 2017-01-05 Martin Liska <mliska@suse.cz>
7880 * gimplify.c (gimplify_decl_expr): Compare to
7881 asan_poisoned_variables instread of checking flags.
7882 (gimplify_target_expr): Likewise.
7883 (gimplify_expr): Likewise.
7884 (gimplify_function_tree): Conditionally initialize
7885 asan_poisoned_variables.
7887 2017-01-04 Jeff Law <law@redhat.com>
7889 PR tree-optimizatin/78812
7890 * rtl.h (contains_mem_rtx_p): Prototype.
7891 * ifcvt.c (containts_mem_rtx_p): Move from here to...
7892 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7893 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7894 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
7895 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7897 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7899 * input.c (assert_char_at_range): Default-initialize actual_range.
7901 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7903 * df-scan.c (df_ref_create_structure): Make regno unsigned,
7904 to match the caller.
7906 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7908 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7909 insns after final jump in test to emit dummy move.
7911 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7913 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7914 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7916 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7918 * multiple_target.c (create_dispatcher_calls): Init e_next.
7919 * tree-ssa-loop-split.c (split_loop): Init border.
7920 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7923 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7928 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7929 (altivec_register_operand): Do not return true if the operand
7930 contains a SUBREG mixing SImode and SFmode.
7931 (vsx_register_operand): Likewise.
7932 (vsx_reg_sfsubreg_ok): New predicate.
7933 (vfloat_operand): Do not return true if the operand contains a
7934 SUBREG mixing SImode and SFmode.
7935 (vint_operand): Likewise.
7936 (vlogical_operand): Likewise.
7937 (gpc_reg_operand): Likewise.
7938 (int_reg_operand): Likewise.
7939 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7940 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7941 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7943 (rs6000_emit_move_si_sf_subreg): New helper function.
7944 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7945 fixup SUBREGs involving SImode and SFmode.
7946 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7947 numbers for the new peephole2 optimization.
7948 (peephole2 for SFmode unions): New peephole2 to optimize cases in
7949 the GLIBC math library that do AND/IOR/XOR operations on single
7950 precision floating point.
7951 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7952 target macros to say whether we need to avoid SUBREGs mixing
7954 (TARGET_ALLOW_SF_SUBREG): Likewise.
7955 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7956 (UNSPEC_SI_FROM_SF): Likewise.
7957 (iorxor): Change spacing.
7958 (and_ior_xor): New iterator for AND, IOR, and XOR.
7959 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7960 (movdi_from_sf_zero_ext): Likewise.
7961 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7962 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
7963 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7964 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7965 (fms<mode>4): Likewise.
7966 (fnma<mode>4): Likewise.
7967 (fnms<mode>4): Likewise.
7968 (nfma<mode>4): Likewise.
7969 (nfms<mode>4): Likewise.
7971 2017-01-04 Marek Polacek <polacek@redhat.com>
7974 * doc/invoke.texi: Document -Wpointer-compare.
7976 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7978 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7981 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7982 descriptions for -gdwarf-5 and emit them as uleb128 instead of
7985 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
7988 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7989 documentation of the powerpc_popcntb_ok attribute.
7990 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7991 code to issue warning messages if a requested CPU configuration is
7992 not supported by the binary (assembler and loader) toolchain.
7993 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7994 made to define a built-in function that has been disabled.
7995 (paired_init_builtins): Add assertion to prevent ICE if attempt is
7996 made to define a built-in function that has been disabled.
7997 (altivec_init_builtins): Add comment explaining why definition
7998 of the DST built-in functions is not preceded by an assertion
7999 check. Add assertions to prevent ICE if attempts are made to
8000 define an altivec predicate or an abs* built-in function that has
8002 (htm_init_builtins): Add comment explaining why definition of the
8003 htm built-in functions is not preceded by an assertion check.
8005 2017-01-04 Jeff Law <law@redhat.com>
8007 PR tree-optimizatin/67955
8008 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
8009 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
8010 the points-to solution does not include pt_null. Use DECL_PT_UID
8013 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
8015 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
8016 Use gen_int_mode instead of gen_lopwart for const_int operands.
8018 2017-01-04 Jakub Jelinek <jakub@redhat.com>
8020 PR tree-optimization/71563
8021 * match.pd: Simplify X << Y into X if Y is known to be 0 or
8022 out of range value - has low bits known to be zero.
8024 2017-01-04 Alan Modra <amodra@gmail.com>
8026 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
8027 * configure: Regenerate.
8028 * config.in: Regenerate.
8030 2017-01-04 Jakub Jelinek <jakub@redhat.com>
8033 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
8034 a substring of the message, but strcmp with the whole message. Ifdef
8035 ENABLE_NLS, translate the message first using dgettext.
8037 2017-01-03 Jeff Law <law@redhat.com>
8039 PR tree-optimizatin/78856
8040 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
8041 (mark_threaded_blocks): Remove code to truncate thread paths that
8042 cross multiple loop headers. Instead invalidate the cached loop
8043 iteration information and handle case of a thread path walking
8044 into an irreducible region.
8046 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8049 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
8050 assertions. Add support for doing the signbit if the IEEE 128-bit
8051 floating point value is in a GPR.
8052 * config/rs6000/rs6000.md (Fsignbit): Delete.
8053 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
8054 Update the length attribute if the value is in a GPR.
8055 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
8056 the sign or zero extension instruction, since the value is always 0/1.
8057 (signbit<mode>2_dm2): Delete using <Fsignbit>.
8060 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
8061 extracting SImode to a GPR register so that we can generate a
8062 store, limit the vector to be in a traditional Altivec register
8063 for the vextuwrx instruction.
8065 2017-01-03 Ian Lance Taylor <iant@google.com>
8067 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
8069 2017-01-03 Martin Sebor <msebor@redhat.com>
8071 PR tree-optimization/78696
8072 * gimple-ssa-sprintf.c (format_floating): Correct handling of
8073 precision. Use MPFR for %f for greater fidelity. Correct handling
8075 (pass_sprintf_length::compute_format_length): Set width and precision
8076 specified by asrerisk to void_node for vararg functions.
8077 (try_substitute_return_value): Adjust dump output.
8079 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
8081 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
8083 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
8085 * doc/invoke.texi (SPARC options): Document -mlra as the default.
8086 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
8087 -mlra/-mno-lra was passed to the compiler.
8089 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
8091 PR rtl-optimization/65618
8092 * emit-rtl.c (try_split): Move initialization of "before" and
8093 "after" to just before the call to emit_insn_after_setloc.
8095 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
8097 * doc/md.texi (Standard Names): Remove reference to Java frontend.
8099 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
8101 * dwarf2out.c (gen_enumeration_type_die): When
8102 -gno-strict-dwarf, add a DW_AT_encoding attribute.
8104 2017-01-03 Jakub Jelinek <jakub@redhat.com>
8106 PR tree-optimization/78965
8107 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
8108 Change first argument from const call_info & to call_info &. For %n
8109 set info.nowrite to false.
8112 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
8113 possibly throwing calls.
8115 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
8116 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
8117 and fns handling, rather than in a separate case SSA_NAME.
8119 2017-01-02 Jeff Law <law@redhat.com>
8121 * config/darwin-driver.c (darwin_driver_init): Const-correctness
8122 fixes for first_period and second_period variables.
8124 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
8127 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
8128 (*insvqi_1): New insn pattern.
8129 (*insvqi_1_mem_rex64): Ditto.
8131 (*insvqi_3): Rename from *insvqi.
8133 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
8135 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8137 * doc/cfg.texi (Edges): Remove reference to Java.
8138 (Maintaining the CFG): Ditto.
8140 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
8143 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
8144 transparent aliases.
8146 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
8149 * predict.def (PRED_CALL): Update hitrate.
8150 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
8151 * predict.c (tree_estimate_probability_bb): Split CALL predictor
8152 into direct/indirect/polymorphic variants.
8154 2017-01-01 Jakub Jelinek <jakub@redhat.com>
8156 Update copyright years.
8158 * gcc.c (process_command): Update copyright notice dates.
8159 * gcov-dump.c (print_version): Ditto.
8160 * gcov.c (print_version): Ditto.
8161 * gcov-tool.c (print_version): Ditto.
8162 * gengtype.c (create_file): Ditto.
8163 * doc/cpp.texi: Bump @copying's copyright year.
8164 * doc/cppinternals.texi: Ditto.
8165 * doc/gcc.texi: Ditto.
8166 * doc/gccint.texi: Ditto.
8167 * doc/gcov.texi: Ditto.
8168 * doc/install.texi: Ditto.
8169 * doc/invoke.texi: Ditto.
8171 Copyright (C) 2017 Free Software Foundation, Inc.
8173 Copying and distribution of this file, with or without modification,
8174 are permitted in any medium without royalty provided the copyright
8175 notice and this notice are preserved.