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