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