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