MIPS: Prevent buffer overrun in uninitialised variable fix
[official-gcc.git] / gcc / ChangeLog
blob80d343615b2f48624ac4c4d4fec06120509acb7f
1 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
4         uninitialized variable warning to avoid buffer overrun.
6 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
8         PR other/71250
9         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
10         is suppressed for '{ 0 }' in C.
12 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
14         * BASE-VER: Set to 8.0.0.
16 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
19         priority .init_array and .fini_array section with SECTION_NOTYPE
20         flag.
22 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
24         PR middle-end/80423
25         * tree.h (build_array_type): Add typeless_storage default argument.
26         * tree.c (type_cache_hasher::equal): Also compare
27         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
28         (build_array_type): Add typeless_storage argument, set
29         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
30         recursive call.
31         (build_nonshared_array_type): Adjust build_array_type_1 caller.
32         (build_array_type): Likewise.  Add typeless_storage argument.
34 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
35             Jakub Jelinek  <jakub@redhat.com>
37         PR tree-optimization/80426
38         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
39         operation on symbolic operands, also compute the overflow for the
40         invariant part when the operation degenerates into a negation.
42 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
44         PR debug/80461
45         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
46         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
48         PR debug/80436
49         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
51 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
53         PR target/80462
54         * config/avr/avr.c (tree.h): Include it.
55         (cgraph.h): Include it.
56         (avr_encode_section_info): Don't warn for uninitialized progmem
57         variable if it's just an alias.
59 2017-04-19  Richard Biener  <rguenther@suse.de>
61         PR ipa/65972
62         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
63         when needed by AutoPGO.
65 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
67         PR lto/50345
68         * doc/lto.texi: Remove an extra 'that'.
70 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
72         PR rtl-optimization/80429
73         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
74         are only used in debug insns.
76 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
77             Vladimir Makarov  <vmakarov@redhat.com>
79         * config/sparc/predicates.md (input_operand): Add comment.  Return
80         true for any memory operand when LRA is in progress.
81         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
83 2017-04-18  Jeff Law  <law@redhat.com>
85         PR target/74563
86         * mips.md ({return,simple_return}_internal): Do not overwrite
87         operands[0].
89 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
91         PR tree-optimization/80443
92         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
93         instead of adding 1, subtract -1 and similarly instead of subtracting
94         1 add -1.
96 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
98         PR rtl-optimization/80357
99         * haifa-sched.c (tmp_bitmap): New variable.
100         (model_recompute): Handle duplicate use records.
101         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
102         (free_global_sched_pressure_data): Free it.
104 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
106         Revert:
107         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
108         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
109         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
110         instead of SYSTEM_HEADER_DIR.
112 2017-04-18  Jeff Law  <law@redhat.com>
114         PR middle-end/80422
115         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
116         predecessors after walking up the insn chain.
118 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
120         PR debug/80263
121         * dwarf2out.c (modified_type_die): Try harder not to emit internal
122         sizetype type into debug info.
124 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
126         PR target/80099
127         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
128         unneeded test for TARGET_UPPER_REGS_SF.
129         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
131 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
133         PR sanitizer/80444
134         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
135         instead of gsi_after_labels.
137 2017-04-18  Jeff Law  <law@redhat.com>
139         * regcprop.c (maybe_mode_change): Avoid creating copies of the
140         stack pointer.
142         Revert:
143         2017-04-13  Jeff Law  <law@redhat.com>
144         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
145         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
147 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
149         PR target/79453
150         * config/avr/avr.c (intl.h): Include it.
151         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
153 2017-04-18  Martin Liska  <mliska@suse.cz>
155         PR gcov-profile/78783
156         * gcov-tool.c (gcov_output_files): Validate that destination
157         file is either removed by the tool or by a user.
159 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
160             Guy Benyei  <guybe@mellanox.com>
162         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
163         block, and do not negate it, the stored id is already negative.
165 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
167         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
169 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
171         PR target/80098
172         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
173         masks of options that should be turned off if the VSX vector
174         options are turned off.
175         (OTHER_P8_VECTOR_MASKS): Likewise.
176         (OTHER_VSX_VECTOR_MASKS): Likewise.
177         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
178         rs6000_disable_incompatible_switches to validate no type switches
179         like -mvsx.
180         (rs6000_incompatible_switch): New function to disallow turning on
181         other vector options if -mno-vsx, -mno-power8-vector, or
182         -mno-power9-vector are specified.
184 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
186         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
188 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
190         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
191         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
192         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
193         (ARG_POINTER_CFA_OFFSET): Likewise.
195 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
197         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
198         conditions to take advantage of various optimizations.
200 2017-04-13  Jeff Law  <law@redhat.com>
202         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
203         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
204         (zero_extendsidi2_dext): Likewise.
206 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
208         PR sanitizer/80403
209         * fold-const.c (fold_ternary_loc): Revert
210         use op0 instead of fold_convert_loc (loc, type, arg0) part of
211         2017-04-12 change.
213 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
215         PR rtl-optimization/80343
216         * lra-remat.c (update_scratch_ops): Assign original hard reg to
217         new scratch pseudo.
219 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
221         PR sanitizer/80414
222         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
223         to ubsan_encode_value.
225 2017-04-13  Jeff Law  <law@redhat.com>
227         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
228         appearing in DEBUG_INSNs.
230 2017-04-13  Martin Liska  <mliska@suse.cz>
232         PR gcov-profile/80413
233         * gcov-io.c (gcov_write_string): Copy to buffer just when
234         allocated size is greater than zero.
236 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
238         PR debug/80321
239         * dwarf2out.c (decls_for_scope): Ignore declarations of
240         current_function_decl in BLOCK_NONLOCALIZED_VARS.
242 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
244         PR lto/69953 
245         * ipa-visibility.c (non_local_p): Fix typos.
246         (localize_node): When localizing symbol in same comdat group,
247         dissolve the group only when we know external symbols are going
248         to be privatized.
249         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
251 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
253         PR tree-optimization/79390
254         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
255         order does not result in usable sequence, retry with reversed operand
256         order.
258         PR sanitizer/80403
259         PR sanitizer/80404
260         PR sanitizer/80405
261         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
262         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
263         op0 instead of fold_convert_loc (loc, type, arg0).
265 2017-04-12  Jeff Law  <law@redhat.com>
267         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
268         has a delay slot in the generated code.
270         * config/cris/cris.md (cris_preferred_reload_class): Return
271         GENNONACR_REGS rather than GENERAL_REGS.
273 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
275         PR c/80163
276         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
277         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
278         signedness of the result type.
280 2017-04-12  Richard Biener  <rguenther@suse.de>
281             Jeff Law  <law@redhat.com>
283         PR tree-optimization/80359
284         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
285         trim stores to TARGET_MEM_REFs.
287 2017-04-12  Richard Biener  <rguenther@suse.de>
289         PR tree-optimization/79390
290         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
291         threading case even more.
293 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
295         PR target/80382
296         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
297         for quad_address_p for TImode, instead of just not indexed_address.
299 2017-04-12  Richard Biener  <rguenther@suse.de>
300             Bernd Edlinger  <bernd.edlinger@hotmail.de>
302         PR middle-end/79671
303         * alias.c (component_uses_parent_alias_set_from): Handle
304         TYPE_TYPELESS_STORAGE.
305         (get_alias_set): Likewise.
306         * tree-core.h (tree_type_common): Add typeless_storage flag.
307         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
308         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
309         for types containing members with TYPE_TYPELESS_STORAGE.
310         (place_field): Likewise.
311         (layout_type): Likewise for ARRAY_TYPE.
312         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
313         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
314         TYPE_TYPELESS_STORAGE.
315         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
317 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
319         PR sanitizer/80349
320         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
321         first argument to type.
323 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
325         PR target/80376
326         PR target/80315
327         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
328         CONST0_RTX (mode) rather than const0_rtx where appropriate.
329         (rs6000_expand_binop_builtin): Likewise.
330         (rs6000_expand_ternop_builtin): Likewise; also add missing
331         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
332         vshasigma built-ins.
333         * doc/extend.texi: Document that vec_xxpermdi's third argument
334         must be a constant.
336 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
338         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
339         Use shift_const cost parameter when calculating gain of STV shifts.
341 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
343         PR rtl-optimization/70478
344         * lra-constraints.c (process_alt_operands): Check memory for
345         disfavoring memory insn operand.
347 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
349         PR middle-end/80100
350         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
351         left shift in unsigned HOST_WIDE_INT type.
353         PR rtl-optimization/80385
354         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
355         (not (neg X)) into (plus X -1) for complex or non-integral modes.
357         PR libgomp/80394
358         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
359         if they have any depend clauses.
361 2017-04-11  Martin Liska  <mliska@suse.cz>
363         PR ipa/80212
364         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
365         * ipa-split.c (split_function): Create a local comdat symbol
366         if caller is in a comdat group.
368 2017-04-11  Martin Liska  <mliska@suse.cz>
370         PR ipa/80212
371         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
372         flags.
374 2017-04-11  Martin Sebor  <msebor@redhat.com>
376         PR middle-end/80364
377         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
378         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
379         for INTEGER_TYPE.
380         (directive::set_width, directive::set_precision, format_character):
381         Adjust.
382         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
383         INTEGER_TYPE.
385 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
387         PR target/80389
388         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
389         conflict, set target->arch_name instead of target->cpu_name.
391 2017-04-11  Richard Biener  <rguenther@suse.de>
393         PR tree-optimization/80374
394         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
395         build_zero_cst, remove fold_convertible_p check again.
397 2017-04-11  Martin Liska  <mliska@suse.cz>
399         PR sanitizer/70878
400         * ubsan.c (instrument_object_size): Do not instrument register
401         variables.
403 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
405         PR target/80381
406         * config/i386/i386-builtin-types.def
407         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
408         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
409         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
410         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
411         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
412         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
413         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
414         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
415         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
416         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
417         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
418         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
419         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
420         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
421         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
422         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
423         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
424         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
425         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
426         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
427         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
428         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
429         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
430         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
431         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
432         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
433         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
434         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
435         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
436         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
437         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
438         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
439         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
440         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
441         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
442         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
443         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
444         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
445         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
446         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
447         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
448         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
449         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
450         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
451         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
452         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
453         aliases.
454         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
455         flag to second_arg_count, handle 4 argument function type _COUNT
456         aliases, handle second_arg_count on second argument rather than last.
458 2017-04-10  Jeff Law  <law@redhat.com>
460         PR tree-optimization/80374
461         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
462         record anything if we can not convert integer_zero_node to the
463         desired type.
465 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
467         PR target/80108
468         * config/rs6000/rs6000.c (rs6000_option_override_internal):
469         Enhance special handling given to the TARGET_P9_MINMAX option in
470         relation to certain other options.
472 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
474         PR tree-optimization/80153
475         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
476         remove POINTER_PLUS_EXPR's base part directly, rather than through
477         aff_tree.
479 2017-04-10  Richard Biener  <rguenther@suse.de>
480             Bin Cheng  <bin.cheng@arm.com>
482         PR tree-optimization/80153
483         * tree-affine.c (aff_combination_to_tree): Get base pointer from
484         the first element of pointer type aff_tree.  Build result expr in
485         aff_tree's type.
486         (add_elt_to_tree): Convert to type unconditionally.  Remove other
487         fold_convert calls.
488         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
489         (rewrite_use_nonlinear_expr): Check invariant using iv information.
491 2017-04-10  Richard Biener  <rguenther@suse.de>
493         * tree-ssa-structalias.c (find_func_aliases): Properly handle
494         asm inputs.
496 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
498         PR rtl-optimization/70478
499         * lra-constraints.c (curr_small_class_check): New.
500         (update_and_check_small_class_inputs): New.
501         (process_alt_operands): Update curr_small_class_check.  Disfavor
502         alternative insn memory operands.  Check available regs for small
503         class operands.
505 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
507         PR target/80057
508         * config/mips/mips.opt (-mvirt): Update description.
509         * doc/invoke.texi (-mvirt): Likewise.
511 2017-04-10  Richard Biener  <rguenther@suse.de>
513         PR middle-end/80362
514         * fold-const.c (fold_binary_loc): Look at unstripped ops when
515         looking for NEGATE_EXPR in -A / -B to A / B folding.
517 2017-04-10  Martin Liska  <mliska@suse.cz>
519         PR gcov-profile/80224
520         * gcov.c (print_usage): Fix usage string.
521         (get_gcov_intermediate_filename): Remove.
522         (output_gcov_file): Use both for normal and intermediate format.
523         (generate_results): Do not initialize special file for
524         intermediate format.
526 2017-04-10  Richard Biener  <rguenther@suse.de>
528         PR tree-optimization/80304
529         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
530         for safelen.
532 2017-04-10  Nathan Sidwell  <nathan@acm.org>
534         PR target/79905
535         * config/rs6000/rs6000.c (rs6000_vector_type): New.
536         (rs6000_init_builtins): Use it.
538 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
540         * config/arm/arm.md (<mrc>): Add mode to SET source.
541         (<mrrc>): Likewise.
543 2017-04-10  Richard Biener  <rguenther@suse.de>
545         PR middle-end/80344
546         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
548 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
550         PR target/80324
551         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
552         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
553         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
554         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
555         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
556         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
557         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
558         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
559         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
560         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
561         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
562         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
563         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
564         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
565         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
566         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
567         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
568         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
569         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
570         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
571         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
572         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
573         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
575 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
577         PR rtl-optimization/70478
578         * lra-constraints.c: Reverse the last patch.
580 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
582         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
583         Add comment for WCHAR_T.
585 2017-04-08  Martin Liska  <mliska@suse.cz>
587         Revert:
588         2017-04-07  Martin Liska  <mliska@suse.cz>
590         PR ipa/80212
591         * ipa-split.c (split_function): Add function part to a same comdat
592         group.
594 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
596         PR target/80358
597         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
599 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
601         * rs6000/rs6000.c (vec_load_pendulum): Rename...
602         (vec_pairing): ...to this.
603         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
604         (rs6000_sched_init): Adjust for name change.
605         (struct rs6000_sched_context): Likewise.
606         (rs6000_init_sched_context): Likewise.
607         (rs6000_set_sched_context): Likewise.
609 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
611         PR target/80322
612         PR target/80323
613         PR target/80325
614         PR target/80326
615         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
616         intrinsics.
617         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
618         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
619         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
621 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
623         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
625 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
627         PR rtl-optimization/70703
628         * ira-color.c (update_conflict_hard_regno_costs): Use
629         int64_t instead of HOST_WIDE_INT.
631 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
633         PR rtl-optimization/70478
634         * lra-constraints.c (process_alt_operands): Disfavor alternative
635         insn memory operands.
637 2017-04-07  Jeff Law  <law@redhat.com>
639         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
640         CALL and NOTE_INSN_CALL_ARG_LOCATION.
642 2017-04-07  Martin Liska  <mliska@suse.cz>
644         PR target/79889
645         * config/aarch64/aarch64.c (aarch64_process_target_attr):
646         Show error message instead of an ICE.
648 2017-04-07  Martin Liska  <mliska@suse.cz>
650         PR ipa/80212
651         * ipa-split.c (split_function): Add function part to a same comdat
652         group.
654 2017-04-07  Richard Biener  <rguenther@suse.de>
656         PR middle-end/80341
657         * tree.c (get_unwidened): Also handle ! for_type case for
658         INTEGER_CSTs.
659         * convert.c (do_narrow): Split out from ...
660         (convert_to_integer_1): ... here.  Do not pass final truncation
661         type to get_unwidened for TRUNC_DIV_EXPR.
663 2017-04-07  Richard Biener  <rguenther@suse.de>
665         * tree-affine.c (wide_int_ext_for_comb): Take type rather
666         than aff_tree.
667         (aff_combination_const): Adjust.
668         (aff_combination_scale): Likewise.
669         (aff_combination_add_elt): Likewise.
670         (aff_combination_add_cst): Likewise.
671         (aff_combination_convert): Likewise.
672         (add_elt_to_tree): Likewise.  Remove unused argument.
673         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
675 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
677         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
678         definition.
679         * config/arm/arm.c (arm_default_short_enums): Use
680         ARM_DEFAULT_SHORT_ENUMS.
681         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
683 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
685         PR debug/80234
686         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
687         members with redundant out-of-class redeclaration.
689 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
691         PR target/80286
692         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
693         * config/i386/i386.md (*zero_extendsidi2):
694         Add (?*x,*x) and (?*v,*v) alternatives.
696 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
698         PR target/79733
699         * config/i386/i386.c (ix86_expand_builtin)
700         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
701         mode from insn data. Convert operands to insn operand mode.
702         Copy operands that don't satisfy insn predicate to a register.
704 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
706         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
707         Update comments.
709 2017-04-06  Richard Biener  <rguenther@suse.de>
711         PR tree-optimization/80334
712         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
713         preserve alignment of accesses.
715 2017-04-06  Richard Biener  <rguenther@suse.de>
717         PR tree-optimization/80262
718         * tree-sra.c (build_ref_for_offset): Preserve address-space
719         information.
720         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
721         Drop useless address-space information on MEM_REF offsets.
723 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
725         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
727 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
729         PR rtl-optimization/70703
730         * ira-color.c (update_conflict_hard_regno_costs): Use
731         HOST_WIDE_INT instead of long.
733 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
735         PR target/80298
736         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
737         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
738         is not defined.
739         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
740         for x86_64 target.  Handle -m3dnowa option.
742 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
744         PR rtl-optimization/70703
745         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
746         (update_conflict_hard_regno_costs): Use long instead of unsigned
747         arithmetic for cost calculation.
749 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
750             Bernd Edlinger  <bernd.edlinger@hotmail.de>
752         PR sanitizer/80308
753         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
754         for big endian.
756 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
758         PR target/78002
759         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
760         ptr_mode with Pmode throughout.
761         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
762         into probe_stack_range and use DImode.
764 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
766         PR target/79890
767         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
768         call_eh_return is true.
770 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
772         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
773         Initialize last_match_fntype_index.
775 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
777         PR target/80310
778         * tree-nvr.c: Include internal-fn.h.
779         (pass_return_slot::execute): Ignore internal calls without
780         direct optab.
782 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
783             Richard Biener  <rguenther@suse.de>
785         PR c++/80297
786         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
787         captures used multiple times, except for the last use.
788         * generic-match-head.c: Include gimplify.h.
790 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
792         PR tree-optimization/79390
793         * target.h (struct noce_if_info): Declare.
794         * targhooks.h (default_noce_conversion_profitable_p): Declare.
795         * target.def (noce_conversion_profitable_p): New target hook.
796         * ifcvt.h (struct noce_if_info): New type, moved from ...
797         * ifcvt.c (struct noce_if_info): ... here.
798         (noce_conversion_profitable_p): Renamed to ...
799         (default_noce_conversion_profitable_p): ... this.  No longer
800         static nor inline.
801         (noce_try_store_flag_constants, noce_try_addcc,
802         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
803         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
804         instead of noce_conversion_profitable_p.
805         * config/i386/i386.c: Include ifcvt.h.
806         (ix86_option_override_internal): Don't override
807         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
808         (ix86_noce_conversion_profitable_p): New function.
809         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
810         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
811         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
812         * doc/tm.texi: Regenerated.
814 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
816         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
817         correction.
819 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
821         PR target/80307
822         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
823         instructions for small multiply cores.
825 2017-04-04  Jeff Law  <law@redhat.com>
827         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
828         added member.
829         (mips_expand_vec_perm_const): Initialize elements in orig_perm
830         that are not set by the loop over the elements.
832 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
834         PR target/80286
835         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
836         int mode, convert_modes it to mode as unsigned, otherwise use
837         lowpart_subreg to mode rather than SImode.
838         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
839         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
840         Use DImode instead of SImode for the shift count operand.
841         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
842         Likewise.
844 2017-04-04  Richard Biener  <rguenther@suse.de>
846         PR middle-end/80281
847         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
848         arithmetic done for the negate or the plus.  Simplify.
849         (A - (-B) -> A + B): Likewise.
850         * fold-const.c (split_tree): Make sure to not negate pointers.
852 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
854         PR rtl-optimization/60818
855         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
856         a compare of comparisons with the thing compared if this results
857         in a different machine mode.
859 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
861         * alias.c (base_alias_check): Fix typo in comment.
862         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
863         * cgraphunit.c (symbol_table::compile): Likewise.
864         * collect2.c (maybe_run_lto_and_relink): Likewise.
865         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
866         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
867         * config/avr/avr.c (avr_map_op_t): Likewise.
868         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
869         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
870         * config/epiphany/epiphany.md (movcc): Likewise.
871         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
872         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
873         Likewise.
874         * config/mips/mips.c (mips_save_restore_reg): Likewise.
875         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
876         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
877         * config/sh/sh.c (sh_rtx_costs): Likewise.
878         * fold-const.c (fold_truth_andor): Likewise.
879         * genautomata.c (collapse_flag): Likewise.
880         * gengtype.h (struct type::u::s): Likewise.
881         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
882         * input.c (FORMAT_AMOUNT): Likewise.
883         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
884         (known_aggs_to_agg_replacement_list): Likewise.
885         * ipa-inline-analysis.c: Likewise.
886         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
887         * ipa-polymorphic-call.c
888         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
889         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
890         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
891         Likewise.
892         * modulo-sched.c (apply_reg_moves): Likewise.
893         * omp-expand.c (build_omp_regions_1): Likewise.
894         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
895         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
896         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
897         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
898         * value-prof.c: Likewise.
899         * var-tracking.c (val_reset): Likewise.
901 2017-04-03  Richard Biener  <rguenther@suse.de>
903         PR tree-optimization/80275
904         * fold-const.c (split_address_to_core_and_offset): Handle
905         POINTER_PLUS_EXPR.
907 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
909         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
910         descriptors is at least equal to that of functions.
912 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
914         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
916 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
918         PR target/80250
919         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
920         (mov<IMOD4:mode>): New expander.
921         (*mov<IMOD4:mode>_internal): New insn and split pattern.
923 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
925         PR rtl-optimization/79405
926         * fwprop.c (propagations_left): New variable.
927         (forward_propagate_into): Decrement it.
928         (fwprop_init): Initialize it.
929         (fw_prop): If the variable has reached zero, stop propagating.
930         (fwprop_addr): Ditto.
932 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
934         PR debug/79255
935         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
936         a FUNCTION_DECL, pass it as decl instead of origin to
937         process_scope_var.
939 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
941         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
942         string.
944 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
946         PR target/80107
947         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
948         TARGET_VSX_SMALL_INTEGER.
950 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
952         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
953         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
955 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
957         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
958         extraction from odd-numbered MSA register.
960 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
962         PR middle-end/80173
963         * expmed.c (store_bit_field_1): Don't attempt to create
964         a word subreg out of hard registers wider than word if they
965         have HARD_REGNO_NREGS of 1 for their mode.
967         PR middle-end/80163
968         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
969         conversions to integer types wider than word and pointer.
971         PR debug/80025
972         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
973         (rtx_equal_for_cselib_p): Pass 0 to it.
974         * cselib.c (cselib_hasher::equal): Likewise.
975         (rtx_equal_for_cselib_1): Add depth argument.  If depth
976         is 128, don't look up VALUE locs and punt.  Increment
977         depth in recursive calls when walking VALUE locs.
979 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
981         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
982         (make_gcov_file_name): Use the canonical path name for generating
983         the MD5 value.
984         (read_line): Fix handling of files with ascii null bytes.
986 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
988         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
989         to initialise a vector register instead
990         of using a const_int.
992 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
994         PR translation/80189
995         * gimplify.c (omp_default_clause): Use %qs instead of %s in
996         diagnostic messages.
998 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
1000         PR target/80246
1001         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
1002         (dfp_diex_<mode>): Update mode of operand 1.
1003         * doc/extend.texi (dxex, dxexq): Document change to return type.
1004         (diex, diexq): Document change to argument type.
1006 2017-03-30  Martin Jambor  <mjambor@suse.cz>
1008         PR ipa/77333
1009         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
1010         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
1011         it reflects the signature changes performed at the callee side.
1012         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
1013         to cgraph_build_function_type_skip_args.
1014         (build_function_decl_skip_args): Adjust call to the above function.
1016 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
1018         PR target/80206
1019         * config/i386/sse.md
1020         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
1021         register as dest whenever it is a MEM not rtx_equal_p to the
1022         corresponding dup operand, and when forcing into reg move the
1023         reg into the memory afterwards.
1024         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
1025         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
1026         for the force_reg mode.
1027         (avx512vl_vextractf128<mode>): Use register as dest either
1028         always when a MEM, or when it is a MEM not rtx_equal_p to the
1029         corresponding dup operand, or even not when it is a CONST_VECTOR
1030         depending on the mode and lo vs. hi.
1031         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
1032         parens.
1033         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
1034         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
1035         Likewise.  Require that operands[2] is even.
1036         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
1037         Remove extraneous parens.  Require that operands[2] is a multiple
1038         of 4.
1039         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
1040         operands[0] is a MEM if <mask_applied>, the predicates/constraints
1041         disallow memory then.
1043 2017-03-30  Richard Biener  <rguenther@suse.de>
1045         PR tree-optimization/77498
1046         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
1047         to non-constants over backedges.
1049 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
1051         PR rtl-optimization/80233
1052         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
1053         as last_combined_insn.  Do not test for BARRIER_P separately.
1055 2017-03-29  Andreas Schwab  <schwab@suse.de>
1057         PR ada/80146
1058         * calls.c (prepare_call_address): Convert funexp to Pmode before
1059         copying to temp reg.
1061 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1063         PR tree-optimization/80158
1064         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
1065         Handle possible future case of more than one alternate
1066         interpretation.
1067         (replace_rhs_if_not_dup): Likewise.
1068         (replace_one_candidate): Likewise.
1070 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
1072         PR rtl-optimization/80193
1073         * ira.c (ira): Do not check allocation for LRA.
1075 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
1077         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
1078         (nvptx_output_simt_exit): Declare.
1079         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
1080         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
1081         (init_softstack_frame): Move initialization of crtl->is_leaf to...
1082         (nvptx_declare_function_name): ...here.  Emit declaration of local
1083         memory space buffer for omp_simt_enter insn.
1084         (nvptx_output_unisimt_switch): New.
1085         (nvptx_output_softstack_switch): New.
1086         (nvptx_output_simt_enter): New.
1087         (nvptx_output_simt_exit): New.
1088         * config/nvptx/nvptx.h (struct machine_function): New fields
1089         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
1090         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
1091         (UNSPECV_SIMT_EXIT): Ditto.
1092         (omp_simt_enter_insn): New insn.
1093         (omp_simt_enter): New expansion.
1094         (omp_simt_exit): New insn.
1095         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
1097         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
1098         (expand_GOMP_SIMT_ENTER_ALLOC): New.
1099         (expand_GOMP_SIMT_EXIT): New.
1100         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
1101         (GOMP_SIMT_ENTER_ALLOC): Ditto.
1102         (GOMP_SIMT_EXIT): Ditto.
1103         * target-insns.def (omp_simt_enter): New insn.
1104         (omp_simt_exit): Ditto.
1105         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
1106         simt_dlist.
1107         (lower_rec_simd_input_clauses): Implement SIMT privatization.
1108         (lower_rec_input_clauses): Likewise.
1109         (lower_lastprivate_clauses): Handle SIMT privatization.
1111         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
1112         (ompdevlow_adjust_simt_enter): New.
1113         (find_simtpriv_var_op): New.
1114         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
1115         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
1117         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
1118         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
1119         (copy_decl_for_dup_finish): Ditto.
1121         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
1123 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
1125         PR target/53383
1126         * config/i386/i386.c (ix86_option_override_internal): Always
1127         allow -mpreferred-stack-boundary=3 for 64-bit targets.
1129 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
1131         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
1133 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
1135         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
1136         mark new edge's irreducible flag accordign to it.
1137         (vect_do_peeling): Check loop preheader edge's irreducible flag
1138         and pass it to function slpeel_add_loop_guard.
1140 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
1142         PR tree-optimization/80218
1143         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1144         Update block frequencies and counts.
1146 2017-03-28  Richard Biener  <rguenther@suse.de>
1148         PR tree-optimization/78644
1149         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
1150         of a simplification result we may not use it at all.
1152 2017-03-28  Richard Biener  <rguenther@suse.de>
1154         PR ipa/80205
1155         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
1156         without arguments, generate default definition of a SSA name.
1158 2017-03-28  Richard Biener  <rguenther@suse.de>
1160         PR middle-end/80222
1161         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
1162         TYPE_REF_CAN_ALIAS_ALL references.
1163         * fold-const.c (fold_indirect_ref_1): Likewise.
1165 2017-03-28  Martin Liska  <mliska@suse.cz>
1167         PR ipa/80104
1168         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
1169         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
1171 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
1172             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
1174         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
1175         (EXTRA_SPECS): Define.
1176         (SUBTARGET_EXTRA_SPECS): Likewise.
1177         (SUBTARGET_CPP_SPEC): Likewise.
1178         * config/arc/elf.h (EXTRA_SPECS): Renamed to
1179         SUBTARGET_EXTRA_SPECS.
1180         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
1182 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
1184         * config/arc/simdext.md (vst64_insn): Update pattern.
1185         (vld32wh_insn): Likewise.
1186         (vld32wl_insn): Likewise.
1187         (vld64_insn): Likewise.
1188         (vld32_insn): Likewise.
1190 2017-03-28  Marek Polacek  <polacek@redhat.com>
1192         PR sanitizer/80067
1193         * fold-const.c (fold_comparison): Use protected_set_expr_location
1194         instead of SET_EXPR_LOCATION.
1196 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
1198         * tree.c (add_expr): Avoid name lookup warning.
1200 2017-03-27  Jeff Law  <law@redhat.com>
1202         PR tree-optimization/80216
1203         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
1204         function name.  Limit recursion depth.
1205         (record_temporary_equivalences): Corresponding changes.
1207 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
1209         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
1210         covered first.
1212 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
1214         PR target/80102
1215         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
1216         notes.
1217         * cfgcleanup.c (reg_note_cfa_p): New array.
1218         (insns_have_identical_cfa_notes): New function.
1219         (old_insns_match_p): Don't cross-jump in between /f
1220         and non-/f instructions.  If both i1 and i2 are frame related,
1221         verify all CFA notes, their order and content.
1223 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
1225         PR target/78543
1226         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
1227         HImode and SImode with zero extend to DImode to one insn.
1228         (bswap<mode>2_extenddi): Likewise.
1229         (bswapsi2_extenddi): Likewise.
1230         (bswaphi2_extendsi): Likewise.
1231         (bswaphi2): Combine bswap HImode and SImode into one insn.
1232         Separate memory insns from swapping register.
1233         (bswapsi2): Likewise.
1234         (bswap<mode>2): Likewise.
1235         (bswaphi2_internal): Delete, no longer used.
1236         (bswapsi2_internal): Likewise.
1237         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
1238         store, and gpr<-gpr swap insns.
1239         (bswap<mode>2_store): Likewise.
1240         (bswaphi2_reg): Register only splitter, combine with the splitter.
1241         (bswaphi2 splitter): Likewise.
1242         (bswapsi2_reg): Likewise.
1243         (bswapsi2 splitter): Likewise.
1244         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
1245         the insns into load, store, and register/register insns.
1246         (bswapdi2_ldbrx): Likewise.
1247         (bswapdi2_load): Likewise.
1248         (bswapdi2_store): Likewise.
1249         (bswapdi2_reg): Likewise.
1251 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
1253         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
1254         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
1256 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1258         PR target/80103
1259         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
1260         add comments.
1261         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1262         special handling for target option conflicts between dform
1263         options (-mpower9-dform, -mpower9-dform-vector,
1264         -mpower9-dform-scalar) and -mno-direct-move.
1266 2017-03-27  Richard Biener  <rguenther@suse.de>
1268         PR tree-optimization/80181
1269         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
1271 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
1273         * config/arc/predicates.md (move_double_src_operand): Replace the
1274         call to move_double_src_operand with a call to address_operand.
1276 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
1278         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
1279         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
1280         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
1282 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
1284         * config/arc/predicates.md (long_immediate_loadstore_operand):
1285         Consider scaled addresses cases.
1287 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
1289         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
1290         restored when in interrupt.
1291         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
1292         doesn't have delay slot.
1294 2017-03-27  Richard Biener  <rguenther@suse.de>
1296         PR ipa/79776
1297         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
1298         inlined thunk clones.
1300 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
1302         PR sanitizer/80168
1303         * asan.c (instrument_derefs): Copy over last operand from
1304         original COMPONENT_REF to the new COMPONENT_REF with
1305         DECL_BIT_FIELD_REPRESENTATIVE.
1306         * ubsan.c (instrument_object_size): Likewise.
1308 2017-03-27  Richard Biener  <rguenther@suse.de>
1310         PR tree-optimization/80170
1311         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
1312         sure DR/SCEV didnt fold in constants we do not see when looking
1313         at the reference base alignment.
1315 2017-03-27  Richard Biener  <rguenther@suse.de>
1317         PR middle-end/80171
1318         * gimple-fold.c (fold_ctor_reference): Properly guard against
1319         NULL return value from canonicalize_constructor_val.
1321 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
1323         PR target/80180
1324         * config/i386/i386.c (ix86_expand_builtin)
1325         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
1326         flags reg setting and flags reg using instructions.
1327         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
1328         clobbering instructions to zero extend op2.
1330 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
1332         * doc/install.texi (Configuration) <--with-aix-soname>:
1333         Update link to AIX ld.
1335 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
1337         PR rtl-optimization/80160
1338         PR rtl-optimization/80159
1339         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
1340         reg_alternate_class into account.
1342 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
1344         PR target/80148
1345         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
1346         to consider in curr_insn_transform.
1348 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
1350         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
1351         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
1352         and emit_mode_inner.
1354 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1356         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
1357         argument to the overloaded builtin variants.  Use the new flag to
1358         deprecate certain builtin variants.
1359         * config/s390/s390-builtin-types.def: Add new builtin types.
1360         * config/s390/s390-builtins.h: Support new flags field for
1361         overloaded builtins.
1362         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
1363         (s390_macro_to_expand): Enable vector float data type.
1364         (s390_cpu_cpp_builtins_internal): Indicate support of the new
1365         builtins by incrementing the __VEC__ version number.
1366         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
1367         vec_xst.
1368         (s390_resolve_overloaded_builtin): Emit error messages depending
1369         on the builtin flags.
1370         * config/s390/s390.c (s390_expand_builtin): Support additional
1371         flags argument.  Change error message to match the messages
1372         emitted in s390-c.c.
1373         * config/s390/s390.md: New UNSPEC_* constants.
1374         (op_type): Add new instruction types.
1375         * config/s390/vecintrin.h: Add new builtins and test data class
1376         constants.
1377         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
1378         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
1379         (VEC_INEXACT, VEC_NOINEXACT): New constants.
1380         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
1381         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
1382         ("vec_mergel<mode>"): V_HW -> VEC_HW.
1384         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
1385         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
1386         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
1387         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
1389         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
1390         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
1391         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
1392         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
1394         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
1395         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
1396         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
1397         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
1398         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
1399         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
1400         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
1402         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
1403         ("vec_scatter_element<V_HW_4:mode>_DI")
1404         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
1405         ("vec_fpint<mode>", "vflls")
1406         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
1407         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
1408         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
1409         ("*vec_cmphe<mode>_cc"): ... these.
1411         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
1412         mode constant instead of magic value.
1414 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1416         * config/s390/s390.c (s390_expand_vec_compare): Support other
1417         vector floating point modes than just V2DF.
1418         (s390_expand_vcond): Likewise.
1419         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
1420         (s390_cannot_change_mode_class): Prevent mode changes between TF
1421         and V1TF in vector registers.
1422         * config/s390/s390.md (DF, SF): New mode attributes.
1423         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
1424         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
1425         SFmode support for VRs.
1426         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
1427         vector fp modes.
1428         (VFT, VF_HW): New mode iterators.
1429         (vw, sdx): New mode attributes.
1430         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
1431         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
1432         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
1433         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
1434         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
1435         also the new vector floating point modes.  Renaming to ...
1437         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
1438         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
1439         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
1440         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
1441         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
1442         ("vec_unordered<mode>"): ... these.
1444         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
1445         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
1446         ("*vec_extendv2df"): New insn definitions.
1448 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1450         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
1451         ("mulditi3_2", "*muldi3_sign"): New patterns.
1452         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
1453         rename the pattern definition.
1455 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1457         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
1458         expander.
1459         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
1461 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1463         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
1464         instruction if possible.
1465         * config/s390/vector.md (vec_halfnumelts): New mode
1466         attribute.
1467         ("*vec_vllezlf<mode>"): New pattern.
1469 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1471         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
1472         ("popcountv4si2", "popcountv2di2"): Rename to ...
1473         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
1474         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
1475         condition.
1476         ("popcount<mode>2_vxe"): New pattern.
1478 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1480         * common/config/s390/s390-common.c (processor_flags_table): Add
1481         arch12.
1482         * config.gcc: Add arch12.
1483         * config/s390/driver-native.c (s390_host_detect_local_cpu):
1484         Default to arch12 for unknown CPU model numbers.
1485         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
1486         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
1487         PROCESSOR_max sanity check.
1488         * config/s390/s390-opts.h (enum processor_type): Add
1489         PROCESSOR_ARCH12.
1490         * config/s390/s390.c (processor_table): Add arch12.
1491         (s390_expand_builtin): Add check for B_VXE flag.
1492         (s390_issue_rate): Add PROCESSOR_ARCH12.
1493         (s390_get_sched_attrmask): Likewise.
1494         (s390_get_unit_mask): Likewise.
1495         (s390_sched_score): Enable z13 scheduling for arch12.
1496         (s390_sched_reorder): Likewise.
1497         (s390_sched_variable_issue): Likewise.
1498         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
1499         PF_VXE.
1500         (s390_tune_attr): Use z13 scheduling also for arch12.
1501         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
1502         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
1503         (TARGET_VXE_P): New macros.
1504         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
1505         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
1506         * config/s390/s390.opt: Add arch12 as processor_type.
1508 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1510         * config/s390/s390.md
1511         ("fixuns_truncdddi2", "fixuns_trunctddi2")
1512         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
1513         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
1515         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
1516         Rename expanders to ...
1518         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
1519         ("fixuns_truncdddi2_emu"): ... these.
1521         ("fixuns_trunc<mode>si2_emu"): New expander.
1523         ("*fixuns_truncdfdi2_z13"): Rename to ...
1524         ("*fixuns_truncdfdi2_vx"): ... this.
1526 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1528         * config/s390/2964.md: Remove the single element vector compare
1529         instructions which are no longer used.
1530         * config/s390/s390.c (s390_select_ccmode): Remove handling of
1531         vector CCmodes.
1532         (s390_canonicalize_comparison): Remove handling of DFmode
1533         compares.
1534         (s390_expand_vec_compare_scalar): Remove function.
1535         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
1536         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
1537         pattern.
1538         ("*cmp<mode>_ccs"): Add wfcdb instruction.
1540 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1542         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
1543         FP zero.
1544         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
1545         will anyway by matched by mov<mode>_64dfp.
1547 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1549         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
1550         vlef/vstef.  Add missing operand to vleif.
1552 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1554         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
1555         pair for all vector types with 64 bit elements.
1556         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
1557         * config/s390/vector.md (V_HW_64): ... here.
1558         (V_128_NOSINGLE): New mode iterator.
1559         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
1560         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
1561         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
1562         ("*vec_load_pairv2di"): Change to ...
1563         ("*vec_load_pair<mode>"): ... this one.
1565 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1567         * config/s390/constraints.md: Add comments.
1568         (jKK): Reject element sizes > 8 bytes.
1569         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
1570         s_operands.
1571         * config/s390/s390.md: Add the s_operand checks formerly in
1572         s390_split_ok_p to various splitters where they are still
1573         required.
1574         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
1575         for 128 bit vectors.  Plus two splitters.
1577 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1579         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
1580         the file.
1582 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1584         PR target/79893
1585         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
1586         error if the boundary argument is not constant.
1588 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
1590         PR rtl-optimization/80112
1591         * loop-doloop.c (doloop_condition_get): Don't check condition
1592         if cmp isn't SET with IF_THEN_ELSE src.
1594 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1596         PR tree-optimization/80158
1597         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
1598         replacing a candidate statement, also replace it for the
1599         candidate's alternate interpretation.
1600         (replace_rhs_if_not_dup): Likewise.
1601         (replace_one_candidate): Likewise.
1603 2017-03-24  Richard Biener  <rguenther@suse.de>
1605         PR tree-optimization/80167
1606         * graphite-isl-ast-to-gimple.c
1607         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
1608         properly.
1609         (translate_isl_ast_to_gimple::get_rename): Likewise.
1611 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1613         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
1614         handling of certain combinations of target options, including the
1615         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
1616         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
1618 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1620         PR target/71436
1621         * config/arm/arm.md (*load_multiple): Add reload_completed to
1622         matching condition.
1624 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1625             Richard Biener  <rguenth@suse.de>
1627         PR tree-optimization/79908
1628         PR tree-optimization/80136
1629         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1630         been cast away, gimplify_and_add suffices.
1632 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
1634         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
1636 2017-03-23  Richard Biener  <rguenther@suse.de>
1638         PR tree-optimization/80032
1639         * gimplify.c (gimple_push_cleanup): Forced unconditional
1640         cleanups still have to go to the conditional_cleanups
1641         sequence.
1643 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
1645         PR tree-optimization/80072
1646         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
1647         to unsigned int.
1648         (next_operand_entry_id): Change type to unsigned int.
1649         (sort_by_operand_rank): Make sure to return the right return value
1650         even if unsigned fields are bigger than INT_MAX.
1651         (struct oecount): Change cnt and id type to unsigned int.
1652         (oecount_hasher::equal): Formatting fix.
1653         (oecount_cmp): Make sure to return the right return value
1654         even if unsigned fields are bigger than INT_MAX.
1655         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
1657         PR c++/80129
1658         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
1659         TREE_READONLY on result if writing it more than once.
1661         PR sanitizer/80110
1662         * doc/invoke.texi (-fsanitize=thread): Document that with
1663         -fnon-call-exceptions atomics are not able to throw
1664         exceptions.
1666         PR sanitizer/80110
1667         * tsan.c: Include tree-eh.h.
1668         (instrument_builtin_call): Call maybe_clean_eh_stmt or
1669         maybe_clean_or_replace_eh_stmt where needed.
1670         (instrument_memory_accesses): Add cfg_changed argument.
1671         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
1672         if it returned true.
1673         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
1675         PR rtl-optimization/63191
1676         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
1677         wrapper function, moved the whole old content into ...
1678         (ix86_delegitimize_address_1): ... this.  New inline function.
1679         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
1680         true as last argument instead of ix86_delegitimize_address.
1682 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
1684         * config/aarch64/aarch64.c (generic_branch_cost): Copy
1685         cortexa57_branch_cost.
1687 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
1689         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
1691 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1693         PR target/80123
1694         * doc/md.texi (Constraints): Document wA constraint.
1695         * config/rs6000/constraints.md (wA): New.
1696         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1697         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1698         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1699         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1701 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
1703         PR c++/80029
1704         * gimplify.c (is_oacc_declared): New function.
1705         (oacc_default_clause): Use it to set default flags for acc declared
1706         variables inside parallel regions.
1707         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
1708         declared variables.
1709         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
1710         declare attribute to any decl as necessary.
1712 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1714         PR target/80082
1715         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
1716         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
1717         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
1718         (arm_arch_lpae): This.
1719         * config/arm/arm.c (arm_arch7ve): Rename into ...
1720         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
1721         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1722         arm_arch_lpae.
1724 2017-03-22  Martin Liska  <mliska@suse.cz>
1726         PR target/79906
1727         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1728         error message instead of an ICE.
1730 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1732         * doc/extend.texi (6.11 Additional Floating Types): Revise.
1734 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1736         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1737         comments.
1738         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1739         comments.
1741 2017-03-21  Martin Sebor  <msebor@redhat.com>
1743         * doc/extend.texi: Use "cannot" instead of "can't."
1744         * doc/hostconfig.texi: Same.
1745         * doc/install.texi: Same.
1746         * doc/invoke.texi: Same.
1747         * doc/loop.texi: Same.
1748         * doc/md.texi: Same.
1749         * doc/objc.texi: Same.
1750         * doc/rtl.texi: Same.
1751         * doc/tm.texi: Same.
1752         * doc/tm.texi.in: Same.
1753         * doc/trouble.texi: Same.
1755 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
1757         PR debug/63238
1758         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
1759         (collect_checksum_attributes): Set it.
1760         (die_checksum_ordered): Use it.
1762 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1764         PR tree-optimization/79908
1765         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
1766         change: For a VA_ARG whose LHS has been cast away, use
1767         force_gimple_operand to construct the side effects.
1769 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
1771         PR translation/80001
1772         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
1773         more amenable to translation.
1774         (oacc_loop_auto_partitions): Likewise.
1776 2017-03-21  Marek Polacek  <polacek@redhat.com>
1777             Martin Sebor  <msebor@redhat.com>
1779         PR tree-optimization/80109
1780         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
1781         on INTEGRAL_TYPE_P.
1783 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
1784             Segher Boessenkool  <segher@kernel.crashing.org>
1786         PR target/80125
1787         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
1788         check reg_used_between_p between insn and one of succ or succ2
1789         depending on if succ is artificial insn not inserted into insn
1790         stream.
1792 2017-03-21  Martin Liska  <mliska@suse.cz>
1794         PR gcov-profile/80081
1795         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1796         * doc/gcc.texi: Include gcov-dump stuff.
1797         * doc/gcov-dump.texi: New file.
1799 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
1801         PR rtl-optimization/79150
1802         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
1803         conditional jump, if the jump is the last insn of the loop.
1805 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1806             Richard Biener  <rguenth@suse.de>
1808         PR tree-optimization/79908
1809         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
1810         been cast away, use force_gimple_operand to construct the side
1811         effects.
1813 2017-03-21  Martin Liska  <mliska@suse.cz>
1815         PR libfortran/79956
1816         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
1817         to NULL.
1819 2017-03-21  Brad Spengler <spender@grsecurity.net>
1821         PR plugins/80094
1822         * plugin.c (htab_hash_plugin): New function.
1823         (add_new_plugin): Use it and adjust.
1824         (parse_plugin_arg_opt): Adjust.
1825         (init_one_plugin): Likewise.
1827 2017-03-21  Richard Biener  <rguenther@suse.de>
1829         PR tree-optimization/80032
1830         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
1831         if set force the cleanup to happen unconditionally.
1832         (gimplify_target_expr): Push inserted clobbers with force_uncond
1833         to avoid them being removed by control-dependent DCE.
1835 2017-03-21  Richard Biener  <rguenther@suse.de>
1837         PR tree-optimization/80122
1838         * tree-inline.c (copy_bb): Do not expans va-arg packs or
1839         va_arg_pack_len when the inlined call stmt requires pack
1840         expansion itself.
1841         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
1843 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
1845         PR sanitizer/78158
1846         * tsan.c (instrument_builtin_call): If the memory model argument
1847         is not a constant, assume it is valid.
1849         PR c/67338
1850         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
1851         avoid UB.
1853 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
1855         PR rtl-optimization/79910
1856         * combine.c (can_combine_p): Do not allow combining an I0 or I1
1857         if its dest is used by an insn before I2 (other than the combined
1858         insns themselves, which are properly handled already).
1860 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
1862         Revert:
1863         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
1865         * combine.c (record_used_regs): New static function.
1866         (try_combine): Handle situations where there is an additional
1867         instruction between I2 and I3 which needs to have a LOG_LINK
1868         updated.
1870         Revert:
1871         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
1873         * combine.c (try_combine): Delete redundant i1 test.  Call
1874         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1876 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1878         PR target/80083
1879         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
1880         alternatives 13/14.
1882 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1884         PR tree-optimization/80054
1885         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
1886         the optimization if a PHI or any of its arguments is not dominated
1887         by the candidate's basis.  Use gphi* rather than gimple* as
1888         appropriate.
1889         (replace_profitable_candidates): Clean up a gimple* variable that
1890         should be a gphi* variable.
1892 2017-03-20  Martin Sebor  <msebor@redhat.com>
1894         PR c++/52477
1895         * doc/extend.texi (attribute constructor): Document present limitation.
1897 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1899         PR target/79963
1900         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
1901         __POWER9_VECTOR__ #ifdef control, change template definition to
1902         use Power9-specific built-in function.
1903         (vec_any_eq): Likewise.
1904         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
1905         to control outcomes from this test.
1906         (vector_ae_<mode>p): For VEC_F modes, likewise.
1908 2017-03-20  Ian Lance Taylor  <iant@google.com>
1910         * config/i386/i386.c (ix86_function_regparm): Save an extra
1911         register for -fsplit-stack with DECL_STATIC_CHAIN.
1913 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
1915         PR target/79912
1916         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
1917         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
1919 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
1921         * config/riscv/riscv.c (riscv_print_operand): Use "fence
1922         iorw,ow".
1923         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
1924         iorw,iorw".
1926 2017-03-20  Marek Polacek  <polacek@redhat.com>
1928         PR sanitizer/80063
1929         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
1931 2017-03-20  Richard Biener  <rguenther@suse.de>
1933         PR tree-optimization/80113
1934         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
1935         allocate extra SSA name for PHI def.
1936         (add_close_phis_to_outer_loops): Likewise.
1937         (add_close_phis_to_merge_points): Likewise.
1938         (copy_loop_close_phi_args): Likewise.
1939         (copy_cond_phi_nodes): Likewise.
1941 2017-03-20  Martin Liska  <mliska@suse.cz>
1943         PR middle-end/79753
1944         * tree-chkp.c (chkp_build_returned_bound): Do not build
1945         returned bounds for a LHS that's not a BOUNDED_P type.
1947 2017-03-20  Martin Liska  <mliska@suse.cz>
1949         PR target/79769
1950         PR target/79770
1951         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1952         COMPLEX_CST and VECTOR_CST.
1954 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1956         PR target/78857
1957         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
1958         target operand.  A new splitter adds the clobber statement in case
1959         the target operand is dead anyway.
1961 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
1963         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1964         to age-old versions of binutils and glibc.
1966 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
1968         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1970 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
1972         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1974 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
1976         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1977         requirement for binutils 2.13.
1979 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
1981         * combine.c (try_combine): Delete redundant i1 test.  Call
1982         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1984 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
1986         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1987         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1988         contents.
1989         <riscv64-*-elf>: Re-arrange section
1990         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1991         <riscv32-*-linux>: Likewise.
1992         <riscv64-*-elf>: Likewise
1993         <riscv64-*-linux>: Likewise.
1995 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
1997         PR target/80052
1998         * aarch64.opt(verbose-cost-dump): Fix typo.
2000 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
2002         PR target/79951
2003         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
2004         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
2006 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
2008         * reload.c (find_reloads): When reloading a nonoffsettable address,
2009         use RELOAD_OTHER for it and its address reloads.
2011         PR rtl-optimization/79910
2012         * combine.c (record_used_regs): New static function.
2013         (try_combine): Handle situations where there is an additional
2014         instruction between I2 and I3 which needs to have a LOG_LINK
2015         updated.
2017 2017-03-17  Jeff Law  <law@redhat.com>
2019         PR tree-optimization/71437
2020         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
2021         conditional in the hash table first.
2022         (vrp_dom_walker::before_dom_children): Extract condition from
2023         ASSERT_EXPR.  Record condition, its inverion and any implied
2024         conditions as well.
2026 2017-03-17  Marek Polacek  <polacek@redhat.com>
2027             Markus Trippelsdorf  <markus@trippelsdorf.de>
2029         PR tree-optimization/80079
2030         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
2031         m_stores_head.
2033 2017-03-17  Richard Biener  <rguenther@suse.de>
2035         PR middle-end/80075
2036         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
2037         Properly verify the LHS before the RHS possibly claims to be
2038         handled.
2039         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
2040         do not throw.
2042 2017-03-17  Martin Jambor  <mjambor@suse.cz>
2044         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
2045         (List of -O2 options): Likewise.
2046         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
2047         (-fipa-vrp) New.
2049 2017-03-17  Tom de Vries  <tom@codesourcery.com>
2051         * gcov-dump.c (print_usage): Print bug_report_url.
2053 2017-03-17  Richard Biener  <rguenther@suse.de>
2055         PR middle-end/80050
2056         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
2057         (parser::peek): Likewise.
2059 2017-03-17  Richard Biener  <rguenther@suse.de>
2061         PR tree-optimization/80048
2062         * sese.c (free_sese_info): Properly release rename_map and
2063         copied_bb_map elements.
2065 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
2067         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
2068         Add linked-list forward and backlinks.  Insert on
2069         construction, remove on destruction.
2070         (class pass_store_merging): Add m_stores_head field.
2071         (pass_store_merging::terminate_and_process_all_chains):
2072         Iterate over m_stores_head list.
2073         (pass_store_merging::terminate_all_aliasing_chains):
2074         Likewise.
2075         (pass_store_merging::execute): Check for debug stmts first.
2076         Push new chains onto the m_stores_head stack.
2078 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
2080         PR target/71294
2081         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
2082         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
2083         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
2085 2017-03-16  Jeff Law  <law@redhat.com>
2087         PR tree-optimization/71437
2088         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
2089         member function.  Implementation moved into after_dom_children
2090         member function and into the threader's thread_outgoing_edges
2091         function.
2092         (dom_opt_dom_walker::after_dom_children): Simplify by moving
2093         some code into new thread_outgoing_edges.
2094         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
2095         definition.  Simplify marker handling (do it here).   Assume we always
2096         have the available expression and the const/copies tables.
2097         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
2098         and tree-vrp.c
2099         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
2100         * tree-vrp.c (equiv_stack): No longer file scoped.
2101         (vrp_dom_walker): New class.
2102         (vrp_dom_walker::before_dom_children): New member function.
2103         (vrp_dom_walker::after_dom_children): Likewise.
2104         (identify_jump_threads):  Setup domwalker.  Use it rather than
2105         walking edges in a random order by hand.  Simplify setup/finalization.
2106         (finalize_jump_threads): Remove.
2107         (vrp_finalize): Do not call identify_jump_threads here.
2108         (execute_vrp): Do it here instead and call thread_through_all_blocks
2109         here too.
2111         PR tree-optimization/71437
2112         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
2113         callers changed.
2114         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
2115         callers changed.
2116         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
2117         (dom_opt_dom_walker::thread_across_edge): Remove
2118         handle_dominating_asserts argument.  All callers changed.
2119         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
2120         changes.  Remove calls to lhs_of_dominating_assert.  Other
2121         uses of handle_dominating_asserts turn into unconditional code
2122         (simplify_control_stmt_condition_1): Likewise.
2123         (simplify_control_stmt_condition): Likewise.
2124         (thread_through_normal_block, thread_across_edge): Likewise.
2125         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
2126         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
2127         object if it is not an SSA_NAME.
2128         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
2129         before calling into the VRP specific simplifiers.
2130         (identify_jump_threads): Remove handle_dominating_asserts
2131         argument.
2133 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
2135         PR fortran/79886
2136         * tree-diagnostic.c (default_tree_printer): No longer static.
2137         * tree-diagnostic.h (default_tree_printer): New prototype.
2139 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
2141         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
2142         Change ins into fmov.
2144 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2146         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
2147         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
2148         Use h_con constraint for operand 1.
2149         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
2150         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
2152 2017-03-15  Jeff Law  <law@redhat.com>
2154         PR tree-optimization/71437
2155         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
2156         (record_temporary_equivalences): Use it.
2158         PR tree-optimization/71437
2159         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
2160         tree-ssa-scopedtables.
2161         (lookup_avail_expr, build_and_record_new_cond): Likewise.
2162         (record_conditions, record_cond, vuse_eq): Likewise.
2163         (record_edge_info): Adjust to API tweak of record_conditions.
2164         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
2165         (record_temporary_equivalences, optimize_stmt): Likewise.
2166         (eliminate_redundant_computations): Likewise.
2167         (record_equivalences_from_stmt): Likewise.
2168         * tree-ssa-scopedtables.c: Include options.h and params.h.
2169         (vuse_eq): New function, moved from tree-ssa-dom.c
2170         (build_and_record_new_cond): Likewise.
2171         (record_conditions): Likewise.  Accept vector of conditions rather
2172         than edge_equivalence structure for first argument.
2173         for the first argument.
2174         (avail_exprs_stack::lookup_avail_expr): New member function, moved
2175         from tree-ssa-dom.c.
2176         (avail_exprs_stack::record_cond): Likewise.
2177         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
2178         from tree-ssa-dom.c.
2179         (avail_exprs_stack): Add new member functions lookup_avail_expr
2180         and record_cond.
2181         (record_conditions): Declare.
2183 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
2185         PR target/80017
2186         * lra-constraints.c (process_alt_operands): Increase reject for
2187         reloading an input/output operand.
2189 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2191         PR target/79038
2192         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
2193         insns to convert from signed/unsigned char/short to IEEE 128-bit
2194         floating point.
2195         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
2197 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
2199         PR target/80019
2200         * config/i386/i386.c (ix86_vector_duplicate_value): Create
2201         subreg of inner mode for values already in registers.
2203 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
2205         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
2206         iteration reg is used after the loop.
2208 2017-03-14  Martin Sebor  <msebor@redhat.com>
2210         PR tree-optimization/79800
2211         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
2212         precision in negative-positive range.
2213         (format_floating): Call non-const overload with adjusted precision.
2215 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2217         PR target/79947
2218         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
2219         -mpowerpc-gfxopt.
2221 2017-03-14  Martin Sebor  <msebor@redhat.com>
2223         PR middle-end/80020
2224         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
2225         * builtins.def (aligned_alloc): Use it.
2227         PR c/79936
2228         * Makefile.in (GTFILES): Add calls.c.
2229         * calls.c: Include "gt-calls.h".
2231 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
2233         PR rtl-optimization/79728
2234         * regs.h (struct target_regs): New field
2235         x_contains_allocatable_regs_of_mode.
2236         (contains_allocatable_regs_of_mode): New macro.
2237         * reginfo.c (init_reg_sets_1): Initialize it, and change
2238         contains_reg_of_mode so it includes global regs as well.
2239         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
2240         rather than contains_regs_of_mode.
2242 2017-03-14  Martin Liska  <mliska@suse.cz>
2244         * doc/invoke.texi: Document options that can't be combined with
2245         -fcheck-pointer-bounds.
2247 2017-03-14  Martin Liska  <mliska@suse.cz>
2249         PR middle-end/79831
2250         * doc/invoke.texi (-Wchkp): Document the option.
2252 2017-03-14  Martin Liska  <mliska@suse.cz>
2254         * Makefile.in: Install gcov-dump.
2256 2017-03-14  Martin Liska  <mliska@suse.cz>
2258         * multiple_target.c (expand_target_clones): Bail out for
2259         an invalid attribute.
2261 2017-03-14  Richard Biener  <rguenther@suse.de>
2263         * alias.c (struct alias_set_entry): Pack properly.
2264         * cfgloop.h (struct loop): Likewise.
2265         * cse.c (struct set): Likewise.
2266         * ipa-utils.c (struct searchc_env): Likewise.
2267         * loop-invariant.c (struct invariant): Likewise.
2268         * lra-remat.c (struct cand): Likewise.
2269         * recog.c (struct change_t): Likewise.
2270         * rtl.h (struct address_info): Likewise.
2271         * symbol-summary.h (function_summary): Likewise.
2272         * tree-loop-distribution.c (struct partition): Likewise.
2273         * tree-object-size.c (struct object_size_info): Likewise.
2274         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
2275         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
2276         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
2277         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
2278         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
2279         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
2280         (struct _stmt_vec_info): Likewise.
2282 2017-03-14  Martin Liska  <mliska@suse.cz>
2284         PR target/79892
2285         * multiple_target.c (create_dispatcher_calls): Check that
2286         a target can create a function dispatcher.
2288 2017-03-14  Martin Liska  <mliska@suse.cz>
2290         PR lto/66295
2291         * multiple_target.c (expand_target_clones): Drop local.local
2292         flag for default implementation.
2294 2017-03-14  Richard Biener  <rguenther@suse.de>
2296         PR tree-optimization/80030
2297         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
2299 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
2301         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
2302         gcc_fallthrough() instead of __attribute__((fallthrough));
2304 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
2306         * doc/gcc.texi: Remove "up" link to (DIR).
2307         * doc/gccint.texi: Ditto.
2309 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
2311         * doc/install.texi (Specific) <avr>: Remove reference to
2312         binutils 2.13.
2314 2017-03-13  Jeff Law  <law@redhat.com>
2316         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
2317         attribute rather than comments.
2319         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
2320         match_scratch operand is highest.
2322 2017-03-13  Martin Liska  <mliska@suse.cz>
2324         PR middle-end/78339
2325         * ipa-pure-const.c (warn_function_noreturn): If the declarations
2326         is a CHKP clone, use original declaration.
2328 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2330         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
2331         (arc_conditional_register_usage): Use a different allocation order
2332         when optimizing for size.
2333         * common/config/arc/arc-common.c (arc_option_optimization_table):
2334         Section anchors default on when optimizing for size.
2336 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2338         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
2340 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2342         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
2343         * config/arc/arc.md (cpu_facility): Add cd variant.
2344         (*movqi_insn): Add code density variant.
2345         (*movhi_insn): Likewise.
2346         (*movqi_insn): Likewise.
2347         (*addsi3_mixed): Likewise.
2348         (subsi3_insn): Likewise.
2350 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2352         * config/arc/arc.md (movsi_cond_exec): Update constraint.
2354 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
2356         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
2357         expressions with MINUS and UNARY ops.
2359 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2361         PR target/79911
2362         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
2363         Rename to...
2364         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
2365         between vec_select and vector argument.
2366         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
2367         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
2368         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
2369         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
2370         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
2371         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
2373 2017-03-13  Richard Biener  <rguenther@suse.de>
2375         PR other/79991
2376         * params.def (vect-max-peeling-for-alignment): Fix typo.
2378 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2380         * doc/install.texi (Specific) <mips-*-*>: Remove description of
2381         issue that only occurred with binutils below 2.18.
2383 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2385         * doc/install.texi (Specific) <cris-axis-elf>: No longer
2386         refer to binutils 2.11/2.12 minimum.
2388 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2390         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
2391         ftp.kernel.org and simplify binutils requirement.
2393 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
2395         * doc/invoke.texi (Warning Options): Fix spelling of link-time
2396         optimization.
2397         (Optimize Options): Ditto.  Also remove redundancy.
2399 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2401         PR translation/79848
2402         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
2403         "%qs".
2404         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
2405         to G_ to avoid double translation.
2407 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2409         PR translation/79923
2410         * auto-profile.c (get_combined_location): Convert leading
2411         character of diagnostics to lower case and remove trailing period.
2412         (read_profile): Likewise for various diagnostics.
2413         * config/arm/arm.c (arm_option_override): Remove trailing period
2414         from various diagnostics.
2415         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
2416         (msp430_expand_delay_cycles): Likewise.
2418 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2420         PR target/79925
2421         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
2422         full command-line argument, rather than just "str".
2423         (aarch64_validate_march): Likewise.
2424         (aarch64_validate_mtune): Likewise.
2426 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
2428         PR rtl-optimization/78911
2429         * lra-assigns.c (must_not_spill_p): New function.
2430         (spill_for): Use it.
2432 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
2434         PR tree-optimization/79981
2435         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
2436         ATOMIC_COMPARE_EXCHANGE ifn result.
2437         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
2438         IFN_ATOMIC_COMPARE_EXCHANGE.
2440 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2442         PR driver/79875
2443         * opts.c (parse_sanitizer_options): Add missing question mark to
2444         "did you mean" message.
2446 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2448         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
2449         built-in.
2450         (VMULEUH_UNS): Likewise.
2451         (VMULOUB_UNS): Likewise.
2452         (VMULOUH_UNS): Likewise.
2453         * config/rs6000/rs6000.c (builtin_function_type): Remove
2454         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
2456 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
2458         PR bootstrap/79952
2459         * read-rtl-function.c (function_reader::read_rtx_operand): Update
2460         x with result of extra_parsing_for_operand_code_0.
2461         (function_reader::extra_parsing_for_operand_code_0): Convert
2462         return type from void to rtx, returning x.  When reading
2463         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
2464         larger size containing struct block_symbol.
2466 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
2468         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
2469         -mfloat128-hardware without -m64.
2471 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
2473         PR target/79941
2474         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
2475         entries to the case statement that marks unsigned arguments to
2476         overloaded functions.
2478 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2480         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2481         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
2483 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
2485         PR target/79907
2486         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
2487         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
2489 2017-03-10  Martin Liska  <mliska@suse.cz>
2491         PR target/65705
2492         PR target/69804
2493         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
2494         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
2495         FIELD != NULL.
2497 2017-03-10  Olivier Hainque  <hainque@adacore.com>
2499         * tree-switch-conversion (array_value_type): Start by resetting
2500         candidate type to it's main variant.
2502 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
2504         PR rtl-optimization/79909
2505         * combine.c (try_combine): Use simplify_replace_rtx on individual
2506         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
2507         of the whole CALL_INSN_FUNCTION_USAGE.
2509         PR tree-optimization/79972
2510         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
2511         get_range_info on SSA_NAMEs.  Formatting fixes.
2513 2017-03-10  Richard Biener  <rguenther@suse.de>
2514             Jakub Jelinek  <jakub@redhat.com>
2516         PR tree-optimization/77975
2517         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
2518         edge to be constant.
2519         (get_val_for): For constant x return it.  Formatting fix.
2520         (loop_niter_by_eval): Avoid pointless looping if the next iteration
2521         would use the same bases as the current one.
2523 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2525         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
2526         instead of vec_select for V1TImode.
2527         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
2528         longer needed.
2529         (VSX_LE_128): Add V1TI to this mode iterator.
2530         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
2531         (*vsx_le_perm_store_<mode>): Likewise.
2532         (pre-reload splitter for VSX stores): Likewise.
2533         (post-reload splitter for VSX stores): Likewise.
2534         (*vsx_xxpermdi2_le_<mode>): Likewise.
2535         (*vsx_lxvd2x2_le_<mode>): Likewise.
2536         (*vsx_stxvd2x2_le_<mode>): Likewise.
2538 2017-03-09  Michael Eager  <eager@eagercon.com>
2540         Correct failures with --enable-checking=yes,rtl.
2542         * config/microblaze/microblaze.c (microblaze_expand_shift):
2543         Replace GET_CODE test with CONST_INT_P and INTVAL test with
2544         test for const0_rtx.
2545         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
2546         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
2548 2017-03-09  Richard Biener  <rguenther@suse.de>
2550         PR tree-optimization/79977
2551         * graphite-scop-detection.c (scop_detection::merge_sese):
2552         Handle the case of extra exits to blocks dominating the entry.
2554 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
2556         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
2557         Document rdynamic.
2559 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
2561         PR rtl-optimization/79949
2562         * lra-constraints.c (process_alt_operands): Check memory when
2563         trying to predict a cycle.  Print about the overall increase.
2565 2017-03-09  Richard Biener  <rguenther@suse.de>
2567         PR middle-end/79971
2568         * gimple-expr.c (useless_type_conversion_p): Preserve
2569         TYPE_SATURATING for fixed-point types.
2571 2017-03-09  Richard Biener  <rguenther@suse.de>
2573         PR ipa/79970
2574         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
2575         alignment of BLKmode params.
2577 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2579         PR target/79913
2580         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
2581         (VALL_NO_V2Q): Likewise.
2582         (VDQF_DF): Delete.
2583         * config/aarch64/aarch64-simd.md
2584         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
2585         iterator.
2586         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
2587         VALL_NO_V2Q mode iterator.
2588         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
2590 2017-03-09  Martin Liska  <mliska@suse.cz>
2592         PR tree-optimization/79631
2593         * tree-chkp-opt.c (chkp_is_constant_addr): Call
2594         tree_int_cst_sign_bit just for INTEGER constants.
2596 2017-03-09  Martin Liska  <mliska@suse.cz>
2598         PR target/65705
2599         PR target/69804
2600         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
2601         sanitizers.
2603 2017-03-09  Marek Polacek  <polacek@redhat.com>
2605         PR c++/79672
2606         * tree.c (inchash::add_expr): Handle TREE_VEC.
2608 2017-03-09  Martin Liska  <mliska@suse.cz>
2610         PR ipa/79764
2611         (chkp_narrow_size_and_offset): New function.
2612         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
2613         (void chkp_parse_bit_field_ref): New function.
2614         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
2615         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
2617 2017-03-09  Martin Liska  <mliska@suse.cz>
2619         PR ipa/79761
2620         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
2621         (chkp_find_bounds_1): Remove gcc_unreachable.
2623 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
2625         PR sanitizer/79944
2626         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
2627         BUILT_IN_SYNC*, determine the access type from the size suffix and
2628         always build a MEM_REF with that type.  Handle forgotten
2629         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
2631         PR target/79932
2632         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
2633         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
2634         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
2635         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
2636         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
2637         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
2638         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
2639         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
2640         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
2641         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
2642         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
2643         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
2644         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
2645         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
2646         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
2647         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
2648         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
2649         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
2650         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
2651         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
2652         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
2653         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
2654         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
2655         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
2656         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
2657         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
2658         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
2659         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
2660         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
2661         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
2662         definitions outside of __OPTIMIZE__ guarded section.
2664         PR target/79932
2665         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
2666         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
2667         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
2668         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
2669         guarded section.
2671 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2673         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
2674         ("vfenez<mode>"): Add missing constraints.
2676 2017-03-08  Martin Sebor  <msebor@redhat.com>
2678         PR target/79928
2679         * config/nds32/nds32.c (nds32_option_override):
2680         Fix misspelled diagnostic.
2682 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2684         PR c/79940
2685         * gimplify.c (gimplify_omp_for): Replace index var in outer
2686         taskloop statement with an artificial variable and add
2687         OMP_CLAUSE_PRIVATE clause for it.
2689 2017-03-08  Richard Biener  <rguenther@suse.de>
2691         PR tree-optimization/79955
2692         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2693         for accesses that are completely outside of the variable.
2695 2017-03-08  Andrew Haley  <aph@redhat.com>
2697         PR tree-optimization/79943
2698         * tree-ssa-loop-split.c (compute_new_first_bound): When
2699         calculating the new upper bound, (END-BEG) should be added, not
2700         subtracted.
2702 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2704         * config/avr/avr.md (setmemhi): Make sure match_dup
2705         operand number comes before match_scratch.
2707 2017-03-08  Richard Biener  <rguenther@suse.de>
2709         PR tree-optimization/79920
2710         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
2711         with ncopies == 1 to ...
2712         (vect_transform_slp_perm_load): ... here.  Properly compute
2713         all element loads by iterating VF times over the group.  Do
2714         not handle ncopies (computed in a broken way) in
2715         vect_create_mask_and_perm.
2717 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2719         PR sanitizer/79904
2720         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
2721         is a uniform vector, use uniform_vector_p return value instead of
2722         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
2724 2017-03-07  Marek Polacek  <polacek@redhat.com>
2726         PR middle-end/79809
2727         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
2728         (alloca_call_type): Likewise.
2730 2017-03-07  Martin Liska  <mliska@suse.cz>
2732         * gcov.c (process_args): Put comment to correct location.
2734 2017-03-07  Martin Liska  <mliska@suse.cz>
2736         PR middle-end/68270
2737         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
2738         Use array_at_struct_end_p instead of DECL_CHAIN (field).
2739         (chkp_narrow_bounds_for_field): Likewise.
2740         (chkp_parse_array_and_component_ref): Pass one more argument to
2741         call.
2743 2017-03-07  Richard Biener  <rguenther@suse.de>
2745         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
2746         preheaders.
2748 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
2750         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
2751         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
2753 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2755         PR c/79855
2756         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
2757         to end of description.
2758         (PARAM_MAX_STORES_TO_MERGE): Likewise.
2760 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
2762         PR rtl-optimization/79901
2763         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
2764         ...
2765         (*avx512f_<code><mode>3<mask_name>): ... this.
2766         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
2767         iterator instead of VI8_AVX2_AVX512BW.
2769         PR rtl-optimization/79901
2770         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
2771         min/max expander, expand it using expand_vec_cond_expr.
2773         PR sanitizer/79897
2774         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
2775         temporary.
2777 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
2779         PR c++/79821
2780         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
2781         to void * for PCH reasons.
2782         * dwarf2out.c (output_loc_operands, output_die): Cast
2783         v.val_vec.array to unsigned char *.
2785 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
2787         PR target/77850
2788         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
2789         vector types.
2791 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
2793         PR rtl-optimization/79571
2794         * lra-constraints.c (process_alt_operands): Calculate static
2795         reject and subtract it from overall when only addresses will be
2796         reloaded.
2798 2017-03-06  Julia Koval  <julia.koval@intel.com>
2800         PR target/79793
2801         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
2802         incoming stack boundary to 128 for 64-bit targets.
2804 2017-03-06  Richard Biener  <rguenther@suse.de>
2806         PR tree-optimization/79894
2807         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
2808         to NULL after folding it.
2810 2017-03-06  Richard Biener  <rguenther@suse.de>
2812         PR tree-optimization/79824
2813         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
2814         check disabling peeling for gaps.
2816 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
2818         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2819         attributes): Document gettimeofday.
2821 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2823         * config/s390/s390.c (s390_option_override_internal): Set
2824         PARAM_MIN_VECT_LOOP_BOUND
2826 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2828         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
2829         * config/s390/s390.md: Likewise.
2831 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
2833         PR target/79812
2834         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
2835         (<avx2_avx512>_perm<mode>): Rename to ...
2836         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
2837         of VI8F_256_512.
2838         (<avx512>_perm<mode>_mask): Rename to ...
2839         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
2840         of VI8F_256_512.
2841         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
2842         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
2843         instead of VI8F_256_512.
2844         (avx512f_perm<mode>): New define_expand.
2845         (avx512f_perm<mode>_mask): Likewise.
2846         (avx512f_perm<mode>_1<mask_name>): New define_insn.
2847         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
2849 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2851         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
2852         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
2853         if_then_else.
2854         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
2856 2017-03-06  Martin Liska  <mliska@suse.cz>
2858         PR sanitize/79783
2859         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
2860         when having a SSA NAME w/o VAR_DECL assigned to it.
2862 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2864         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
2865         msa_dpsub_<su>_d): Fix MODE for vec_select.
2867 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
2869         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
2870         argument.
2871         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
2873 2017-03-06  Richard Biener  <rguenther@suse.de>
2875         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
2876         * plugin.c (register_plugin_info): Likewise.
2877         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
2879 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
2881         * config/i386/sse.md (sse_storehps, sse_storelps,
2882         avx_<castmode><avxsizesuffix>_<castmode>,
2883         avx512f_<castmode><avxsizesuffix>_<castmode>,
2884         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
2885         in condition that at least one operand is not a MEM.
2887 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2889         PR middle-end/79805
2890         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
2891         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
2892         ECF_NOTHROW.
2893         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
2894         gimple_call_nothrow_p flag based on whether original builtin can throw.
2895         If it can, emit following stmts on the fallthrough edge.
2896         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
2897         don't create new bb if inserting just debug stmts on the edge, try to
2898         insert them on the fallthru bb or just reset debug stmts.
2900 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
2902         PR target/43763
2903         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
2904         restore recog_data (including the operand rtxes inside it) around
2905         the call to get_insn_template.
2907 2017-03-03  Martin Sebor  <msebor@redhat.com>
2909         PR tree-optimization/79699
2910         * context.c (context::~context): Free MPFR caches to avoid
2911         a memory leak on program exit.
2913 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2915         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
2916         Use wide_int::ulow () instead of .elt (0).
2918 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
2920         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
2921         (*pushxf): Limit oF constraint to 32bit targets and add oC
2922         constraint for 64bit targets.
2923         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
2924         (*pushdf): Change rmF constraint to rmC.
2926 2017-03-03  Martin Liska  <mliska@suse.cz>
2928         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
2929         Remove unused variable.
2931 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
2933         PR target/79807
2934         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
2935         is a memory operand, increase num_memory.
2936         (ix86_expand_args_builtin): Likewise.
2938 2017-03-03  Jan Hubicka  <jh@suse.cz>
2940         PR lto/79760
2941         * ipa-devirt.c (maybe_record_node): Properly handle
2942         __cxa_pure_virtual visibility.
2944 2017-03-03  Martin Liska  <mliska@suse.cz>
2946         PR tree-optimization/79803
2947         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
2948         assert.
2949         (pass_loop_prefetch::execute): Disabled optimization if an
2950         assumption about L1 cache size is not met.
2952 2017-03-03  Martin Liska  <mliska@suse.cz>
2954         PR rtl-optimization/79574
2955         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
2956         (hash_scan_set): Likewise.
2957         (dump_hash_table): Likewise.
2958         (hoist_code): Likewise.
2960 2017-03-03  Richard Biener  <rguenther@suse.de>
2962         * fixed-value.c (fixed_from_string): Restore use of elt (1)
2963         in place of uhigh ().
2964         (fixed_convert_from_real): Likewise.
2966 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
2968         PR target/79514
2969         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2971 2017-03-03  Richard Biener  <rguenther@suse.de>
2973         PR middle-end/79818
2974         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2975         TYPE_OVERFLOW_UNDEFINED check.
2977 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2979         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2980         numbers.
2981         (vector_ae_<mode>_p): Likewise.
2982         (vector_nez_<mode>_p): Likewise.
2983         (vector_ne_v2di_p): Likewise.
2984         (vector_ae_v2di_p): Likewise.
2985         (vector_ne_<mode>_p): Likewise.
2986         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2987         numbers.
2988         (vsx_tsqrt<mode>2_fe): Likewise.
2990 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
2992         PR target/79514
2993         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2995 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
2997         PR rtl-optimization/79780
2998         * cprop.c (one_cprop_pass): When second and further conditional trap
2999         in a single basic block is turned into an unconditional trap, turn it
3000         into a deleted note to avoid RTL verification failures.
3002 2017-03-02  Richard Biener  <rguenther@suse.de>
3004         * fold-const.c (const_binop): Use ulow () instead of elt (0).
3006 2017-03-02  Richard Biener  <rguenther@suse.de>
3008         PR tree-optimization/79345
3009         PR c++/42000
3010         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
3011         param and abort the walk, returning -1 if it is hit.
3012         (walk_aliased_vdefs): Take a limit param and pass it on.
3013         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
3014         defaulting to 0 and return a signed int.
3015         * tree-ssa-uninit.c (struct check_defs_data): New struct.
3016         (check_defs): New helper.
3017         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
3018         about uninitialized memory.
3019         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
3020         bogus uninitialized warning.
3021         (fixed_convert_from_real): Likewise.
3023 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
3025         PR tree-optimization/66768
3026         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
3027         iv_use if base object can't be determined.
3029 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
3031         PR tree-optimization/79345
3032         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
3033         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
3034         (get_pattern_stats): Initialize it.
3035         * genemit.c (gen_expand): Verify match_scratch numbers come after
3036         match_operand/match_dup numbers.
3037         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
3038         match_scratch numbers.
3039         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
3040         Likewise.
3041         * config/s390/s390.md (trunctdsd2): Likewise.
3043 2017-03-02  Richard Biener  <rguenther@suse.de>
3045         * wide-int.h (wide_int_storage::operator=): Implement in terms
3046         of wi::copy.
3048 2017-03-02  Richard Biener  <rguenther@suse.de>
3050         PR tree-optimization/79777
3051         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
3052         the to insert expression to sth existing.
3054 2017-03-01  Martin Sebor  <msebor@redhat.com>
3056         PR middle-end/79692
3057         * gimple-ssa-sprintf.c
3058         (directive::known_width_and_precision): New function.
3059         (format_integer): Use it.
3060         (get_mpfr_format_length): Consider the full range of precision
3061         when computing %g output with the # flag.  Set the likely byte
3062         count to 3 rather than 1 when precision is indeterminate.
3063         (format_floating): Correct the lower bound of precision.
3065 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3067         * doc/invoke.texi: Document default code model for 64-bit Linux.
3069 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3071         PR target/79752
3072         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
3073         udiv rather than div since input pattern is unsigned.
3075 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
3077         * config/i386/i386.c (print_reg): Warn for values of
3078         unsupported size in integer register.
3080 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3082         PR target/79439
3083         * config/rs6000/predicates.md (current_file_function_operand): Do
3084         not allow self calls to be local if the function is replaceable.
3086 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3088         PR target/79395
3089         * config/rs6000/altivec.h (vec_ctz and others): Change the
3090         preprocessor macro that controls conditional compilation from
3091         _ARCH_PWR9 to __POWER9_VECTOR__.
3092         (vec_all_ne): Change parameterization of __altivec_scalar_pred
3093         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
3094         control (instead of _ARCH_PWR9 control) so that template
3095         definition uses power9-specific function.
3096         (vec_any_eq): Likewise.
3097         (vec_all_ne): Change macro definition to use a power9-specific
3098         expansion under #ifdef __POWER9_VECTOR__ control (instead of
3099         _ARCH_PWR9 control).
3100         (vec_any_eq) Likewise.
3101         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
3102         expansion for CMPNEF to remove support for xvcmpnesp instruction.
3103         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
3104         support for xvcmpnedp instruction.
3105         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
3106         macro expansion so that Power9 implementation of vec_all_ne does
3107         not use the AltiVec predicate framework.
3108         (VCMPNEH_P): Likewise.
3109         (VCMPNEW_P): Likewise.
3110         (VCMPNED_P): Likewise.
3111         (VCMPNEFP_P): Likewise.
3112         (VCMPNEDP_P): Likewise.
3113         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
3114         implementation of vec_any_eq to not use AltiVec predicate
3115         framework.
3116         (VCMPAEH_P): Likewise.
3117         (VCMPAEW_P): Likewise.
3118         (VCMPAED_P): Likewise.
3119         (VCMPAEFP_P): Likewise.
3120         (VCMPAEDP_P): Likewise.
3121         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
3122         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
3123         not use the AltiVec predicate framework.
3124         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
3125         of vec_any_eq to not use AltiVec predicate framework.
3126         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
3127         support for predefined __POWER9_VECTOR__ macro to indicate that
3128         Power9 instruction selection is enabled.
3129         (altivec_overloaded_builtins): Remove extraneous
3130         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
3131         function argument types RS6000_BTI_bool_V16QI and
3132         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
3133         entry for overloaded function argument types RS6000_BTI_bool_V4SI
3134         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
3135         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
3136         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
3137         Power9 for implementations of vec_cmpne.  Change the signature for
3138         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
3139         (representing vec_all_ne) to remove the previously described first
3140         argument of type RS6000_BTI_INTSI, as this was an artifact of
3141         reliance on the AltiVec predicate framework, which is no longer
3142         used in the implementation of these functions.  Add
3143         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
3144         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
3145         since, unlike the AltiVec predicate framework implementation, we
3146         do not share function descriptors between vec_alle and vec_anyeq.
3147         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
3148         set of modes that receive special treatment even when
3149         TARGET_P9_VECTOR is true.  The special treatment emits code that
3150         does not depend on Power9 instructions.
3151         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
3152         define_expand to not rely on AltiVec predicate framework.
3153         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
3154         function.
3155         (vector_ne_v2di_p): Change this define_expand to not rely on
3156         AltiVec predicate framework.
3157         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
3158         function.
3159         (vector_ne_<mode>_p): Change this define_expand to not rely on
3160         AltiVec predicate framework.
3161         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
3162         function.
3163         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
3164         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
3165         define_insn pattern.
3166         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
3167         define_insn pattern because the xvcmpne<VSs>. instruction is not
3168         supported.
3169         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
3170         instruction is not supported.
3172 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
3174         * config/nvptx/nvptx.c: Include intl.h.
3176 2017-03-01  Martin Jambor  <mjambor@suse.cz>
3178         PR lto/78140
3179         * ipa-prop.h (ipa_bits): Removed field known.
3180         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
3181         to pointers.  Adjusted their comments to warn about their sharing.
3182         (ipcp_transformation_summary): Change bits to a vector of pointers.
3183         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
3184         (ipa_get_ipa_bits_for_value): Declare.
3185         * tree-vrp.h (value_range): Mark as GTY((for_user)).
3186         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
3187         (ipa_bits_hash_table): Likewise.
3188         (ipa_vr_ggc_hash_traits): Likewise.
3189         (ipa_vr_hash_table): Likewise.
3190         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
3191         being pointers and vr_known being removed.
3192         (ipa_set_jf_unknown): Likewise.
3193         (ipa_get_ipa_bits_for_value): New function.
3194         (ipa_set_jfunc_bits): Likewise.
3195         (ipa_get_value_range): New overloaded functions.
3196         (ipa_set_jfunc_vr): Likewise.
3197         (ipa_compute_jump_functions_for_edge): Use the above functions to
3198         construct bits and vr parts of jump functions.
3199         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
3200         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
3201         exist.
3202         (ipcp_grow_transformations_if_necessary): Also allocate
3203         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
3204         exist.
3205         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
3206         them.  Fix too long lines.
3207         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
3208         vr_known being removed.
3209         (ipa_read_jump_function): Use new setter functions to construct bits
3210         and vr parts of jump functions or set them to NULL.
3211         (write_ipcp_transformation_info): Adjust for bits being pointers.
3212         (read_ipcp_transformation_info): Likewise.
3213         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
3214         space.
3215         Include gt-ipa-prop.h.
3216         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
3217         being pointers.
3218         (ipcp_store_bits_results): Likewise.
3219         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
3220         Do not write to existing jump functions but use a temporary instead.
3222 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
3224         PR c++/79681
3225         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
3226         attempt to use its first operand as BIT_FIELD_REF base.
3228 2017-03-01  Richard Biener  <rguenther@suse.de>
3230         PR middle-end/79721
3231         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
3232         interpolating formula in wrapping arithmetic.
3233         (chrec_apply): Convert chrec_evaluate return value to wanted type.
3235 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
3237         PR tree-optimization/79734
3238         * tree-vect-generic.c (expand_vector_condition): Optimize
3239         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
3240         Handle VEC_COND_EXPR where comparison has different inner width from
3241         type's inner width.
3243 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
3245         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
3246         markup, and similar issues.  Remove @opindex entries for things
3247         that aren't options.  Add missing -mmpy-option entries.
3249 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
3251         PR tree-optimization/79737
3252         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
3253         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
3254         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
3255         instead of byte_size.  Formatting fix.
3256         (shift_bytes_in_array_right): Formatting fix.
3258 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3260         PR target/79749
3261         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
3262         condition on optimize for the leaf function test.
3264 2017-02-28  Martin Liska  <mliska@suse.cz>
3266         PR lto/79625
3267         * read-rtl-function.c (function_reader::handle_unknown_directive):
3268         Bail out when one uses -flto.
3270 2017-02-28  Martin Liska  <mliska@suse.cz>
3272         * common.opt: Replace space with tabular for options of <number>
3273         type.
3274         * config/i386/i386.opt: Show <number> value for
3275         -mlarge-data-threshold.
3276         * opts.c (print_filtered_help): Do not display number in hexadecimal
3277         format.
3279 2017-02-28  Martin Liska  <mliska@suse.cz>
3281         * common.opt: Fix --help=option -Q for options which are of
3282         an enum type.
3284 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
3286         * config/i386/i386.c (print_reg): Error out for values
3287         of 8-bit size in invalid integer register.
3289 2017-02-28  Martin Sebor  <msebor@redhat.com>
3291         PR tree-optimization/79691
3292         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
3294 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
3296         PR target/79729
3297         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
3298         gcc_unreachable with output_operand_lossage.
3300 2017-02-28  Richard Biener  <rguenther@suse.de>
3302         PR tree-optimization/79740
3303         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
3304         inserts.
3305         (visit_nary_op): Insert the nary into the hashtable if we
3306         pattern-matched sth.
3307         * tree-ssa-pre.c (eliminate_insert): Robustify.
3309 2017-02-28  Richard Biener  <rguenther@suse.de>
3311         PR middle-end/79731
3312         * fold-const.c (decode_field_reference): Reject out-of-bound
3313         accesses.
3315 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
3317         * config/i386/i386.c: Include intl.h.
3318         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
3319         instead of just cond ? "..." : "...".
3320         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
3321         * coverage.c (read_counts_file): Likewise.
3322         * omp-offload.c: Include intl.h.
3323         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
3324         of just cond ? "..." : "...".
3325         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
3326         of just cond ? "..." : "...".
3328 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
3330         PR target/79742
3331         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
3332         entry, if present.
3333         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
3334         'tune for' CPU name.
3335         * config/arm/arm-cpu-data.h: Regenerated.
3337 2017-02-28  Richard Biener  <rguenther@suse.de>
3339         PR tree-optimization/79732
3340         * tree-inline.c (expand_call_inline): Do not shadow var.
3342 2017-02-28  Richard Biener  <rguenther@suse.de>
3344         PR tree-optimization/79723
3345         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
3346         address-space properly.
3348 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
3350         * doc/optinfo.texi (Optimization groups): Fix option used for
3351         OPTGROUP_ALL.
3352         * doc/invoke.texi (-fopt-info): Document "omp".
3353         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
3354         (OPTGROUP_ALL): Add OPTGROUP_OMP.
3355         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
3356         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
3357         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
3359         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
3360         all users.
3361         * dumpfile.c (optgroup_options): Instead of "openmp", associate
3362         OPTGROUP_OMP with "omp".
3364 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
3366         PR target/79544
3367         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
3368         for arithmetic shift of unsigned V2DI.
3370 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
3372         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
3373         arc/linux.h headers.
3374         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
3375         (LINK_SPEC): Likewise.
3376         (ARC_TLS_EXTRA_START_SPEC): Likewise.
3377         (EXTRA_SPECS): Likewise.
3378         (STARTFILE_SPEC): Likewise.
3379         (ENDFILE_SPEC): Likewise.
3380         (LIB_SPEC): Likewise.
3381         (TARGET_SDATA_DEFAULT): Likewise.
3382         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
3383         (MULTILIB_DEFAULTS): Likewise.
3384         (DWARF2_UNWIND_INFO): Likewise.
3385         * config/arc/big.h: New file.
3386         * config/arc/elf.h: Likewise.
3387         * config/arc/linux.h: Likewise.
3388         * config/arc/t-uClibc: Remove.
3390 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
3392         PR tree-optimization/77536
3393         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
3394         (tree_transform_and_unroll_loop): Use above function to compute the
3395         estimated niter of unrolled loop and use it when scaling profile.
3396         Also use count info rather than frequency if it's non-zero.
3397         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
3398         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
3399         (vect_transform_loop): Call above function.
3401 2017-02-27  Richard Biener  <rguenther@suse.de>
3403         PR tree-optimization/45397
3404         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
3405         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
3406         (visit_nary_op): Add pattern matching for CSEing sign-changed
3407         or truncated operations with wider ones.
3409 2017-02-27  Richard Biener  <rguenther@suse.de>
3411         PR tree-optimization/79690
3412         * tree-vect-stmts.c (vectorizable_store): Use vector type
3413         built from the DR with address-space.
3415 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
3417         * doc/invoke.texi (Optimize Options): Refine the description
3418         of asan-use-after-return.
3420 2017-02-25  Alan Modra  <amodra@gmail.com>
3422         PR rtl-optimization/79584
3423         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
3424         base, not ad->base_term, the reg within base.  Remove assertion
3425         that ad->base == ad->base_term.  Replace gen_int_mode using
3426         bogus mode with const0_rtx.
3428 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
3430         PR middle-end/79396
3431         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
3432         FMA_EXPR like tcc_binary or tcc_unary.
3434         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
3436         PR debug/77589
3437         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
3438         bitfield.
3439         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
3440         (output_loc_operands): Handle DW_OP_call_ref and
3441         DW_OP_GNU_variable_value.
3442         (struct variable_value_struct): New type.
3443         (struct variable_value_hasher): Likewise.
3444         (variable_value_hash): New variable.
3445         (string_types): Remove.
3446         (copy_loc_descr): New function.
3447         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
3448         (prepend_loc_descr_to_each): New function.
3449         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
3450         instead of add_loc_descr_to_each if the first argument is single
3451         location list and the second has multiple.
3452         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
3453         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
3454         when looking for variable value which doesn't have other location info.
3455         (loc_list_from_tree): Formatting fix.
3456         (gen_array_type_die): Simplify DW_AT_string_length handling.
3457         (adjust_string_types): Remove.
3458         (gen_subprogram_die): Don't call adjust_string_types nor test/set
3459         string_types.  Call resolve_variable_values.
3460         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
3461         (resolve_addr_in_expr): Likewise.  Add A argument.
3462         (copy_deref_exprloc): Remove deref argument.  Adjust for the
3463         original expression being DW_OP_GNU_variable_value with optionally
3464         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
3465         optionally after it.
3466         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
3467         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
3468         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
3469         (variable_value_hasher::hash, variable_value_hasher::equal): New
3470         methods.
3471         (resolve_variable_value_in_expr, resolve_variable_value,
3472         resolve_variable_values, note_variable_value_in_expr,
3473         note_variable_value): New functions.
3474         (dwarf2out_early_finish): Call note_variable_value on all toplevel
3475         DIEs.
3477 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
3479         PR c/79677
3480         * opts.h (handle_generated_option): Add GENERATED_P argument.
3481         * opts-common.c (handle_option): Adjust function comment.
3482         (handle_generated_option): Add GENERATED_P argument, pass it to
3483         handle_option.
3484         (control_warning_option): Pass false to handle_generated_option
3485         GENERATED_P.
3486         * opts.c (maybe_default_option): Pass true to handle_generated_option
3487         GENERATED_P.
3488         * optc-gen.awk: Likewise.
3490 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3492         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
3493         a REG, look at the REG it is a SUBREG of.
3494         (splitter for cmpeqsi_t): Ditto.
3496 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3498         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
3499         the special USEs with the pattern of the insn, not the insn itself.
3501 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
3503         PR target/79473
3504         * doc/invoke.texi: Document -mload-store-pairs.
3506 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3507             Sandra Loosemore  <sandra@codesourcery.com>
3509         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
3510         argument isn't a CONST_INT.
3511         (nios2_alternate_compare_const): Assert op is a CONST_INT.
3512         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
3513         (nios2_validate_compare): Bypass alternate compare logic if *op2
3514         is not a CONST_INT.
3515         (ldstwm_operation_p): Return false if first_base is not a REG or
3516         if first_offset is not a CONST_INT.
3518 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3520         * config/cris/cris.md: Use correct operand in a define_peephole2.
3522 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3524         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
3526 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
3528         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
3529         this_insn if it is an INSN or JUMP_INSN.
3530         (force_offsettable): Look at base, not at addr.
3531         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
3532         on things that aren't necessarily CONST_INTs.
3534 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
3536         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
3537         -mfpmath=sse is the default also for x86-32 targets with SSE2
3538         instruction set when @option{-ffast-math} is enabled
3540 2017-02-24  Jeff Law  <law@redhat.com>
3542         PR rtl-optimizatoin/79286
3543         * ira.c (update_equiv_regs): Drop may_trap_p exception to
3544         dominance test.
3546 2017-02-24  Richard Biener  <rguenther@suse.de>
3548         PR tree-optimization/79389
3549         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
3550         debug insns.
3552 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
3554         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
3555         function comment to reflect reality.
3556         (loop_exits_before_overflow): Fix typo in function description.
3558 2017-02-24  Richard Biener  <rguenther@suse.de>
3560         PR tree-optimization/79389
3561         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
3562         properly that a threading opportunity exists.  Detect conditional
3563         copy/constant propagation opportunities.
3565 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
3567         * config/visium/visium.md (type): Add trap.
3568         (b): New mode attribute.
3569         (*btst): Rename into...
3570         (*btst<mode>): ...this and adjust.
3571         (*cbranchsi4_btst_insn): Rename into...
3572         (*cbranch<mode>4_btst_insn): ...this and adjust.
3573         (trap): New define_insn.
3575 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
3577         PR tree-optimization/79389
3578         * ifcvt.c (struct noce_if_info): Add rev_cond field.
3579         (noce_reversed_cond_code): New function.
3580         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
3581         reversed_comparison_code.  Formatting fix.
3582         (noce_try_store_flag): Test rev_cond != NULL in addition to
3583         reversed_comparison_code.
3584         (noce_try_store_flag_constants): Likewise.
3585         (noce_try_store_flag_mask): Likewise.
3586         (noce_try_addcc): Use rev_cond if non-NULL instead of
3587         reversed_comparison_code.
3588         (noce_try_cmove_arith): Likewise.  Formatting fixes.
3589         (noce_try_minmax, noce_try_abs): Clear rev_cond.
3590         (noce_find_if_block): Initialize rev_cond.
3591         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
3592         instead of false as last argument never attempt to reverse it
3593         afterwards.
3595 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
3597         PR tree-optimization/79663
3598         * tree-predcom.c (combine_chains): Process refs in reverse order
3599         only for ZERO length chains, and add explaining comment.
3601 2017-02-23  Jeff Law  <law@redhat.com>
3603         PR tree-optimization/79578
3604         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
3605         in call to operand_equal_p.
3607 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
3609         PR target/71017
3610         * config/i386/cpuid.h: Fix another undefined behavior.
3612 2017-02-23  Richard Biener  <rguenther@suse.de>
3614         PR tree-optimization/79683
3615         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
3616         vector types for data-refs.
3618 2017-02-23  Martin Liska  <mliska@suse.cz>
3620         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
3622 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
3624         PR middle-end/79665
3625         * internal-fn.c (get_range_pos_neg): Moved to ...
3626         * tree.c (get_range_pos_neg): ... here.  No longer static.
3627         * tree.h (get_range_pos_neg): New prototype.
3628         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
3629         are known to be in between 0 and signed maximum inclusive, try to
3630         expand both unsigned and signed divmod and use the cheaper one from
3631         those.
3633 2017-02-22  Jeff Law  <law@redhat.com>
3635         PR tree-optimization/79578
3636         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
3637         to compare base operands.
3639 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
3641         PR target/79211
3642         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
3643         gpc_reg_operand instead of fpr_reg_operand.
3645 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
3647         * config/mips/mips.c (mips_return_in_memory): Force FP
3648         vector types to be returned in memory for o32 ABI.
3650 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
3652         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
3653         instead of DW_TAG_member for static data member declarations and don't
3654         set no_linkage_name for static inline data members.
3655         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
3656         to DW_TAG_member.
3658 2017-02-22  Martin Liska  <mliska@suse.cz>
3660         * doc/invoke.texi: Replace inequality signs with square brackets
3661         for -Wnormalized.
3663 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3665         PR tree-optimization/68644
3666         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
3668 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
3670         PR target/78660
3671         * lra-constraints.c (simplify_operand_subreg): Handle
3672         WORD_REGISTER_OPERATIONS targets.
3674 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
3676         PR target/70465
3677         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
3678         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
3679         elimination by swapping fld*.
3681 2017-02-22  Richard Biener  <rguenther@suse.de>
3683         PR tree-optimization/79673
3684         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
3685         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
3686         irrelevant address-space qualifiers and avoiding a
3687         ADDR_SPACE_CONVERT_EXPR from fold_convert.
3689 2017-02-22  Richard Biener  <rguenther@suse.de>
3691         PR tree-optimization/79666
3692         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
3693         to not symbolically negate if that may introduce undefined
3694         overflow.
3696 2017-02-22  Martin Liska  <mliska@suse.cz>
3698         PR lto/79587
3699         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
3700         * data-streamer-out.c (streamer_write_gcov_count_stream):
3701         Likewise.
3702         * value-prof.c (stream_out_histogram_value): Make assert more
3703         precise based on type of counter.
3705 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
3707         PR target/79593
3708         * config/i386/i386.md (standard_x87sse_constant_load splitter):
3709         Use nonimmediate_operand instead of memory_operand for operand 1.
3710         (float-extend standard_x87sse_constant_load splitter): Ditto.
3712 2017-02-21 Jeff Law  <law@redhat.com>
3714         PR tree-optimization/79621
3715         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
3716         blocks with edges to themselves.
3718 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3720         PR target/79633
3721         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
3722         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
3723         Use gimple_call_builtin_p.
3725         PR target/79570
3726         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
3727         on temporarily removed DEBUG_INSNs.
3729         PR tree-optimization/79649
3730         * tree-loop-distribution.c (classify_partition): Give up on
3731         non-generic address space loads/stores.
3733 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
3735         * doc/loop.texi (Loop manipulation): Remove nonexistent
3736         tree_ssa_loop_version from the documentation.
3737         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
3739 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3741         PR target/79494
3742         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
3743         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
3744         * config/rs6000/rs6000.c: Include except.h.
3745         (rs6000_expand_split_stack_prologue): Call
3746         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
3748 2017-02-21  Martin Jambor  <mjambor@suse.cz>
3750         PR lto/79579
3751         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
3752         have been analyzed.
3754 2017-02-21  Martin Jambor  <mjambor@suse.cz>
3756         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
3757         for backward compatibility only.
3758         * doc/invoke.texi (Option Summary): Remove all references to
3759         -fipa-cp-alignment.
3761 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
3763         PR target/78660
3764         Revert:
3765         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3767         * lra-constraints.c (curr_insn_transform): Handle
3768         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3770 2017-02-21  Martin Liska  <mliska@suse.cz>
3772         * config/i386/i386.opt: Replace -masm-dialect with -masm.
3774 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
3776         PR translation/79638
3777         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
3779 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
3781         PR ada/67205
3782         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3783         (arm_function_ok_for_sibcall): Return false for an indirect call by
3784         descriptor if all the argument registers are used.
3785         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
3786         alignment of the function.
3788 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
3790         PR tree-optimization/61441
3791         * simplify-rtx.c (simplify_const_unary_operation): For
3792         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
3793         the sNaN unmodified.
3795 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3797         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
3798         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
3799         instead of SYSTEM_HEADER_DIR.
3801 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
3802             Martin LiÅ¡ka  <mliska@suse.cz>
3804         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3805         Fix typos and grammar, use active voice, and clarify.
3807 2017-02-20  Marek Polacek  <polacek@redhat.com>
3809         PR middle-end/79537
3810         * gimplify.c (gimplify_expr): Handle unused *&&L;.
3812         PR sanitizer/79558
3813         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
3815 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
3817         PR target/79568
3818         * config/i386/i386.c (ix86_expand_builtin): Handle
3819         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
3820         ix86_builtins_isa[fcode].isa as a requirement of those
3821         flags and any other flag in the bitmask.
3822         (ix86_init_mmx_sse_builtins): Use 0 instead of
3823         ~OPTION_MASK_ISA_64BIT as mask.
3824         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
3825         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
3826         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
3827         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
3829 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3831         PR target/78012
3832         * lra-constraints.c (split_reg): Check requested split mode
3833         is supported by the register.
3835 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3837         * lra-constraints.c (simplify_operand_subreg): Remove early
3838         return false.
3840 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3842         PR target/78660
3843         * lra-constraints.c (curr_insn_transform): Tighten condition
3844         for converting SUBREG reloads from OP_OUT to OP_INOUT.
3846 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3848         PR target/78660
3849         * lra-constraints.c (curr_insn_transform): Handle
3850         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
3852 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
3854         Revert:
3855         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
3857         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3859 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
3861         PR c++/69523
3862         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
3863         description.
3865 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3867         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
3868         for FMA_EXPR.
3870 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
3872         * final.c (last_columnnum, override_columnnum): New variables.
3873         (final_start_function): Set last_columnnum, pass it to begin_prologue
3874         hook and pass 0 to dwarf2out_begin_prologue.
3875         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
3876         to source_line debug hook.
3877         (notice_source_line): Compute last_columnnum and for debug_column_info
3878         return true on column changes.
3879         * debug.h (struct gcc_debug_hooks): Add column argument to
3880         source_line and begin_prologue hooks.
3881         (debug_nothing_int_charstar_int_bool): Remove prototype.
3882         (debug_nothing_int_int_charstar,
3883         debug_nothing_int_int_charstar_int_bool): New prototypes.
3884         (dwarf2out_begin_prologue): Add column argument.
3885         * debug.c (do_nothing_debug_hooks): Adjust source_line and
3886         begin_prologue hooks.
3887         (debug_nothing_int_charstar_int_bool): Remove.
3888         (debug_nothing_int_int_charstar,
3889         debug_nothing_int_int_charstar_int_bool): New functions.
3890         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
3891         through to dwarf2out_source_line.
3892         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
3893         (dwarf2out_source_line): Add column argument, emit it if requested.
3894         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
3895         arguments.
3896         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3897         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
3898         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
3899         through to dwarf2out_begin_prologue.
3900         (vmsdbgout_source_line): Add column argument, pass it through to
3901         dwarf2out_source_line.
3902         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
3903         dbxout_source_line caller.
3904         (dbxout_source_line): Add column argument.
3906         * common.opt (gno-column-info, gcolumn-info): New options.
3907         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
3908         (check_die): Also test for multiple DW_AT_decl_column attributes.
3909         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
3910         DW_AT_decl_column if requested.
3911         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
3912         if requested.
3913         (gen_variable_die): Likewise.
3914         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
3915         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
3917         PR target/79569
3918         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
3919         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
3920         (ix86_handle_option): Handle OPT_m3dnowa.
3921         * doc/invoke.texi (-m3dnowa): Document.
3922         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
3923         -m3dnowa instead of -m3dnow -march=athlon.
3925         PR target/79559
3926         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
3927         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
3929 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3931         PR target/79261
3932         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3933         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
3934         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
3935         generator for vsx_xxpermdi_<mode>_be.
3936         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
3937         force big-endian semantics.
3938         (vsx_xxpermdi_<mode>_be): New define_expand with same
3939         implementation as previous version of vsx_xxpermdi_<mode>.
3941 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
3943         PR tree-optimization/79327
3944         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
3945         variable, its initialization and use.
3947 2017-02-17  Julia Koval  <julia.koval@intel.com>
3949         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
3950         (OPTION_MASK_ISA_PKU_UNSET): New.
3951         (ix86_handle_option): Handle -mrdpid.
3952         * config/i386/cpuid.h (bit_RDPID): New.
3953         * config/i386/driver-i386.c (host_detect_local_cpu):
3954         Detect RDPID feature.
3955         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
3956         * config/i386/i386-c.c (ix86_target_macros_internal):
3957         Handle RDPID flag.
3958         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
3959         (ix86_valid_target_attribute_inner_p): Add "rdpid".
3960         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3961         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3962         * config/i386/i386.md (define_insn "rdpid"): New.
3963         * config/i386/i386.opt Add -mrdpid.
3964         * config/i386/immintrin.h (_rdpid_u32): New.
3966 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
3968         PR rtl-optimization/79541
3969         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3970         instead of transforming it into USE.
3972 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
3974         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3975         If HONOR_SNANS (SFmode) force the input to a register.
3976         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3977         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3978         an frsp or similar insn.
3980 2017-02-17  Martin Liska  <mliska@suse.cz>
3982         PR rtl-optimization/79577
3983         * params.def (selsched-max-sched-times): Increase minimum to 1.
3985 2017-02-17  Martin Liska  <mliska@suse.cz>
3987         PR rtl-optimization/79574
3988         * gcse.c (want_to_gcse_p): Prevent integer overflow.
3990 2017-02-17  Martin Liska  <mliska@suse.cz>
3992         PR tree-optimization/79529
3993         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3994         ssa_defined_default_def_p to handle cases which are implicitly
3995         defined.
3996         * tree-ssa.c (ssa_defined_default_def_p): New function.
3997         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3998         which are implicitly defined.
3999         * tree-ssa.h (ssa_defined_default_def_p): Declare.
4001 2017-02-17  Richard Biener  <rguenther@suse.de>
4003         PR middle-end/79576
4004         * params.def (max-ssa-name-query-depth): Limit to 10.
4006 2017-02-17  Richard Biener  <rguenther@suse.de>
4008         PR tree-optimization/79552
4009         * tree-ssa-structalias.c (visit_loadstore): Properly verify
4010         default defs.
4012 2017-02-17  Richard Biener  <rguenther@suse.de>
4014         PR bootstrap/79567
4015         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
4017 2017-02-17  Marek Polacek  <polacek@redhat.com>
4019         PR middle-end/79536
4020         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
4021         (fold_negate_expr): New wrapper.
4023 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
4025         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
4026         Correct terminology and de-emphasize pre-standard behavior.
4028 2017-02-16  Alan Modra  <amodra@gmail.com>
4030         PR rtl-optimization/79286
4031         * ira.c (def_dominates_uses): New function.
4032         (update_equiv_regs): Don't create an equivalence for insns that
4033         may trap where the register def does not dominate the use.
4035 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
4037         PR rtl-optimization/78127
4038         * lra.c (lra): Call lra_eliminate before finish the loop after
4039         lra_constraint.
4041 2017-02-16  Richard Biener  <rguenther@suse.de>
4043         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
4044         isl/isl_val.h.
4045         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
4046         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
4047         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
4048         (isl_val_int_from_wi): New function.
4049         (extract_affine_gmp): Rename to ...
4050         (extract_affine_wi): ... this, take a widest_int.
4051         (extract_affine_int): Just wrap extract_affine_wi.
4052         (add_param_constraints): Use isl_val_int_from_wi.
4053         (add_loop_constraints): Likewise, and extract_affine_wi.
4055 2017-02-15 Jeff Law  <law@redhat.com>
4057         PR middle-end/79521
4058         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
4059         ira_init_register_move_cost_if_necessary.
4061 2017-02-15  Martin Sebor  <msebor@redhat.com>
4063         PR middle-end/32003
4064         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
4065         removed in a prior commit.
4067 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
4069         PR tree-optimization/79347
4070         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
4071         counters during peeling.
4073 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
4075         * Makefile.in (site.exp): Remove "set ISLVER".
4077 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
4079         PR target/79487
4080         * real.c (real_from_integer): Call real_convert even for decimal.
4082 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4084         PR target/79421
4085         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
4087 2017-02-14  Andrew Pinski  <apinski@cavium.com>
4089         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
4090         cores and change the partno/implementer to be correct.
4091         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
4092         the 'B" as the implementer.
4093         * config/aarch64/aarch64-tune.md: Regenerate.
4095 2017-02-14  Carl Love  <cel@us.ibm.com>
4097         * config/rs6000/rs6000.c: Add case statement entry to make the
4098         xvcvuxdsp built-in argument unsigned.
4099         * config/rs6000/vsx.md: Fix the source and return operand types so they
4100         match the instruction definitions from the ISA document.  Fix typo
4101         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
4102         statement.
4104 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
4106         PR target/79282
4107         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
4108         member early_clobber_alts.
4109         * lra-lives.c (reg_early_clobber_p): New.
4110         (process_bb_lives): Use it.
4111         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
4112         (debug_operand_data): Initialize early_clobber_alts.
4113         (setup_operand_alternative): Set up early_clobber_alts.
4114         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
4115         alternatives to new_insn_reg.
4116         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
4117         it.
4118         (lra_update_insn_regno_info): Pass the new arg.
4120 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
4122         PR middle-end/79505
4123         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
4124         (new_oacc_loop_raw): Don't clear already cleared fields.
4126         PR target/79481
4127         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
4128         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
4129         _mm512_prefetch_i64gather_ps): New inline functions and macros.
4131 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
4133         PR target/79495
4134         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
4136 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
4138         PR target/79498
4139         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
4140         the extra instruction to the right place to store 128-bit constant
4141         when needed.
4143 2017-02-14  Martin Sebor  <msebor@redhat.com>
4145         PR middle-end/79448
4146         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
4147           warning for strings of unknown length.
4149 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
4151         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
4153 2017-02-14 Jeff Law  <law@redhat.com>
4155         PR target/79404
4156         * ira-costs.c (scan_one_insn): Initialize register move costs
4157         for pseudos seen in USE/CLOBBER insns.
4159         PR tree-optimization/79095
4160         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
4161         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
4162         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
4163         if the operands are known to be not equal, then the resulting range
4164         is ~[0,0].
4165         (intersect_ranges): If the new range is ~[0,0] and the old range is
4166         wide, then prefer ~[0,0].
4167         * tree-vrp.c (overflow_comparison_p_1): New function.
4168         (overflow_comparison_p): New function.
4169         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
4170         if NAME is used in an overflow test.
4171         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
4172         overflow check that can be expressed as an equality test, then adjust
4173         ops to be that equality test.
4175 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4177         * config/s390/s390-builtin-types.def: Remove flags argument.
4178         * config/s390/s390.c (s390_init_builtins): Likewise.
4180 2017-02-14  Martin Liska  <mliska@suse.cz>
4182         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
4183         vector.  Fix trailing white spaces.
4185 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
4187         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
4188         HFmode.
4190 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4192         PR rtl-optimization/68664
4193         * config/arm/arm.c (arm_sched_can_speculate_insn):
4194         New function.  Declare prototype.
4195         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
4197 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4199         PR rtl-optimization/68664
4200         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
4201         New function.
4202         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
4204 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
4206         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
4207         max skip bytes for function, loop and jump.
4209 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4211         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
4212         ABS_EXPR for gimple dump.
4214 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
4216         PR target/79462
4217         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
4219         PR tree-optimization/79408
4220         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
4221         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
4222         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4223         also if rhs1 is INTEGER_CST.
4225 2017-02-14  Richard Biener  <rguenther@suse.de>
4227         PR middle-end/79432
4228         * tree-into-ssa.c (insert_phi_nodes): When the function can
4229         have abnormal edges rewrite SSA names with broken use-def
4230         dominance out of SSA and register them for PHI insertion.
4232 2017-02-13  Martin Sebor  <msebor@redhat.com>
4234         PR middle-end/79496
4235         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
4236         clearing info.nowrite flag when snprintf size argument is a range.
4238 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
4240         * cprop.c (cprop_jump): Add missing space in string literal.
4241         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4242         (get_constraint_for_component_ref): Likewise.
4243         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4244         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
4245         * lra-constraints.c (process_alt_operands): Likewise.
4246         * ipa-inline.c (inline_small_functions): Likewise.
4247         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
4248         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4249         * trans-mem.c (diagnose_tm_1_op): Likewise.
4250         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
4251         (grid_parallel_clauses_gridifiable): Likewise.
4253         * config/nvptx/mkoffload.c (process): Add space in between
4254         , and %d.
4256         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
4257         "MOD4_SSE_REGS" and "ALL_REGS".
4259         * spellcheck.c (test_data): Add , in between "foo" and "food".
4261 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4263         PR target/79449
4264         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
4265         boundary crossing check and subsequent code generation agree.
4267 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4269         * config/aarch64/aarch64.c (has_memory_op): Delete.
4270         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
4271         has_memory_op.
4273 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
4275         PR rtl-optimization/79388
4276         PR rtl-optimization/79450
4277         * combine.c (distribute_notes): When removing TEM_INSN for which
4278         corresponding dest has last value recorded, invalidate that last
4279         value.
4281 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4283         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
4284         of explicit '@'.  Add missing assembly comment marker on branch costs
4285         printout.
4287 2017-02-13  Nathan Sidwell  <nathan@acm.org>
4289         * gengtype-lex.l (<in_struct>): Add '/'.
4291 2017-02-13  Martin Liska  <mliska@suse.cz>
4293         PR c/79471
4294         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
4296 2017-02-13  Richard Biener  <rguenther@suse.de>
4298         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
4299         Remove.
4300         * configure: Re-generate.
4301         * config.in: Likewise.
4302         * graphite-dependences.c: Simplify as if
4303         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
4304         * graphite-isl-ast-to-gimple.c: Likewise.
4305         * graphite-optimize-isl.c: Likewise.
4306         * graphite-poly.c: Likewise.
4307         * graphite-sese-to-poly.c: Likewise.
4308         * graphite.h: Likewise.
4309         * toplev.c: Include isl/version.h and use isl_version () for
4310         printing the ISL version.
4311         * doc/install.texi: Update ISL requirement.
4313 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
4315         * doc/standards.texi (Standards): Update reference to
4316         Objective-C 2.0.
4318 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
4319         
4320         * doc/extend.texi (Named Address Spaces): sourceware.org now
4321         defaults to https.
4322         * doc/install.texi (Binaries): Ditto.
4323         (Specific): Ditto.
4325 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
4327         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
4328         standard terminology "stringize"/"stringizing" throughout.
4329         * doc/cppinternals.texi: Likewise.
4331 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
4333         * doc/extend.texi: Fix some spelling mistakes and typos.
4334         * doc/invoke.texi: Likewise.
4336 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
4338         PR ipa/79224
4339         * params.def (inline-min-speedup) Change from 10 to 8.
4341 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
4343         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
4344         4.5.
4346 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
4348         PR ipa/79224
4349         * ipa-inline-analysis.c (get_minimal_bb): New function.
4350         (record_modified): Use it.
4351         (remap_edge_change_prob): Handle also ancestor functions.
4353 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
4355         * doc/contrib.texi (Contributors): Remove broken link into
4356         the Mauve CVS repository.
4358 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
4360         PR middle-end/79454
4361         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
4362         result computation whenever lhs doesn't have vector mode, not
4363         just when it has BLKmode.
4365 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
4367         * doc/makefile.texi (profiledbootstrap): Refer to the
4368         installation instructions only in textual form.
4370 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4372         PR target/79295
4373         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
4375 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
4377         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
4378         (Specific): Update mingw-w64 reference.
4379         (Binaries): Ditto.
4380         (Specific): Remove broken link to Renesas RX processor.
4382 2017-02-10  Richard Biener  <rguenther@suse.de>
4384         * toplev.c (process_options): Do not mention obsolete graphite
4385         options when printing sorry message about missing graphite support.
4386         Mention -floop-nest-optimize.
4388 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
4390         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
4391         (vtst_p16): Likewise.
4392         (vtstq_p8): Likewise.
4393         (vtstq_p16): Likewise.
4394         (vtst_p64): New.
4395         (vtstq_p64): Likewise.
4396         * config/arm/arm_neon.h (vgetq_lane_p64): New.
4397         (vset_lane_p64): New.
4398         (vsetq_lane_p64): New.
4400 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
4402         PR tree-optimization/79411
4403         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
4404         stmt operands are SSA_NAMEs used in abnormal phis.
4405         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
4406         phis.
4408 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
4410         PR ipa/70795
4411         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
4412         flag if needed.
4414 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
4416         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
4418 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
4420         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
4421         to avoid warning.
4423         PR c/79413
4424         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
4425         not arbitrary TREE_CONSTANT.
4427         PR c/79431
4428         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
4429         "omp declare target link" attribute unless is_global_var.
4430         * omp-offload.c (find_link_var_op): Likewise.
4432 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
4433             Chung-Lin Tang  <cltang@codesourcery.com>
4435         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
4436         OMP_CLAUSE_TILE.
4437         (gimplify_adjust_omp_clauses): Don't delete TILE.
4438         (gimplify_omp_for): Deal with TILE.
4439         * internal-fn.c (expand_GOACC_TILE): New function.
4440         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
4441         (GOACC_TILE): New.
4442         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
4443         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
4444         element fields.
4445         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
4446         avoid DIV for outermost collapse var.
4447         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
4448         Remove out of date comments, fix whitespace.
4449         * omp-general.c (omp_extract_for_data): Deal with tiling.
4450         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
4451         adjust OLF_DIM_BASE value.
4452         (struct omp_for_data): Add tiling field.
4453         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
4454         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
4455         for auto loops.  Remove default auto determining, moved to
4456         oacc_loop_fixed_partitions.
4457         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
4458         stmts, add e_mask field.
4459         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
4460         (oacc_thread_numbers): Use oacc_dim_call.
4461         (oacc_xform_tile): New.
4462         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
4463         (finish_oacc_loop): Adjust for ifns vector.
4464         (oacc_loop_discover_walk): Append loop abstraction sites to list,
4465         add case for GOACC_TILE fns.
4466         (oacc_loop_xform_loop): Delete.
4467         (oacc_loop_process): Iterate over call list directly, and add
4468         handling for GOACC_TILE fns.
4469         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
4470         dump partitioning.
4471         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
4472         vector partitioning to outer loops.  Assign 2 partitions to loops
4473         when available. Add TILE handling.
4474         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
4475         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
4476         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
4477         * tree.c (omp_clause_num_ops): Adjust TILE ops.
4478         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
4480 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
4482         * configure.ac (ACX_BUGURL): Update.
4483         * configure: Regenerate.
4485 2017-02-09  Richard Biener  <rguenther@suse.de>
4487         PR tree-optimization/69823
4488         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4489         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
4491 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4493         * config/arc/arc-c.def: Add __NPS400__ definition.
4494         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
4495         (TARGET_NPS400): Define.
4497 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4499         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
4500         file.
4501         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
4502         pointer, arch_info.
4503         (arc_cpu_types): Fill the arch_info field with a pointer into the
4504         arc_arch_types table.
4505         (arc_selected_cpu): Declare.
4506         * config/arc/arc.c (arc_selected_cpu): Make global.
4507         (arc_selected_arch): Delete.
4508         (arc_base_cpu): Delete.
4509         (arc_override_options): Remove references to deleted variables,
4510         update access to arch information.
4511         (ARC_OPT): Update access to arch information.
4512         (ARC_OPTX): Likewise.
4513         * config/arc/arc.h (arc_base_cpu): Remove declaration.
4514         (TARGET_ARC600): Update access to arch information.
4515         (TARGET_ARC601): Likewise.
4516         (TARGET_ARC700): Likewise.
4517         (TARGET_EM): Likewise.
4518         (TARGET_HS): Likewise.
4519         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
4520         information.
4522 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
4524         PR target/78604
4525         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
4526         condition/operands for integer GE/LE/GEU/LEU operations.
4528 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
4530         PR translation/79397
4531         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
4532         of AltiVec.
4534 2017-02-08  Martin Jambor  <mjambor@suse.cz>
4536         PR ipa/79375
4537         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
4538         whether allocation happened.
4539         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
4540         nothing was allocated.
4542 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
4544         PR tree-optimization/79408
4545         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
4546         constant, but SSA_NAME with a known integer range, use the minimum
4547         of that range instead of op1 to determine if modulo can be replaced
4548         with its first operand.
4550 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4552         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
4554 2017-02-08  Richard Biener  <rguenther@suse.de>
4556         PR tree-optimization/71824
4557         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4558         Check all loops contained in the merged region.
4560 2017-02-07  Andrew Pinski  <apinski@cavium.com>
4562         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
4564 2017-02-07  Andrew Pinski  <apinski@cavium.com>
4566         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
4567         (thunderxt88): Likewise.
4568         (thunderxt81): Disable LSE and change v8.1 to v8.
4569         (thunderxt83): Likewise.
4571 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
4572             Richard Biener  <rguenther@suse.de>
4574         PR middle-end/79399
4575         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
4576         type from int to size_t.
4577         * ira-costs.c (struct_costs_size): Change type from int to size_t.
4579 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
4581         PR rtl-optimization/79386
4582         * cprop.c (bypass_conditional_jumps): Initialize
4583         bypass_last_basic_block already before splitting bbs after
4584         unconditional traps...
4585         (bypass_conditional_jumps): ... rather than here.
4587         PR target/79299
4588         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
4589         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
4590         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
4591         fix -masm=intel patterns.
4593 2017-02-07  Richard Biener  <rguenther@suse.de>
4595         PR tree-optimization/79256
4596         PR middle-end/79278
4597         * builtins.c (get_object_alignment_2): Use min_align_of_type
4598         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
4599         and ADJUST_FIELD_ALIGN.
4601         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
4602         type parameter.
4603         * doc/tm.texi: Regenerate.
4604         * stor-layout.c (layout_decl): Adjust.
4605         (update_alignment_for_field): Likewise.
4606         (place_field): Likewise.
4607         (min_align_of_type): Likewise.
4608         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
4609         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
4610         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
4611         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
4612         * config/frv/frv.c (frv_adjust_field_align): Likewise.
4613         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
4614         * config/i386/i386.c (x86_field_alignment): Likewise.
4615         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4616         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
4617         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4618         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4619         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
4620         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4621          Likewise.
4623         Revert
4624         2017-01-30  Richard Biener  <rguenther@suse.de>
4626         PR tree-optimization/79256
4627         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4628         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4629         alignment on TYPE.
4631 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
4633         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
4634         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
4635         builtins to SImode and emit a zero-extend, if necessary.
4637 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4639         * docs/invoke.texi (RISC-V Options): Alphabetize.
4641 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4643         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
4644         options.
4646 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
4648         * config/riscv/riscv.c: New file.
4649         * gcc/common/config/riscv/riscv-common.c: Likewise.
4650         * config.gcc: Likewise.
4651         * config/riscv/constraints.md: Likewise.
4652         * config/riscv/elf.h: Likewise.
4653         * config/riscv/generic.md: Likewise.
4654         * config/riscv/linux.h: Likewise.
4655         * config/riscv/multilib-generator: Likewise.
4656         * config/riscv/peephole.md: Likewise.
4657         * config/riscv/pic.md: Likewise.
4658         * config/riscv/predicates.md: Likewise.
4659         * config/riscv/riscv-builtins.c: Likewise.
4660         * config/riscv/riscv-c.c: Likewise.
4661         * config/riscv/riscv-ftypes.def: Likewise.
4662         * config/riscv/riscv-modes.def: Likewise.
4663         * config/riscv/riscv-opts.h: Likewise.
4664         * config/riscv/riscv-protos.h: Likewise.
4665         * config/riscv/riscv.h: Likewise.
4666         * config/riscv/riscv.md: Likewise.
4667         * config/riscv/riscv.opt: Likewise.
4668         * config/riscv/sync.md: Likewise.
4669         * config/riscv/t-elf-multilib: Likewise.
4670         * config/riscv/t-linux: Likewise.
4671         * config/riscv/t-linux-multilib: Likewise.
4672         * config/riscv/t-riscv: Likewise.
4673         * configure.ac: Likewise.
4674         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
4675         Waterman as RISC-V maintainers.
4676         * doc/install.texi: Add RISC-V entries.
4677         * doc/invoke.texi: Add RISC-V options section.
4678         * doc/md.texi: Add RISC-V constraints section.
4679         * configure: Regenerated.
4681 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4683         PR target/66144
4684         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
4685         false values to be constant vectors with all 0 or all 1 bits set.
4686         (vcondu<mode><mode>): Likewise.
4687         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
4688         predicate.
4689         (fpmask_comparison_operator): Update comment.
4690         (vecint_comparison_operator): New predicate.
4691         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
4692         vector conditionals when the true and false values are constant
4693         vectors with all 0 bits or all 1 bits set.
4695 2017-02-06  Martin Sebor  <msebor@redhat.com>
4697         PR  tree-optimization/79376
4698         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
4700 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
4702         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
4703         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
4704         to simplify split condition.
4706 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
4708         * omp-expand.c (oxpand_omp_atomic_fetch_op,
4709         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
4710         false.
4712 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
4714         PR rtl-optimization/68664
4715         * target.def (can_speculate_insn): New hook.
4716         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
4717         * doc/tm.texi: Regenerate.
4718         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
4719         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
4720         (rs6000_sched_can_speculate_insn): New function.
4722 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
4724         PR tree-optimization/79284
4725         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
4726         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
4727         vectorizable_mask_load_store, vectorizable_operation,
4728         vect_is_simple_cond, get_same_sized_vectype): Use it instead
4729         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
4730         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
4731         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
4732         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4733         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4734         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
4735         is_gimple_assign (stmt).  Replace another such test with
4736         is_gimple_assign (stmt).
4738 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
4740         PR target/78883
4741         * config/avr/avr.c (rtl-iter.h): Include it.
4742         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
4743         (avr_legitimate_combined_insn): ...and implementation.
4745 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4747         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
4748         * config/s390/s390.c (s390_const_operand_ok)
4749         (s390_canonicalize_comparison, s390_extract_part)
4750         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
4751         (s390_contiguous_bitmask_p, s390_rtx_costs)
4752         (legitimize_pic_address): Likewise.
4753         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
4754         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
4755         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
4756         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
4757         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
4759 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
4761         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
4762         REGNO($0) == REGNO($1).
4764 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4766         * config/s390/linux.h(SIZE_TYPE): Add comment.
4768 2017-02-06  Julian Brown  <julian@codesourcery.com>
4769             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4770             Virendra Pathak  <virendra.pathak@broadcom.com>
4772         * config/aarch64/aarch64-cores.def: Change the scheduler
4773         to Thunderx2t99.
4774         * config/aarch64/aarch64.md: Include thunderx2t99.md.
4775         * config/aarch64/thunderx2t99.md: New file.
4777 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4779         * doc/standards.texi (Go Language): Update link to language
4780         standard.
4782 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
4784         * tree-eh.c (lower_resx): Sanitize profile.
4785         (cleanup_empty_eh_move_lp): Likewise.
4787 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
4789         PR tree-ssa/79347
4790         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
4791         ELSE_PROB.
4792         * cfgloopmanip.h (loop_version): Update prototype.
4793         * modulo-sched.c (sms_schedule): Update call of loop_version.
4794         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
4795         * tree-parloops.c (gen_parallel_loop): Likewise.
4796         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4797         * tree-ssa-loop-split.c (split_loop): Likewise.
4798         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
4799         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
4801 2017-02-05  Martin Liska  <mliska@suse.cz>
4803         PR bootstrap/78985
4804         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
4805         variable to NULL.
4806         (print_operand_address): Initialize a struct to zero.
4808 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4810         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
4811         garbage collector only in textual form.
4813 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
4814         
4815         * doc/extend.texi (x86 specific memory model extensions for
4816         transactional memory): Simplify a phrase.
4818 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
4820         PR target/79353
4821         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
4822         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
4823         (atomic_storedi_1): Likewise.
4825 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
4827         PR tree-optimization/79338
4828         * tree-parloops.c (gather_scalar_reductions): Don't call
4829         vect_analyze_loop_form for loop->inner before destroying loop's
4830         loop_vinfo.
4832 2017-02-03  Martin Sebor  <msebor@redhat.com>
4834         PR tree-optimization/79327
4835         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
4836         when precision has resulted in leading zeros.
4837         (format_integer): Adjust the likely counter to assume an unknown
4838         argument that may be zero is non-zero.
4840 2017-02-03  Jason Merrill  <jason@redhat.com>
4842         PR c++/78689
4843         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
4844         avoid copying non-taken branch.
4846 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
4848         PR tree-optimization/79340
4849         * tree-vect-loop.c (vectorizable_reduction): Release
4850         vec_defs elements after safe_splicing them into other vectors.
4851         Formatting fixes.
4853         PR tree-optimization/79327
4854         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
4855         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
4856         dirtype.
4857         (format_integer): Use wide_int_to_tree instead of build_int_cst
4858         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
4859         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
4860         of shortest and longest sequence.
4862 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
4864         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4865         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
4867 2017-02-03  Walter Lee  <walt@tilera.com>
4869         PR target/78862
4870         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
4871         after initial stackframe link reg save.
4872         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
4874 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
4876         PR target/79354
4877         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
4878         wu for stxssp alternative.
4880 2017-02-03  Martin Sebor  <msebor@redhat.com>
4882         PR tree-optimization/79352
4883         * gimple-fold.c (get_range_strlen): Add argument.
4884         (get_range_strlen): Change return type to bool.
4885         (get_maxval_strlen): Pass in a dummy argument.
4886         * gimple-fold.h (get_range_strlen): Change return type to bool.
4887         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
4888         * tree.h (array_at_struct_end_p): Add argument.
4889         * tree.c (array_at_struct_end_p): Handle it.
4891 2017-02-03  Martin Liska  <mliska@suse.cz>
4893         PR lto/66295
4894         * multiple_target.c (create_dispatcher_calls): Redirect edge
4895         from a caller of a dispatcher.
4896         (expand_target_clones): Make the clones local.
4897         (ipa_target_clone): Do both target clones and resolvers.
4898         (ipa_dispatcher_calls): Remove the pass.
4899         (pass_dispatcher_calls::gate): Likewise.
4900         (make_pass_dispatcher_calls): Likewise.
4901         * passes.def (pass_target_clone): Put as very first IPA early
4902         pass.
4904 2017-02-03  Martin Liska  <mliska@suse.cz>
4906         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
4907         in case of a function with ifunc attribute.
4909 2017-02-03  Martin Liska  <mliska@suse.cz>
4911         * cgraph.c (cgraph_node::dump): Dump function version info.
4912         * symtab.c (symtab_node::dump_base): Add missing new line.
4914 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
4916         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
4917         (ifcombine_ifandif): Use it.
4919 2017-02-03  Martin Liska  <mliska@suse.cz>
4921         * doc/invoke.texi: Document default value for
4922         use-after-scope-direct-emission-threshold.
4924 2017-02-03  Martin Liska  <mliska@suse.cz>
4926         PR tree-optimization/79339
4927         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
4928         (format_floating): Likewise.
4930 2017-02-03  Martin Liska  <mliska@suse.cz>
4932         PR ipa/79337
4933         * ipa-prop.c (ipa_node_params_t::insert): Remove current
4934         implementation.
4935         (ipa_node_params_t::remove): Likewise.
4936         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
4937         initialization from removed ipa_node_params_t::insert.
4938         (ipa_node_params::~ipa_node_params): Move from removed
4939         ipa_node_params_t::release.
4940         * symbol-summary.h (symbol_summary::m_released): New member.
4941         Do not release a summary twice.  Do not allow to call finalizer
4942         for types of a summary that live in GGC memory.
4944 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
4946         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
4947         cmp_branch fusion.
4949 2017-02-02  Martin Sebor  <msebor@redhat.com>
4951         PR middle-end/79275
4952         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
4953         (format_string): Tighten up the range of output for non-constant
4954         strings and correct the expected range for wide non-constant strings.
4956 2017-02-02  Martin Sebor  <msebor@redhat.com>
4958         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4960         PR middle-end/32003
4961         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4962         index.
4963         (-fdump-tree-@var): Add to index and document how to come up
4964         with pass-specific option and dump file names.
4965         (-fdump-passes): Clarify where to look for output.
4967 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
4969         PR middle-end/77445
4970         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4971         statistics of the analyzed path; allow threading for speed when
4972         any of BBs along the path are optimized for speed.
4974 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
4976         PR middle-end/78468
4977         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4978         settings of the virtual registers.
4980         Revert again
4981         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4983         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4984         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4985         needed.
4987 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4989         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4990         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4992 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4994         * config/s390/s390.md: Add missing comments with the expanded
4995         mnemonics.
4996         * config/s390/vector.md: Likewise.
4997         * config/s390/vx-builtins.md: Likewise.
4999 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
5001         PR target/79197
5002         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
5003         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
5004         conditions on a single line.
5006 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5008         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
5009         __S390_VX__ to __VX__.
5011 2017-02-01  Andrew Pinski  <apinski@cavium.com>
5013         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
5014         stmt_info to record_stmt_cost.
5015         (vect_get_known_peeling_cost): Pass stmt_info if known to
5016         record_stmt_cost.
5017         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
5018         cpu_vector_cost field into
5019         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
5020         field into vec_int_stmt_cost and vec_fp_stmt_cost.
5021         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
5022         splitting of scalar_stmt_cost and vec_stmt_cost.
5023         (thunderx_vector_cost): Likewise.
5024         (cortexa57_vector_cost): LIkewise.
5025         (exynosm1_vector_cost): Likewise.
5026         (xgene1_vector_cost): Likewise.
5027         (thunderx2t99_vector_cost): Improve after the splitting of the two
5028         fields.
5029         (aarch64_builtin_vectorization_cost): Update for the splitting of
5030         scalar_stmt_cost and vec_stmt_cost.
5032 2017-02-01  Torvald Riegel  <triegel@redhat.com>
5033             Richard Henderson  <rth@redhat.com>
5035         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
5036         conditional on existance of a fast atomic load.
5037         * optabs-query.c (can_atomic_load_p): New function.
5038         * optabs-query.h (can_atomic_load_p): Declare it.
5039         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
5040         no fast atomic load is available for the particular size of access.
5041         (expand_atomic_compare_and_swap): Likewise.
5042         (expand_atomic_load): Likewise.
5043         (expand_atomic_store): Likewise.
5044         (expand_atomic_fetch_op): Likewise.
5045         * testsuite/lib/target-supports.exp
5046         (check_effective_target_sync_int_128): Remove x86 because it provides
5047         no fast atomic load.
5048         (check_effective_target_sync_int_128_runtime): Likewise.
5050 2017-02-01  Richard Biener  <rguenther@suse.de>
5052         * graphite.c: Include tree-vectorizer.h for find_loop_location.
5053         (graphite_transform_loops): Provide opt-info for optimized nests.
5054         * tree-parloop.c (parallelize_loops): Provide opt-info for
5055         parallelized loops.
5057 2017-02-01  Richard Biener  <rguenther@suse.de>
5059         PR middle-end/79315
5060         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
5061         was not set before.
5063 2017-02-01  Richard Biener  <rguenther@suse.de>
5065         PR tree-optimization/71824
5066         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
5067         Verify the loops are valid in the merged SESE region.
5068         (scop_detection::can_represent_loop_1): Check analyzing the
5069         evolution of the number of iterations in the region succeeds.
5071 2017-01-31  Ian Lance Taylor  <iant@golang.org>
5073         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
5074         REG_ARGS_SIZE note to 32-bit push insns and call insn.
5076 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
5078         PR preprocessor/79210
5079         * input.c (get_substring_ranges_for_loc): Replace line_width
5080         assertion with error-handling.
5082 2017-01-31  Richard Biener  <rguenther@suse.de>
5084         PR tree-optimization/77318
5085         * graphite-sese-to-poly.c (extract_affine): Fix assert.
5086         (create_pw_aff_from_tree): Take loop parameter.
5087         (add_condition_to_pbb): Pass loop of the condition to
5088         create_pw_aff_from_tree.
5090 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
5092         * config/s390/s390.c (s390_asan_shadow_offset): New function.
5093         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
5095 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5097         PR target/78597
5098         PR target/79038
5099         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
5100         no longer used.
5101         (convert_int_to_float128): Likewise.
5102         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
5103         (convert_int_to_float128): Likewise.
5104         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
5105         (UNSPEC_IEEE128_CONVERT): Likewise.
5106         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
5107         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
5108         Use local variables for IBM extended format.
5109         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
5110         (fix_trunc<mode>si2_fprs): Likewise.
5111         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5112         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
5113         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
5114         to know that we can now have integers of all sizes in vector
5115         registers.
5116         (fix<uns>_<mode>di2_hw): Likewise.
5117         (float<uns>_<mode>si2_hw): Likewise.
5118         (fix_<mode>si2_hw): Likewise.
5119         (fixuns_<mode>si2_hw): Likewise.
5120         (float<uns>_<mode>di2_hw): Likewise.
5121         (float_<mode>di2_hw): Likewise.
5122         (float_<mode>si2_hw): Likewise.
5123         (floatuns_<mode>di2_hw): Likewise.
5124         (floatuns_<mode>si2_hw): Likewise.
5125         (xscvqp<su>wz_<mode>): Delete, no longer used.
5126         (xscvqp<su>dz_<mode>): Likewise.
5127         (xscv<su>dqp_<mode>): Likewise.
5128         (ieee128_mfvsrd_64bit): Likewise.
5129         (ieee128_mfvsrd_32bit): Likewise.
5130         (ieee128_mfvsrwz): Likewise.
5131         (ieee128_mtvsrw): Likewise.
5132         (ieee128_mtvsrd_64bit): Likewise.
5133         (ieee128_mtvsrd_32bit): Likewise.
5135 2017-01-31  Martin Liska  <mliska@suse.cz>
5137         PR ipa/79285
5138         * ipa-prop.c (ipa_free_all_node_params): Call release method
5139         instead of ~sumbol_summary to not to trigger double times
5140         dtor of hash_map.
5142 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
5144         PR tree-optimization/71691
5145         * bitmap.h (class auto_bitmap): New.
5146         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
5147         is_maybe_undefined instead of ssa_undefined_value_p.
5149 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5151         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
5152         __S390_ARCH_LEVEL__ to __ARCH__.
5154 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
5156         PR tree-optimization/79267
5157         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
5158         if should_remove_lhs_p is true.
5160 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
5162         PR debug/63238
5163         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
5164         (add_alignment_attribute): New.
5165         (base_type_die): Add alignment attribute.
5166         (subrange_type_die): Likewise.
5167         (modified_type_die): Likewise.
5168         (gen_array_type_die): Likewise.
5169         (gen_descr_array_type_die: Likewise.
5170         (gen_enumeration_type_die): Likewise.
5171         (gen_subprogram_die): Likewise.
5172         (gen_variable_die): Likewise.
5173         (gen_field_die): Likewise.
5174         (gen_ptr_to_mbr_type_die): Likewise.
5175         (gen_struct_or_union_type_die): Likewise.
5176         (gen_subroutine_type_die): Likewise.
5177         (gen_typedef_die): Likewise.
5178         (base_type_cmp): Compare alignment attribute.
5180 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5182         PR target/79170
5183         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
5184         (setb_unsigned) New pattern for setb with CCUNS.
5185         * config/rs6000/rs6000.c (expand_block_compare): Use a different
5186         subfc./subfe sequence to avoid overflow problems.  Generate a
5187         shorter sequence with cmpld/setb for power9.
5188         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
5189         for generating subfc. instruction.
5190         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
5191         now uses this instruction.
5193 2017-01-30  Ian Lance Taylor  <iant@google.com>
5195         PR debug/79289
5196         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
5197         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
5199 2017-01-30  Martin Sebor  <msebor@redhat.com>
5201         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
5202         Move constant to the right of a relational operator.
5203         (get_mpfr_format_length, format_character, format_string): Ditto.
5204         (should_warn_p, maybe_warn): Same.
5206         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
5208 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
5210         PR lto/79061
5211         * asan.c (get_translation_unit_decl): Remove function.
5212         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
5214 2017-01-30  Martin Liska  <mliska@suse.cz>
5216         PR gcov-profile/79259
5217         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
5218         -fprofile-generate.
5220 2017-01-30  Martin Liska  <mliska@suse.cz>
5222         PR bootstrap/78985
5223         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
5224         Initialize variables with NULL value.
5226 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
5228         PR target/79260
5229         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
5230         tm_p_file.
5231         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
5233 2017-01-30  Richard Biener  <rguenther@suse.de>
5235         PR tree-optimization/79276
5236         * tree-vrp.c (process_assert_insertions): Properly adjust common
5237         when removing a duplicate.
5239         * gcc.dg/torture/pr79276.c: New testcase.
5241 2017-01-30  Richard Biener  <rguenther@suse.de>
5243         PR tree-optimization/79256
5244         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
5245         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
5246         alignment on TYPE.
5247         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
5249 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5251         PR target/79240
5252         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
5253         ("*r<noxa>sbg_<mode>_sll_bitmask")
5254         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
5255         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
5256         Use contiguous_bitmask_nowrap_operand.
5258 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5260         PR target/79268
5261         * config/rs6000/altivec.h (vec_xl): Revise #define.
5262         (vec_xst): Likewise.
5264 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
5266         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
5268 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
5270         PR rtl-optimization/79194
5271         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
5272         traps before call to bypass_conditional_jumps.
5274 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
5276         PR tree-optimization/71374
5277         * lra-constraints.c (check_conflict_input_operands): New.
5278         (match_reload): Use it.
5280 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
5282         PR target/79131
5283         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
5284         account to calculate conflict_set.
5286 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
5288         PR rtl-optimization/78559
5289         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
5290         other_insn in combine.
5292 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
5294         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
5295         uint16_type_node for BT_UINT16.
5297 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
5299         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
5300         "RTL Tests" to menu.
5301         (GIMPLE Tests): New node.
5302         (RTL Tests): New node.
5304 2017-01-27  Richard Biener  <rguenther@suse.de>
5306         PR tree-optimization/79245
5307         * tree-loop-distribution.c (distribute_loop): Apply cost
5308         modeling also to detected patterns.
5310 2017-01-27  Richard Biener  <rguenther@suse.de>
5312         PR tree-optimization/71433
5313         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
5314         (compare_assert_loc): New function.
5315         (process_assert_insertions): Sort and optimize assert locations
5316         to remove duplicates and push down identical assertions on
5317         edges to their destination block.
5319 2017-01-27  Richard Biener  <rguenther@suse.de>
5321         PR tree-optimization/79244
5322         * tree-vrp.c (remove_range_assertions): Forcefully propagate
5323         out SSA names even if abnormal.
5325 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
5327         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
5328         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
5329         instead of MPFR_RNDN.
5331 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
5333         PR target/79239
5334         * arm.c (arm_option_override): Don't call build_target_option_node
5335         until after doing all option overrides.
5336         (arm_valid_target_attribute_tree): Likewise.
5338 2017-01-27  Martin Liska  <mliska@suse.cz>
5340         * doc/invoke.texi (-fprofile-arcs): Document profiling support
5341         for {cd}tors and C++ {cd}tors.
5343 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5345         * config/s390/s390.md ("*setmem_long_and")
5346         ("*setmem_long_and_31z"): Use zero_extend instead of and.
5348 2017-01-26  Martin Sebor  <msebor@redhat.com>
5350         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
5351         of precision.
5353 2017-01-26  Martin Sebor  <msebor@redhat.com>
5355         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
5356         HAVE_DFmode before using XFmode or DFmode.
5357         (parse_directive): Avoid using the z length modifier to avoid
5358         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
5360         PR middle-end/78703
5361         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
5362         to accept adjustment as an array.
5363         (get_int_range): New function.
5364         (struct directive): Make width and prec arrays.
5365         (directive::set_width, directive::set_precision): Call get_int_range.
5366         (format_integer, format_floating): Handle width and precision ranges.
5367         (format_string, parse_directive): Same.
5369 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5371         PR debug/79129
5372         * dwarf2out.c (generate_skeleton_bottom_up): For children with
5373         comdat_type_p set, just clone them, but keep the children in the
5374         original DIE.
5376         PR debug/78835
5377         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
5378         which have direct callers with -fvar-tracking-assignments enabled
5379         in the current TU.
5380         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
5381         inside of type units.
5383 2017-01-26  Martin Sebor  <msebor@redhat.com>
5385         PR middle-end/78703
5386         * gimple-ssa-sprintf.c (struct result_range): Add likely and
5387         unlikely counters.
5388         (struct format_result): Replace number_chars, number_chars_min,
5389         and number_chars_max with a single member of struct result_range.
5390         Remove bounded.
5391         (format_result::operator+=): Adjust.
5392         (struct fmtresult): Remove bounded.  Handle likely and unlikely
5393         counters.
5394         (fmtresult::adjust_for_width_or_precision): New function.
5395         (fmtresult:type_max_digits): New function.
5396         (bytes_remaining): Handle likely and unlikely counters.
5397         (min_bytes_remaining): Remove.
5398         (format_percent): Simplify.
5399         (format_integer, format_floating): Set likely and unlikely counters.
5400         (get_string_length, format_character, format_string): Same.
5401         (format_plain, should_warn_p): New function.
5402         (maybe_warn): Call should_warn_p.  Update diagnostic messages
5403         and handle those for all directives, including plain strings.
5404         (format_directive): Handle likely and unlikely counters.
5405         Remove unnecessary quoting from diagnostics.  Add an informational
5406         note.
5407         (add_bytes): Remove.
5408         (pass_sprintf_length::compute_format_length): Simplify.
5409         (try_substitute_return_value): Handle likely and unlikely counters.
5411 2017-01-26  Carl Love  <cel@us.ibm.com>
5413         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
5414         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
5416 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
5418         PR target/79131
5419         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
5420         endianess for subregs into account.
5421         * lra-constraints.c (lra_constraints): Do risky transformations
5422         always on the first iteration.
5423         * lra-lives.c (check_pseudos_live_through_calls): Add arg
5424         last_call_used_reg_set.
5425         (process_bb_lives): Define and use last_call_used_reg_set.
5426         * lra.c (lra): Always continue after lra_constraints on the first
5427         iteration.
5429 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
5431         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
5432         constant.
5433         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
5435 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5437         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
5438         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
5439         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
5440         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
5441         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
5442         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
5443         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
5444         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
5445         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
5447 2017-01-26  Marek Polacek  <polacek@redhat.com>
5449         PR c/79199
5450         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
5451         for the third operand.
5453 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5455         PR middle-end/79236
5456         * omp-low.c (struct omp_context): Add simt_stmt field.
5457         (scan_omp_for): Return omp_context *.
5458         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
5459         context to the _simt_ SIMD stmt.
5460         (lower_omp_for): For combined SIMD with sibling _simt_
5461         SIMD, make sure to use the same decls in _looptemp_
5462         clauses as in the sibling.
5464 2017-01-26  David Sherwood  <david.sherwood@arm.com>
5466         PR middle-end/79212
5467         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
5468         all contexts.
5470 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
5472         PR target/70465
5473         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
5474         emit fld b; fld a; if possible.
5476         * brig-builtins.def: Update copyright years.
5477         * config/arm/arm_acle_builtins.def: Update copyright years.
5479 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5481         PR target/79179
5482         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
5483         constraint instead of o for the stxsd instruction.
5485 2017-01-25  Carl Love  <cel@us.ibm.com>
5487         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
5488         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
5490 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
5492         * doc/invoke.texi (C++ Dialect Options): Fix typo.
5494 2017-01-25  Richard Biener  <rguenther@suse.de>
5496         PR tree-optimization/69264
5497         * target.def (vector_alignment_reachable): Improve documentation.
5498         * doc/tm.texi: Regenerate.
5499         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
5500         and add a comment.
5501         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
5502         earlier changes with respect to TYPE_USER_ALIGN.
5503         (vector_alignment_reachable_p): Likewise.  Improve dumping.
5505 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5507         PR target/79145
5508         * config/arm/arm.md (xordi3): Force constant operand into a register
5509         for TARGET_IWMMXT.
5511 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5513         * doc/invoke.texi (-fstore-merging): Correct default optimization
5514         levels at which it is enabled.
5515         (-O): Move -fstore-merging from list to...
5516         (-O2): ... Here.
5518 2017-01-25  Richard Biener  <rguenther@suse.de>
5520         PR debug/78363
5521         * omp-expand.c: Include debug.h.
5522         (expand_omp_taskreg): Make sure to generate early debug before
5523         outlining anything from a function.
5524         (expand_omp_target): Likewise.
5525         (grid_expand_target_grid_body): Likewise.
5527 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
5529         PR lto/79061
5530         * asan.c (get_translation_unit_decl): New function.
5531         (asan_add_global): Extract modules file name from globals
5532         TRANSLATION_UNIT_DECL name.
5534 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
5536         PR target/77439
5537         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
5538         for long calls with APCS frame and VFP.
5540 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
5542         * cfg.c (original_copy_tables_initialized_p): New function.
5543         * cfg.h (original_copy_tables_initialized_p): New decl.
5544         * cfgrtl.c (relink_block_chain): Guard the call to
5545         free_original_copy_tables with a call to
5546         original_copy_tables_initialized_p.
5547         * cgraph.h (symtab_node::native_rtl_p): New decl.
5548         * cgraphunit.c (symtab_node::native_rtl_p): New function.
5549         (symtab_node::needed_p): Don't assert for early assembly output
5550         for __RTL functions.
5551         (cgraph_node::finalize_function): Set "force_output" for __RTL
5552         functions.
5553         (cgraph_node::analyze): Bail out early for __RTL functions.
5554         (analyze_functions): Update assertion to support __RTL functions.
5555         (cgraph_node::expand): Bail out early for __RTL functions.
5556         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
5557         __RTL functions.
5558         * function.h (struct function): Update comment for field
5559         "pass_startwith".
5560         * gimple-expr.c: Include "tree-pass.h".
5561         (gimple_has_body_p): Return false for __RTL functions.
5562         * Makefile.in (OBJS): Add run-rtl-passes.o.
5563         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
5564         accessor.
5565         (gcc::pass_manager::get_clean_slate): New accessor.
5566         * passes.c: Include "insn-addr.h".
5567         (should_skip_pass_p): Add logging.  Update logic for running
5568         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
5569         property-provider override so it is only done for gimple passes.
5570         Don't skip dfinit.
5571         (skip_pass): New function.
5572         (execute_one_pass): Call skip_pass when skipping passes.
5573         * read-md.c (md_reader::read_char): Support filtering
5574         the input to a subset of line numbers.
5575         (md_reader::md_reader): Initialize fields
5576         m_first_line and m_last_line.
5577         (md_reader::read_file_fragment): New function.
5578         * read-md.h (md_reader::read_file_fragment): New decl.
5579         (md_reader::m_first_line): New field.
5580         (md_reader::m_last_line): New field.
5581         * read-rtl-function.c (function_reader::create_function): Only
5582         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
5583         curr_properties.  Set DECL_INITIAL to a dummy block.
5584         (read_rtl_function_body_from_file_range): New function.
5585         * read-rtl-function.h (read_rtl_function_body_from_file_range):
5586         New decl.
5587         * run-rtl-passes.c: New file.
5588         * run-rtl-passes.h: New file.
5590 2017-01-24 Jeff Law  <law@redhat.com>
5592         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
5593         buffer size.
5595 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
5597         PR tree-optimization/79159
5598         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5599         (record_nonwrapping_iv): Improve boundary using above function if no
5600         value range information.
5602 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
5603             Martin Jambor  <mjambor@suse.cz>
5605         * brig-builtins.def: New file.
5606         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
5607         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
5608         (DEF_HSAIL_SAT_BUILTIN): Likewise.
5609         (DEF_HSAIL_INTR_BUILTIN): Likewise.
5610         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
5611         * builtin-types.def (BT_INT8): New.
5612         (BT_INT16): Likewise.
5613         (BT_UINT8): Likewise.
5614         (BT_UINT16): Likewise.
5615         (BT_FN_ULONG): Likewise.
5616         (BT_FN_UINT_INT): Likewise.
5617         (BT_FN_UINT_ULONG): Likewise.
5618         (BT_FN_UINT_LONG): Likewise.
5619         (BT_FN_UINT_PTR): Likewise.
5620         (BT_FN_ULONG_PTR): Likewise.
5621         (BT_FN_INT8_FLOAT): Likewise.
5622         (BT_FN_INT16_FLOAT): Likewise.
5623         (BT_FN_UINT32_FLOAT): Likewise.
5624         (BT_FN_UINT16_FLOAT): Likewise.
5625         (BT_FN_UINT8_FLOAT): Likewise.
5626         (BT_FN_UINT64_FLOAT): Likewise.
5627         (BT_FN_UINT16_UINT32): Likewise.
5628         (BT_FN_UINT32_UINT16): Likewise.
5629         (BT_FN_UINT16_UINT16_UINT16): Likewise.
5630         (BT_FN_INT_PTR_INT): Likewise.
5631         (BT_FN_UINT_PTR_UINT): Likewise.
5632         (BT_FN_LONG_PTR_LONG): Likewise.
5633         (BT_FN_ULONG_PTR_ULONG): Likewise.
5634         (BT_FN_VOID_UINT64_UINT64): Likewise.
5635         (BT_FN_UINT8_UINT8_UINT8): Likewise.
5636         (BT_FN_INT8_INT8_INT8): Likewise.
5637         (BT_FN_INT16_INT16_INT16): Likewise.
5638         (BT_FN_INT_INT_INT): Likewise.
5639         (BT_FN_UINT_FLOAT_UINT): Likewise.
5640         (BT_FN_FLOAT_UINT_UINT): Likewise.
5641         (BT_FN_ULONG_UINT_UINT): Likewise.
5642         (BT_FN_ULONG_UINT_PTR): Likewise.
5643         (BT_FN_ULONG_ULONG_ULONG): Likewise.
5644         (BT_FN_UINT_UINT_UINT): Likewise.
5645         (BT_FN_VOID_UINT_PTR): Likewise.
5646         (BT_FN_UINT_UINT_PTR: Likewise.
5647         (BT_FN_UINT32_UINT64_PTR): Likewise.
5648         (BT_FN_INT_INT_UINT_UINT): Likewise.
5649         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
5650         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
5651         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
5652         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
5653         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
5654         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
5655         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
5656         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
5657         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
5658         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
5659         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
5660         * doc/frontends.texi: List BRIG FE.
5661         * doc/install.texi (Testing): Add BRIG tesring requirements.
5662         * doc/invoke.texi (Overall Options): Mention BRIG.
5663         * doc/standards.texi (Standards): Doucment BRIG HSA version.
5665 2017-01-24  Richard Biener  <rguenther@suse.de>
5667         PR translation/79208
5668         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
5670 2017-01-24  Martin Jambor  <mjambor@suse.cz>
5672         PR bootstrap/79198
5673         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
5674         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
5675         and known_contexts.
5677 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
5679         PR middle-end/79123
5680         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
5681         casts from signed to unsigned really don't have a range.
5683 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
5685         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
5686         GMP_RNDx for compatiblity.
5688 2017-01-24  Martin Liska  <mliska@suse.cz>
5690         PR bootstrap/79132
5691         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
5692         that would prevent us to call alloca with -1 as argument.
5694 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
5696         * dwarf2out.c (output_compilation_unit_header, output_file_names):
5697         Avoid -Wformat-security warning.
5699 2017-01-23  Andrew Pinski  <apinski@cavium.com>
5701         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
5702         cost table.
5704 2017-01-23  Martin Sebor  <msebor@redhat.com>
5706         PR middle-end/78703
5707         * gimple-ssa-sprintf.c (warn_level): New global.
5708         (format_integer): Use it here and throughout the rest of the file.
5709         Use the same switch to compute sign as base.
5710         (maybe_warn): New function.
5711         (format_directive): Factor out warnings into maybe_warn.
5712         Add debugging output.  Use warn_level.
5713         (add_bytes): Use warn_level.
5714         (pass_sprintf_length::compute_format_length): Add debugging output.
5715         (try_substitute_return_value): Same.
5716         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
5718         PR middle-end/78703
5719         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
5720         (struct fmtresult, format_integer, format_floating): Adjust.
5721         (fmtresult::fmtresult): Set max correctly in two argument ctor.
5722         (get_string_length, format_string,format_directive): Same.
5723         (pass_sprintf_length::compute_format_length): Same.
5724         (try_substitute_return_value): Simplify slightly.
5726         PR middle-end/78703
5727         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
5728         (fmtresult::operator+=): Outlined.
5729         (struct fmtresult): Add ctors.
5730         (struct conversion_spec): Rename...
5731         (struct directive): ...to this.  Add and remove data members.
5732         (directive::set_width, directive::set_precision): New functions.
5733         (format_percent): Use fmtresult ctor.
5734         (get_width_and_precision): Remove.
5735         (format_integer): Make naming changes.  Avoid computing width and
5736         precision.
5737         (format_floating): Same.  Adjust indentation.
5738         (format_character, format_none): New functions.
5739         (format_string): Moved character handling to format_character.
5740         (format_directive): Remove arguments, change return type.
5741         (parse_directive): New function.
5742         (pass_sprintf_length::compute_format_length): Move directive
5743         parsing to parse_directive.
5745 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
5747         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
5748         (assign_assembler_name_if_needed): ... this.
5749         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
5750         (assign_assembler_name_if_needed): ... this.
5751         (free_lang_data_in_cgraph): Adjust callers.
5752         * cgraphunit.c (cgraph_node::analyze): Likewise.
5753         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
5754         Likewise.
5756 2017-01-23  Richard Biener  <rguenther@suse.de>
5758         PR tree-optimization/79088
5759         PR tree-optimization/79188
5760         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
5761         resetting loop bounds after last path deletion.  Reset loop
5762         bounds of the target loop, make code match the comments.
5763         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
5764         Make sure loops need no fixups.
5766 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5768         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
5769         exponent support with double type for first argument.
5770         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
5771         type returned by __builtin_vec_extract_sig,
5772         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
5773         functions from "vector int" to "vector unsigned int" or from
5774         "vector long long int" to "vector unsigned long long int".
5775         Changed type returned by __builtin_vec_extract_exp,
5776         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
5777         functions from "vector int" to "vector unsigned int" or from
5778         "vector long long int" to "vector unsigned long long int".
5779         Changed return type of __builtin_vec_test_data_class,
5780         __builtin_vec_test_data_class_sp, and
5781         __builtin_vec_test_data_class_dp from "vector int" to
5782         "vector bool int" or from "vector long long int" to "vector bool
5783         long long int" and changed second argument type from "unsigned
5784         int" to "int".  Added new overloaded function forms "vector float
5785         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
5786         "vector float __builtin_vec_insert_exp_sp (vector float, vector
5787         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
5788         double, vector unsigned long long int)" and "vector double
5789         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
5790         long int)".  Changed return type of
5791         __builtin_scalar_test_data_class and
5792         __builtin_scalar_test_data_class_sp and
5793         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
5794         int" and changed second argument from "unsigned int" to "int".
5795         Changed type returned by __builtin_scalar_test_neg,
5796         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
5797         from "int" to "bool int".  Added new overloaded function form
5798         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
5799         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
5800         exponent double-precision with floating point first argument.
5801         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
5802         documentation of scalar_test_data_class, scalar_test_neg,
5803         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
5804         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
5805         vec_test_data_class built-in functions to reflect refinements in
5806         their type signatures.
5808 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
5810         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
5811         size of buf.
5812         (aarch64_elf_asm_destructor): Likewise.
5814 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
5816         PR rtl-optimization/78634
5817         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
5818         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
5819         * ifcvt.c (noce_try_cmove): Add missing cost check.
5821         PR rtl-optimization/71724
5822         * combine.c (if_then_else_cond): Look for situations where it is
5823         beneficial to undo the work of one of the recursive calls.
5825 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
5827         PR tree-optimization/70754
5828         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
5829         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
5830         combined stmt before it if not NULL.
5831         (combine_chains): Process refs reversely and compute dominance point
5832         for root ref.
5834 2017-01-23  Martin Liska  <mliska@suse.cz>
5836         PR tree-optimization/79196
5837         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
5838         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
5839         instead of memcmp.
5840         (strlen_optimize_stmt): Call the renamed function.
5842 2017-01-23  Michael Matz  <matz@suse.de>
5844         PR tree-optimization/78384
5845         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
5847 2017-01-23  Richard Biener  <rguenther@suse.de>
5849         PR tree-optimization/79186
5850         * tree-vrp.c (register_new_assert_for): Make sure we've seen
5851         both incoming edges before moving an assert.
5853 2017-01-23  Martin Jambor  <mjambor@suse.cz>
5855         * ipa-prop.c (load_from_param_1): Removed.
5856         (load_from_unmodified_param): Bits from load_from_param_1 put back
5857         here.
5858         (load_from_param): Removed.
5859         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
5860         with stmt.  Reverted back to use of load_from_unmodified_param.
5862 2017-01-23  Martin Jambor  <mjambor@suse.cz>
5864         PR ipa/79108
5865         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
5866         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
5867         field a pointer to garbage collected vector, mark lattices and
5868         ipcp_orig_node with GTY((skip)).
5869         (ipa_get_param_count): Adjust to descriptors being a pointer.
5870         (ipa_get_param): Likewise.
5871         (ipa_get_type): Likewise.
5872         (ipa_get_param_move_cost): Likewise.
5873         (ipa_set_param_used): Likewise.
5874         (ipa_get_controlled_uses): Likewise.
5875         (ipa_set_controlled_uses): Likewise.
5876         (ipa_is_param_used): Likewise.
5877         (ipa_node_params_t): Move into garbage collector.  New methods insert
5878         and remove.
5879         (ipa_node_params_sum): Annotate wth GTY(()).
5880         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
5881         garbage collected.
5882         (ipa_load_from_parm_agg): Adjust declaration.
5883         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
5884         * ipa-profile.c (ipa_profile): Likewise.
5885         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
5886         (ipa_populate_param_decls): Make descriptors parameter garbage
5887         collected.
5888         (ipa_dump_param): Adjust to descriptors being a pointer.
5889         (ipa_alloc_node_params): Likewise.
5890         (ipa_initialize_node_params): Likewise.
5891         (load_from_param_1): Make descriptors parameter garbage collected.
5892         (load_from_unmodified_param): Likewise.
5893         (load_from_param): Likewise.
5894         (ipa_load_from_parm_agg): Likewise.
5895         (ipa_node_params::~ipa_node_params): Removed.
5896         (ipa_free_all_node_params): Remove call to delete operator.
5897         (ipa_node_params_t::insert): New.
5898         (ipa_node_params_t::remove): Likewise.
5899         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
5900         copy known_csts and known_contexts vectors.
5901         (ipa_read_node_info): Adjust to descriptors being a pointer.
5902         (ipcp_modif_dom_walker): Make m_descriptors field garbage
5903         collected.
5904         (ipcp_transform_function): Make descriptors variable garbage
5905         collected.
5907 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
5909         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
5910         * config/i386/avx512dqintrin.h: Ditto.
5911         * config/i386/avx512fintrin.h: Ditto.
5912         * gcc/config/i386/i386.c: Handle new builtins.
5913         * config/i386/i386-builtin.def: Add new builtins.
5914         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
5915         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
5917 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
5918             Martin Liska  <mliska@suse.cz>
5920         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
5921         * asan.c (asan_expand_poison_ifn): Support stores and use
5922         appropriate ASAN report function.
5923         * internal-fn.c (expand_ASAN_POISON_USE): New function.
5924         * internal-fn.def (ASAN_POISON_USE): Declare.
5925         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
5926         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
5927         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
5928         ASAN_POISON calls w/o LHS.
5929         * tree-ssa.c (execute_update_addresses_taken): Create clobber
5930         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
5931         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
5932         * gimplify.c (asan_poison_variables): Add attribute
5933         use_after_scope_memory to variables that really needs to live
5934         in memory.
5935         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
5936         having the attribute.
5938 2017-01-23  Martin Liska  <mliska@suse.cz>
5940         * asan.c (create_asan_shadow_var): New function.
5941         (asan_expand_poison_ifn): Likewise.
5942         * asan.h (asan_expand_poison_ifn): New declaration.
5943         * internal-fn.c (expand_ASAN_POISON): Likewise.
5944         * internal-fn.def (ASAN_POISON): New builtin.
5945         * sanopt.c (pass_sanopt::execute): Expand
5946         asan_expand_poison_ifn.
5947         * tree-inline.c (copy_decl_for_dup_finish): Make function
5948         external.
5949         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
5950         * tree-ssa.c (is_asan_mark_p): New function.
5951         (execute_update_addresses_taken): Rewrite local variables
5952         (identified just by use-after-scope as addressable) into SSA.
5954 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
5956         * doc/install.texi (Specific): opensource.apple.com uses https
5957         now. Remove trailing slash.
5959 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
5961         * README.Portability: Remove note on an Irix compatibility issue.
5963 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
5965         * gcov.c (INCLUDE_ALGORITHM): Define.
5966         (INCLUDE_VECTOR): Define.
5967         No longer include <vector> and <algorithm> directly.
5969 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
5971         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5972         to https.
5973         * doc/invoke.texi (Code Gen Options): Ditto.
5975 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
5977         PR lto/78407
5978         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5980 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
5982         rtl-optimization/79125
5983         * cprop.c (local_cprop_pass): Handle cases where we make an
5984         unconditional trap.
5986 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
5988         PR target/61729
5989         PR target/77850
5990         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5991         read from, for big endian.
5993 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
5995         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5996         register pauth builtins for LP64 only.
5998 2017-01-20  Marek Polacek  <polacek@redhat.com>
6000         PR c/79152
6001         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
6002         non-case labels.
6004 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
6006         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
6007         of safelen status.
6008         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
6009         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
6010         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
6012 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6014         PR target/71270
6015         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
6016         in big-endian mode when they are not a single duplicated value.
6018 2017-01-20  Richard Biener  <rguenther@suse.de>
6020         * BASE-VER: Bump to 7.0.1.
6022 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
6024         * omp-low.c (omplow_simd_context): New struct.  Use it...
6025         (lower_rec_simd_input_clauses): ...here and...
6026         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
6027         references to idx, lane, max_vf, is_simt.
6029 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
6031         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
6032         mcpu=nps400.
6034 2017-01-20  Martin Jambor  <mjambor@suse.cz>
6036         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
6037         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
6038         gt-hsa-common.h.
6039         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
6040         (GTFILES): Rename hsa.c to hsa-common.c.
6041         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
6042         * hsa-dump.c: Likewise.
6043         * hsa-gen.c: Likewise.
6044         * hsa-regalloc.c: Likewise.
6045         * ipa-hsa.c: Likewise.
6046         * omp-expand.c: Likewise.
6047         * omp-low.c: Likewise.
6048         * toplev.c: Likewise.
6050 2017-01-20  Marek Polacek  <polacek@redhat.com>
6052         PR c/64279
6053         * doc/invoke.texi: Document -Wduplicated-branches.
6054         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
6055         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
6056         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
6057         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
6058         return 0 only when not OEP_LEXICOGRAPHIC.
6059         (fold_build_cleanup_point_expr): Use the expression
6060         location when building CLEANUP_POINT_EXPR.
6061         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
6062         * tree.c (add_expr): Handle error_mark_node.
6064 2017-01-20  Martin Liska  <mliska@suse.cz>
6066         PR lto/69188
6067         * tree-profile.c (init_ic_make_global_vars): Do not call
6068         finalize_decl.
6069         (gimple_init_gcov_profiler): Likewise.
6071 2017-01-20  Martin Liska  <mliska@suse.cz>
6073         PR ipa/71190
6074         * cgraph.h (maybe_create_reference): Remove argument and
6075         update comment.
6076         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
6077         argument.
6078         * ipa-cp.c (create_specialized_node): Likewise.
6079         * symtab.c (symtab_node::maybe_create_reference): Handle
6080         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
6082 2017-01-20  Martin Liska  <mliska@suse.cz>
6084         * read-rtl-function.c (function_reader::create_function): Use
6085         build_decl instread of build_decl_stat.
6087 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6089         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
6090         * config/i386/avx512dqintrin.h: Ditto.
6091         * config/i386/avx512fintrin.h: Ditto.
6092         * config/i386/i386-builtin-types.def: Add new types.
6093         * gcc/config/i386/i386.c: Handle new types.
6094         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
6095         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
6096         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
6097         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
6098         (__builtin_ia32_kshiftridi): New.
6099         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
6101 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
6103         PR target/78875
6104         PR target/79140
6105         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
6106         define to rs6000_init_stack_protect_guard.
6107         (rs6000_init_stack_protect_guard): New function.
6109 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
6110             Yunqiang Su  <yunqiang.su@imgtec.com>
6112         * config.gcc (supported_defaults): Add madd4.
6113         (with_madd4): Add validation.
6114         (all_defaults): Add madd4.
6115         * config/mips/mips.opt (mmadd4): New option.
6116         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6117         mmadd4.
6118         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6119         __mips_no_madd4.
6120         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
6121         (ISA_HAS_FUSED_MADD4): Likewise.
6122         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
6123         * gcc/doc/install.texi (--with-madd4): Document the new option.
6125 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
6127         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
6128         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
6129         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
6130         (aarch64_init_pauth_hint_builtins): New.
6131         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
6132         (aarch64_expand_builtin): Expand new builtins.
6134 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
6136         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
6137         * combine-stack-adj.c (no_unhandled_cfa): Handle
6138         REG_CFA_TOGGLE_RA_MANGLE.
6139         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
6140         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
6141         info for return address signing.
6142         (aarch64_expand_epilogue): Likewise.
6144 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
6146         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
6147         * config/aarch64/aarch64-protos.h
6148         (aarch64_return_address_signing_enabled): New declaration.
6149         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
6150         New function.
6151         (aarch64_expand_prologue): Sign return address before it's pushed onto
6152         stack.
6153         (aarch64_expand_epilogue): Authenticate return address fetched from
6154         stack.
6155         (aarch64_override_options): Sanity check for ILP32 and ISA level.
6156         (aarch64_attributes): New function attributes for "sign-return-address".
6157         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
6158         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
6159         ("*do_return"): Generate combined instructions according to key index.
6160         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
6161         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
6162         iterators.
6163         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
6164         * config/aarch64/aarch64.opt (msign-return-address=): New.
6165         * doc/extend.texi (AArch64 Function Attributes): Documents
6166         "sign-return-address=".
6167         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
6169 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
6171         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
6172         overall option summary.
6174 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
6176         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
6177         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
6178         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
6179         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
6181 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
6183         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
6184         -mpower9-minmax by default for -mcpu=power9.
6185         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
6186         128-bit floating point.
6188 2017-01-20  Alan Modra  <amodra@gmail.com>
6190         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
6191         optimizing for size.
6193 2017-01-20  Alan Modra  <amodra@gmail.com>
6195         PR target/79144
6196         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
6197         for strcmp and strncmp from corresponding builtin decl.
6199 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
6201         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
6202         instead of i386/rtems-64.h.
6203         * config/i386/rtems-64.h: Remove.
6205 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
6207         PR target/78478
6208         Revert:
6209         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6211         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
6213 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
6215         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
6216         Change int to HOST_WIDE_INT.
6217         * config/aarch64/aarch64-protos.h
6218         (aarch64_simd_gen_const_vector_dup): Likewise.
6219         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
6221 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
6223         * langhooks-def.h (lhd_type_for_size): New decl.
6224         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
6225         * langhooks.c (lhd_type_for_size): New function, taken from
6226         lto_type_for_size.
6228 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
6230         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
6231         define_bypass for CR latency.
6232         (power9-cracked-alu): Update bypass latency and remove power9-branch.
6233         (power9-alu2): Add define_bypass for CR latency.
6234         (power9-cmp): New.
6235         (power9-mul): Update insn latency.
6236         (power9-mul-compare): Update insn latency, bypass latency and remove
6237         power9-branch.
6239 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6241         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
6242         Delete.
6243         * config/aarch64/aarch64.md
6244         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
6245         aarch64_nopcrelative_literal_loads.
6246         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
6248 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
6250         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
6251         TARGET_LOONGSON_3A.
6252         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
6254 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
6256         PR target/78176
6257         * config.gcc (supported_defaults): Add lxc1-sxc1.
6258         (with_lxc1_sxc1): Add validation.
6259         (all_defaults): Add lxc1-sxc1.
6260         * config/mips/mips.opt (mlxc1-sxc1): New option.
6261         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
6262         mlxc1-sxc1.
6263         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
6264         __mips_no_lxc1_sxc1.
6265         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
6266         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
6267         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
6269 2017-01-19  Richard Biener  <rguenther@suse.de>
6271         PR tree-optimization/72488
6272         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
6273         sure to restore SSA info.
6274         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
6276 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
6278         PR rtl-optimization/79121
6279         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
6280         of the inner type when shifting an extended value.
6282 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
6284         PR lto/78407
6285         * symtab.c (symtab_node::equal_address_to): Fix comparing of
6286         interposable aliases.
6288 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
6290         PR target/78516
6291         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
6292         Use the evmergelohi instruction.
6293         (mov_si<mode>_e500_subreg4_2_le): Likewise.
6294         (mov_sitf_e500_subreg8_2_be): Likewise.
6295         (mov_sitf_e500_subreg12_2_le): Likewise.
6296         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
6297         (mov_si<mode>_e500_subreg4_2_be): Likewise.
6298         (mov_sitf_e500_subreg8_2_le): Likewise.
6299         (mov_sitf_e500_subreg12_2_be): Likewise.
6301 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6303         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
6304         attribute from vecsimple to vecperm.
6305         (altivec_vbpermq2): Likewise.
6307 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6309         PR target/79040
6310         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
6312 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6313         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
6314         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
6315         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
6316         case where N arg is SIZE_MAX.
6317         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
6318         (cmpstrsi): Add pattern.
6320 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6322         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6323         __builtin_vec_revb builtins.
6324         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
6325         built-in functions to support generation of the ISA 3.0 XXBR<x>
6326         vector byte reverse instructions.
6327         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
6328         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
6329         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
6330         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
6331         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
6332         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
6333         (P9V_BUILTIN_VEC_REVB): Likewise.
6334         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
6335         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
6336         (p9_xxbrq_v16qi): Likewise.
6337         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
6338         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
6339         (p9_xxbrh_v8hi): Likewise.
6340         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
6341         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
6342         vec_revb built-in functions.
6344 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
6346         PR rtl-optimization/78952
6347         * config/i386/i386.md (any_extract): New code iterator.
6348         (*insvqi_2): Use any_extract for source operand.
6349         (*insvqi_3): Use any_shiftrt for source operand.
6351 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
6353         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
6354         New function.
6355         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
6357 2017-01-18  Matthias Klose  <doko@ubuntu.com>
6359         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
6361 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6363         * config/rs6000/altivec.h (vec_bperm): Change #define.
6364         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
6365         (altivec_vbpermq2): New define_insn.
6366         (altivec_vbpermd): Likewise.
6367         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
6368         function interface.
6369         (VBPERMD): Likewise.
6370         (VBPERM): New polymorphic function interface.
6371         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
6372         Add entries for P9V_BUILTIN_VEC_VBPERM.
6373         * doc/extend.texi: Add interfaces for vec_bperm.
6375 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6377         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
6378         first letter of error messages.
6379         (s390_resolve_overloaded_builtin): Likewise.
6380         * config/s390/s390.c (s390_expand_builtin): Likewise.
6381         (s390_invalid_arg_for_unprototyped_fn): Likewise.
6382         (s390_valid_target_attribute_inner_p): Likewise.
6383         * config/s390/s390.md ("tabort"): Likewise.
6385 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
6387         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
6388         (ISA_AVOID_DIV_HILO): New macro.
6389         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
6390         (ISA_HAS_DDIV): Likewise.
6392 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6394         * doc/invoke.texi (fabi-version): Correct number of occurrences.
6396 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6398         * doc/invoke.texi (fabi-version): Spelling fix.
6400 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6402         PR c++/70182
6403         * doc/invoke.texi (fabi-version): Mention mangling fix for
6404         operator names.
6406 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6408         PR c++/77489
6409         * doc/invoke.texi (fabi-version): Document discriminator mangling.
6411 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
6413         PR target/78875
6414         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
6415         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
6416         the new options.
6417         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
6418         flexible settings.
6419         (stack_protect_test): Ditto.
6420         * config/rs6000/rs6000.opt (mstack-protector-guard=,
6421         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
6422         options.
6423         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
6424         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
6425         -mstack-protector-guard-offset=.
6426         (RS/6000 and PowerPC Options): Ditto.
6428 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
6430         * config/i386/i386.h (MASK_CLASS_P): New define.
6431         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
6432         there are no registers from different register sets also when
6433         mask registers are used.  Update function comment.
6434         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
6435         to (*k/*r) and (*k/*km) alternatives.
6437 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
6439         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
6440         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
6441         (EH_RETURN_HANDLER_RTX): New define.
6442         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
6443         Force frame pointer in EH return functions.
6444         (aarch64_expand_epilogue): Add barrier for eh_return.
6445         (aarch64_final_eh_return_addr): Remove.
6446         (aarch64_eh_return_handler_rtx): New function.
6447         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
6448         Remove.
6449         (aarch64_eh_return_handler_rtx): New prototype.
6451 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6453         * config/rs6000/altivec.h (vec_rlmi): New #define.
6454         (vec_vrlnm): Likewise.
6455         (vec_rlnm): Likewise.
6456         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
6457         (UNSPEC_VRLNM): Likewise.
6458         (VIlong): New mode iterator.
6459         (altivec_vrl<VI_char>mi): New define_insn.
6460         (altivec_vrl<VI_char>nm): Likewise.
6461         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
6462         function entry.
6463         (VRLDNM): Likewise.
6464         (RLNM): New polymorphic function entry.
6465         (VRLWMI): New monomorphic function entry.
6466         (VRLDMI): Likewise.
6467         (RLMI): New polymorphic function entry.
6468         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
6469         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
6470         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
6471         vec_vrlnm.
6473 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6475         PR debug/78839
6476         * dwarf2out.c (field_byte_offset): Restore the
6477         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
6478         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
6479         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
6480         of build2 + fold.
6482 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6484         PR ada/67205
6485         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
6487 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6489         PR debug/71669
6490         * dwarf2out.c (add_data_member_location_attribute): For constant
6491         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
6492         instead of DW_AT_data_member_location, DW_AT_bit_offset and
6493         DW_AT_byte_size attributes.
6495 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6497         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
6498         after forcing to constant memory when the code model is medium.
6500 2017-01-17  Julia Koval  <julia.koval@intel.com>
6502         PR target/76731
6503         * config/i386/avx512fintrin.h
6504         (_mm512_i32gather_ps): Change __addr type to void const*.
6505         (_mm512_mask_i32gather_ps): Ditto.
6506         (_mm512_i32gather_pd): Ditto.
6507         (_mm512_mask_i32gather_pd): Ditto.
6508         (_mm512_i64gather_ps): Ditto.
6509         (_mm512_mask_i64gather_ps): Ditto.
6510         (_mm512_i64gather_pd): Ditto.
6511         (_mm512_mask_i64gather_pd): Ditto.
6512         (_mm512_i32gather_epi32): Ditto.
6513         (_mm512_mask_i32gather_epi32): Ditto.
6514         (_mm512_i32gather_epi64): Ditto.
6515         (_mm512_mask_i32gather_epi64): Ditto.
6516         (_mm512_i64gather_epi32): Ditto.
6517         (_mm512_mask_i64gather_epi32): Ditto.
6518         (_mm512_i64gather_epi64): Ditto.
6519         (_mm512_mask_i64gather_epi64): Ditto.
6520         (_mm512_i32scatter_ps): Change __addr type to void*.
6521         (_mm512_mask_i32scatter_ps): Ditto.
6522         (_mm512_i32scatter_pd): Ditto.
6523         (_mm512_mask_i32scatter_pd): Ditto.
6524         (_mm512_i64scatter_ps): Ditto.
6525         (_mm512_mask_i64scatter_ps): Ditto.
6526         (_mm512_i64scatter_pd): Ditto.
6527         (_mm512_mask_i64scatter_pd): Ditto.
6528         (_mm512_i32scatter_epi32): Ditto.
6529         (_mm512_mask_i32scatter_epi32): Ditto.
6530         (_mm512_i32scatter_epi64): Ditto.
6531         (_mm512_mask_i32scatter_epi64): Ditto.
6532         (_mm512_i64scatter_epi32): Ditto.
6533         (_mm512_mask_i64scatter_epi32): Ditto.
6534         (_mm512_i64scatter_epi64): Ditto.
6535         (_mm512_mask_i64scatter_epi64): Ditto.
6536         * config/i386/avx512pfintrin.h
6537         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
6538         (_mm512_mask_prefetch_i32gather_ps): Ditto.
6539         (_mm512_mask_prefetch_i64gather_pd): Ditto.
6540         (_mm512_mask_prefetch_i64gather_ps): Ditto.
6541         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
6542         (_mm512_prefetch_i32scatter_ps): Ditto.
6543         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
6544         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
6545         (_mm512_prefetch_i64scatter_pd): Ditto.
6546         (_mm512_prefetch_i64scatter_ps): Ditto.
6547         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
6548         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
6549         * config/i386/avx512vlintrin.h
6550         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
6551         (_mm_mmask_i32gather_ps): Ditto.
6552         (_mm256_mmask_i32gather_pd): Ditto.
6553         (_mm_mmask_i32gather_pd): Ditto.
6554         (_mm256_mmask_i64gather_ps): Ditto.
6555         (_mm_mmask_i64gather_ps): Ditto.
6556         (_mm256_mmask_i64gather_pd): Ditto.
6557         (_mm_mmask_i64gather_pd): Ditto.
6558         (_mm256_mmask_i32gather_epi32): Ditto.
6559         (_mm_mmask_i32gather_epi32): Ditto.
6560         (_mm256_mmask_i32gather_epi64): Ditto.
6561         (_mm_mmask_i32gather_epi64): Ditto.
6562         (_mm256_mmask_i64gather_epi32): Ditto.
6563         (_mm_mmask_i64gather_epi32): Ditto.
6564         (_mm256_mmask_i64gather_epi64): Ditto.
6565         (_mm_mmask_i64gather_epi64): Ditto.
6566         (_mm256_i32scatter_ps): Change __addr type to void*.
6567         (_mm256_mask_i32scatter_ps): Ditto.
6568         (_mm_i32scatter_ps): Ditto.
6569         (_mm_mask_i32scatter_ps): Ditto.
6570         (_mm256_i32scatter_pd): Ditto.
6571         (_mm256_mask_i32scatter_pd): Ditto.
6572         (_mm_i32scatter_pd): Ditto.
6573         (_mm_mask_i32scatter_pd): Ditto.
6574         (_mm256_i64scatter_ps): Ditto.
6575         (_mm256_mask_i64scatter_ps): Ditto.
6576         (_mm_i64scatter_ps): Ditto.
6577         (_mm_mask_i64scatter_ps): Ditto.
6578         (_mm256_i64scatter_pd): Ditto.
6579         (_mm256_mask_i64scatter_pd): Ditto.
6580         (_mm_i64scatter_pd): Ditto.
6581         (_mm_mask_i64scatter_pd): Ditto.
6582         (_mm256_i32scatter_epi32): Ditto.
6583         (_mm256_mask_i32scatter_epi32): Ditto.
6584         (_mm_i32scatter_epi32): Ditto.
6585         (_mm_mask_i32scatter_epi32): Ditto.
6586         (_mm256_i32scatter_epi64): Ditto.
6587         (_mm256_mask_i32scatter_epi64): Ditto.
6588         (_mm_i32scatter_epi64): Ditto.
6589         (_mm_mask_i32scatter_epi64): Ditto.
6590         (_mm256_i64scatter_epi32): Ditto.
6591         (_mm256_mask_i64scatter_epi32): Ditto.
6592         (_mm_i64scatter_epi32): Ditto.
6593         (_mm_mask_i64scatter_epi32): Ditto.
6594         (_mm256_i64scatter_epi64): Ditto.
6595         (_mm256_mask_i64scatter_epi64): Ditto.
6596         (_mm_i64scatter_epi64): Ditto.
6597         (_mm_mask_i64scatter_epi64): Ditto.
6598         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
6599         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
6600         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
6601         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
6602         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
6603         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
6604         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
6605         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
6606         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
6607         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
6608         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
6609         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
6610         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
6611         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
6612         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
6613         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
6614         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
6615         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
6616         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
6617         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
6618         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
6619         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
6620         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
6621         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
6622         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
6623         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
6624         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
6625         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
6626         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
6627         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
6628         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
6629         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
6630         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
6631         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
6632         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
6633         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
6634         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
6635         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
6636         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
6637         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
6638         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
6639         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
6640         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
6641         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
6642         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
6643         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
6644         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
6645         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
6646         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
6647         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
6648         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
6649         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
6650         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
6651         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
6652         definitions accordingly.
6654 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
6655             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
6657         PR target/79079
6658         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
6659         gen_lowpart.
6661 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
6663         PR target/79058
6664         * ira-conflicts.c (ira_build_conflicts): Update total conflict
6665         hard regs for inner regno.
6667 2017-01-17  Martin Liska  <mliska@suse.cz>
6669         PR ipa/71207
6670         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
6671         assumption and add comment.
6673 2017-01-17  Nathan Sidwell  <nathan@acm.org>
6675         * ipa-visibility.c (localize_node): New function, broken out of ...
6676         (function_and_variable_visibility): ... here. Call it.
6678 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
6680         PR middle-end/77445
6681         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6682         correctly set frequency of oudgoing edge.
6683         (duplicate_thread_path): Fix profile updating.
6685 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6687         PR other/79046
6688         * configure.ac: Add GCC_BASE_VER.
6689         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6690         version from BASE-VER file.
6691         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
6692         (gcc.o): Depend on $(BASEVER).
6693         * common.opt (dumpfullversion): New option.
6694         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
6695         * doc/invoke.texi: Document -dumpfullversion.
6696         * doc/install.texi: Document --with-gcc-major-version-only.
6697         * configure: Regenerated.
6699 2017-01-17  Richard Biener  <rguenther@suse.de>
6701         PR tree-optimization/71433
6702         * tree-vrp.c (register_new_assert_for): Merge same asserts
6703         on all incoming edges.
6704         (process_assert_insertions_for): Handle insertions at the
6705         beginning of BBs.
6707 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
6709         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
6710         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
6712 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6714         PR target/78633
6715         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
6716         RTL sharing.
6718 2017-01-17  Alan Modra  <amodra@gmail.com>
6720         PR target/79066
6721         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
6722         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
6723         symbolic stack limit when pic.
6725 2017-01-16  Martin Sebor  <msebor@redhat.com>
6727         PR tree-optimization/78608
6728         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
6730 2017-01-16  Jeff Law  <law@redhat.com>
6732         Revert:
6733         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
6734         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
6735         for several include directories that may be relative to sysroot.
6736         * config/i386/x-mingw32 (gplus_includedir): Define.
6737         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
6738         (native_system_includedir): Likewise.
6739         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
6740         override if TARGET_SYSTEM_ROOT is defined.
6741         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
6743         PR tree-optimization/79090
6744         PR tree-optimization/33562
6745         PR tree-optimization/61912
6746         PR tree-optimization/77485
6747         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
6748         and computed trims into the dump file.
6750 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
6752         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
6754 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
6756         PR c/79089
6757         * gimplify.c (gimplify_init_constructor): If want_value and
6758         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
6759         fix.
6761         PR target/79080
6762         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
6763         sequence.  Formatting fixes.
6764         (doloop_optimize): Formatting fixes.
6766         PR driver/49726
6767         * gcc.c (debug_level_greater_than_spec_func): New function.
6768         (static_spec_functions): Add debug-level-gt spec function.
6769         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
6770         !g0.
6771         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6772         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
6773         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
6774         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
6775         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
6776         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
6778 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
6780         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
6781         QImode fixups to general and mask registers only.
6783 2017-01-16  Carl Love  <cel@us.ibm.com>
6785         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
6786         for built-in functions
6787         vector signed char vec_nabs (vector signed char)
6788         vector signed short vec_nabs (vector signed short)
6789         vector signed int vec_nabs (vector signed int)
6790         vector signed long long vec_nabs (vector signed long long)
6791         vector float vec_nabs (vector float)
6792         vector double vec_nabs (vector double)
6793         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
6794         and NABS overload.
6795         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
6796         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
6797         * doc/extend.texi: Update the documentation file for the new built-in
6798         functions.
6800 2017-01-16  Martin Sebor  <msebor@redhat.com>
6802         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
6803         message.
6805 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6807         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
6808         UNSPEC_VSX__XXSPLTD to require special splat handling.
6810 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
6812         PR bootstrap/78616
6813         * system.h: Poison strndup.
6815 2017-01-16  Alan Modra  <amodra@gmail.com>
6817         PR target/79098
6818         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
6819         use a switch.
6821 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
6823         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
6825 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
6827         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
6828         call recog here.  Assert that INSN_CODE (insn) is non-negative.
6830 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
6832         PR target/72749
6833         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
6834         fallthrough.
6835         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
6836         in the currently scheduled RTL fragment.
6838 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
6840         PR rtl-optimization/78751
6841         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
6842         give up.
6844 2017-01-14  Jeff Law  <law@redhat.com>
6846         PR tree-optimization/79090
6847         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
6848         variable length stores.
6849         (compute_trims): Delete dead assignment to *trim_tail.
6850         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
6851         zero length.
6853 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
6855         PR rtl-optimization/78626
6856         PR rtl-optimization/78727
6857         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
6858         of a block, and split such blocks after everything else is finished.
6860 2017-01-14  Alan Modra  <amodra@gmail.com>
6862         PR target/72749
6863         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
6864         target legitimate_combined_insn.
6865         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
6866         (rs6000_legitimate_combined_insn): New function.
6867         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
6868         all uses.
6869         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
6870         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
6871         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
6873 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
6875         * doc/frontends.texi (G++ and GCC): Remove references to Java.
6877 2017-01-13  Jeff Law  <law@redhat.com>
6879         PR tree-optimization/33562
6880         PR tree-optimization/61912
6881         PR tree-optimization/77485
6882         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
6883         a statement.
6884         (delete_dead_assignment): Likewise.
6885         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
6886         statement to delete_dead_call and delete_dead_assignment.
6888 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
6890         PR c/78304
6891         * substring-locations.c (format_warning_va): Strengthen case 1 so
6892         that both endpoints of the substring must be within the format
6893         range for just the substring to be printed.
6895 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
6897         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
6898         * config/i386/i386.c (ix86_target_string): Add missing options
6899         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
6900         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
6901         flags_other and ix86_target_other to flags2_other.  Display unknown
6902         isa2 options.
6903         (ix86_valid_target_attribute_inner_p): Add missing options and
6904         reorder options by implied ISAs, as in ix86_target_string.
6906 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
6908         * hash-table.h (hash_table::too_empty_p): New function.
6909         (hash_table::expand): Use it.
6910         (hash_table::traverse): Likewise.
6911         (hash_table::empty_slot): Use sizeof (value_type) instead of
6912         sizeof (PTR) to convert bytes to elements.  Shrink the table
6913         if the current size is excessive for the current number of
6914         elements.
6916 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
6918         * ira-costs.c (record_reg_classes): Break from the inner loop
6919         early once alt_fail is known to be true.  Update outer loop
6920         handling accordingly.
6922 2017-01-13  Jeff Law  <law@redhat.com>
6924         * tree-ssa-dse.c (decrement_count): New function.
6925         (increment_start_addr, maybe_trim_memstar_call): Likewise.
6926         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
6927         when we know the partially dead statement is a mem* function.
6929         PR tree-optimization/61912
6930         PR tree-optimization/77485
6931         * tree-ssa-dse.c: Include expr.h.
6932         (maybe_trim_constructor_store): New function.
6933         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
6935         PR tree-optimization/33562
6936         PR tree-optimization/61912
6937         PR tree-optimization/77485
6938         * doc/invoke.texi: Document new dse-max-object-size param.
6939         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
6940         * tree-ssa-dse.c: Include params.h.
6941         (dse_store_status): New enum.
6942         (initialize_ao_ref_for_dse): New, partially extracted from
6943         dse_optimize_stmt.
6944         (valid_ao_ref_for_dse, normalize_ref): New.
6945         (setup_live_bytes_from_ref, compute_trims): Likewise.
6946         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
6947         (maybe_trim_partially_dead_store): Likewise.
6948         (maybe_trim_complex_store): Likewise.
6949         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
6950         Track what bytes live from the original store.  Return tri-state
6951         for dead, partially dead or live.
6952         (dse_dom_walker): Add constructor, destructor and new private members.
6953         (delete_dead_call, delete_dead_assignment): New extracted from
6954         dse_optimize_stmt.
6955         (dse_optimize_stmt): Make a member of dse_dom_walker.
6956         Use initialize_ao_ref_for_dse.
6958         PR tree-optimization/33562
6959         PR tree-optimization/61912
6960         PR tree-optimization/77485
6961         * sbitmap.h (bitmap_count_bits): Prototype.
6962         (bitmap_clear_range, bitmap_set_range): Likewise.
6963         * sbitmap.c (bitmap_clear_range): New function.
6964         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6966 2017-01-13  Martin Liska  <mliska@suse.cz>
6968         PR ipa/79043
6969         * function.c (set_cfun): Add new argument force.
6970         * function.h (set_cfun): Likewise.
6971         * ipa-inline-transform.c (inline_call): Use the function when
6972         strict alising from is dropped for function we inline to.
6974 2017-01-13  Richard Biener  <rguenther@suse.de>
6976         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6977         for dumping GIMPLE INTEGER_CSTs.
6979 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6981         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6982         to 201112L since C++17.
6984 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
6986         PR sanitizer/78887
6987         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6988         if -fsanitize=kernel-address is present.
6990 2017-01-13  Richard Biener  <rguenther@suse.de>
6992         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6993         as _Literal ( type ) number in case usual suffixes do not
6994         preserve all information.
6996 2017-01-13  Richard Biener  <rguenther@suse.de>
6998         PR tree-optimization/77283
6999         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
7000         and ssa-iterators.h.
7001         (is_feasible_trace): Implement a cost model based on joiner
7002         PHI node uses.
7004 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7006         PR target/79004
7007         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
7008         char or short to __float128/_Float128 directly.
7010 2017-01-12  Martin Sebor  <msebor@redhat.com>
7012         to -Wformat-overflow.
7013         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
7014         (min_bytes_remaining): Same.
7015         (get_string_length): Same.
7016         (format_string): Same.
7017         (format_directive): Same.
7018         (add_bytes): Same.
7019         (pass_sprintf_length::handle_gimple_call): Same.
7021 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
7023         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
7024         info.nowrite calls with no lhs that can't throw.  Return bool
7025         whether gsi_remove has been called or not.
7026         (pass_sprintf_length::handle_gimple_call): Return bool whether
7027         try_substitute_return_value called gsi_remove.  Formatting fix.
7028         (pass_sprintf_length::execute): Don't use gsi_remove if
7029         handle_gimple_call returned true.
7031         PR bootstrap/79069
7032         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
7033         be removed due to side-effects, don't remove following barrier nor
7034         turn the successor edge into fallthru edge.
7036 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7038         PR target/79044
7039         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
7040         element-reversing loads and stores as not swappable.
7042 2017-01-12  Nathan Sidwell  <nathan@acm.org>
7043             Nicolai Stange  <nicstange@gmail.com>
7045         * combine.c (try_combine): Don't ignore result of overlap checking
7046         loop.  Combine overlap & asm check into single loop.
7048 2017-01-12  Richard Biener  <rguenther@suse.de>
7050         * tree-pretty-print.c (dump_generic_node): Provide -gimple
7051         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
7053 2017-01-12  Richard Biener  <rguenther@suse.de>
7055         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
7056         and TS_TARGET_OPTION directly derive from TS_BASE.
7057         * tree-core.h (tree_optimization_option): Derive from tree_base.
7058         (tree_target_option): Likewise.
7060 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
7062         * config/i386/i386.c (memory_address_length): Increase len
7063         only when rip_relative_addr_p returns false.
7065 2017-01-11  Julia Koval  <julia.koval@intel.com>
7067         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
7068         (OPTION_MASK_ISA_SGX_SET): New.
7069         (ix86_handle_option): Handle OPT_msgx.
7070         * config.gcc: Added sgxintrin.h.
7071         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
7072         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
7073         * config/i386/i386.c (ix86_target_string): Add -msgx.
7074         (PTA_SGX): New.
7075         (ix86_option_override_internal): Handle new options.
7076         (ix86_valid_target_attribute_inner_p): Add sgx.
7077         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
7078         * config/i386/i386.opt: Add msgx.
7079         * config/i386/sgxintrin.h: New file.
7080         * config/i386/x86intrin.h: Add sgxintrin.h.
7082 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
7084         PR c++/71537
7085         * fold-const.c (maybe_nonzero_address): Return 1 for function
7086         local objects.
7087         (tree_single_nonzero_warnv_p): Don't handle function local objects
7088         here.
7090         PR c++/72813
7091         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
7092         of c-header.
7094 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
7096         PR driver/78877
7097         * opts.c: Include "spellcheck.h"
7098         (struct string_fragment): New struct.
7099         (struct edit_distance_traits<const string_fragment &>): New
7100         struct.
7101         (get_closest_sanitizer_option): New function.
7102         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
7104 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
7106         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
7107         by 12.
7108         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
7109         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
7110         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
7111         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
7112         for initial die_offset if dwarf_split_debug_info.
7113         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
7114         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
7115         fields.
7116         (output_skeleton_debug_sections): Formatting fix.  Use
7117         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
7118         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
7120 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
7122         * config/arm/cortex-a53.md: Add bypasses for
7123         cortex_a53_r2f_cvt.
7124         (cortex_a53_r2f): Only use for transfers.
7125         (cortex_a53_f2r): Likewise.
7126         (cortex_a53_r2f_cvt): Add reservation for conversions.
7127         (cortex_a53_f2r_cvt): Likewise.
7129 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
7131         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
7132         to all inlined functions, change static to extern.
7134 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
7136         PR target/78253
7137         * config/arm/arm.c (legitimize_pic_address): Handle reference to
7138         weak symbol.
7139         (arm_assemble_integer): Likewise.
7141 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
7143         * config.gcc: Use new awk script to check CPU, FPU and architecture
7144         parameters for --with-... options.
7145         * config/arm/parsecpu.awk: New file
7146         * config/arm/arm-cpus.in: New file.
7147         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
7148         files.
7149         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
7150         files.
7151         * config/arm/t-arm: Update dependency rules.
7152         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
7153         of processing .def files.
7154         * config/arm/genopt.sh: Deleted.
7155         * config/arm/gentune.sh: Deleted.
7156         * config/arm/arm-cores.def: Deleted.
7157         * config/arm/arm-arches.def: Deleted.
7158         * config/arm/arm-fpus.def: Deleted.
7159         * config/arm/arm-tune.md: Regenerated.
7160         * config/arm/arm-tables.opt: Regenerated.
7161         * config/arm/arm-cpu.h: New generated file.
7162         * config/arm/arm-cpu-data.h: New generated file.
7163         * config/arm/arm-cpu-cdata.h: New generated file.
7165 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
7167         PR lto/79042
7168         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
7169         bit.
7170         (input_varpool_node): Unpack dynamically_initialized bit.
7172 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7174         PR rtl-optimization/79032
7175         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
7176         the alignment of the adjusted memory reference against that of MODE,
7177         instead of the alignment of the original memory reference.
7179 2017-01-11  Martin Jambor  <mjambor@suse.cz>
7181         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
7182         test.
7183         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
7184         decorated functions.
7186 2017-01-11  Richard Biener  <rguenther@suse.de>
7188         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
7189         set range/nonnull info for PHI results.  Do not set it on
7190         stmts marked for removal.
7192 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
7194         * expr.c (store_field): In the bitfield case, fetch the return value
7195         from the registers before applying a single big-endian adjustment.
7196         Always do a final load for a BLKmode value not larger than a word.
7198 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
7200         PR c++/77949
7201         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7202         that we correctly handle column numbers greater than
7203         LINE_MAP_MAX_COLUMN_NUMBER.
7205 2017-01-10  Martin Sebor  <msebor@redhat.com>
7207         PR middle-end/78245
7208         * gimple-ssa-sprintf.c (get_destination_size): Call
7209         {init,fini}object_sizes.
7210         * tree-object-size.c (addr_object_size): Adjust.
7211         (pass_through_call): Adjust.
7212         (pass_object_sizes::execute): Adjust.
7213         * tree-object-size.h (fini_object_sizes): Declare.
7215 2017-01-10  Martin Sebor  <msebor@redhat.com>
7217         PR tree-optimization/78775
7218         * builtins.c (get_size_range): Move...
7219         * calls.c: ...to here.
7220         (alloc_max_size): Accept zero argument.
7221         (operand_signed_p): Remove.
7222         (maybe_warn_alloc_args_overflow): Call get_size_range.
7223         * calls.h (get_size_range): Declare.
7225 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
7227         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
7228         from TI's devices.csv file as of September 2016.
7229         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
7231 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
7233         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
7234         * doc/invoke.texi: Likewise.
7235         * doc/md.texi: Likewise.
7236         * doc/objc.texi: Likewise.
7238 2017-01-10  Joshua Conner  <joshconner@google.com>
7240         * config/arm/fuchsia-elf.h: New file.
7241         * config/fuchsia.h: New file.
7242         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
7243         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
7244         targets.
7245         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
7247 2016-01-10  Richard Biener  <rguenther@suse.de>
7249         PR tree-optimization/79034
7250         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
7251         Propagate out degenerate PHIs in the joiner.
7253 2017-01-10  Martin Liska  <mliska@suse.cz>
7255         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
7256         (sort_congruence_classes_by_decl_uid): Likewise.
7257         (sort_congruence_class_groups_by_decl_uid): Likewise.
7258         (sem_item_optimizer::merge_classes): Sort class, groups in these
7259         classes and members in the groups by DECL_UID of declarations.
7260         This would make merge operations stable.
7262 2017-01-10  Martin Liska  <mliska@suse.cz>
7264         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
7265         usage of m_classes_vec.
7266         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
7267         (sem_item_optimizer::get_group_by_hash): Likewise.
7268         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7269         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
7270         (sem_item_optimizer::verify_classes): Likewise.
7271         (sem_item_optimizer::process_cong_reduction): Likewise.
7272         (sem_item_optimizer::dump_cong_classes): Likewise.
7273         (sem_item_optimizer::merge_classes): Likewise.
7274         * ipa-icf.h (congruence_class_hash): Rename from
7275         congruence_class_group_hash.  Remove declaration of m_classes_vec.
7277 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
7279         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
7280         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
7281         * config.gcc: Add avx512vpopcntdqintrin.h.
7282         * config/i386/avx512vpopcntdqintrin.h: New.
7283         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
7284         * config/i386/i386-builtin-types.def: Add new types.
7285         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
7286         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
7287         __builtin_ia32_vpopcountq_v8di_mask): New.
7288         * config/i386/i386-c.c (ix86_target_macros_internal): Define
7289         __AVX512VPOPCNTDQ__.
7290         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
7291         (PTA_AVX512VPOPCNTDQ): Define.
7292         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
7293         TARGET_AVX512VPOPCNTDQ_P): Define.
7294         * config/i386/i386.opt: Add mavx512vpopcntdq.
7295         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
7296         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
7298 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7300         PR middle-end/77484
7301         * predict.def (PRED_CALL): Set to 67.
7303 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
7305         * expr.c (store_field): In the bitfield case, if the value comes from
7306         a function call and is of an aggregate type returned in registers, do
7307         not modify the field mode; extract the value in all cases if the mode
7308         is BLKmode and the size is not larger than a word.
7310 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
7312         PR target/71017
7313         * config/i386/cpuid.h: Fix undefined behavior.
7315 2017-01-04  Jeff Law  <law@redhat.com>
7317         PR tree-optimization/79007
7318         PR tree-optimization/67955
7319         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
7320         conservative for pt.null when flag_non_call_exceptions is on.
7322 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
7324         PR translation/79019
7325         PR translation/79020
7326         * params.def (PARAM_INLINE_MIN_SPEEDUP,
7327         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
7328         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
7329         in descriptions.
7330         * config/avr/avr.opt (maccumulate-args): Likewise.
7331         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
7332         * common.opt (freport-bug): Likewise.
7333         * cif-code.def (CIF_FINAL_ERROR): Likewise.
7334         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
7335         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
7336         translatable string.
7337         * config/i386/i386.c (function_value_32): Likewise.
7338         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
7339         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
7340         Likewise.
7341         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
7342         * common/config/msp430/msp430-common.c (msp430_handle_option):
7343         Likewise.
7344         * symtab.c (symtab_node::verify_base): Likewise.
7345         * opts.c (set_debug_level): Likewise.
7346         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
7347         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7348         missing whitespace to translatable strings.
7349         * config/avr/avr.md (bswapsi2): Fix typo in comment.
7350         * config/sh/superh.h: Likewise.
7351         * config/i386/xopintrin.h: Likewise.
7352         * config/i386/znver1.md: Likewise.
7353         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
7354         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7355         * double-int.h (struct double_int): Likewise.
7356         * double-int.c (div_and_round_double): Likewise.
7357         * wide-int.cc: Likewise.
7358         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7359         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7360         * cfgcleanup.c (crossjumps_occured): Renamed to ...
7361         (crossjumps_occurred): ... this.
7362         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
7363         Adjust all uses.
7365         PR tree-optimization/78899
7366         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
7367         returning bool return struct loop *, NULL for failure and the new
7368         loop on success.
7369         (versionable_outer_loop_p): Don't version outer loop if it has
7370         dont_vectorized bit set.
7371         (tree_if_conversion): When versioning outer loop, ensure
7372         tree_if_conversion is performed also on the inner loop of the
7373         non-vectorizable outer loop copy.
7374         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
7375         LOOP_VECTORIZED in inner loop of the scalar outer loop and
7376         prevent vectorization of it.
7377         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
7378         the outer loop vectorization of the non-scalar version is attempted
7379         before vectorization of the inner loop in scalar version.  If
7380         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
7381         vectorization of its inner loop.
7382         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
7383         has 2 inner loops, rename also on edges from bb whose single pred
7384         is outer_loop->header.  Fix typo in function comment.
7386 2017-01-09  Martin Sebor  <msebor@redhat.com>
7388         PR bootstrap/79033
7389         * asan.c (asan_emit_stack_protection): Increase local buffer size
7390         to avoid snprintf truncation warning.
7392 2017-01-09  Andrew Pinski  <apinski@cavium.com>
7394         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
7395         to reference thunderx2t99 for the tuning structure
7396         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
7397         Rename to ...
7398         (thunderx2t99_extra_costs): This.
7399         * config/aarch64/aarch64-tune.md: Regenerate.
7400         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
7401         (vulcan_addrcost_table): This.
7402         (vulcan_regmove_cost): Rename to ...
7403         (thunderx2t99_regmove_cost): This.
7404         (vulcan_vector_cost): Rename to ...
7405         (thunderx2t99_vector_cost): this.
7406         (vulcan_branch_cost): Rename to ...
7407         (thunderx2t99_branch_cost): This.
7408         (vulcan_tunings): Rename to ...
7409         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
7410         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
7412 2017-01-09  Martin Jambor  <mjambor@suse.cz>
7414         PR ipa/78365
7415         PR ipa/78599
7416         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
7417         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
7418         (propagate_vr_accross_jump_function): Use the above function for all
7419         value range computations for pass-through jump functions and type
7420         converasion from explicit value range values.
7421         (ipcp_propagate_stage): Do not attempt to deduce types of formal
7422         parameters from TYPE_ARG_TYPES.
7423         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
7424         (ipa_write_node_info): Stream type of the actual argument.
7425         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
7427 2017-01-09  Martin Liska  <mliska@suse.cz>
7429         PR pch/78970
7430         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
7431         (lookup_compiler): Do not show error message with have_E.
7433 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
7435         PR tree-optimization/78938
7436         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
7437         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
7438         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
7439         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
7440         fixes.
7442 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7444         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
7445         is const0_rtx.
7447 2017-01-09  Richard Biener  <rguenther@suse.de>
7449         PR tree-optimization/78997
7450         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
7451         name condition properly.
7453 2017-01-09  Richard Biener  <rguenther@suse.de>
7455         PR debug/79000
7456         * dwarf2out.c (is_cxx): New overload with context.
7457         (is_naming_typedef_decl): Use it.
7459 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
7461         * invoke.texi (Option Summary): Correct spacing in option lists
7462         and add line breaks to fix over-long lines.
7464 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
7466         PR middle-end/17660
7468         * extend.texi (Common Variable Attributes): Add xref to GCC
7469         Internals manual to explain mode attribute keywords.
7471 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
7473         PR other/16519
7474         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
7475         and Preprocessor Options.
7476         (Options for Linking): Document -pthread here....
7477         (RS/6000 and PowerPC Options): ...not here.
7478         (Solaris 2 Options): ...or here.
7479         * doc/cppopts.texi: Document -pthread.
7481 2017-01-08  Martin Sebor  <msebor@redhat.com>
7483         PR middle-end/77708
7484         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
7485         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
7486         New member functions.
7487         (format_directive): Used them.
7488         (add_bytes): Same.
7489         (pass_sprintf_length::handle_gimple_call): Same.
7490         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
7491         to avoid truncation for any argument.
7492         (extract_affine_mul): Same.
7493         * tree.c (get_file_function_name): Same.
7495 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7497         PR middle-end/77484
7498         * predict.def (PRED_INDIR_CALL): Set to 86.
7500 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7502         PR preprocessor/54124
7503         * doc/cppopts.texi: Reformat -d subtable to list the full name
7504         of the options.  Add cross-reference to the docs for the general
7505         compiler -d options.
7506         * doc/invoke.texi (Developer Options): Add cross-reference to the
7507         preprocessor-specific -d option documentation.
7509 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7511         PR preprocessor/13498
7512         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
7513         redudant material, and reflect new command-line options.
7514         (System Headers): Likewise.
7516 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7518         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
7519         -isystem, and -idirafter.  Copy-edit.
7520         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
7521         default for -ftrack-macro-expansion.  Delete obsolete and
7522         badly-formatted implementation details about -fdebug-cpp output.
7523         * doc/cppwarnopts.texi: Copy-edit.
7525 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
7527         PR c++/72803
7528         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
7529         that the transition from a max line width >= 1<<10 to narrower
7530         lines works correctly.
7532 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
7534         * doc/options.texi (PerFunction): New.
7535         * opt-functions.awk (switch_flags): Map both Optimization and
7536         PerFunction to CL_OPTIMIZATION.
7537         * opth-gen.awk: Test for PerFunction flag along with
7538         Optimization.
7539         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
7540         it only when the latter is present.  Skip those that don't in
7541         the hash function generator.
7542         * common.opt (fvar-tracking): Mark as PerFunction instead of
7543         Optimization.
7544         (fvar-tracking-assignments): Likewise.
7545         (fvar-tracking-assignments-toggle): Likewise.
7546         (fvar-tracking-uninit): Likewise.
7548 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
7550         PR translation/79018
7551         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
7552         the and store.
7554 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
7556         PR target/57583
7557         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
7558         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
7559         TARGET_LONG_JUMP_TABLE_OFFSETS.
7560         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
7561         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
7562         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
7563         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
7564         * config/m68k/m68k.md (tablejump expander): Likewise.
7565         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
7566         TARGET_LONG_JUMP_TABLE_OFFSETS.
7567         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
7568         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
7570 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7571             David Holsgrove <david.holsgrove@xilinx.com>
7573         * common/config/microblaze/microblaze-common.c
7574         (TARGET_EXCEPT_UNWIND_INFO): Remove.
7575         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
7576         New prototype.
7577         * config/microblaze/microblaze.c (microblaze_must_save_register)
7578         (microblaze_expand_epilogue, microblaze_return_addr): Handle
7579         calls_eh_return.
7580         (microblaze_eh_return): New function.
7581         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
7582         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
7583         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
7584         * config/microblaze/microblaze.md (eh_return): New pattern.
7586 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
7588         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
7589         GCC_DIAGNOSTIC_STRINGIFY): Define.
7591         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
7593 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7595         * config/arm/arm.md (<mcrr>): New.
7596         (<mrrc>): New.
7597         * config/arm/arm.c (arm_arch5te): New.
7598         (arm_option_override): Set arm_arch5te.
7599         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
7600         and mrrc2.
7601         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
7602         (arm_mcrr_qualifiers): ... this. New.
7603         (MRRC_QUALIFIERS): Define to...
7604         (arm_mrrc_qualifiers): ... this. New.
7605         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
7606         __arm_mrrc2): New.
7607         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
7608         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
7609         (MRRCI, mrrc, MRRC): New.
7610         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
7611         VUNSPEC_MRRC2): New.
7613 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7615         * config/arm/arm.md (<mcr>): New.
7616         (<mrc>): New.
7617         * config/arm/arm.c (arm_coproc_builtin_available): Add
7618         support for mcr, mrc, mcr2 and mrc2.
7619         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
7620         (arm_mcr_qualifiers): ... this. New.
7621         (MRC_QUALIFIERS): Define to ...
7622         (arm_mrc_qualifiers): ... this. New.
7623         (MCR_QUALIFIERS): Define to ...
7624         (arm_mcr_qualifiers): ... this. New.
7625         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
7626         __arm_mrc2): New.
7627         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
7628         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
7629         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
7630         VUNSPEC_MRC2): New.
7632 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7634         * config/arm/arm.md (*ldc): New.
7635         (*stc): New.
7636         (<ldc>): New.
7637         (<stc>): New.
7638         * config/arm/arm.c (arm_coproc_builtin_available): Add
7639         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
7640         (arm_coproc_ldc_stc_legitimate_address): New.
7641         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
7642         'qualifier_const_pointer'.
7643         (LDC_QUALIFIERS): Define to...
7644         (arm_ldc_qualifiers): ... this. New.
7645         (STC_QUALIFIERS): Define to...
7646         (arm_stc_qualifiers): ... this. New.
7647         * config/arm/arm-protos.h
7648         (arm_coproc_ldc_stc_legitimate_address): New.
7649         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
7650         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
7651         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
7652         stc2, stcl, stc2l): New.
7653         * config/arm/constraints.md (Uz): New.
7654         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
7655         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
7656         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
7657         VUNSPEC_STC2L): New.
7659 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7661         * config/arm/arm.md (<cdp>): New.
7662         * config/arm/arm.c (neon_const_bounds): Rename this ...
7663         (arm_const_bounds): ... this.
7664         (arm_coproc_builtin_available): New.
7665         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
7666         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
7667         (CDP_QUALIFIERS): Define to...
7668         (arm_cdp_qualifiers): ... this. New.
7669         (void_UP): Define.
7670         (arm_expand_builtin_args): Add case for 6 arguments.
7671         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
7672         (arm_const_bounds): ... this.
7673         (arm_coproc_builtin_available): New.
7674         * config/arm/arm_acle.h (__arm_cdp): New.
7675         (__arm_cdp2): New.
7676         * config/arm/arm_acle_builtins.def (cdp): New.
7677         (cdp2): New.
7678         * config/arm/iterators.md (CDPI,CDP,cdp): New.
7679         * config/arm/neon.md: Rename all 'neon_const_bounds' to
7680         'arm_const_bounds'.
7681         * config/arm/types.md (coproc): New.
7682         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
7683         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
7684         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
7685         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
7687 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7689         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
7690         (UBINOP_QUALIFIERS): New.
7691         (si_UP): Define.
7692         (acle_builtin_data): New. Change comment.
7693         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
7694         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
7695         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
7696         arm_acle_builtins.def.
7697         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
7698         (arm_init_acle_builtins): New.
7699         (CRC32_BUILTIN): Remove.
7700         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
7701         crc32cb, crc32ch and crc32cw.
7702         (arm_init_crc32_builtins): Remove.
7703         (arm_init_builtins): Use arm_init_acle_builtins rather
7704         than arm_init_crc32_builtins.
7705         (arm_expand_acle_builtin): New.
7706         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
7707         * config/arm/arm_acle_builtins.def: New.
7709 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7711         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
7712         (arm_builtin_datum): ... this.
7713         (arm_init_neon_builtin): Rename to ...
7714         (arm_init_builtin): ... this. Add a new parameters PREFIX
7715         and USE_SIG_IN_NAME.
7716         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
7717         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
7718         'arm_builtin_datum'.
7719         (arm_init_vfp_builtins): Likewise.
7720         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
7721         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
7722         (arm_expand_neon_args): Rename to ...
7723         (arm_expand_builtin_args): ... this. Rename builtin_arg
7724         enum values and differentiate between ARG_BUILTIN_MEMORY
7725         and ARG_BUILTIN_NEON_MEMORY.
7726         (arm_expand_neon_builtin_1): Rename to ...
7727         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
7728         values, arm_expand_builtin_args and add bool parameter NEON.
7729         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
7730         (arm_expand_vfp_builtin): Likewise.
7731         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
7733 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
7735         PR middle-end/77484
7736         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
7737         * predict.c (tree_estimate_probability_bb): Reverse direction of
7738         polymorphic call predictor.
7740 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
7742         * passes.c (execute_one_pass): Split out pass-skipping logic into...
7743         (determine_pass_name_match): ...this new function and...
7744         (should_skip_pass_p): ...this new function.
7746 2017-01-06  Nathan Sidwell  <nathan@acm.org>
7748         * ipa-visibility.c (function_and_variable_visibility): Reformat
7749         comments and long lines.  Remove extrneous if.
7750         * symtab.c (symtab_node::make_decl_local): Fix code format.
7751         (symtab_node::set_section_for_node): Fix comment typo.
7753 2017-01-06  Martin Liska  <mliska@suse.cz>
7755         PR bootstrap/79003
7756         * lra-constraints.c: Rename invariant to lra_invariant.
7757         * predict.c (set_even_probabilities): Initialize e to NULL.
7759 2017-01-05  Martin Sebor  <msebor@redhat.com>
7761         PR tree-optimization/78910
7762         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
7763         (format_integer): Correct off-by-one error in the handling
7764         of precision with negative numbers in signed conversions..
7766 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7768         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
7770 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
7772         PR tree-optimization/71016
7773         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
7774         factor_out_conditional_conversion.  Formatting fix.
7775         (factor_out_conditional_conversion): Add cond_stmt argument.
7776         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
7777         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
7778         Formatting fix.
7780 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
7782         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
7783         read-rtl-function.o, and selftest-rtl.o.
7784         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
7785         (selftest::aarch64_test_loading_full_dump): New function.
7786         (selftest::aarch64_run_selftests): New function.
7787         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
7788         selftest::aarch64_run_selftests.
7789         * config/i386/i386.c
7790         (selftest::ix86_test_loading_dump_fragment_1): New function.
7791         (selftest::ix86_test_loading_call_insn): New function.
7792         (selftest::ix86_test_loading_full_dump): New function.
7793         (selftest::ix86_test_loading_unspec): New function.
7794         (selftest::ix86_run_selftests): Call the new functions.
7795         * emit-rtl.c (maybe_set_max_label_num): New function.
7796         * emit-rtl.h (maybe_set_max_label_num): New decl.
7797         * function.c (instantiate_decls): Guard call to
7798         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
7799         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
7800         "static".
7801         * gensupport.c (gen_reader::gen_reader): Pass "false"
7802         for new "compact" param of rtx_reader.
7803         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
7804         rather than an empty string for NULL strings.
7805         * read-md.c: Potentially include config.h rather than bconfig.h.
7806         Wrap include of errors.h with #ifdef GENERATOR_FILE.
7807         (have_error): New global, copied from errors.c.
7808         (md_reader::read_name): Rename to...
7809         (md_reader::read_name_1): ...this, adding "out_loc" param,
7810         and converting "missing name or number" to returning false, rather
7811         than failing.
7812         (md_reader::read_name): Reimplement in terms of read_name_1.
7813         (md_reader::read_name_or_nil): New function.
7814         (md_reader::read_string): Handle "(nil)" by returning NULL.
7815         (md_reader::md_reader): Add new param "compact".
7816         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
7817         (md_reader::read_file): New method.
7818         * read-md.h (md_reader::md_reader): Add new param "compact".
7819         (md_reader::read_file): New method.
7820         (md_reader::is_compact): New accessor.
7821         (md_reader::read_name): Convert return type from void to file_location.
7822         (md_reader::read_name_or_nil): New decl.
7823         (md_reader::read_name_1): New decl.
7824         (md_reader::m_compact): New field.
7825         (noop_reader::noop_reader): Pass "false" for new "compact" param
7826         of rtx_reader.
7827         (rtx_reader::rtx_reader): Add new "compact" param.
7828         (rtx_reader::read_rtx_operand): Make virtual and convert return
7829         type from void to rtx.
7830         (rtx_reader::read_until): New decl.
7831         (rtx_reader::handle_any_trailing_information): New virtual function.
7832         (rtx_reader::postprocess): New virtual function.
7833         (rtx_reader::finalize_string): New virtual function.
7834         (rtx_reader::m_in_call_function_usage): New field.
7835         (rtx_reader::m_reuse_rtx_by_id): New field.
7836         * read-rtl-function.c: New file.
7837         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
7838         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
7839         (selftest::verify_three_block_rtl_cfg): New decl.
7840         * read-rtl-function.h: New file.
7841         * read-rtl.c: Potentially include config.h rather than bconfig.h.
7842         For host, include function.h, memmodel.h, and emit-rtl.h.
7843         (one_time_initialization): New function.
7844         (struct compact_insn_name): New struct.
7845         (compact_insn_names): New array.
7846         (find_code): Handle insn codes in compact dumps.
7847         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
7848         (bind_subst_iter_and_attr): Likewise.
7849         (add_condition_to_string): Likewise.
7850         (add_condition_to_rtx): Likewise.
7851         (apply_attribute_uses): Likewise.
7852         (add_current_iterators): Likewise.
7853         (apply_iterators): Likewise.
7854         (initialize_iterators): Guard usage of apply_subst_iterator with
7855         #ifdef GENERATOR_FILE.
7856         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
7857         (md_reader::read_mapping): Likewise.
7858         (add_define_attr_for_define_subst): Likewise.
7859         (add_define_subst_attr): Likewise.
7860         (read_subst_mapping): Likewise.
7861         (check_code_iterator): Likewise.
7862         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
7863         logic to...
7864         (one_time_initialization): New function.
7865         (rtx_reader::read_until): New method.
7866         (read_flags): New function.
7867         (parse_reg_note_name): New function.
7868         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
7869         Handle reuse_rtx ids.
7870         Wrap iterator lookup within #ifdef GENERATOR_FILE.
7871         Add parsing support for RTL dumps, mirroring the special-cases in
7872         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
7873         values, and calling handle_any_trailing_information.
7874         (rtx_reader::read_rtx_operand): Convert return type from void
7875         to rtx, returning return_rtx.  Handle case 'e'.  Call
7876         finalize_string on XSTR and XTMPL fields.
7877         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
7878          "(nil)" values were omitted.  Call the postprocess vfunc on the
7879         return_rtx.
7880         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
7881         class ctor.  Initialize m_in_call_function_usage.  Call
7882         one_time_initialization.
7883         * rtl-tests.c (selftest::test_uncond_jump): Call
7884         set_new_first_and_last_insn.
7885         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
7886         * selftest-rtl.c: New file.
7887         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
7888         (selftest::get_insn_by_uid): New decl.
7889         * selftest-run-tests.c (selftest::run_tests): Call
7890         read_rtl_function_c_tests.
7891         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
7892         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
7893         dumps.
7895 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
7897         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
7898         operands in a special way.  Assert that pos+len <= mode precision.
7900 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
7902         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
7903         3 argument Alias with unlimited for the negative form.
7904         (fno-vect-cost-model): Removed.
7906 2017-01-05  Martin Liska  <mliska@suse.cz>
7908         * hsa-gen.c (gen_hsa_divmod): New function.
7909         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
7911 2017-01-05  Martin Liska  <mliska@suse.cz>
7913         PR pch/78970
7914         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
7915         header.
7917 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7919         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
7920         small constant length operands.
7922 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7924         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
7925         between loop iterations.
7927 2017-01-05  Martin Liska  <mliska@suse.cz>
7929         PR sanitizer/78815
7930         * gimplify.c (gimplify_decl_expr): Compare to
7931         asan_poisoned_variables instread of checking flags.
7932         (gimplify_target_expr): Likewise.
7933         (gimplify_expr): Likewise.
7934         (gimplify_function_tree): Conditionally initialize
7935         asan_poisoned_variables.
7937 2017-01-04  Jeff Law  <law@redhat.com>
7939         PR tree-optimizatin/78812
7940         * rtl.h (contains_mem_rtx_p): Prototype.
7941         * ifcvt.c (containts_mem_rtx_p): Move from here to...
7942         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
7943         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
7944         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
7945         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
7947 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7949         * input.c (assert_char_at_range): Default-initialize actual_range.
7951 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7953         * df-scan.c (df_ref_create_structure): Make regno unsigned,
7954         to match the caller.
7956 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7958         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
7959         insns after final jump in test to emit dummy move.
7961 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7963         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7964         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7966 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
7968         * multiple_target.c (create_dispatcher_calls): Init e_next.
7969         * tree-ssa-loop-split.c (split_loop): Init border.
7970         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7971         scalar_type.
7973 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
7975         PR target/71977
7976         PR target/70568
7977         PR target/78823
7978         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7979         (altivec_register_operand): Do not return true if the operand
7980         contains a SUBREG mixing SImode and SFmode.
7981         (vsx_register_operand): Likewise.
7982         (vsx_reg_sfsubreg_ok): New predicate.
7983         (vfloat_operand): Do not return true if the operand contains a
7984         SUBREG mixing SImode and SFmode.
7985         (vint_operand): Likewise.
7986         (vlogical_operand): Likewise.
7987         (gpc_reg_operand): Likewise.
7988         (int_reg_operand): Likewise.
7989         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7990         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7991         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7992         SImode and SFmode.
7993         (rs6000_emit_move_si_sf_subreg): New helper function.
7994         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7995         fixup SUBREGs involving SImode and SFmode.
7996         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7997         numbers for the new peephole2 optimization.
7998         (peephole2 for SFmode unions): New peephole2 to optimize cases in
7999         the GLIBC math library that do AND/IOR/XOR operations on single
8000         precision floating point.
8001         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
8002         target macros to say whether we need to avoid SUBREGs mixing
8003         SImode and SFmode.
8004         (TARGET_ALLOW_SF_SUBREG): Likewise.
8005         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
8006         (UNSPEC_SI_FROM_SF): Likewise.
8007         (iorxor): Change spacing.
8008         (and_ior_xor): New iterator for AND, IOR, and XOR.
8009         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
8010         (movdi_from_sf_zero_ext): Likewise.
8011         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
8012         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
8013         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
8014         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
8015         (fms<mode>4): Likewise.
8016         (fnma<mode>4): Likewise.
8017         (fnms<mode>4): Likewise.
8018         (nfma<mode>4): Likewise.
8019         (nfms<mode>4): Likewise.
8021 2017-01-04  Marek Polacek  <polacek@redhat.com>
8023         PR c++/64767
8024         * doc/invoke.texi: Document -Wpointer-compare.
8026 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
8028         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
8029         RejectNegative.
8031         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
8032         descriptions for -gdwarf-5 and emit them as uleb128 instead of
8033         2-byte data.
8035 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8037         PR target/78056
8038         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
8039         documentation of the powerpc_popcntb_ok attribute.
8040         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8041         code to issue warning messages if a requested CPU configuration is
8042         not supported by the binary (assembler and loader) toolchain.
8043         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
8044         made to define a built-in function that has been disabled.
8045         (paired_init_builtins): Add assertion to prevent ICE if attempt is
8046         made to define a built-in function that has been disabled.
8047         (altivec_init_builtins): Add comment explaining why definition
8048         of the DST built-in functions is not preceded by an assertion
8049         check.  Add assertions to prevent ICE if attempts are made to
8050         define an altivec predicate or an abs* built-in function that has
8051         been disabled.
8052         (htm_init_builtins): Add comment explaining why definition of the
8053         htm built-in functions is not preceded by an assertion check.
8055 2017-01-04  Jeff Law  <law@redhat.com>
8057         PR tree-optimizatin/67955
8058         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
8059         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
8060         the points-to solution does not include pt_null.  Use DECL_PT_UID
8061         unconditionally.
8063 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
8065         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
8066         Use gen_int_mode instead of gen_lopwart for const_int operands.
8068 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
8070         PR tree-optimization/71563
8071         * match.pd: Simplify X << Y into X if Y is known to be 0 or
8072         out of range value - has low bits known to be zero.
8074 2017-01-04  Alan Modra  <amodra@gmail.com>
8076         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
8077         * configure: Regenerate.
8078         * config.in: Regenerate.
8080 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
8082         PR bootstrap/77569
8083         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
8084         a substring of the message, but strcmp with the whole message.  Ifdef
8085         ENABLE_NLS, translate the message first using dgettext.
8087 2017-01-03  Jeff Law  <law@redhat.com>
8089         PR tree-optimizatin/78856
8090         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
8091         (mark_threaded_blocks): Remove code to truncate thread paths that
8092         cross multiple loop headers.  Instead invalidate the cached loop
8093         iteration information and handle case of a thread path walking
8094         into an irreducible region.
8096 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8098         PR target/78900
8099         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
8100         assertions.  Add support for doing the signbit if the IEEE 128-bit
8101         floating point value is in a GPR.
8102         * config/rs6000/rs6000.md (Fsignbit): Delete.
8103         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
8104         Update the length attribute if the value is in a GPR.
8105         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
8106         the sign or zero extension instruction, since the value is always 0/1.
8107         (signbit<mode>2_dm2): Delete using <Fsignbit>.
8109         PR target/78953
8110         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
8111         extracting SImode to a GPR register so that we can generate a
8112         store, limit the vector to be in a traditional Altivec register
8113         for the vextuwrx instruction.
8115 2017-01-03  Ian Lance Taylor  <iant@google.com>
8117         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
8119 2017-01-03  Martin Sebor  <msebor@redhat.com>
8121         PR tree-optimization/78696
8122         * gimple-ssa-sprintf.c (format_floating): Correct handling of
8123         precision.  Use MPFR for %f for greater fidelity.  Correct handling
8124         of %g.
8125         (pass_sprintf_length::compute_format_length): Set width and precision
8126         specified by asrerisk to void_node for vararg functions.
8127         (try_substitute_return_value): Adjust dump output.
8129 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
8131         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
8133 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
8135         * doc/invoke.texi (SPARC options): Document -mlra as the default.
8136         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
8137         -mlra/-mno-lra was passed to the compiler.
8139 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
8141         PR rtl-optimization/65618
8142         * emit-rtl.c (try_split): Move initialization of "before" and
8143         "after" to just before the call to emit_insn_after_setloc.
8145 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
8147         * doc/md.texi (Standard Names): Remove reference to Java frontend.
8149 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8151         * dwarf2out.c (gen_enumeration_type_die): When
8152         -gno-strict-dwarf, add a DW_AT_encoding attribute.
8154 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
8156         PR tree-optimization/78965
8157         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
8158         Change first argument from const call_info & to call_info &.  For %n
8159         set info.nowrite to false.
8161         PR middle-end/78901
8162         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
8163         possibly throwing calls.
8165         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
8166         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
8167         and fns handling, rather than in a separate case SSA_NAME.
8169 2017-01-02  Jeff Law  <law@redhat.com>
8171         * config/darwin-driver.c (darwin_driver_init): Const-correctness
8172         fixes for first_period and second_period variables.
8174 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
8176         PR target/78967
8177         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
8178         (*insvqi_1): New insn pattern.
8179         (*insvqi_1_mem_rex64): Ditto.
8180         (*insvqi_2): Ditto.
8181         (*insvqi_3): Rename from *insvqi.
8183         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
8185 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
8187         * doc/cfg.texi (Edges): Remove reference to Java.
8188         (Maintaining the CFG): Ditto.
8190 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
8192         PR middle-end/77674
8193         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
8194         transparent aliases.
8196 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
8198         PR middle-end/77484
8199         * predict.def (PRED_CALL): Update hitrate.
8200         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
8201         * predict.c (tree_estimate_probability_bb): Split CALL predictor
8202         into direct/indirect/polymorphic variants.
8204 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
8206         Update copyright years.
8208         * gcc.c (process_command): Update copyright notice dates.
8209         * gcov-dump.c (print_version): Ditto.
8210         * gcov.c (print_version): Ditto.
8211         * gcov-tool.c (print_version): Ditto.
8212         * gengtype.c (create_file): Ditto.
8213         * doc/cpp.texi: Bump @copying's copyright year.
8214         * doc/cppinternals.texi: Ditto.
8215         * doc/gcc.texi: Ditto.
8216         * doc/gccint.texi: Ditto.
8217         * doc/gcov.texi: Ditto.
8218         * doc/install.texi: Ditto.
8219         * doc/invoke.texi: Ditto.
8221 Copyright (C) 2017 Free Software Foundation, Inc.
8223 Copying and distribution of this file, with or without modification,
8224 are permitted in any medium without royalty provided the copyright
8225 notice and this notice are preserved.