Speed up use-after-scope (v2): rewrite into SSA
[official-gcc.git] / gcc / ChangeLog
blob34728a9e52fd73a8f28d8c3b531343d20abe8a95
1 2017-01-23  Martin Liska  <mliska@suse.cz>
3         * asan.c (create_asan_shadow_var): New function.
4         (asan_expand_poison_ifn): Likewise.
5         * asan.h (asan_expand_poison_ifn): New declaration.
6         * internal-fn.c (expand_ASAN_POISON): Likewise.
7         * internal-fn.def (ASAN_POISON): New builtin.
8         * sanopt.c (pass_sanopt::execute): Expand
9         asan_expand_poison_ifn.
10         * tree-inline.c (copy_decl_for_dup_finish): Make function
11         external.
12         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
13         * tree-ssa.c (is_asan_mark_p): New function.
14         (execute_update_addresses_taken): Rewrite local variables
15         (identified just by use-after-scope as addressable) into SSA.
17 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
19         * doc/install.texi (Specific): opensource.apple.com uses https
20         now. Remove trailing slash.
22 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
23         
24         * README.Portability: Remove note on an Irix compatibility issue.
26 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
28         * gcov.c (INCLUDE_ALGORITHM): Define.
29         (INCLUDE_VECTOR): Define.
30         No longer include <vector> and <algorithm> directly.
31         
32 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
34         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
35         to https.
36         * doc/invoke.texi (Code Gen Options): Ditto.
38 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
40         PR lto/78407
41         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
43 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
45         rtl-optimization/79125
46         * cprop.c (local_cprop_pass): Handle cases where we make an
47         unconditional trap.
49 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
51         PR target/61729
52         PR target/77850
53         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
54         read from, for big endian.
56 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
58         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
59         register pauth builtins for LP64 only.
61 2017-01-20  Marek Polacek  <polacek@redhat.com>
63         PR c/79152
64         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
65         non-case labels.
67 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
69         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
70         of safelen status.
71         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
72         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
73         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
75 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
77         PR target/71270
78         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
79         in big-endian mode when they are not a single duplicated value.
81 2017-01-20  Richard Biener  <rguenther@suse.de>
83         * BASE-VER: Bump to 7.0.1.
85 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
87         * omp-low.c (omplow_simd_context): New struct.  Use it...
88         (lower_rec_simd_input_clauses): ...here and...
89         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
90         references to idx, lane, max_vf, is_simt.
92 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
94         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
95         mcpu=nps400.
97 2017-01-20  Martin Jambor  <mjambor@suse.cz>
99         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
100         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
101         gt-hsa-common.h.
102         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
103         (GTFILES): Rename hsa.c to hsa-common.c.
104         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
105         * hsa-dump.c: Likewise.
106         * hsa-gen.c: Likewise.
107         * hsa-regalloc.c: Likewise.
108         * ipa-hsa.c: Likewise.
109         * omp-expand.c: Likewise.
110         * omp-low.c: Likewise.
111         * toplev.c: Likewise.
113 2017-01-20  Marek Polacek  <polacek@redhat.com>
115         PR c/64279
116         * doc/invoke.texi: Document -Wduplicated-branches.
117         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
118         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
119         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
120         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
121         return 0 only when not OEP_LEXICOGRAPHIC.
122         (fold_build_cleanup_point_expr): Use the expression
123         location when building CLEANUP_POINT_EXPR.
124         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
125         * tree.c (add_expr): Handle error_mark_node.
127 2017-01-20  Martin Liska  <mliska@suse.cz>
129         PR lto/69188
130         * tree-profile.c (init_ic_make_global_vars): Do not call
131         finalize_decl.
132         (gimple_init_gcov_profiler): Likewise.
134 2017-01-20  Martin Liska  <mliska@suse.cz>
136         PR ipa/71190
137         * cgraph.h (maybe_create_reference): Remove argument and
138         update comment.
139         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
140         argument.
141         * ipa-cp.c (create_specialized_node): Likewise.
142         * symtab.c (symtab_node::maybe_create_reference): Handle
143         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
145 2017-01-20  Martin Liska  <mliska@suse.cz>
147         * read-rtl-function.c (function_reader::create_function): Use
148         build_decl instread of build_decl_stat.
150 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
152         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
153         * config/i386/avx512dqintrin.h: Ditto.
154         * config/i386/avx512fintrin.h: Ditto.
155         * config/i386/i386-builtin-types.def: Add new types.
156         * gcc/config/i386/i386.c: Handle new types.
157         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
158         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
159         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
160         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
161         (__builtin_ia32_kshiftridi): New.
162         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
164 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
166         PR target/78875
167         PR target/79140
168         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
169         define to rs6000_init_stack_protect_guard.
170         (rs6000_init_stack_protect_guard): New function.
172 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
173             Yunqiang Su  <yunqiang.su@imgtec.com>
175         * config.gcc (supported_defaults): Add madd4.
176         (with_madd4): Add validation.
177         (all_defaults): Add madd4.
178         * config/mips/mips.opt (mmadd4): New option.
179         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
180         mmadd4.
181         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
182         __mips_no_madd4.
183         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
184         (ISA_HAS_FUSED_MADD4): Likewise.
185         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
186         * gcc/doc/install.texi (--with-madd4): Document the new option.
188 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
190         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
191         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
192         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
193         (aarch64_init_pauth_hint_builtins): New.
194         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
195         (aarch64_expand_builtin): Expand new builtins.
197 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
199         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
200         * combine-stack-adj.c (no_unhandled_cfa): Handle
201         REG_CFA_TOGGLE_RA_MANGLE.
202         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
203         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
204         info for return address signing.
205         (aarch64_expand_epilogue): Likewise.
207 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
209         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
210         * config/aarch64/aarch64-protos.h
211         (aarch64_return_address_signing_enabled): New declaration.
212         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
213         New function.
214         (aarch64_expand_prologue): Sign return address before it's pushed onto
215         stack.
216         (aarch64_expand_epilogue): Authenticate return address fetched from
217         stack.
218         (aarch64_override_options): Sanity check for ILP32 and ISA level.
219         (aarch64_attributes): New function attributes for "sign-return-address".
220         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
221         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
222         ("*do_return"): Generate combined instructions according to key index.
223         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
224         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
225         iterators.
226         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
227         * config/aarch64/aarch64.opt (msign-return-address=): New.
228         * doc/extend.texi (AArch64 Function Attributes): Documents
229         "sign-return-address=".
230         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
232 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
234         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
235         overall option summary.
237 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
239         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
240         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
241         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
242         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
244 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
246         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
247         -mpower9-minmax by default for -mcpu=power9.
248         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
249         128-bit floating point.
251 2017-01-20  Alan Modra  <amodra@gmail.com>
253         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
254         optimizing for size.
256 2017-01-20  Alan Modra  <amodra@gmail.com>
258         PR target/79144
259         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
260         for strcmp and strncmp from corresponding builtin decl.
262 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
264         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
265         instead of i386/rtems-64.h.
266         * config/i386/rtems-64.h: Remove.
268 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
270         PR target/78478
271         Revert:
272         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
274         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
276 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
278         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
279         Change int to HOST_WIDE_INT.
280         * config/aarch64/aarch64-protos.h
281         (aarch64_simd_gen_const_vector_dup): Likewise.
282         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
284 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
286         * langhooks-def.h (lhd_type_for_size): New decl.
287         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
288         * langhooks.c (lhd_type_for_size): New function, taken from
289         lto_type_for_size.
291 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
293         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
294         define_bypass for CR latency.
295         (power9-cracked-alu): Update bypass latency and remove power9-branch.
296         (power9-alu2): Add define_bypass for CR latency.
297         (power9-cmp): New.
298         (power9-mul): Update insn latency.
299         (power9-mul-compare): Update insn latency, bypass latency and remove
300         power9-branch.
302 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
304         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
305         Delete.
306         * config/aarch64/aarch64.md
307         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
308         aarch64_nopcrelative_literal_loads.
309         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
311 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
313         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
314         TARGET_LOONGSON_3A.
315         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
317 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
319         PR target/78176
320         * config.gcc (supported_defaults): Add lxc1-sxc1.
321         (with_lxc1_sxc1): Add validation.
322         (all_defaults): Add lxc1-sxc1.
323         * config/mips/mips.opt (mlxc1-sxc1): New option.
324         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
325         mlxc1-sxc1.
326         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
327         __mips_no_lxc1_sxc1.
328         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
329         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
330         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
332 2017-01-19  Richard Biener  <rguenther@suse.de>
334         PR tree-optimization/72488
335         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
336         sure to restore SSA info.
337         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
339 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
341         PR rtl-optimization/79121
342         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
343         of the inner type when shifting an extended value.
345 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
347         PR lto/78407
348         * symtab.c (symtab_node::equal_address_to): Fix comparing of
349         interposable aliases.
351 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
353         PR target/78516
354         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
355         Use the evmergelohi instruction.
356         (mov_si<mode>_e500_subreg4_2_le): Likewise.
357         (mov_sitf_e500_subreg8_2_be): Likewise.
358         (mov_sitf_e500_subreg12_2_le): Likewise.
359         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
360         (mov_si<mode>_e500_subreg4_2_be): Likewise.
361         (mov_sitf_e500_subreg8_2_le): Likewise.
362         (mov_sitf_e500_subreg12_2_be): Likewise.
364 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
366         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
367         attribute from vecsimple to vecperm.
368         (altivec_vbpermq2): Likewise.
370 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
372         PR target/79040
373         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
375 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
376         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
377         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
378         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
379         case where N arg is SIZE_MAX.
380         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
381         (cmpstrsi): Add pattern.
383 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
385         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
386         __builtin_vec_revb builtins.
387         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
388         built-in functions to support generation of the ISA 3.0 XXBR<x>
389         vector byte reverse instructions.
390         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
391         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
392         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
393         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
394         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
395         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
396         (P9V_BUILTIN_VEC_REVB): Likewise.
397         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
398         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
399         (p9_xxbrq_v16qi): Likewise.
400         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
401         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
402         (p9_xxbrh_v8hi): Likewise.
403         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
404         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
405         vec_revb built-in functions.
407 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
409         PR rtl-optimization/78952
410         * config/i386/i386.md (any_extract): New code iterator.
411         (*insvqi_2): Use any_extract for source operand.
412         (*insvqi_3): Use any_shiftrt for source operand.
414 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
416         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
417         New function.
418         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
420 2017-01-18  Matthias Klose  <doko@ubuntu.com>
422         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
424 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
426         * config/rs6000/altivec.h (vec_bperm): Change #define.
427         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
428         (altivec_vbpermq2): New define_insn.
429         (altivec_vbpermd): Likewise.
430         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
431         function interface.
432         (VBPERMD): Likewise.
433         (VBPERM): New polymorphic function interface.
434         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
435         Add entries for P9V_BUILTIN_VEC_VBPERM.
436         * doc/extend.texi: Add interfaces for vec_bperm.
438 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
440         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
441         first letter of error messages.
442         (s390_resolve_overloaded_builtin): Likewise.
443         * config/s390/s390.c (s390_expand_builtin): Likewise.
444         (s390_invalid_arg_for_unprototyped_fn): Likewise.
445         (s390_valid_target_attribute_inner_p): Likewise.
446         * config/s390/s390.md ("tabort"): Likewise.
448 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
450         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
451         (ISA_AVOID_DIV_HILO): New macro.
452         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
453         (ISA_HAS_DDIV): Likewise.
455 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
457         * doc/invoke.texi (fabi-version): Correct number of occurrences.
459 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
461         * doc/invoke.texi (fabi-version): Spelling fix.
463 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
465         PR c++/70182
466         * doc/invoke.texi (fabi-version): Mention mangling fix for
467         operator names.
469 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
471         PR c++/77489
472         * doc/invoke.texi (fabi-version): Document discriminator mangling.
474 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
476         PR target/78875
477         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
478         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
479         the new options.
480         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
481         flexible settings.
482         (stack_protect_test): Ditto.
483         * config/rs6000/rs6000.opt (mstack-protector-guard=,
484         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
485         options.
486         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
487         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
488         -mstack-protector-guard-offset=.
489         (RS/6000 and PowerPC Options): Ditto.
491 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
493         * config/i386/i386.h (MASK_CLASS_P): New define.
494         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
495         there are no registers from different register sets also when
496         mask registers are used.  Update function comment.
497         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
498         to (*k/*r) and (*k/*km) alternatives.
500 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
502         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
503         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
504         (EH_RETURN_HANDLER_RTX): New define.
505         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
506         Force frame pointer in EH return functions.
507         (aarch64_expand_epilogue): Add barrier for eh_return.
508         (aarch64_final_eh_return_addr): Remove.
509         (aarch64_eh_return_handler_rtx): New function.
510         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
511         Remove.
512         (aarch64_eh_return_handler_rtx): New prototype.
514 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
516         * config/rs6000/altivec.h (vec_rlmi): New #define.
517         (vec_vrlnm): Likewise.
518         (vec_rlnm): Likewise.
519         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
520         (UNSPEC_VRLNM): Likewise.
521         (VIlong): New mode iterator.
522         (altivec_vrl<VI_char>mi): New define_insn.
523         (altivec_vrl<VI_char>nm): Likewise.
524         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
525         function entry.
526         (VRLDNM): Likewise.
527         (RLNM): New polymorphic function entry.
528         (VRLWMI): New monomorphic function entry.
529         (VRLDMI): Likewise.
530         (RLMI): New polymorphic function entry.
531         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
532         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
533         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
534         vec_vrlnm.
536 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
538         PR debug/78839
539         * dwarf2out.c (field_byte_offset): Restore the
540         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
541         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
542         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
543         of build2 + fold.
545 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
547         PR ada/67205
548         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
550 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
552         PR debug/71669
553         * dwarf2out.c (add_data_member_location_attribute): For constant
554         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
555         instead of DW_AT_data_member_location, DW_AT_bit_offset and
556         DW_AT_byte_size attributes.
558 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
560         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
561         after forcing to constant memory when the code model is medium.
563 2017-01-17  Julia Koval  <julia.koval@intel.com>
565         PR target/76731
566         * config/i386/avx512fintrin.h
567         (_mm512_i32gather_ps): Change __addr type to void const*.
568         (_mm512_mask_i32gather_ps): Ditto.
569         (_mm512_i32gather_pd): Ditto.
570         (_mm512_mask_i32gather_pd): Ditto.
571         (_mm512_i64gather_ps): Ditto.
572         (_mm512_mask_i64gather_ps): Ditto.
573         (_mm512_i64gather_pd): Ditto.
574         (_mm512_mask_i64gather_pd): Ditto.
575         (_mm512_i32gather_epi32): Ditto.
576         (_mm512_mask_i32gather_epi32): Ditto.
577         (_mm512_i32gather_epi64): Ditto.
578         (_mm512_mask_i32gather_epi64): Ditto.
579         (_mm512_i64gather_epi32): Ditto.
580         (_mm512_mask_i64gather_epi32): Ditto.
581         (_mm512_i64gather_epi64): Ditto.
582         (_mm512_mask_i64gather_epi64): Ditto.
583         (_mm512_i32scatter_ps): Change __addr type to void*.
584         (_mm512_mask_i32scatter_ps): Ditto.
585         (_mm512_i32scatter_pd): Ditto.
586         (_mm512_mask_i32scatter_pd): Ditto.
587         (_mm512_i64scatter_ps): Ditto.
588         (_mm512_mask_i64scatter_ps): Ditto.
589         (_mm512_i64scatter_pd): Ditto.
590         (_mm512_mask_i64scatter_pd): Ditto.
591         (_mm512_i32scatter_epi32): Ditto.
592         (_mm512_mask_i32scatter_epi32): Ditto.
593         (_mm512_i32scatter_epi64): Ditto.
594         (_mm512_mask_i32scatter_epi64): Ditto.
595         (_mm512_i64scatter_epi32): Ditto.
596         (_mm512_mask_i64scatter_epi32): Ditto.
597         (_mm512_i64scatter_epi64): Ditto.
598         (_mm512_mask_i64scatter_epi64): Ditto.
599         * config/i386/avx512pfintrin.h
600         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
601         (_mm512_mask_prefetch_i32gather_ps): Ditto.
602         (_mm512_mask_prefetch_i64gather_pd): Ditto.
603         (_mm512_mask_prefetch_i64gather_ps): Ditto.
604         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
605         (_mm512_prefetch_i32scatter_ps): Ditto.
606         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
607         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
608         (_mm512_prefetch_i64scatter_pd): Ditto.
609         (_mm512_prefetch_i64scatter_ps): Ditto.
610         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
611         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
612         * config/i386/avx512vlintrin.h
613         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
614         (_mm_mmask_i32gather_ps): Ditto.
615         (_mm256_mmask_i32gather_pd): Ditto.
616         (_mm_mmask_i32gather_pd): Ditto.
617         (_mm256_mmask_i64gather_ps): Ditto.
618         (_mm_mmask_i64gather_ps): Ditto.
619         (_mm256_mmask_i64gather_pd): Ditto.
620         (_mm_mmask_i64gather_pd): Ditto.
621         (_mm256_mmask_i32gather_epi32): Ditto.
622         (_mm_mmask_i32gather_epi32): Ditto.
623         (_mm256_mmask_i32gather_epi64): Ditto.
624         (_mm_mmask_i32gather_epi64): Ditto.
625         (_mm256_mmask_i64gather_epi32): Ditto.
626         (_mm_mmask_i64gather_epi32): Ditto.
627         (_mm256_mmask_i64gather_epi64): Ditto.
628         (_mm_mmask_i64gather_epi64): Ditto.
629         (_mm256_i32scatter_ps): Change __addr type to void*.
630         (_mm256_mask_i32scatter_ps): Ditto.
631         (_mm_i32scatter_ps): Ditto.
632         (_mm_mask_i32scatter_ps): Ditto.
633         (_mm256_i32scatter_pd): Ditto.
634         (_mm256_mask_i32scatter_pd): Ditto.
635         (_mm_i32scatter_pd): Ditto.
636         (_mm_mask_i32scatter_pd): Ditto.
637         (_mm256_i64scatter_ps): Ditto.
638         (_mm256_mask_i64scatter_ps): Ditto.
639         (_mm_i64scatter_ps): Ditto.
640         (_mm_mask_i64scatter_ps): Ditto.
641         (_mm256_i64scatter_pd): Ditto.
642         (_mm256_mask_i64scatter_pd): Ditto.
643         (_mm_i64scatter_pd): Ditto.
644         (_mm_mask_i64scatter_pd): Ditto.
645         (_mm256_i32scatter_epi32): Ditto.
646         (_mm256_mask_i32scatter_epi32): Ditto.
647         (_mm_i32scatter_epi32): Ditto.
648         (_mm_mask_i32scatter_epi32): Ditto.
649         (_mm256_i32scatter_epi64): Ditto.
650         (_mm256_mask_i32scatter_epi64): Ditto.
651         (_mm_i32scatter_epi64): Ditto.
652         (_mm_mask_i32scatter_epi64): Ditto.
653         (_mm256_i64scatter_epi32): Ditto.
654         (_mm256_mask_i64scatter_epi32): Ditto.
655         (_mm_i64scatter_epi32): Ditto.
656         (_mm_mask_i64scatter_epi32): Ditto.
657         (_mm256_i64scatter_epi64): Ditto.
658         (_mm256_mask_i64scatter_epi64): Ditto.
659         (_mm_i64scatter_epi64): Ditto.
660         (_mm_mask_i64scatter_epi64): Ditto.
661         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
662         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
663         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
664         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
665         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
666         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
667         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
668         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
669         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
670         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
671         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
672         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
673         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
674         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
675         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
676         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
677         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
678         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
679         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
680         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
681         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
682         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
683         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
684         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
685         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
686         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
687         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
688         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
689         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
690         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
691         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
692         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
693         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
694         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
695         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
696         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
697         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
698         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
699         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
700         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
701         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
702         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
703         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
704         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
705         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
706         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
707         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
708         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
709         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
710         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
711         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
712         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
713         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
714         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
715         definitions accordingly.
717 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
718             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
720         PR target/79079
721         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
722         gen_lowpart.
724 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
726         PR target/79058
727         * ira-conflicts.c (ira_build_conflicts): Update total conflict
728         hard regs for inner regno.
730 2017-01-17  Martin Liska  <mliska@suse.cz>
732         PR ipa/71207
733         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
734         assumption and add comment.
736 2017-01-17  Nathan Sidwell  <nathan@acm.org>
738         * ipa-visibility.c (localize_node): New function, broken out of ...
739         (function_and_variable_visibility): ... here. Call it.
741 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
743         PR middle-end/77445
744         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
745         correctly set frequency of oudgoing edge.
746         (duplicate_thread_path): Fix profile updating.
748 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
750         PR other/79046
751         * configure.ac: Add GCC_BASE_VER.
752         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
753         version from BASE-VER file.
754         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
755         (gcc.o): Depend on $(BASEVER).
756         * common.opt (dumpfullversion): New option.
757         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
758         * doc/invoke.texi: Document -dumpfullversion.
759         * doc/install.texi: Document --with-gcc-major-version-only.
760         * configure: Regenerated.
762 2017-01-17  Richard Biener  <rguenther@suse.de>
764         PR tree-optimization/71433
765         * tree-vrp.c (register_new_assert_for): Merge same asserts
766         on all incoming edges.
767         (process_assert_insertions_for): Handle insertions at the
768         beginning of BBs.
770 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
772         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
773         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
775 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
777         PR target/78633
778         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
779         RTL sharing.
781 2017-01-17  Alan Modra  <amodra@gmail.com>
783         PR target/79066
784         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
785         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
786         symbolic stack limit when pic.
788 2017-01-16  Martin Sebor  <msebor@redhat.com>
790         PR tree-optimization/78608
791         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
793 2017-01-16  Jeff Law  <law@redhat.com>
795         Revert:
796         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
797         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
798         for several include directories that may be relative to sysroot.
799         * config/i386/x-mingw32 (gplus_includedir): Define.
800         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
801         (native_system_includedir): Likewise.
802         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
803         override if TARGET_SYSTEM_ROOT is defined.
804         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
806         PR tree-optimization/79090
807         PR tree-optimization/33562
808         PR tree-optimization/61912
809         PR tree-optimization/77485
810         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
811         and computed trims into the dump file.
813 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
815         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
817 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
819         PR c/79089
820         * gimplify.c (gimplify_init_constructor): If want_value and
821         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
822         fix.
824         PR target/79080
825         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
826         sequence.  Formatting fixes.
827         (doloop_optimize): Formatting fixes.
829         PR driver/49726
830         * gcc.c (debug_level_greater_than_spec_func): New function.
831         (static_spec_functions): Add debug-level-gt spec function.
832         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
833         !g0.
834         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
835         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
836         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
837         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
838         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
839         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
841 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
843         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
844         QImode fixups to general and mask registers only.
846 2017-01-16  Carl Love  <cel@us.ibm.com>
848         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
849         for built-in functions
850         vector signed char vec_nabs (vector signed char)
851         vector signed short vec_nabs (vector signed short)
852         vector signed int vec_nabs (vector signed int)
853         vector signed long long vec_nabs (vector signed long long)
854         vector float vec_nabs (vector float)
855         vector double vec_nabs (vector double)
856         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
857         and NABS overload.
858         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
859         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
860         * doc/extend.texi: Update the documentation file for the new built-in
861         functions.
863 2017-01-16  Martin Sebor  <msebor@redhat.com>
865         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
866         message.
868 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
870         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
871         UNSPEC_VSX__XXSPLTD to require special splat handling.
873 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
875         PR bootstrap/78616
876         * system.h: Poison strndup.
878 2017-01-16  Alan Modra  <amodra@gmail.com>
880         PR target/79098
881         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
882         use a switch.
884 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
886         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
888 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
890         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
891         call recog here.  Assert that INSN_CODE (insn) is non-negative.
893 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
895         PR target/72749
896         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
897         fallthrough.
898         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
899         in the currently scheduled RTL fragment.
901 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
903         PR rtl-optimization/78751
904         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
905         give up.
907 2017-01-14  Jeff Law  <law@redhat.com>
909         PR tree-optimization/79090
910         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
911         variable length stores.
912         (compute_trims): Delete dead assignment to *trim_tail.
913         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
914         zero length.
916 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
918         PR rtl-optimization/78626
919         PR rtl-optimization/78727
920         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
921         of a block, and split such blocks after everything else is finished.
923 2017-01-14  Alan Modra  <amodra@gmail.com>
925         PR target/72749
926         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
927         target legitimate_combined_insn.
928         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
929         (rs6000_legitimate_combined_insn): New function.
930         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
931         all uses.
932         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
933         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
934         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
936 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
938         * doc/frontends.texi (G++ and GCC): Remove references to Java.
940 2017-01-13  Jeff Law  <law@redhat.com>
942         PR tree-optimization/33562
943         PR tree-optimization/61912
944         PR tree-optimization/77485
945         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
946         a statement.
947         (delete_dead_assignment): Likewise.
948         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
949         statement to delete_dead_call and delete_dead_assignment.
951 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
953         PR c/78304
954         * substring-locations.c (format_warning_va): Strengthen case 1 so
955         that both endpoints of the substring must be within the format
956         range for just the substring to be printed.
958 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
960         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
961         * config/i386/i386.c (ix86_target_string): Add missing options
962         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
963         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
964         flags_other and ix86_target_other to flags2_other.  Display unknown
965         isa2 options.
966         (ix86_valid_target_attribute_inner_p): Add missing options and
967         reorder options by implied ISAs, as in ix86_target_string.
969 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
971         * hash-table.h (hash_table::too_empty_p): New function.
972         (hash_table::expand): Use it.
973         (hash_table::traverse): Likewise.
974         (hash_table::empty_slot): Use sizeof (value_type) instead of
975         sizeof (PTR) to convert bytes to elements.  Shrink the table
976         if the current size is excessive for the current number of
977         elements.
979 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
981         * ira-costs.c (record_reg_classes): Break from the inner loop
982         early once alt_fail is known to be true.  Update outer loop
983         handling accordingly.
985 2017-01-13  Jeff Law  <law@redhat.com>
987         * tree-ssa-dse.c (decrement_count): New function.
988         (increment_start_addr, maybe_trim_memstar_call): Likewise.
989         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
990         when we know the partially dead statement is a mem* function.
992         PR tree-optimization/61912
993         PR tree-optimization/77485
994         * tree-ssa-dse.c: Include expr.h.
995         (maybe_trim_constructor_store): New function.
996         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
998         PR tree-optimization/33562
999         PR tree-optimization/61912
1000         PR tree-optimization/77485
1001         * doc/invoke.texi: Document new dse-max-object-size param.
1002         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
1003         * tree-ssa-dse.c: Include params.h.
1004         (dse_store_status): New enum.
1005         (initialize_ao_ref_for_dse): New, partially extracted from
1006         dse_optimize_stmt.
1007         (valid_ao_ref_for_dse, normalize_ref): New.
1008         (setup_live_bytes_from_ref, compute_trims): Likewise.
1009         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
1010         (maybe_trim_partially_dead_store): Likewise.
1011         (maybe_trim_complex_store): Likewise.
1012         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
1013         Track what bytes live from the original store.  Return tri-state
1014         for dead, partially dead or live.
1015         (dse_dom_walker): Add constructor, destructor and new private members.
1016         (delete_dead_call, delete_dead_assignment): New extracted from
1017         dse_optimize_stmt.
1018         (dse_optimize_stmt): Make a member of dse_dom_walker.
1019         Use initialize_ao_ref_for_dse.
1021         PR tree-optimization/33562
1022         PR tree-optimization/61912
1023         PR tree-optimization/77485
1024         * sbitmap.h (bitmap_count_bits): Prototype.
1025         (bitmap_clear_range, bitmap_set_range): Likewise.
1026         * sbitmap.c (bitmap_clear_range): New function.
1027         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
1029 2017-01-13  Martin Liska  <mliska@suse.cz>
1031         PR ipa/79043
1032         * function.c (set_cfun): Add new argument force.
1033         * function.h (set_cfun): Likewise.
1034         * ipa-inline-transform.c (inline_call): Use the function when
1035         strict alising from is dropped for function we inline to.
1037 2017-01-13  Richard Biener  <rguenther@suse.de>
1039         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
1040         for dumping GIMPLE INTEGER_CSTs.
1042 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1044         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
1045         to 201112L since C++17.
1047 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
1049         PR sanitizer/78887
1050         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
1051         if -fsanitize=kernel-address is present.
1053 2017-01-13  Richard Biener  <rguenther@suse.de>
1055         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
1056         as _Literal ( type ) number in case usual suffixes do not
1057         preserve all information.
1059 2017-01-13  Richard Biener  <rguenther@suse.de>
1061         PR tree-optimization/77283
1062         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
1063         and ssa-iterators.h.
1064         (is_feasible_trace): Implement a cost model based on joiner
1065         PHI node uses.
1067 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1069         PR target/79004
1070         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
1071         char or short to __float128/_Float128 directly.
1073 2017-01-12  Martin Sebor  <msebor@redhat.com>
1075         to -Wformat-overflow.
1076         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
1077         (min_bytes_remaining): Same.
1078         (get_string_length): Same.
1079         (format_string): Same.
1080         (format_directive): Same.
1081         (add_bytes): Same.
1082         (pass_sprintf_length::handle_gimple_call): Same.
1084 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
1086         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
1087         info.nowrite calls with no lhs that can't throw.  Return bool
1088         whether gsi_remove has been called or not.
1089         (pass_sprintf_length::handle_gimple_call): Return bool whether
1090         try_substitute_return_value called gsi_remove.  Formatting fix.
1091         (pass_sprintf_length::execute): Don't use gsi_remove if
1092         handle_gimple_call returned true.
1094         PR bootstrap/79069
1095         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
1096         be removed due to side-effects, don't remove following barrier nor
1097         turn the successor edge into fallthru edge.
1099 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1101         PR target/79044
1102         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
1103         element-reversing loads and stores as not swappable.
1105 2017-01-12  Nathan Sidwell  <nathan@acm.org>
1106             Nicolai Stange  <nicstange@gmail.com>
1108         * combine.c (try_combine): Don't ignore result of overlap checking
1109         loop.  Combine overlap & asm check into single loop.
1111 2017-01-12  Richard Biener  <rguenther@suse.de>
1113         * tree-pretty-print.c (dump_generic_node): Provide -gimple
1114         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
1116 2017-01-12  Richard Biener  <rguenther@suse.de>
1118         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
1119         and TS_TARGET_OPTION directly derive from TS_BASE.
1120         * tree-core.h (tree_optimization_option): Derive from tree_base.
1121         (tree_target_option): Likewise.
1123 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
1125         * config/i386/i386.c (memory_address_length): Increase len
1126         only when rip_relative_addr_p returns false.
1128 2017-01-11  Julia Koval  <julia.koval@intel.com>
1130         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
1131         (OPTION_MASK_ISA_SGX_SET): New.
1132         (ix86_handle_option): Handle OPT_msgx.
1133         * config.gcc: Added sgxintrin.h.
1134         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
1135         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
1136         * config/i386/i386.c (ix86_target_string): Add -msgx.
1137         (PTA_SGX): New.
1138         (ix86_option_override_internal): Handle new options.
1139         (ix86_valid_target_attribute_inner_p): Add sgx.
1140         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
1141         * config/i386/i386.opt: Add msgx.
1142         * config/i386/sgxintrin.h: New file.
1143         * config/i386/x86intrin.h: Add sgxintrin.h.
1145 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
1147         PR c++/71537
1148         * fold-const.c (maybe_nonzero_address): Return 1 for function
1149         local objects.
1150         (tree_single_nonzero_warnv_p): Don't handle function local objects
1151         here.
1153         PR c++/72813
1154         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
1155         of c-header.
1157 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
1159         PR driver/78877
1160         * opts.c: Include "spellcheck.h"
1161         (struct string_fragment): New struct.
1162         (struct edit_distance_traits<const string_fragment &>): New
1163         struct.
1164         (get_closest_sanitizer_option): New function.
1165         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
1167 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
1169         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
1170         by 12.
1171         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
1172         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
1173         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
1174         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
1175         for initial die_offset if dwarf_split_debug_info.
1176         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
1177         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
1178         fields.
1179         (output_skeleton_debug_sections): Formatting fix.  Use
1180         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
1181         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
1183 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
1185         * config/arm/cortex-a53.md: Add bypasses for
1186         cortex_a53_r2f_cvt.
1187         (cortex_a53_r2f): Only use for transfers.
1188         (cortex_a53_f2r): Likewise.
1189         (cortex_a53_r2f_cvt): Add reservation for conversions.
1190         (cortex_a53_f2r_cvt): Likewise.
1192 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
1194         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
1195         to all inlined functions, change static to extern.
1197 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
1199         PR target/78253
1200         * config/arm/arm.c (legitimize_pic_address): Handle reference to
1201         weak symbol.
1202         (arm_assemble_integer): Likewise.
1204 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
1206         * config.gcc: Use new awk script to check CPU, FPU and architecture
1207         parameters for --with-... options.
1208         * config/arm/parsecpu.awk: New file
1209         * config/arm/arm-cpus.in: New file.
1210         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
1211         files.
1212         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
1213         files.
1214         * config/arm/t-arm: Update dependency rules.
1215         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
1216         of processing .def files.
1217         * config/arm/genopt.sh: Deleted.
1218         * config/arm/gentune.sh: Deleted.
1219         * config/arm/arm-cores.def: Deleted.
1220         * config/arm/arm-arches.def: Deleted.
1221         * config/arm/arm-fpus.def: Deleted.
1222         * config/arm/arm-tune.md: Regenerated.
1223         * config/arm/arm-tables.opt: Regenerated.
1224         * config/arm/arm-cpu.h: New generated file.
1225         * config/arm/arm-cpu-data.h: New generated file.
1226         * config/arm/arm-cpu-cdata.h: New generated file.
1228 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
1230         PR lto/79042
1231         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
1232         bit.
1233         (input_varpool_node): Unpack dynamically_initialized bit.
1235 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
1237         PR rtl-optimization/79032
1238         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
1239         the alignment of the adjusted memory reference against that of MODE,
1240         instead of the alignment of the original memory reference.
1242 2017-01-11  Martin Jambor  <mjambor@suse.cz>
1244         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
1245         test.
1246         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
1247         decorated functions.
1249 2017-01-11  Richard Biener  <rguenther@suse.de>
1251         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
1252         set range/nonnull info for PHI results.  Do not set it on
1253         stmts marked for removal.
1255 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
1257         * expr.c (store_field): In the bitfield case, fetch the return value
1258         from the registers before applying a single big-endian adjustment.
1259         Always do a final load for a BLKmode value not larger than a word.
1261 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
1263         PR c++/77949
1264         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1265         that we correctly handle column numbers greater than
1266         LINE_MAP_MAX_COLUMN_NUMBER.
1268 2017-01-10  Martin Sebor  <msebor@redhat.com>
1270         PR middle-end/78245
1271         * gimple-ssa-sprintf.c (get_destination_size): Call
1272         {init,fini}object_sizes.
1273         * tree-object-size.c (addr_object_size): Adjust.
1274         (pass_through_call): Adjust.
1275         (pass_object_sizes::execute): Adjust.
1276         * tree-object-size.h (fini_object_sizes): Declare.
1278 2017-01-10  Martin Sebor  <msebor@redhat.com>
1280         PR tree-optimization/78775
1281         * builtins.c (get_size_range): Move...
1282         * calls.c: ...to here.
1283         (alloc_max_size): Accept zero argument.
1284         (operand_signed_p): Remove.
1285         (maybe_warn_alloc_args_overflow): Call get_size_range.
1286         * calls.h (get_size_range): Declare.
1288 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
1290         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
1291         from TI's devices.csv file as of September 2016.
1292         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
1294 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
1296         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
1297         * doc/invoke.texi: Likewise.
1298         * doc/md.texi: Likewise.
1299         * doc/objc.texi: Likewise.
1301 2017-01-10  Joshua Conner  <joshconner@google.com>
1303         * config/arm/fuchsia-elf.h: New file.
1304         * config/fuchsia.h: New file.
1305         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
1306         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
1307         targets.
1308         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
1310 2016-01-10  Richard Biener  <rguenther@suse.de>
1312         PR tree-optimization/79034
1313         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1314         Propagate out degenerate PHIs in the joiner.
1316 2017-01-10  Martin Liska  <mliska@suse.cz>
1318         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
1319         (sort_congruence_classes_by_decl_uid): Likewise.
1320         (sort_congruence_class_groups_by_decl_uid): Likewise.
1321         (sem_item_optimizer::merge_classes): Sort class, groups in these
1322         classes and members in the groups by DECL_UID of declarations.
1323         This would make merge operations stable.
1325 2017-01-10  Martin Liska  <mliska@suse.cz>
1327         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
1328         usage of m_classes_vec.
1329         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
1330         (sem_item_optimizer::get_group_by_hash): Likewise.
1331         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1332         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
1333         (sem_item_optimizer::verify_classes): Likewise.
1334         (sem_item_optimizer::process_cong_reduction): Likewise.
1335         (sem_item_optimizer::dump_cong_classes): Likewise.
1336         (sem_item_optimizer::merge_classes): Likewise.
1337         * ipa-icf.h (congruence_class_hash): Rename from
1338         congruence_class_group_hash.  Remove declaration of m_classes_vec.
1340 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
1342         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
1343         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
1344         * config.gcc: Add avx512vpopcntdqintrin.h.
1345         * config/i386/avx512vpopcntdqintrin.h: New.
1346         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
1347         * config/i386/i386-builtin-types.def: Add new types.
1348         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
1349         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
1350         __builtin_ia32_vpopcountq_v8di_mask): New.
1351         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1352         __AVX512VPOPCNTDQ__.
1353         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
1354         (PTA_AVX512VPOPCNTDQ): Define.
1355         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
1356         TARGET_AVX512VPOPCNTDQ_P): Define.
1357         * config/i386/i386.opt: Add mavx512vpopcntdq.
1358         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
1359         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
1361 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
1363         PR middle-end/77484
1364         * predict.def (PRED_CALL): Set to 67.
1366 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
1368         * expr.c (store_field): In the bitfield case, if the value comes from
1369         a function call and is of an aggregate type returned in registers, do
1370         not modify the field mode; extract the value in all cases if the mode
1371         is BLKmode and the size is not larger than a word.
1373 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
1375         PR target/71017
1376         * config/i386/cpuid.h: Fix undefined behavior.
1378 2017-01-04  Jeff Law  <law@redhat.com>
1380         PR tree-optimization/79007
1381         PR tree-optimization/67955
1382         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
1383         conservative for pt.null when flag_non_call_exceptions is on.
1385 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1387         PR translation/79019
1388         PR translation/79020
1389         * params.def (PARAM_INLINE_MIN_SPEEDUP,
1390         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
1391         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
1392         in descriptions.
1393         * config/avr/avr.opt (maccumulate-args): Likewise.
1394         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
1395         * common.opt (freport-bug): Likewise.
1396         * cif-code.def (CIF_FINAL_ERROR): Likewise.
1397         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
1398         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
1399         translatable string.
1400         * config/i386/i386.c (function_value_32): Likewise.
1401         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
1402         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
1403         Likewise.
1404         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
1405         * common/config/msp430/msp430-common.c (msp430_handle_option):
1406         Likewise.
1407         * symtab.c (symtab_node::verify_base): Likewise.
1408         * opts.c (set_debug_level): Likewise.
1409         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
1410         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1411         missing whitespace to translatable strings.
1412         * config/avr/avr.md (bswapsi2): Fix typo in comment.
1413         * config/sh/superh.h: Likewise.
1414         * config/i386/xopintrin.h: Likewise.
1415         * config/i386/znver1.md: Likewise.
1416         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
1417         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
1418         * double-int.h (struct double_int): Likewise.
1419         * double-int.c (div_and_round_double): Likewise.
1420         * wide-int.cc: Likewise.
1421         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
1422         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
1423         * cfgcleanup.c (crossjumps_occured): Renamed to ...
1424         (crossjumps_occurred): ... this.
1425         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
1426         Adjust all uses.
1428         PR tree-optimization/78899
1429         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
1430         returning bool return struct loop *, NULL for failure and the new
1431         loop on success.
1432         (versionable_outer_loop_p): Don't version outer loop if it has
1433         dont_vectorized bit set.
1434         (tree_if_conversion): When versioning outer loop, ensure
1435         tree_if_conversion is performed also on the inner loop of the
1436         non-vectorizable outer loop copy.
1437         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
1438         LOOP_VECTORIZED in inner loop of the scalar outer loop and
1439         prevent vectorization of it.
1440         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
1441         the outer loop vectorization of the non-scalar version is attempted
1442         before vectorization of the inner loop in scalar version.  If
1443         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
1444         vectorization of its inner loop.
1445         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
1446         has 2 inner loops, rename also on edges from bb whose single pred
1447         is outer_loop->header.  Fix typo in function comment.
1449 2017-01-09  Martin Sebor  <msebor@redhat.com>
1451         PR bootstrap/79033
1452         * asan.c (asan_emit_stack_protection): Increase local buffer size
1453         to avoid snprintf truncation warning.
1455 2017-01-09  Andrew Pinski  <apinski@cavium.com>
1457         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
1458         to reference thunderx2t99 for the tuning structure
1459         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
1460         Rename to ...
1461         (thunderx2t99_extra_costs): This.
1462         * config/aarch64/aarch64-tune.md: Regenerate.
1463         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
1464         (vulcan_addrcost_table): This.
1465         (vulcan_regmove_cost): Rename to ...
1466         (thunderx2t99_regmove_cost): This.
1467         (vulcan_vector_cost): Rename to ...
1468         (thunderx2t99_vector_cost): this.
1469         (vulcan_branch_cost): Rename to ...
1470         (thunderx2t99_branch_cost): This.
1471         (vulcan_tunings): Rename to ...
1472         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
1473         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
1475 2017-01-09  Martin Jambor  <mjambor@suse.cz>
1477         PR ipa/78365
1478         PR ipa/78599
1479         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
1480         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
1481         (propagate_vr_accross_jump_function): Use the above function for all
1482         value range computations for pass-through jump functions and type
1483         converasion from explicit value range values.
1484         (ipcp_propagate_stage): Do not attempt to deduce types of formal
1485         parameters from TYPE_ARG_TYPES.
1486         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
1487         (ipa_write_node_info): Stream type of the actual argument.
1488         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
1490 2017-01-09  Martin Liska  <mliska@suse.cz>
1492         PR pch/78970
1493         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
1494         (lookup_compiler): Do not show error message with have_E.
1496 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1498         PR tree-optimization/78938
1499         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
1500         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
1501         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
1502         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
1503         fixes.
1505 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1507         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
1508         is const0_rtx.
1510 2017-01-09  Richard Biener  <rguenther@suse.de>
1512         PR tree-optimization/78997
1513         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
1514         name condition properly.
1516 2017-01-09  Richard Biener  <rguenther@suse.de>
1518         PR debug/79000
1519         * dwarf2out.c (is_cxx): New overload with context.
1520         (is_naming_typedef_decl): Use it.
1522 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
1524         * invoke.texi (Option Summary): Correct spacing in option lists
1525         and add line breaks to fix over-long lines.
1527 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
1529         PR middle-end/17660
1531         * extend.texi (Common Variable Attributes): Add xref to GCC
1532         Internals manual to explain mode attribute keywords.
1534 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
1536         PR other/16519
1537         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
1538         and Preprocessor Options.
1539         (Options for Linking): Document -pthread here....
1540         (RS/6000 and PowerPC Options): ...not here.
1541         (Solaris 2 Options): ...or here.
1542         * doc/cppopts.texi: Document -pthread.
1544 2017-01-08  Martin Sebor  <msebor@redhat.com>
1546         PR middle-end/77708
1547         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
1548         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
1549         New member functions.
1550         (format_directive): Used them.
1551         (add_bytes): Same.
1552         (pass_sprintf_length::handle_gimple_call): Same.
1553         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
1554         to avoid truncation for any argument.
1555         (extract_affine_mul): Same.
1556         * tree.c (get_file_function_name): Same.
1558 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
1560         PR middle-end/77484
1561         * predict.def (PRED_INDIR_CALL): Set to 86.
1563 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
1565         PR preprocessor/54124
1566         * doc/cppopts.texi: Reformat -d subtable to list the full name
1567         of the options.  Add cross-reference to the docs for the general
1568         compiler -d options.
1569         * doc/invoke.texi (Developer Options): Add cross-reference to the
1570         preprocessor-specific -d option documentation.
1572 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
1574         PR preprocessor/13498
1575         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
1576         redudant material, and reflect new command-line options.
1577         (System Headers): Likewise.
1579 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
1581         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
1582         -isystem, and -idirafter.  Copy-edit.
1583         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
1584         default for -ftrack-macro-expansion.  Delete obsolete and
1585         badly-formatted implementation details about -fdebug-cpp output.
1586         * doc/cppwarnopts.texi: Copy-edit.
1588 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
1590         PR c++/72803
1591         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1592         that the transition from a max line width >= 1<<10 to narrower
1593         lines works correctly.
1595 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
1597         * doc/options.texi (PerFunction): New.
1598         * opt-functions.awk (switch_flags): Map both Optimization and
1599         PerFunction to CL_OPTIMIZATION.
1600         * opth-gen.awk: Test for PerFunction flag along with
1601         Optimization.
1602         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
1603         it only when the latter is present.  Skip those that don't in
1604         the hash function generator.
1605         * common.opt (fvar-tracking): Mark as PerFunction instead of
1606         Optimization.
1607         (fvar-tracking-assignments): Likewise.
1608         (fvar-tracking-assignments-toggle): Likewise.
1609         (fvar-tracking-uninit): Likewise.
1611 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
1613         PR translation/79018
1614         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
1615         the and store.
1617 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
1619         PR target/57583
1620         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
1621         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
1622         TARGET_LONG_JUMP_TABLE_OFFSETS.
1623         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
1624         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
1625         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
1626         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
1627         * config/m68k/m68k.md (tablejump expander): Likewise.
1628         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
1629         TARGET_LONG_JUMP_TABLE_OFFSETS.
1630         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
1631         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
1633 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1634             David Holsgrove <david.holsgrove@xilinx.com>
1636         * common/config/microblaze/microblaze-common.c
1637         (TARGET_EXCEPT_UNWIND_INFO): Remove.
1638         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
1639         New prototype.
1640         * config/microblaze/microblaze.c (microblaze_must_save_register)
1641         (microblaze_expand_epilogue, microblaze_return_addr): Handle
1642         calls_eh_return.
1643         (microblaze_eh_return): New function.
1644         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
1645         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
1646         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
1647         * config/microblaze/microblaze.md (eh_return): New pattern.
1649 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
1651         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
1652         GCC_DIAGNOSTIC_STRINGIFY): Define.
1654         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
1656 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1658         * config/arm/arm.md (<mcrr>): New.
1659         (<mrrc>): New.
1660         * config/arm/arm.c (arm_arch5te): New.
1661         (arm_option_override): Set arm_arch5te.
1662         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
1663         and mrrc2.
1664         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
1665         (arm_mcrr_qualifiers): ... this. New.
1666         (MRRC_QUALIFIERS): Define to...
1667         (arm_mrrc_qualifiers): ... this. New.
1668         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
1669         __arm_mrrc2): New.
1670         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
1671         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
1672         (MRRCI, mrrc, MRRC): New.
1673         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
1674         VUNSPEC_MRRC2): New.
1676 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1678         * config/arm/arm.md (<mcr>): New.
1679         (<mrc>): New.
1680         * config/arm/arm.c (arm_coproc_builtin_available): Add
1681         support for mcr, mrc, mcr2 and mrc2.
1682         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
1683         (arm_mcr_qualifiers): ... this. New.
1684         (MRC_QUALIFIERS): Define to ...
1685         (arm_mrc_qualifiers): ... this. New.
1686         (MCR_QUALIFIERS): Define to ...
1687         (arm_mcr_qualifiers): ... this. New.
1688         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
1689         __arm_mrc2): New.
1690         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
1691         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
1692         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
1693         VUNSPEC_MRC2): New.
1695 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1697         * config/arm/arm.md (*ldc): New.
1698         (*stc): New.
1699         (<ldc>): New.
1700         (<stc>): New.
1701         * config/arm/arm.c (arm_coproc_builtin_available): Add
1702         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
1703         (arm_coproc_ldc_stc_legitimate_address): New.
1704         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
1705         'qualifier_const_pointer'.
1706         (LDC_QUALIFIERS): Define to...
1707         (arm_ldc_qualifiers): ... this. New.
1708         (STC_QUALIFIERS): Define to...
1709         (arm_stc_qualifiers): ... this. New.
1710         * config/arm/arm-protos.h
1711         (arm_coproc_ldc_stc_legitimate_address): New.
1712         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
1713         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
1714         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
1715         stc2, stcl, stc2l): New.
1716         * config/arm/constraints.md (Uz): New.
1717         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
1718         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
1719         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
1720         VUNSPEC_STC2L): New.
1722 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1724         * config/arm/arm.md (<cdp>): New.
1725         * config/arm/arm.c (neon_const_bounds): Rename this ...
1726         (arm_const_bounds): ... this.
1727         (arm_coproc_builtin_available): New.
1728         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
1729         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
1730         (CDP_QUALIFIERS): Define to...
1731         (arm_cdp_qualifiers): ... this. New.
1732         (void_UP): Define.
1733         (arm_expand_builtin_args): Add case for 6 arguments.
1734         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
1735         (arm_const_bounds): ... this.
1736         (arm_coproc_builtin_available): New.
1737         * config/arm/arm_acle.h (__arm_cdp): New.
1738         (__arm_cdp2): New.
1739         * config/arm/arm_acle_builtins.def (cdp): New.
1740         (cdp2): New.
1741         * config/arm/iterators.md (CDPI,CDP,cdp): New.
1742         * config/arm/neon.md: Rename all 'neon_const_bounds' to
1743         'arm_const_bounds'.
1744         * config/arm/types.md (coproc): New.
1745         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
1746         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
1747         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
1748         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
1750 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1752         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
1753         (UBINOP_QUALIFIERS): New.
1754         (si_UP): Define.
1755         (acle_builtin_data): New. Change comment.
1756         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
1757         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
1758         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
1759         arm_acle_builtins.def.
1760         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
1761         (arm_init_acle_builtins): New.
1762         (CRC32_BUILTIN): Remove.
1763         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
1764         crc32cb, crc32ch and crc32cw.
1765         (arm_init_crc32_builtins): Remove.
1766         (arm_init_builtins): Use arm_init_acle_builtins rather
1767         than arm_init_crc32_builtins.
1768         (arm_expand_acle_builtin): New.
1769         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
1770         * config/arm/arm_acle_builtins.def: New.
1772 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1774         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
1775         (arm_builtin_datum): ... this.
1776         (arm_init_neon_builtin): Rename to ...
1777         (arm_init_builtin): ... this. Add a new parameters PREFIX
1778         and USE_SIG_IN_NAME.
1779         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
1780         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
1781         'arm_builtin_datum'.
1782         (arm_init_vfp_builtins): Likewise.
1783         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
1784         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
1785         (arm_expand_neon_args): Rename to ...
1786         (arm_expand_builtin_args): ... this. Rename builtin_arg
1787         enum values and differentiate between ARG_BUILTIN_MEMORY
1788         and ARG_BUILTIN_NEON_MEMORY.
1789         (arm_expand_neon_builtin_1): Rename to ...
1790         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
1791         values, arm_expand_builtin_args and add bool parameter NEON.
1792         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
1793         (arm_expand_vfp_builtin): Likewise.
1794         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
1796 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
1798         PR middle-end/77484
1799         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
1800         * predict.c (tree_estimate_probability_bb): Reverse direction of
1801         polymorphic call predictor.
1803 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
1805         * passes.c (execute_one_pass): Split out pass-skipping logic into...
1806         (determine_pass_name_match): ...this new function and...
1807         (should_skip_pass_p): ...this new function.
1809 2017-01-06  Nathan Sidwell  <nathan@acm.org>
1811         * ipa-visibility.c (function_and_variable_visibility): Reformat
1812         comments and long lines.  Remove extrneous if.
1813         * symtab.c (symtab_node::make_decl_local): Fix code format.
1814         (symtab_node::set_section_for_node): Fix comment typo.
1816 2017-01-06  Martin Liska  <mliska@suse.cz>
1818         PR bootstrap/79003
1819         * lra-constraints.c: Rename invariant to lra_invariant.
1820         * predict.c (set_even_probabilities): Initialize e to NULL.
1822 2017-01-05  Martin Sebor  <msebor@redhat.com>
1824         PR tree-optimization/78910
1825         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
1826         (format_integer): Correct off-by-one error in the handling
1827         of precision with negative numbers in signed conversions..
1829 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1831         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
1833 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
1835         PR tree-optimization/71016
1836         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
1837         factor_out_conditional_conversion.  Formatting fix.
1838         (factor_out_conditional_conversion): Add cond_stmt argument.
1839         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
1840         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
1841         Formatting fix.
1843 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
1845         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
1846         read-rtl-function.o, and selftest-rtl.o.
1847         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
1848         (selftest::aarch64_test_loading_full_dump): New function.
1849         (selftest::aarch64_run_selftests): New function.
1850         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
1851         selftest::aarch64_run_selftests.
1852         * config/i386/i386.c
1853         (selftest::ix86_test_loading_dump_fragment_1): New function.
1854         (selftest::ix86_test_loading_call_insn): New function.
1855         (selftest::ix86_test_loading_full_dump): New function.
1856         (selftest::ix86_test_loading_unspec): New function.
1857         (selftest::ix86_run_selftests): Call the new functions.
1858         * emit-rtl.c (maybe_set_max_label_num): New function.
1859         * emit-rtl.h (maybe_set_max_label_num): New decl.
1860         * function.c (instantiate_decls): Guard call to
1861         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
1862         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
1863         "static".
1864         * gensupport.c (gen_reader::gen_reader): Pass "false"
1865         for new "compact" param of rtx_reader.
1866         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
1867         rather than an empty string for NULL strings.
1868         * read-md.c: Potentially include config.h rather than bconfig.h.
1869         Wrap include of errors.h with #ifdef GENERATOR_FILE.
1870         (have_error): New global, copied from errors.c.
1871         (md_reader::read_name): Rename to...
1872         (md_reader::read_name_1): ...this, adding "out_loc" param,
1873         and converting "missing name or number" to returning false, rather
1874         than failing.
1875         (md_reader::read_name): Reimplement in terms of read_name_1.
1876         (md_reader::read_name_or_nil): New function.
1877         (md_reader::read_string): Handle "(nil)" by returning NULL.
1878         (md_reader::md_reader): Add new param "compact".
1879         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
1880         (md_reader::read_file): New method.
1881         * read-md.h (md_reader::md_reader): Add new param "compact".
1882         (md_reader::read_file): New method.
1883         (md_reader::is_compact): New accessor.
1884         (md_reader::read_name): Convert return type from void to file_location.
1885         (md_reader::read_name_or_nil): New decl.
1886         (md_reader::read_name_1): New decl.
1887         (md_reader::m_compact): New field.
1888         (noop_reader::noop_reader): Pass "false" for new "compact" param
1889         of rtx_reader.
1890         (rtx_reader::rtx_reader): Add new "compact" param.
1891         (rtx_reader::read_rtx_operand): Make virtual and convert return
1892         type from void to rtx.
1893         (rtx_reader::read_until): New decl.
1894         (rtx_reader::handle_any_trailing_information): New virtual function.
1895         (rtx_reader::postprocess): New virtual function.
1896         (rtx_reader::finalize_string): New virtual function.
1897         (rtx_reader::m_in_call_function_usage): New field.
1898         (rtx_reader::m_reuse_rtx_by_id): New field.
1899         * read-rtl-function.c: New file.
1900         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
1901         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
1902         (selftest::verify_three_block_rtl_cfg): New decl.
1903         * read-rtl-function.h: New file.
1904         * read-rtl.c: Potentially include config.h rather than bconfig.h.
1905         For host, include function.h, memmodel.h, and emit-rtl.h.
1906         (one_time_initialization): New function.
1907         (struct compact_insn_name): New struct.
1908         (compact_insn_names): New array.
1909         (find_code): Handle insn codes in compact dumps.
1910         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
1911         (bind_subst_iter_and_attr): Likewise.
1912         (add_condition_to_string): Likewise.
1913         (add_condition_to_rtx): Likewise.
1914         (apply_attribute_uses): Likewise.
1915         (add_current_iterators): Likewise.
1916         (apply_iterators): Likewise.
1917         (initialize_iterators): Guard usage of apply_subst_iterator with
1918         #ifdef GENERATOR_FILE.
1919         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
1920         (md_reader::read_mapping): Likewise.
1921         (add_define_attr_for_define_subst): Likewise.
1922         (add_define_subst_attr): Likewise.
1923         (read_subst_mapping): Likewise.
1924         (check_code_iterator): Likewise.
1925         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
1926         logic to...
1927         (one_time_initialization): New function.
1928         (rtx_reader::read_until): New method.
1929         (read_flags): New function.
1930         (parse_reg_note_name): New function.
1931         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
1932         Handle reuse_rtx ids.
1933         Wrap iterator lookup within #ifdef GENERATOR_FILE.
1934         Add parsing support for RTL dumps, mirroring the special-cases in
1935         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
1936         values, and calling handle_any_trailing_information.
1937         (rtx_reader::read_rtx_operand): Convert return type from void
1938         to rtx, returning return_rtx.  Handle case 'e'.  Call
1939         finalize_string on XSTR and XTMPL fields.
1940         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
1941          "(nil)" values were omitted.  Call the postprocess vfunc on the
1942         return_rtx.
1943         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
1944         class ctor.  Initialize m_in_call_function_usage.  Call
1945         one_time_initialization.
1946         * rtl-tests.c (selftest::test_uncond_jump): Call
1947         set_new_first_and_last_insn.
1948         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
1949         * selftest-rtl.c: New file.
1950         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
1951         (selftest::get_insn_by_uid): New decl.
1952         * selftest-run-tests.c (selftest::run_tests): Call
1953         read_rtl_function_c_tests.
1954         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
1955         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
1956         dumps.
1958 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
1960         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
1961         operands in a special way.  Assert that pos+len <= mode precision.
1963 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
1965         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
1966         3 argument Alias with unlimited for the negative form.
1967         (fno-vect-cost-model): Removed.
1969 2017-01-05  Martin Liska  <mliska@suse.cz>
1971         * hsa-gen.c (gen_hsa_divmod): New function.
1972         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
1974 2017-01-05  Martin Liska  <mliska@suse.cz>
1976         PR pch/78970
1977         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
1978         header.
1980 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1982         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
1983         small constant length operands.
1985 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1987         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
1988         between loop iterations.
1990 2017-01-05  Martin Liska  <mliska@suse.cz>
1992         PR sanitizer/78815
1993         * gimplify.c (gimplify_decl_expr): Compare to
1994         asan_poisoned_variables instread of checking flags.
1995         (gimplify_target_expr): Likewise.
1996         (gimplify_expr): Likewise.
1997         (gimplify_function_tree): Conditionally initialize
1998         asan_poisoned_variables.
2000 2017-01-04  Jeff Law  <law@redhat.com>
2002         PR tree-optimizatin/78812
2003         * rtl.h (contains_mem_rtx_p): Prototype.
2004         * ifcvt.c (containts_mem_rtx_p): Move from here to...
2005         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
2006         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
2007         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
2008         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
2010 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
2012         * input.c (assert_char_at_range): Default-initialize actual_range.
2014 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
2016         * df-scan.c (df_ref_create_structure): Make regno unsigned,
2017         to match the caller.
2019 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
2021         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
2022         insns after final jump in test to emit dummy move.
2024 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
2026         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
2027         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
2029 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
2031         * multiple_target.c (create_dispatcher_calls): Init e_next.
2032         * tree-ssa-loop-split.c (split_loop): Init border.
2033         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
2034         scalar_type.
2036 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2038         PR target/71977
2039         PR target/70568
2040         PR target/78823
2041         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
2042         (altivec_register_operand): Do not return true if the operand
2043         contains a SUBREG mixing SImode and SFmode.
2044         (vsx_register_operand): Likewise.
2045         (vsx_reg_sfsubreg_ok): New predicate.
2046         (vfloat_operand): Do not return true if the operand contains a
2047         SUBREG mixing SImode and SFmode.
2048         (vint_operand): Likewise.
2049         (vlogical_operand): Likewise.
2050         (gpc_reg_operand): Likewise.
2051         (int_reg_operand): Likewise.
2052         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
2053         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
2054         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
2055         SImode and SFmode.
2056         (rs6000_emit_move_si_sf_subreg): New helper function.
2057         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
2058         fixup SUBREGs involving SImode and SFmode.
2059         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
2060         numbers for the new peephole2 optimization.
2061         (peephole2 for SFmode unions): New peephole2 to optimize cases in
2062         the GLIBC math library that do AND/IOR/XOR operations on single
2063         precision floating point.
2064         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
2065         target macros to say whether we need to avoid SUBREGs mixing
2066         SImode and SFmode.
2067         (TARGET_ALLOW_SF_SUBREG): Likewise.
2068         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
2069         (UNSPEC_SI_FROM_SF): Likewise.
2070         (iorxor): Change spacing.
2071         (and_ior_xor): New iterator for AND, IOR, and XOR.
2072         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
2073         (movdi_from_sf_zero_ext): Likewise.
2074         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
2075         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
2076         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
2077         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
2078         (fms<mode>4): Likewise.
2079         (fnma<mode>4): Likewise.
2080         (fnms<mode>4): Likewise.
2081         (nfma<mode>4): Likewise.
2082         (nfms<mode>4): Likewise.
2084 2017-01-04  Marek Polacek  <polacek@redhat.com>
2086         PR c++/64767
2087         * doc/invoke.texi: Document -Wpointer-compare.
2089 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
2091         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
2092         RejectNegative.
2094         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
2095         descriptions for -gdwarf-5 and emit them as uleb128 instead of
2096         2-byte data.
2098 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2100         PR target/78056
2101         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
2102         documentation of the powerpc_popcntb_ok attribute.
2103         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2104         code to issue warning messages if a requested CPU configuration is
2105         not supported by the binary (assembler and loader) toolchain.
2106         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
2107         made to define a built-in function that has been disabled.
2108         (paired_init_builtins): Add assertion to prevent ICE if attempt is
2109         made to define a built-in function that has been disabled.
2110         (altivec_init_builtins): Add comment explaining why definition
2111         of the DST built-in functions is not preceded by an assertion
2112         check.  Add assertions to prevent ICE if attempts are made to
2113         define an altivec predicate or an abs* built-in function that has
2114         been disabled.
2115         (htm_init_builtins): Add comment explaining why definition of the
2116         htm built-in functions is not preceded by an assertion check.
2118 2017-01-04  Jeff Law  <law@redhat.com>
2120         PR tree-optimizatin/67955
2121         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
2122         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
2123         the points-to solution does not include pt_null.  Use DECL_PT_UID
2124         unconditionally.
2126 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
2128         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
2129         Use gen_int_mode instead of gen_lopwart for const_int operands.
2131 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
2133         PR tree-optimization/71563
2134         * match.pd: Simplify X << Y into X if Y is known to be 0 or
2135         out of range value - has low bits known to be zero.
2137 2017-01-04  Alan Modra  <amodra@gmail.com>
2139         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
2140         * configure: Regenerate.
2141         * config.in: Regenerate.
2143 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
2145         PR bootstrap/77569
2146         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
2147         a substring of the message, but strcmp with the whole message.  Ifdef
2148         ENABLE_NLS, translate the message first using dgettext.
2150 2017-01-03  Jeff Law  <law@redhat.com>
2152         PR tree-optimizatin/78856
2153         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
2154         (mark_threaded_blocks): Remove code to truncate thread paths that
2155         cross multiple loop headers.  Instead invalidate the cached loop
2156         iteration information and handle case of a thread path walking
2157         into an irreducible region.
2159 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2161         PR target/78900
2162         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
2163         assertions.  Add support for doing the signbit if the IEEE 128-bit
2164         floating point value is in a GPR.
2165         * config/rs6000/rs6000.md (Fsignbit): Delete.
2166         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
2167         Update the length attribute if the value is in a GPR.
2168         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
2169         the sign or zero extension instruction, since the value is always 0/1.
2170         (signbit<mode>2_dm2): Delete using <Fsignbit>.
2172         PR target/78953
2173         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
2174         extracting SImode to a GPR register so that we can generate a
2175         store, limit the vector to be in a traditional Altivec register
2176         for the vextuwrx instruction.
2178 2017-01-03  Ian Lance Taylor  <iant@google.com>
2180         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
2182 2017-01-03  Martin Sebor  <msebor@redhat.com>
2184         PR tree-optimization/78696
2185         * gimple-ssa-sprintf.c (format_floating): Correct handling of
2186         precision.  Use MPFR for %f for greater fidelity.  Correct handling
2187         of %g.
2188         (pass_sprintf_length::compute_format_length): Set width and precision
2189         specified by asrerisk to void_node for vararg functions.
2190         (try_substitute_return_value): Adjust dump output.
2192 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
2194         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
2196 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
2198         * doc/invoke.texi (SPARC options): Document -mlra as the default.
2199         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
2200         -mlra/-mno-lra was passed to the compiler.
2202 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
2204         PR rtl-optimization/65618
2205         * emit-rtl.c (try_split): Move initialization of "before" and
2206         "after" to just before the call to emit_insn_after_setloc.
2208 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
2210         * doc/md.texi (Standard Names): Remove reference to Java frontend.
2212 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2214         * dwarf2out.c (gen_enumeration_type_die): When
2215         -gno-strict-dwarf, add a DW_AT_encoding attribute.
2217 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
2219         PR tree-optimization/78965
2220         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2221         Change first argument from const call_info & to call_info &.  For %n
2222         set info.nowrite to false.
2224         PR middle-end/78901
2225         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
2226         possibly throwing calls.
2228         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
2229         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
2230         and fns handling, rather than in a separate case SSA_NAME.
2232 2017-01-02  Jeff Law  <law@redhat.com>
2234         * config/darwin-driver.c (darwin_driver_init): Const-correctness
2235         fixes for first_period and second_period variables.
2237 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
2239         PR target/78967
2240         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
2241         (*insvqi_1): New insn pattern.
2242         (*insvqi_1_mem_rex64): Ditto.
2243         (*insvqi_2): Ditto.
2244         (*insvqi_3): Rename from *insvqi.
2246         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
2248 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
2250         * doc/cfg.texi (Edges): Remove reference to Java.
2251         (Maintaining the CFG): Ditto.
2253 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
2255         PR middle-end/77674
2256         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
2257         transparent aliases.
2259 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
2261         PR middle-end/77484
2262         * predict.def (PRED_CALL): Update hitrate.
2263         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
2264         * predict.c (tree_estimate_probability_bb): Split CALL predictor
2265         into direct/indirect/polymorphic variants.
2267 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2269         Update copyright years.
2271         * gcc.c (process_command): Update copyright notice dates.
2272         * gcov-dump.c (print_version): Ditto.
2273         * gcov.c (print_version): Ditto.
2274         * gcov-tool.c (print_version): Ditto.
2275         * gengtype.c (create_file): Ditto.
2276         * doc/cpp.texi: Bump @copying's copyright year.
2277         * doc/cppinternals.texi: Ditto.
2278         * doc/gcc.texi: Ditto.
2279         * doc/gccint.texi: Ditto.
2280         * doc/gcov.texi: Ditto.
2281         * doc/install.texi: Ditto.
2282         * doc/invoke.texi: Ditto.
2284 Copyright (C) 2017 Free Software Foundation, Inc.
2286 Copying and distribution of this file, with or without modification,
2287 are permitted in any medium without royalty provided the copyright
2288 notice and this notice are preserved.