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