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