1 2017-03-31 Jakub Jelinek <jakub@redhat.com>
4 * expmed.c (store_bit_field_1): Don't attempt to create
5 a word subreg out of hard registers wider than word if they
6 have HARD_REGNO_NREGS of 1 for their mode.
9 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
10 conversions to integer types wider than word and pointer.
13 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
14 (rtx_equal_for_cselib_p): Pass 0 to it.
15 * cselib.c (cselib_hasher::equal): Likewise.
16 (rtx_equal_for_cselib_1): Add depth argument. If depth
17 is 128, don't look up VALUE locs and punt. Increment
18 depth in recursive calls when walking VALUE locs.
20 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
22 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
23 (make_gcov_file_name): Use the canonical path name for generating
25 (read_line): Fix handling of files with ascii null bytes.
27 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
29 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
30 to initialise a vector register instead
33 2017-03-30 Jakub Jelinek <jakub@redhat.com>
36 * gimplify.c (omp_default_clause): Use %qs instead of %s in
39 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
42 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
43 (dfp_diex_<mode>): Update mode of operand 1.
44 * doc/extend.texi (dxex, dxexq): Document change to return type.
45 (diex, diexq): Document change to argument type.
47 2017-03-30 Martin Jambor <mjambor@suse.cz>
50 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
51 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
52 it reflects the signature changes performed at the callee side.
53 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
54 to cgraph_build_function_type_skip_args.
55 (build_function_decl_skip_args): Adjust call to the above function.
57 2017-03-30 Jakub Jelinek <jakub@redhat.com>
61 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
62 register as dest whenever it is a MEM not rtx_equal_p to the
63 corresponding dup operand, and when forcing into reg move the
64 reg into the memory afterwards.
65 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
66 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
67 for the force_reg mode.
68 (avx512vl_vextractf128<mode>): Use register as dest either
69 always when a MEM, or when it is a MEM not rtx_equal_p to the
70 corresponding dup operand, or even not when it is a CONST_VECTOR
71 depending on the mode and lo vs. hi.
72 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
74 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
75 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
76 Likewise. Require that operands[2] is even.
77 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
78 Remove extraneous parens. Require that operands[2] is a multiple
80 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
81 operands[0] is a MEM if <mask_applied>, the predicates/constraints
84 2017-03-30 Richard Biener <rguenther@suse.de>
86 PR tree-optimization/77498
87 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
88 to non-constants over backedges.
90 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
92 PR rtl-optimization/80233
93 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
94 as last_combined_insn. Do not test for BARRIER_P separately.
96 2017-03-29 Andreas Schwab <schwab@suse.de>
99 * calls.c (prepare_call_address): Convert funexp to Pmode before
102 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
104 PR tree-optimization/80158
105 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
106 Handle possible future case of more than one alternate
108 (replace_rhs_if_not_dup): Likewise.
109 (replace_one_candidate): Likewise.
111 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
113 PR rtl-optimization/80193
114 * ira.c (ira): Do not check allocation for LRA.
116 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
118 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
119 (nvptx_output_simt_exit): Declare.
120 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
121 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
122 (init_softstack_frame): Move initialization of crtl->is_leaf to...
123 (nvptx_declare_function_name): ...here. Emit declaration of local
124 memory space buffer for omp_simt_enter insn.
125 (nvptx_output_unisimt_switch): New.
126 (nvptx_output_softstack_switch): New.
127 (nvptx_output_simt_enter): New.
128 (nvptx_output_simt_exit): New.
129 * config/nvptx/nvptx.h (struct machine_function): New fields
130 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
131 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
132 (UNSPECV_SIMT_EXIT): Ditto.
133 (omp_simt_enter_insn): New insn.
134 (omp_simt_enter): New expansion.
135 (omp_simt_exit): New insn.
136 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
138 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
139 (expand_GOMP_SIMT_ENTER_ALLOC): New.
140 (expand_GOMP_SIMT_EXIT): New.
141 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
142 (GOMP_SIMT_ENTER_ALLOC): Ditto.
143 (GOMP_SIMT_EXIT): Ditto.
144 * target-insns.def (omp_simt_enter): New insn.
145 (omp_simt_exit): Ditto.
146 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
148 (lower_rec_simd_input_clauses): Implement SIMT privatization.
149 (lower_rec_input_clauses): Likewise.
150 (lower_lastprivate_clauses): Handle SIMT privatization.
152 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
153 (ompdevlow_adjust_simt_enter): New.
154 (find_simtpriv_var_op): New.
155 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
156 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
158 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
159 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
160 (copy_decl_for_dup_finish): Ditto.
162 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
164 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
167 * config/i386/i386.c (ix86_option_override_internal): Always
168 allow -mpreferred-stack-boundary=3 for 64-bit targets.
170 2017-03-28 Bin Cheng <bin.cheng@arm.com>
172 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
174 2017-03-28 Bin Cheng <bin.cheng@arm.com>
176 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
177 mark new edge's irreducible flag accordign to it.
178 (vect_do_peeling): Check loop preheader edge's irreducible flag
179 and pass it to function slpeel_add_loop_guard.
181 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
183 PR tree-optimization/80218
184 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
185 Update block frequencies and counts.
187 2017-03-28 Richard Biener <rguenther@suse.de>
189 PR tree-optimization/78644
190 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
191 of a simplification result we may not use it at all.
193 2017-03-28 Richard Biener <rguenther@suse.de>
196 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
197 without arguments, generate default definition of a SSA name.
199 2017-03-28 Richard Biener <rguenther@suse.de>
202 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
203 TYPE_REF_CAN_ALIAS_ALL references.
204 * fold-const.c (fold_indirect_ref_1): Likewise.
206 2017-03-28 Martin Liska <mliska@suse.cz>
209 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
210 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
212 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
213 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
215 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
216 (EXTRA_SPECS): Define.
217 (SUBTARGET_EXTRA_SPECS): Likewise.
218 (SUBTARGET_CPP_SPEC): Likewise.
219 * config/arc/elf.h (EXTRA_SPECS): Renamed to
220 SUBTARGET_EXTRA_SPECS.
221 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
223 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
225 * config/arc/simdext.md (vst64_insn): Update pattern.
226 (vld32wh_insn): Likewise.
227 (vld32wl_insn): Likewise.
228 (vld64_insn): Likewise.
229 (vld32_insn): Likewise.
231 2017-03-28 Marek Polacek <polacek@redhat.com>
234 * fold-const.c (fold_comparison): Use protected_set_expr_location
235 instead of SET_EXPR_LOCATION.
237 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
239 * tree.c (add_expr): Avoid name lookup warning.
241 2017-03-27 Jeff Law <law@redhat.com>
243 PR tree-optimization/80216
244 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
245 function name. Limit recursion depth.
246 (record_temporary_equivalences): Corresponding changes.
248 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
250 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
253 2017-03-27 Jakub Jelinek <jakub@redhat.com>
256 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
258 * cfgcleanup.c (reg_note_cfa_p): New array.
259 (insns_have_identical_cfa_notes): New function.
260 (old_insns_match_p): Don't cross-jump in between /f
261 and non-/f instructions. If both i1 and i2 are frame related,
262 verify all CFA notes, their order and content.
264 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
267 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
268 HImode and SImode with zero extend to DImode to one insn.
269 (bswap<mode>2_extenddi): Likewise.
270 (bswapsi2_extenddi): Likewise.
271 (bswaphi2_extendsi): Likewise.
272 (bswaphi2): Combine bswap HImode and SImode into one insn.
273 Separate memory insns from swapping register.
274 (bswapsi2): Likewise.
275 (bswap<mode>2): Likewise.
276 (bswaphi2_internal): Delete, no longer used.
277 (bswapsi2_internal): Likewise.
278 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
279 store, and gpr<-gpr swap insns.
280 (bswap<mode>2_store): Likewise.
281 (bswaphi2_reg): Register only splitter, combine with the splitter.
282 (bswaphi2 splitter): Likewise.
283 (bswapsi2_reg): Likewise.
284 (bswapsi2 splitter): Likewise.
285 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
286 the insns into load, store, and register/register insns.
287 (bswapdi2_ldbrx): Likewise.
288 (bswapdi2_load): Likewise.
289 (bswapdi2_store): Likewise.
290 (bswapdi2_reg): Likewise.
292 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
294 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
295 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
297 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
300 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
302 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
303 special handling for target option conflicts between dform
304 options (-mpower9-dform, -mpower9-dform-vector,
305 -mpower9-dform-scalar) and -mno-direct-move.
307 2017-03-27 Richard Biener <rguenther@suse.de>
309 PR tree-optimization/80181
310 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
312 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
314 * config/arc/predicates.md (move_double_src_operand): Replace the
315 call to move_double_src_operand with a call to address_operand.
317 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
319 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
320 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
321 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
323 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
325 * config/arc/predicates.md (long_immediate_loadstore_operand):
326 Consider scaled addresses cases.
328 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
330 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
331 restored when in interrupt.
332 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
333 doesn't have delay slot.
335 2017-03-27 Richard Biener <rguenther@suse.de>
338 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
339 inlined thunk clones.
341 2017-03-27 Jakub Jelinek <jakub@redhat.com>
344 * asan.c (instrument_derefs): Copy over last operand from
345 original COMPONENT_REF to the new COMPONENT_REF with
346 DECL_BIT_FIELD_REPRESENTATIVE.
347 * ubsan.c (instrument_object_size): Likewise.
349 2017-03-27 Richard Biener <rguenther@suse.de>
351 PR tree-optimization/80170
352 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
353 sure DR/SCEV didnt fold in constants we do not see when looking
354 at the reference base alignment.
356 2017-03-27 Richard Biener <rguenther@suse.de>
359 * gimple-fold.c (fold_ctor_reference): Properly guard against
360 NULL return value from canonicalize_constructor_val.
362 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
365 * config/i386/i386.c (ix86_expand_builtin)
366 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
367 flags reg setting and flags reg using instructions.
368 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
369 clobbering instructions to zero extend op2.
371 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
373 * doc/install.texi (Configuration) <--with-aix-soname>:
374 Update link to AIX ld.
376 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
378 PR rtl-optimization/80160
379 PR rtl-optimization/80159
380 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
381 reg_alternate_class into account.
383 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
386 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
387 to consider in curr_insn_transform.
389 2017-03-24 Jakub Jelinek <jakub@redhat.com>
391 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
392 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
395 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
397 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
398 argument to the overloaded builtin variants. Use the new flag to
399 deprecate certain builtin variants.
400 * config/s390/s390-builtin-types.def: Add new builtin types.
401 * config/s390/s390-builtins.h: Support new flags field for
403 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
404 (s390_macro_to_expand): Enable vector float data type.
405 (s390_cpu_cpp_builtins_internal): Indicate support of the new
406 builtins by incrementing the __VEC__ version number.
407 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
409 (s390_resolve_overloaded_builtin): Emit error messages depending
410 on the builtin flags.
411 * config/s390/s390.c (s390_expand_builtin): Support additional
412 flags argument. Change error message to match the messages
414 * config/s390/s390.md: New UNSPEC_* constants.
415 (op_type): Add new instruction types.
416 * config/s390/vecintrin.h: Add new builtins and test data class
418 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
419 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
420 (VEC_INEXACT, VEC_NOINEXACT): New constants.
421 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
422 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
423 ("vec_mergel<mode>"): V_HW -> VEC_HW.
425 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
426 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
427 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
428 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
430 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
431 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
432 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
433 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
435 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
436 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
437 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
438 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
439 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
440 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
441 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
443 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
444 ("vec_scatter_element<V_HW_4:mode>_DI")
445 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
446 ("vec_fpint<mode>", "vflls")
447 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
448 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
449 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
450 ("*vec_cmphe<mode>_cc"): ... these.
452 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
453 mode constant instead of magic value.
455 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
457 * config/s390/s390.c (s390_expand_vec_compare): Support other
458 vector floating point modes than just V2DF.
459 (s390_expand_vcond): Likewise.
460 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
461 (s390_cannot_change_mode_class): Prevent mode changes between TF
462 and V1TF in vector registers.
463 * config/s390/s390.md (DF, SF): New mode attributes.
464 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
465 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
466 SFmode support for VRs.
467 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
469 (VFT, VF_HW): New mode iterators.
470 (vw, sdx): New mode attributes.
471 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
472 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
473 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
474 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
475 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
476 also the new vector floating point modes. Renaming to ...
478 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
479 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
480 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
481 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
482 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
483 ("vec_unordered<mode>"): ... these.
485 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
486 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
487 ("*vec_extendv2df"): New insn definitions.
489 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
491 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
492 ("mulditi3_2", "*muldi3_sign"): New patterns.
493 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
494 rename the pattern definition.
496 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
498 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
500 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
502 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
504 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
505 instruction if possible.
506 * config/s390/vector.md (vec_halfnumelts): New mode
508 ("*vec_vllezlf<mode>"): New pattern.
510 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
512 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
513 ("popcountv4si2", "popcountv2di2"): Rename to ...
514 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
515 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
517 ("popcount<mode>2_vxe"): New pattern.
519 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
521 * common/config/s390/s390-common.c (processor_flags_table): Add
523 * config.gcc: Add arch12.
524 * config/s390/driver-native.c (s390_host_detect_local_cpu):
525 Default to arch12 for unknown CPU model numbers.
526 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
527 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
528 PROCESSOR_max sanity check.
529 * config/s390/s390-opts.h (enum processor_type): Add
531 * config/s390/s390.c (processor_table): Add arch12.
532 (s390_expand_builtin): Add check for B_VXE flag.
533 (s390_issue_rate): Add PROCESSOR_ARCH12.
534 (s390_get_sched_attrmask): Likewise.
535 (s390_get_unit_mask): Likewise.
536 (s390_sched_score): Enable z13 scheduling for arch12.
537 (s390_sched_reorder): Likewise.
538 (s390_sched_variable_issue): Likewise.
539 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
541 (s390_tune_attr): Use z13 scheduling also for arch12.
542 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
543 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
544 (TARGET_VXE_P): New macros.
545 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
546 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
547 * config/s390/s390.opt: Add arch12 as processor_type.
549 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
551 * config/s390/s390.md
552 ("fixuns_truncdddi2", "fixuns_trunctddi2")
553 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
554 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
556 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
557 Rename expanders to ...
559 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
560 ("fixuns_truncdddi2_emu"): ... these.
562 ("fixuns_trunc<mode>si2_emu"): New expander.
564 ("*fixuns_truncdfdi2_z13"): Rename to ...
565 ("*fixuns_truncdfdi2_vx"): ... this.
567 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
569 * config/s390/2964.md: Remove the single element vector compare
570 instructions which are no longer used.
571 * config/s390/s390.c (s390_select_ccmode): Remove handling of
573 (s390_canonicalize_comparison): Remove handling of DFmode
575 (s390_expand_vec_compare_scalar): Remove function.
576 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
577 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
579 ("*cmp<mode>_ccs"): Add wfcdb instruction.
581 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
583 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
585 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
586 will anyway by matched by mov<mode>_64dfp.
588 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
590 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
591 vlef/vstef. Add missing operand to vleif.
593 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
595 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
596 pair for all vector types with 64 bit elements.
597 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
598 * config/s390/vector.md (V_HW_64): ... here.
599 (V_128_NOSINGLE): New mode iterator.
600 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
601 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
602 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
603 ("*vec_load_pairv2di"): Change to ...
604 ("*vec_load_pair<mode>"): ... this one.
606 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
608 * config/s390/constraints.md: Add comments.
609 (jKK): Reject element sizes > 8 bytes.
610 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
612 * config/s390/s390.md: Add the s_operand checks formerly in
613 s390_split_ok_p to various splitters where they are still
615 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
616 for 128 bit vectors. Plus two splitters.
618 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
620 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
623 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
626 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
627 error if the boundary argument is not constant.
629 2017-03-24 Jakub Jelinek <jakub@redhat.com>
631 PR rtl-optimization/80112
632 * loop-doloop.c (doloop_condition_get): Don't check condition
633 if cmp isn't SET with IF_THEN_ELSE src.
635 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
637 PR tree-optimization/80158
638 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
639 replacing a candidate statement, also replace it for the
640 candidate's alternate interpretation.
641 (replace_rhs_if_not_dup): Likewise.
642 (replace_one_candidate): Likewise.
644 2017-03-24 Richard Biener <rguenther@suse.de>
646 PR tree-optimization/80167
647 * graphite-isl-ast-to-gimple.c
648 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
650 (translate_isl_ast_to_gimple::get_rename): Likewise.
652 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
654 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
655 handling of certain combinations of target options, including the
656 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
657 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
659 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
662 * config/arm/arm.md (*load_multiple): Add reload_completed to
665 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
666 Richard Biener <rguenth@suse.de>
668 PR tree-optimization/79908
669 PR tree-optimization/80136
670 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
671 been cast away, gimplify_and_add suffices.
673 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
675 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
677 2017-03-23 Richard Biener <rguenther@suse.de>
679 PR tree-optimization/80032
680 * gimplify.c (gimple_push_cleanup): Forced unconditional
681 cleanups still have to go to the conditional_cleanups
684 2017-03-22 Jakub Jelinek <jakub@redhat.com>
686 PR tree-optimization/80072
687 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
689 (next_operand_entry_id): Change type to unsigned int.
690 (sort_by_operand_rank): Make sure to return the right return value
691 even if unsigned fields are bigger than INT_MAX.
692 (struct oecount): Change cnt and id type to unsigned int.
693 (oecount_hasher::equal): Formatting fix.
694 (oecount_cmp): Make sure to return the right return value
695 even if unsigned fields are bigger than INT_MAX.
696 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
699 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
700 TREE_READONLY on result if writing it more than once.
703 * doc/invoke.texi (-fsanitize=thread): Document that with
704 -fnon-call-exceptions atomics are not able to throw
708 * tsan.c: Include tree-eh.h.
709 (instrument_builtin_call): Call maybe_clean_eh_stmt or
710 maybe_clean_or_replace_eh_stmt where needed.
711 (instrument_memory_accesses): Add cfg_changed argument.
712 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
714 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
716 PR rtl-optimization/63191
717 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
718 wrapper function, moved the whole old content into ...
719 (ix86_delegitimize_address_1): ... this. New inline function.
720 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
721 true as last argument instead of ix86_delegitimize_address.
723 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
725 * config/aarch64/aarch64.c (generic_branch_cost): Copy
726 cortexa57_branch_cost.
728 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
730 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
732 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
735 * doc/md.texi (Constraints): Document wA constraint.
736 * config/rs6000/constraints.md (wA): New.
737 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
738 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
739 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
740 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
742 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
745 * gimplify.c (is_oacc_declared): New function.
746 (oacc_default_clause): Use it to set default flags for acc declared
747 variables inside parallel regions.
748 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
750 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
751 declare attribute to any decl as necessary.
753 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
756 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
757 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
758 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
759 (arm_arch_lpae): This.
760 * config/arm/arm.c (arm_arch7ve): Rename into ...
761 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
762 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
765 2017-03-22 Martin Liska <mliska@suse.cz>
768 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
769 error message instead of an ICE.
771 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
773 * doc/extend.texi (6.11 Additional Floating Types): Revise.
775 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
777 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
779 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
782 2017-03-21 Martin Sebor <msebor@redhat.com>
784 * doc/extend.texi: Use "cannot" instead of "can't."
785 * doc/hostconfig.texi: Same.
786 * doc/install.texi: Same.
787 * doc/invoke.texi: Same.
788 * doc/loop.texi: Same.
790 * doc/objc.texi: Same.
791 * doc/rtl.texi: Same.
793 * doc/tm.texi.in: Same.
794 * doc/trouble.texi: Same.
796 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
799 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
800 (collect_checksum_attributes): Set it.
801 (die_checksum_ordered): Use it.
803 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
805 PR tree-optimization/79908
806 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
807 change: For a VA_ARG whose LHS has been cast away, use
808 force_gimple_operand to construct the side effects.
810 2017-03-21 David Malcolm <dmalcolm@redhat.com>
813 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
814 more amenable to translation.
815 (oacc_loop_auto_partitions): Likewise.
817 2017-03-21 Marek Polacek <polacek@redhat.com>
818 Martin Sebor <msebor@redhat.com>
820 PR tree-optimization/80109
821 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
824 2017-03-21 Jakub Jelinek <jakub@redhat.com>
825 Segher Boessenkool <segher@kernel.crashing.org>
828 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
829 check reg_used_between_p between insn and one of succ or succ2
830 depending on if succ is artificial insn not inserted into insn
833 2017-03-21 Martin Liska <mliska@suse.cz>
835 PR gcov-profile/80081
836 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
837 * doc/gcc.texi: Include gcov-dump stuff.
838 * doc/gcov-dump.texi: New file.
840 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
842 PR rtl-optimization/79150
843 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
844 conditional jump, if the jump is the last insn of the loop.
846 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
847 Richard Biener <rguenth@suse.de>
849 PR tree-optimization/79908
850 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
851 been cast away, use force_gimple_operand to construct the side
854 2017-03-21 Martin Liska <mliska@suse.cz>
857 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
860 2017-03-21 Brad Spengler <spender@grsecurity.net>
863 * plugin.c (htab_hash_plugin): New function.
864 (add_new_plugin): Use it and adjust.
865 (parse_plugin_arg_opt): Adjust.
866 (init_one_plugin): Likewise.
868 2017-03-21 Richard Biener <rguenther@suse.de>
870 PR tree-optimization/80032
871 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
872 if set force the cleanup to happen unconditionally.
873 (gimplify_target_expr): Push inserted clobbers with force_uncond
874 to avoid them being removed by control-dependent DCE.
876 2017-03-21 Richard Biener <rguenther@suse.de>
878 PR tree-optimization/80122
879 * tree-inline.c (copy_bb): Do not expans va-arg packs or
880 va_arg_pack_len when the inlined call stmt requires pack
882 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
884 2017-03-21 Jakub Jelinek <jakub@redhat.com>
887 * tsan.c (instrument_builtin_call): If the memory model argument
888 is not a constant, assume it is valid.
891 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
894 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
896 PR rtl-optimization/79910
897 * combine.c (can_combine_p): Do not allow combining an I0 or I1
898 if its dest is used by an insn before I2 (other than the combined
899 insns themselves, which are properly handled already).
901 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
904 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
906 * combine.c (record_used_regs): New static function.
907 (try_combine): Handle situations where there is an additional
908 instruction between I2 and I3 which needs to have a LOG_LINK
912 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
914 * combine.c (try_combine): Delete redundant i1 test. Call
915 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
917 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
920 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
923 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
925 PR tree-optimization/80054
926 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
927 the optimization if a PHI or any of its arguments is not dominated
928 by the candidate's basis. Use gphi* rather than gimple* as
930 (replace_profitable_candidates): Clean up a gimple* variable that
931 should be a gphi* variable.
933 2017-03-20 Martin Sebor <msebor@redhat.com>
936 * doc/extend.texi (attribute constructor): Document present limitation.
938 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
941 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
942 __POWER9_VECTOR__ #ifdef control, change template definition to
943 use Power9-specific built-in function.
944 (vec_any_eq): Likewise.
945 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
946 to control outcomes from this test.
947 (vector_ae_<mode>p): For VEC_F modes, likewise.
949 2017-03-20 Ian Lance Taylor <iant@google.com>
951 * config/i386/i386.c (ix86_function_regparm): Save an extra
952 register for -fsplit-stack with DECL_STATIC_CHAIN.
954 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
957 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
958 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
960 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
962 * config/riscv/riscv.c (riscv_print_operand): Use "fence
964 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
967 2017-03-20 Marek Polacek <polacek@redhat.com>
970 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
972 2017-03-20 Richard Biener <rguenther@suse.de>
974 PR tree-optimization/80113
975 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
976 allocate extra SSA name for PHI def.
977 (add_close_phis_to_outer_loops): Likewise.
978 (add_close_phis_to_merge_points): Likewise.
979 (copy_loop_close_phi_args): Likewise.
980 (copy_cond_phi_nodes): Likewise.
982 2017-03-20 Martin Liska <mliska@suse.cz>
985 * tree-chkp.c (chkp_build_returned_bound): Do not build
986 returned bounds for a LHS that's not a BOUNDED_P type.
988 2017-03-20 Martin Liska <mliska@suse.cz>
992 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
993 COMPLEX_CST and VECTOR_CST.
995 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
998 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
999 target operand. A new splitter adds the clobber statement in case
1000 the target operand is dead anyway.
1002 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1004 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
1005 to age-old versions of binutils and glibc.
1007 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
1009 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
1011 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1013 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
1015 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1017 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
1018 requirement for binutils 2.13.
1020 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
1022 * combine.c (try_combine): Delete redundant i1 test. Call
1023 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
1025 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
1027 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
1028 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
1030 <riscv64-*-elf>: Re-arrange section
1031 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
1032 <riscv32-*-linux>: Likewise.
1033 <riscv64-*-elf>: Likewise
1034 <riscv64-*-linux>: Likewise.
1036 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
1039 * aarch64.opt(verbose-cost-dump): Fix typo.
1041 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
1044 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1045 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1047 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
1049 * reload.c (find_reloads): When reloading a nonoffsettable address,
1050 use RELOAD_OTHER for it and its address reloads.
1052 PR rtl-optimization/79910
1053 * combine.c (record_used_regs): New static function.
1054 (try_combine): Handle situations where there is an additional
1055 instruction between I2 and I3 which needs to have a LOG_LINK
1058 2017-03-17 Jeff Law <law@redhat.com>
1060 PR tree-optimization/71437
1061 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
1062 conditional in the hash table first.
1063 (vrp_dom_walker::before_dom_children): Extract condition from
1064 ASSERT_EXPR. Record condition, its inverion and any implied
1067 2017-03-17 Marek Polacek <polacek@redhat.com>
1068 Markus Trippelsdorf <markus@trippelsdorf.de>
1070 PR tree-optimization/80079
1071 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
1074 2017-03-17 Richard Biener <rguenther@suse.de>
1077 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
1078 Properly verify the LHS before the RHS possibly claims to be
1080 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
1083 2017-03-17 Martin Jambor <mjambor@suse.cz>
1085 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
1086 (List of -O2 options): Likewise.
1087 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
1090 2017-03-17 Tom de Vries <tom@codesourcery.com>
1092 * gcov-dump.c (print_usage): Print bug_report_url.
1094 2017-03-17 Richard Biener <rguenther@suse.de>
1097 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
1098 (parser::peek): Likewise.
1100 2017-03-17 Richard Biener <rguenther@suse.de>
1102 PR tree-optimization/80048
1103 * sese.c (free_sese_info): Properly release rename_map and
1104 copied_bb_map elements.
1106 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
1108 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
1109 Add linked-list forward and backlinks. Insert on
1110 construction, remove on destruction.
1111 (class pass_store_merging): Add m_stores_head field.
1112 (pass_store_merging::terminate_and_process_all_chains):
1113 Iterate over m_stores_head list.
1114 (pass_store_merging::terminate_all_aliasing_chains):
1116 (pass_store_merging::execute): Check for debug stmts first.
1117 Push new chains onto the m_stores_head stack.
1119 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1122 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1123 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1124 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1126 2017-03-16 Jeff Law <law@redhat.com>
1128 PR tree-optimization/71437
1129 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
1130 member function. Implementation moved into after_dom_children
1131 member function and into the threader's thread_outgoing_edges
1133 (dom_opt_dom_walker::after_dom_children): Simplify by moving
1134 some code into new thread_outgoing_edges.
1135 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
1136 definition. Simplify marker handling (do it here). Assume we always
1137 have the available expression and the const/copies tables.
1138 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
1140 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
1141 * tree-vrp.c (equiv_stack): No longer file scoped.
1142 (vrp_dom_walker): New class.
1143 (vrp_dom_walker::before_dom_children): New member function.
1144 (vrp_dom_walker::after_dom_children): Likewise.
1145 (identify_jump_threads): Setup domwalker. Use it rather than
1146 walking edges in a random order by hand. Simplify setup/finalization.
1147 (finalize_jump_threads): Remove.
1148 (vrp_finalize): Do not call identify_jump_threads here.
1149 (execute_vrp): Do it here instead and call thread_through_all_blocks
1152 PR tree-optimization/71437
1153 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
1155 (simplify_stmt_for_jump_threading): Add basic_block argument. All
1157 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
1158 (dom_opt_dom_walker::thread_across_edge): Remove
1159 handle_dominating_asserts argument. All callers changed.
1160 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
1161 changes. Remove calls to lhs_of_dominating_assert. Other
1162 uses of handle_dominating_asserts turn into unconditional code
1163 (simplify_control_stmt_condition_1): Likewise.
1164 (simplify_control_stmt_condition): Likewise.
1165 (thread_through_normal_block, thread_across_edge): Likewise.
1166 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
1167 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
1168 object if it is not an SSA_NAME.
1169 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
1170 before calling into the VRP specific simplifiers.
1171 (identify_jump_threads): Remove handle_dominating_asserts
1174 2017-03-16 Jakub Jelinek <jakub@redhat.com>
1177 * tree-diagnostic.c (default_tree_printer): No longer static.
1178 * tree-diagnostic.h (default_tree_printer): New prototype.
1180 2017-03-16 Tamar Christina <tamar.christina@arm.com>
1182 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
1183 Change ins into fmov.
1185 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1187 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
1188 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
1189 Use h_con constraint for operand 1.
1190 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1191 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
1193 2017-03-15 Jeff Law <law@redhat.com>
1195 PR tree-optimization/71437
1196 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
1197 (record_temporary_equivalences): Use it.
1199 PR tree-optimization/71437
1200 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
1201 tree-ssa-scopedtables.
1202 (lookup_avail_expr, build_and_record_new_cond): Likewise.
1203 (record_conditions, record_cond, vuse_eq): Likewise.
1204 (record_edge_info): Adjust to API tweak of record_conditions.
1205 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
1206 (record_temporary_equivalences, optimize_stmt): Likewise.
1207 (eliminate_redundant_computations): Likewise.
1208 (record_equivalences_from_stmt): Likewise.
1209 * tree-ssa-scopedtables.c: Include options.h and params.h.
1210 (vuse_eq): New function, moved from tree-ssa-dom.c
1211 (build_and_record_new_cond): Likewise.
1212 (record_conditions): Likewise. Accept vector of conditions rather
1213 than edge_equivalence structure for first argument.
1214 for the first argument.
1215 (avail_exprs_stack::lookup_avail_expr): New member function, moved
1216 from tree-ssa-dom.c.
1217 (avail_exprs_stack::record_cond): Likewise.
1218 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
1219 from tree-ssa-dom.c.
1220 (avail_exprs_stack): Add new member functions lookup_avail_expr
1222 (record_conditions): Declare.
1224 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
1227 * lra-constraints.c (process_alt_operands): Increase reject for
1228 reloading an input/output operand.
1230 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1233 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
1234 insns to convert from signed/unsigned char/short to IEEE 128-bit
1236 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
1238 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
1241 * config/i386/i386.c (ix86_vector_duplicate_value): Create
1242 subreg of inner mode for values already in registers.
1244 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
1246 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
1247 iteration reg is used after the loop.
1249 2017-03-14 Martin Sebor <msebor@redhat.com>
1251 PR tree-optimization/79800
1252 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
1253 precision in negative-positive range.
1254 (format_floating): Call non-const overload with adjusted precision.
1256 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1259 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
1262 2017-03-14 Martin Sebor <msebor@redhat.com>
1265 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
1266 * builtins.def (aligned_alloc): Use it.
1269 * Makefile.in (GTFILES): Add calls.c.
1270 * calls.c: Include "gt-calls.h".
1272 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
1274 PR rtl-optimization/79728
1275 * regs.h (struct target_regs): New field
1276 x_contains_allocatable_regs_of_mode.
1277 (contains_allocatable_regs_of_mode): New macro.
1278 * reginfo.c (init_reg_sets_1): Initialize it, and change
1279 contains_reg_of_mode so it includes global regs as well.
1280 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
1281 rather than contains_regs_of_mode.
1283 2017-03-14 Martin Liska <mliska@suse.cz>
1285 * doc/invoke.texi: Document options that can't be combined with
1286 -fcheck-pointer-bounds.
1288 2017-03-14 Martin Liska <mliska@suse.cz>
1291 * doc/invoke.texi (-Wchkp): Document the option.
1293 2017-03-14 Martin Liska <mliska@suse.cz>
1295 * Makefile.in: Install gcov-dump.
1297 2017-03-14 Martin Liska <mliska@suse.cz>
1299 * multiple_target.c (expand_target_clones): Bail out for
1300 an invalid attribute.
1302 2017-03-14 Richard Biener <rguenther@suse.de>
1304 * alias.c (struct alias_set_entry): Pack properly.
1305 * cfgloop.h (struct loop): Likewise.
1306 * cse.c (struct set): Likewise.
1307 * ipa-utils.c (struct searchc_env): Likewise.
1308 * loop-invariant.c (struct invariant): Likewise.
1309 * lra-remat.c (struct cand): Likewise.
1310 * recog.c (struct change_t): Likewise.
1311 * rtl.h (struct address_info): Likewise.
1312 * symbol-summary.h (function_summary): Likewise.
1313 * tree-loop-distribution.c (struct partition): Likewise.
1314 * tree-object-size.c (struct object_size_info): Likewise.
1315 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
1316 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
1317 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
1318 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
1319 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
1320 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
1321 (struct _stmt_vec_info): Likewise.
1323 2017-03-14 Martin Liska <mliska@suse.cz>
1326 * multiple_target.c (create_dispatcher_calls): Check that
1327 a target can create a function dispatcher.
1329 2017-03-14 Martin Liska <mliska@suse.cz>
1332 * multiple_target.c (expand_target_clones): Drop local.local
1333 flag for default implementation.
1335 2017-03-14 Richard Biener <rguenther@suse.de>
1337 PR tree-optimization/80030
1338 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
1340 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
1342 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
1343 gcc_fallthrough() instead of __attribute__((fallthrough));
1345 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
1347 * doc/gcc.texi: Remove "up" link to (DIR).
1348 * doc/gccint.texi: Ditto.
1350 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
1352 * doc/install.texi (Specific) <avr>: Remove reference to
1355 2017-03-13 Jeff Law <law@redhat.com>
1357 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
1358 attribute rather than comments.
1360 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
1361 match_scratch operand is highest.
1363 2017-03-13 Martin Liska <mliska@suse.cz>
1366 * ipa-pure-const.c (warn_function_noreturn): If the declarations
1367 is a CHKP clone, use original declaration.
1369 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1371 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
1372 (arc_conditional_register_usage): Use a different allocation order
1373 when optimizing for size.
1374 * common/config/arc/arc-common.c (arc_option_optimization_table):
1375 Section anchors default on when optimizing for size.
1377 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1379 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
1381 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1383 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
1384 * config/arc/arc.md (cpu_facility): Add cd variant.
1385 (*movqi_insn): Add code density variant.
1386 (*movhi_insn): Likewise.
1387 (*movqi_insn): Likewise.
1388 (*addsi3_mixed): Likewise.
1389 (subsi3_insn): Likewise.
1391 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1393 * config/arc/arc.md (movsi_cond_exec): Update constraint.
1395 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
1397 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
1398 expressions with MINUS and UNARY ops.
1400 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1403 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
1405 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
1406 between vec_select and vector argument.
1407 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
1408 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
1409 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
1410 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
1411 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
1412 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
1414 2017-03-13 Richard Biener <rguenther@suse.de>
1417 * params.def (vect-max-peeling-for-alignment): Fix typo.
1419 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
1421 * doc/install.texi (Specific) <mips-*-*>: Remove description of
1422 issue that only occurred with binutils below 2.18.
1424 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
1426 * doc/install.texi (Specific) <cris-axis-elf>: No longer
1427 refer to binutils 2.11/2.12 minimum.
1429 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
1431 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
1432 ftp.kernel.org and simplify binutils requirement.
1434 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
1436 * doc/invoke.texi (Warning Options): Fix spelling of link-time
1438 (Optimize Options): Ditto. Also remove redundancy.
1440 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1442 PR translation/79848
1443 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
1445 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
1446 to G_ to avoid double translation.
1448 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1450 PR translation/79923
1451 * auto-profile.c (get_combined_location): Convert leading
1452 character of diagnostics to lower case and remove trailing period.
1453 (read_profile): Likewise for various diagnostics.
1454 * config/arm/arm.c (arm_option_override): Remove trailing period
1455 from various diagnostics.
1456 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
1457 (msp430_expand_delay_cycles): Likewise.
1459 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1462 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
1463 full command-line argument, rather than just "str".
1464 (aarch64_validate_march): Likewise.
1465 (aarch64_validate_mtune): Likewise.
1467 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
1469 PR rtl-optimization/78911
1470 * lra-assigns.c (must_not_spill_p): New function.
1471 (spill_for): Use it.
1473 2017-03-10 Jakub Jelinek <jakub@redhat.com>
1475 PR tree-optimization/79981
1476 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
1477 ATOMIC_COMPARE_EXCHANGE ifn result.
1478 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
1479 IFN_ATOMIC_COMPARE_EXCHANGE.
1481 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1484 * opts.c (parse_sanitizer_options): Add missing question mark to
1485 "did you mean" message.
1487 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1489 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
1491 (VMULEUH_UNS): Likewise.
1492 (VMULOUB_UNS): Likewise.
1493 (VMULOUH_UNS): Likewise.
1494 * config/rs6000/rs6000.c (builtin_function_type): Remove
1495 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
1497 2017-03-10 David Malcolm <dmalcolm@redhat.com>
1500 * read-rtl-function.c (function_reader::read_rtx_operand): Update
1501 x with result of extra_parsing_for_operand_code_0.
1502 (function_reader::extra_parsing_for_operand_code_0): Convert
1503 return type from void to rtx, returning x. When reading
1504 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
1505 larger size containing struct block_symbol.
1507 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
1509 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
1510 -mfloat128-hardware without -m64.
1512 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
1515 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
1516 entries to the case statement that marks unsigned arguments to
1517 overloaded functions.
1519 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
1521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1522 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
1524 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
1527 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
1528 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
1530 2017-03-10 Martin Liska <mliska@suse.cz>
1534 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
1535 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
1538 2017-03-10 Olivier Hainque <hainque@adacore.com>
1540 * tree-switch-conversion (array_value_type): Start by resetting
1541 candidate type to it's main variant.
1543 2017-03-10 Jakub Jelinek <jakub@redhat.com>
1545 PR rtl-optimization/79909
1546 * combine.c (try_combine): Use simplify_replace_rtx on individual
1547 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
1548 of the whole CALL_INSN_FUNCTION_USAGE.
1550 PR tree-optimization/79972
1551 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
1552 get_range_info on SSA_NAMEs. Formatting fixes.
1554 2017-03-10 Richard Biener <rguenther@suse.de>
1555 Jakub Jelinek <jakub@redhat.com>
1557 PR tree-optimization/77975
1558 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
1559 edge to be constant.
1560 (get_val_for): For constant x return it. Formatting fix.
1561 (loop_niter_by_eval): Avoid pointless looping if the next iteration
1562 would use the same bases as the current one.
1564 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1566 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
1567 instead of vec_select for V1TImode.
1568 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
1570 (VSX_LE_128): Add V1TI to this mode iterator.
1571 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
1572 (*vsx_le_perm_store_<mode>): Likewise.
1573 (pre-reload splitter for VSX stores): Likewise.
1574 (post-reload splitter for VSX stores): Likewise.
1575 (*vsx_xxpermdi2_le_<mode>): Likewise.
1576 (*vsx_lxvd2x2_le_<mode>): Likewise.
1577 (*vsx_stxvd2x2_le_<mode>): Likewise.
1579 2017-03-09 Michael Eager <eager@eagercon.com>
1581 Correct failures with --enable-checking=yes,rtl.
1583 * config/microblaze/microblaze.c (microblaze_expand_shift):
1584 Replace GET_CODE test with CONST_INT_P and INTVAL test with
1585 test for const0_rtx.
1586 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
1587 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
1589 2017-03-09 Richard Biener <rguenther@suse.de>
1591 PR tree-optimization/79977
1592 * graphite-scop-detection.c (scop_detection::merge_sese):
1593 Handle the case of extra exits to blocks dominating the entry.
1595 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
1597 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
1600 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
1602 PR rtl-optimization/79949
1603 * lra-constraints.c (process_alt_operands): Check memory when
1604 trying to predict a cycle. Print about the overall increase.
1606 2017-03-09 Richard Biener <rguenther@suse.de>
1609 * gimple-expr.c (useless_type_conversion_p): Preserve
1610 TYPE_SATURATING for fixed-point types.
1612 2017-03-09 Richard Biener <rguenther@suse.de>
1615 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
1616 alignment of BLKmode params.
1618 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1621 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
1622 (VALL_NO_V2Q): Likewise.
1624 * config/aarch64/aarch64-simd.md
1625 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
1627 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
1628 VALL_NO_V2Q mode iterator.
1629 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
1631 2017-03-09 Martin Liska <mliska@suse.cz>
1633 PR tree-optimization/79631
1634 * tree-chkp-opt.c (chkp_is_constant_addr): Call
1635 tree_int_cst_sign_bit just for INTEGER constants.
1637 2017-03-09 Martin Liska <mliska@suse.cz>
1641 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
1644 2017-03-09 Marek Polacek <polacek@redhat.com>
1647 * tree.c (inchash::add_expr): Handle TREE_VEC.
1649 2017-03-09 Martin Liska <mliska@suse.cz>
1652 (chkp_narrow_size_and_offset): New function.
1653 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
1654 (void chkp_parse_bit_field_ref): New function.
1655 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
1656 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
1658 2017-03-09 Martin Liska <mliska@suse.cz>
1661 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
1662 (chkp_find_bounds_1): Remove gcc_unreachable.
1664 2017-03-09 Jakub Jelinek <jakub@redhat.com>
1667 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
1668 BUILT_IN_SYNC*, determine the access type from the size suffix and
1669 always build a MEM_REF with that type. Handle forgotten
1670 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
1673 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
1674 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
1675 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
1676 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
1677 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
1678 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
1679 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
1680 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
1681 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
1682 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
1683 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
1684 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
1685 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
1686 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
1687 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
1688 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
1689 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
1690 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
1691 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
1692 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
1693 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
1694 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
1695 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
1696 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
1697 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
1698 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
1699 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
1700 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
1701 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
1702 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
1703 definitions outside of __OPTIMIZE__ guarded section.
1706 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
1707 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
1708 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
1709 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
1712 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1714 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
1715 ("vfenez<mode>"): Add missing constraints.
1717 2017-03-08 Martin Sebor <msebor@redhat.com>
1720 * config/nds32/nds32.c (nds32_option_override):
1722 2017-03-08 Jakub Jelinek <jakub@redhat.com>
1725 * gimplify.c (gimplify_omp_for): Replace index var in outer
1726 taskloop statement with an artificial variable and add
1727 OMP_CLAUSE_PRIVATE clause for it.
1729 2017-03-08 Richard Biener <rguenther@suse.de>
1731 PR tree-optimization/79955
1732 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
1733 for accesses that are completely outside of the variable.
1735 2017-03-08 Andrew Haley <aph@redhat.com>
1737 PR tree-optimization/79943
1738 * tree-ssa-loop-split.c (compute_new_first_bound): When
1739 calculating the new upper bound, (END-BEG) should be added, not
1742 2017-03-08 Jakub Jelinek <jakub@redhat.com>
1744 * config/avr/avr.md (setmemhi): Make sure match_dup
1745 operand number comes before match_scratch.
1747 2017-03-08 Richard Biener <rguenther@suse.de>
1749 PR tree-optimization/79920
1750 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
1751 with ncopies == 1 to ...
1752 (vect_transform_slp_perm_load): ... here. Properly compute
1753 all element loads by iterating VF times over the group. Do
1754 not handle ncopies (computed in a broken way) in
1755 vect_create_mask_and_perm.
1757 2017-03-08 Jakub Jelinek <jakub@redhat.com>
1760 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
1761 is a uniform vector, use uniform_vector_p return value instead of
1762 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
1764 2017-03-07 Marek Polacek <polacek@redhat.com>
1767 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
1768 (alloca_call_type): Likewise.
1770 2017-03-07 Martin Liska <mliska@suse.cz>
1772 * gcov.c (process_args): Put comment to correct location.
1774 2017-03-07 Martin Liska <mliska@suse.cz>
1777 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
1778 Use array_at_struct_end_p instead of DECL_CHAIN (field).
1779 (chkp_narrow_bounds_for_field): Likewise.
1780 (chkp_parse_array_and_component_ref): Pass one more argument to
1783 2017-03-07 Richard Biener <rguenther@suse.de>
1785 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
1788 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
1790 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
1791 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
1793 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1796 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
1797 to end of description.
1798 (PARAM_MAX_STORES_TO_MERGE): Likewise.
1800 2017-03-07 Jakub Jelinek <jakub@redhat.com>
1802 PR rtl-optimization/79901
1803 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
1805 (*avx512f_<code><mode>3<mask_name>): ... this.
1806 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
1807 iterator instead of VI8_AVX2_AVX512BW.
1809 PR rtl-optimization/79901
1810 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
1811 min/max expander, expand it using expand_vec_cond_expr.
1814 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
1817 2017-03-06 Jakub Jelinek <jakub@redhat.com>
1820 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
1821 to void * for PCH reasons.
1822 * dwarf2out.c (output_loc_operands, output_die): Cast
1823 v.val_vec.array to unsigned char *.
1825 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
1828 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
1831 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
1833 PR rtl-optimization/79571
1834 * lra-constraints.c (process_alt_operands): Calculate static
1835 reject and subtract it from overall when only addresses will be
1838 2017-03-06 Julia Koval <julia.koval@intel.com>
1841 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
1842 incoming stack boundary to 128 for 64-bit targets.
1844 2017-03-06 Richard Biener <rguenther@suse.de>
1846 PR tree-optimization/79894
1847 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
1848 to NULL after folding it.
1850 2017-03-06 Richard Biener <rguenther@suse.de>
1852 PR tree-optimization/79824
1853 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
1854 check disabling peeling for gaps.
1856 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
1858 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
1859 attributes): Document gettimeofday.
1861 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
1863 * config/s390/s390.c (s390_option_override_internal): Set
1864 PARAM_MIN_VECT_LOOP_BOUND
1866 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
1868 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
1869 * config/s390/s390.md: Likewise.
1871 2017-03-06 Jakub Jelinek <jakub@redhat.com>
1874 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
1875 (<avx2_avx512>_perm<mode>): Rename to ...
1876 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
1878 (<avx512>_perm<mode>_mask): Rename to ...
1879 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
1881 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
1882 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
1883 instead of VI8F_256_512.
1884 (avx512f_perm<mode>): New define_expand.
1885 (avx512f_perm<mode>_mask): Likewise.
1886 (avx512f_perm<mode>_1<mask_name>): New define_insn.
1887 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
1889 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
1891 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
1892 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
1894 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
1896 2017-03-06 Martin Liska <mliska@suse.cz>
1899 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
1900 when having a SSA NAME w/o VAR_DECL assigned to it.
1902 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
1904 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
1905 msa_dpsub_<su>_d): Fix MODE for vec_select.
1907 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
1909 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
1911 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
1913 2017-03-06 Richard Biener <rguenther@suse.de>
1915 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
1916 * plugin.c (register_plugin_info): Likewise.
1917 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
1919 2017-03-05 Jakub Jelinek <jakub@redhat.com>
1921 * config/i386/sse.md (sse_storehps, sse_storelps,
1922 avx_<castmode><avxsizesuffix>_<castmode>,
1923 avx512f_<castmode><avxsizesuffix>_<castmode>,
1924 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
1925 in condition that at least one operand is not a MEM.
1927 2017-03-03 Jakub Jelinek <jakub@redhat.com>
1930 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
1931 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
1933 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
1934 gimple_call_nothrow_p flag based on whether original builtin can throw.
1935 If it can, emit following stmts on the fallthrough edge.
1936 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
1937 don't create new bb if inserting just debug stmts on the edge, try to
1938 insert them on the fallthru bb or just reset debug stmts.
1940 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
1943 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
1944 restore recog_data (including the operand rtxes inside it) around
1945 the call to get_insn_template.
1947 2017-03-03 Martin Sebor <msebor@redhat.com>
1949 PR tree-optimization/79699
1950 * context.c (context::~context): Free MPFR caches to avoid
1951 a memory leak on program exit.
1953 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1955 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
1956 Use wide_int::ulow () instead of .elt (0).
1958 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
1960 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
1961 (*pushxf): Limit oF constraint to 32bit targets and add oC
1962 constraint for 64bit targets.
1963 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
1964 (*pushdf): Change rmF constraint to rmC.
1966 2017-03-03 Martin Liska <mliska@suse.cz>
1968 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
1969 Remove unused variable.
1971 2017-03-03 Jakub Jelinek <jakub@redhat.com>
1974 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
1975 is a memory operand, increase num_memory.
1976 (ix86_expand_args_builtin): Likewise.
1978 2017-03-03 Jan Hubicka <jh@suse.cz>
1981 * ipa-devirt.c (maybe_record_node): Properly handle
1982 __cxa_pure_virtual visibility.
1984 2017-03-03 Martin Liska <mliska@suse.cz>
1986 PR tree-optimization/79803
1987 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
1989 (pass_loop_prefetch::execute): Disabled optimization if an
1990 assumption about L1 cache size is not met.
1992 2017-03-03 Martin Liska <mliska@suse.cz>
1994 PR rtl-optimization/79574
1995 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
1996 (hash_scan_set): Likewise.
1997 (dump_hash_table): Likewise.
1998 (hoist_code): Likewise.
2000 2017-03-03 Richard Biener <rguenther@suse.de>
2002 * fixed-value.c (fixed_from_string): Restore use of elt (1)
2003 in place of uhigh ().
2004 (fixed_convert_from_real): Likewise.
2006 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
2009 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
2011 2017-03-03 Richard Biener <rguenther@suse.de>
2014 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
2015 TYPE_OVERFLOW_UNDEFINED check.
2017 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2019 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
2021 (vector_ae_<mode>_p): Likewise.
2022 (vector_nez_<mode>_p): Likewise.
2023 (vector_ne_v2di_p): Likewise.
2024 (vector_ae_v2di_p): Likewise.
2025 (vector_ne_<mode>_p): Likewise.
2026 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
2028 (vsx_tsqrt<mode>2_fe): Likewise.
2030 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
2033 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
2035 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2037 PR rtl-optimization/79780
2038 * cprop.c (one_cprop_pass): When second and further conditional trap
2039 in a single basic block is turned into an unconditional trap, turn it
2040 into a deleted note to avoid RTL verification failures.
2042 2017-03-02 Richard Biener <rguenther@suse.de>
2044 * fold-const.c (const_binop): Use ulow () instead of elt (0).
2046 2017-03-02 Richard Biener <rguenther@suse.de>
2048 PR tree-optimization/79345
2050 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
2051 param and abort the walk, returning -1 if it is hit.
2052 (walk_aliased_vdefs): Take a limit param and pass it on.
2053 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
2054 defaulting to 0 and return a signed int.
2055 * tree-ssa-uninit.c (struct check_defs_data): New struct.
2056 (check_defs): New helper.
2057 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
2058 about uninitialized memory.
2059 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
2060 bogus uninitialized warning.
2061 (fixed_convert_from_real): Likewise.
2063 2017-03-02 Bin Cheng <bin.cheng@arm.com>
2065 PR tree-optimization/66768
2066 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
2067 iv_use if base object can't be determined.
2069 2017-03-02 Jakub Jelinek <jakub@redhat.com>
2071 PR tree-optimization/79345
2072 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
2073 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
2074 (get_pattern_stats): Initialize it.
2075 * genemit.c (gen_expand): Verify match_scratch numbers come after
2076 match_operand/match_dup numbers.
2077 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
2078 match_scratch numbers.
2079 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
2081 * config/s390/s390.md (trunctdsd2): Likewise.
2083 2017-03-02 Richard Biener <rguenther@suse.de>
2085 * wide-int.h (wide_int_storage::operator=): Implement in terms
2088 2017-03-02 Richard Biener <rguenther@suse.de>
2090 PR tree-optimization/79777
2091 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
2092 the to insert expression to sth existing.
2094 2017-03-01 Martin Sebor <msebor@redhat.com>
2097 * gimple-ssa-sprintf.c
2098 (directive::known_width_and_precision): New function.
2099 (format_integer): Use it.
2100 (get_mpfr_format_length): Consider the full range of precision
2101 when computing %g output with the # flag. Set the likely byte
2102 count to 3 rather than 1 when precision is indeterminate.
2103 (format_floating): Correct the lower bound of precision.
2105 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2107 * doc/invoke.texi: Document default code model for 64-bit Linux.
2109 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2112 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
2113 udiv rather than div since input pattern is unsigned.
2115 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
2117 * config/i386/i386.c (print_reg): Warn for values of
2118 unsupported size in integer register.
2120 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2123 * config/rs6000/predicates.md (current_file_function_operand): Do
2124 not allow self calls to be local if the function is replaceable.
2126 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2129 * config/rs6000/altivec.h (vec_ctz and others): Change the
2130 preprocessor macro that controls conditional compilation from
2131 _ARCH_PWR9 to __POWER9_VECTOR__.
2132 (vec_all_ne): Change parameterization of __altivec_scalar_pred
2133 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
2134 control (instead of _ARCH_PWR9 control) so that template
2135 definition uses power9-specific function.
2136 (vec_any_eq): Likewise.
2137 (vec_all_ne): Change macro definition to use a power9-specific
2138 expansion under #ifdef __POWER9_VECTOR__ control (instead of
2139 _ARCH_PWR9 control).
2140 (vec_any_eq) Likewise.
2141 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
2142 expansion for CMPNEF to remove support for xvcmpnesp instruction.
2143 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
2144 support for xvcmpnedp instruction.
2145 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
2146 macro expansion so that Power9 implementation of vec_all_ne does
2147 not use the AltiVec predicate framework.
2148 (VCMPNEH_P): Likewise.
2149 (VCMPNEW_P): Likewise.
2150 (VCMPNED_P): Likewise.
2151 (VCMPNEFP_P): Likewise.
2152 (VCMPNEDP_P): Likewise.
2153 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
2154 implementation of vec_any_eq to not use AltiVec predicate
2156 (VCMPAEH_P): Likewise.
2157 (VCMPAEW_P): Likewise.
2158 (VCMPAED_P): Likewise.
2159 (VCMPAEFP_P): Likewise.
2160 (VCMPAEDP_P): Likewise.
2161 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
2162 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
2163 not use the AltiVec predicate framework.
2164 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
2165 of vec_any_eq to not use AltiVec predicate framework.
2166 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
2167 support for predefined __POWER9_VECTOR__ macro to indicate that
2168 Power9 instruction selection is enabled.
2169 (altivec_overloaded_builtins): Remove extraneous
2170 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
2171 function argument types RS6000_BTI_bool_V16QI and
2172 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
2173 entry for overloaded function argument types RS6000_BTI_bool_V4SI
2174 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
2175 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
2176 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
2177 Power9 for implementations of vec_cmpne. Change the signature for
2178 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
2179 (representing vec_all_ne) to remove the previously described first
2180 argument of type RS6000_BTI_INTSI, as this was an artifact of
2181 reliance on the AltiVec predicate framework, which is no longer
2182 used in the implementation of these functions. Add
2183 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
2184 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
2185 since, unlike the AltiVec predicate framework implementation, we
2186 do not share function descriptors between vec_alle and vec_anyeq.
2187 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
2188 set of modes that receive special treatment even when
2189 TARGET_P9_VECTOR is true. The special treatment emits code that
2190 does not depend on Power9 instructions.
2191 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
2192 define_expand to not rely on AltiVec predicate framework.
2193 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2195 (vector_ne_v2di_p): Change this define_expand to not rely on
2196 AltiVec predicate framework.
2197 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
2199 (vector_ne_<mode>_p): Change this define_expand to not rely on
2200 AltiVec predicate framework.
2201 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
2203 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
2204 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
2205 define_insn pattern.
2206 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
2207 define_insn pattern because the xvcmpne<VSs>. instruction is not
2209 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
2210 instruction is not supported.
2212 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2214 * config/nvptx/nvptx.c: Include intl.h.
2216 2017-03-01 Martin Jambor <mjambor@suse.cz>
2219 * ipa-prop.h (ipa_bits): Removed field known.
2220 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
2221 to pointers. Adjusted their comments to warn about their sharing.
2222 (ipcp_transformation_summary): Change bits to a vector of pointers.
2223 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
2224 (ipa_get_ipa_bits_for_value): Declare.
2225 * tree-vrp.h (value_range): Mark as GTY((for_user)).
2226 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
2227 (ipa_bits_hash_table): Likewise.
2228 (ipa_vr_ggc_hash_traits): Likewise.
2229 (ipa_vr_hash_table): Likewise.
2230 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
2231 being pointers and vr_known being removed.
2232 (ipa_set_jf_unknown): Likewise.
2233 (ipa_get_ipa_bits_for_value): New function.
2234 (ipa_set_jfunc_bits): Likewise.
2235 (ipa_get_value_range): New overloaded functions.
2236 (ipa_set_jfunc_vr): Likewise.
2237 (ipa_compute_jump_functions_for_edge): Use the above functions to
2238 construct bits and vr parts of jump functions.
2239 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
2240 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2242 (ipcp_grow_transformations_if_necessary): Also allocate
2243 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
2245 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
2246 them. Fix too long lines.
2247 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
2248 vr_known being removed.
2249 (ipa_read_jump_function): Use new setter functions to construct bits
2250 and vr parts of jump functions or set them to NULL.
2251 (write_ipcp_transformation_info): Adjust for bits being pointers.
2252 (read_ipcp_transformation_info): Likewise.
2253 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
2255 Include gt-ipa-prop.h.
2256 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
2258 (ipcp_store_bits_results): Likewise.
2259 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
2260 Do not write to existing jump functions but use a temporary instead.
2262 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2265 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
2266 attempt to use its first operand as BIT_FIELD_REF base.
2268 2017-03-01 Richard Biener <rguenther@suse.de>
2271 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
2272 interpolating formula in wrapping arithmetic.
2273 (chrec_apply): Convert chrec_evaluate return value to wanted type.
2275 2017-03-01 Jakub Jelinek <jakub@redhat.com>
2277 PR tree-optimization/79734
2278 * tree-vect-generic.c (expand_vector_condition): Optimize
2279 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
2280 Handle VEC_COND_EXPR where comparison has different inner width from
2283 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
2285 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
2286 markup, and similar issues. Remove @opindex entries for things
2287 that aren't options. Add missing -mmpy-option entries.
2289 2017-02-28 Jakub Jelinek <jakub@redhat.com>
2291 PR tree-optimization/79737
2292 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
2293 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
2294 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
2295 instead of byte_size. Formatting fix.
2296 (shift_bytes_in_array_right): Formatting fix.
2298 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
2301 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
2302 condition on optimize for the leaf function test.
2304 2017-02-28 Martin Liska <mliska@suse.cz>
2307 * read-rtl-function.c (function_reader::handle_unknown_directive):
2308 Bail out when one uses -flto.
2310 2017-02-28 Martin Liska <mliska@suse.cz>
2312 * common.opt: Replace space with tabular for options of <number>
2314 * config/i386/i386.opt: Show <number> value for
2315 -mlarge-data-threshold.
2316 * opts.c (print_filtered_help): Do not display number in hexadecimal
2319 2017-02-28 Martin Liska <mliska@suse.cz>
2321 * common.opt: Fix --help=option -Q for options which are of
2324 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
2326 * config/i386/i386.c (print_reg): Error out for values
2327 of 8-bit size in invalid integer register.
2329 2017-02-28 Martin Sebor <msebor@redhat.com>
2331 PR tree-optimization/79691
2332 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
2334 2017-02-28 Jakub Jelinek <jakub@redhat.com>
2337 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
2338 gcc_unreachable with output_operand_lossage.
2340 2017-02-28 Richard Biener <rguenther@suse.de>
2342 PR tree-optimization/79740
2343 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
2345 (visit_nary_op): Insert the nary into the hashtable if we
2346 pattern-matched sth.
2347 * tree-ssa-pre.c (eliminate_insert): Robustify.
2349 2017-02-28 Richard Biener <rguenther@suse.de>
2352 * fold-const.c (decode_field_reference): Reject out-of-bound
2355 2017-02-28 Jakub Jelinek <jakub@redhat.com>
2357 * config/i386/i386.c: Include intl.h.
2358 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
2359 instead of just cond ? "..." : "...".
2360 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
2361 * coverage.c (read_counts_file): Likewise.
2362 * omp-offload.c: Include intl.h.
2363 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
2364 of just cond ? "..." : "...".
2365 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
2366 of just cond ? "..." : "...".
2368 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
2371 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
2373 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
2374 'tune for' CPU name.
2375 * config/arm/arm-cpu-data.h: Regenerated.
2377 2017-02-28 Richard Biener <rguenther@suse.de>
2379 PR tree-optimization/79732
2380 * tree-inline.c (expand_call_inline): Do not shadow var.
2382 2017-02-28 Richard Biener <rguenther@suse.de>
2384 PR tree-optimization/79723
2385 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
2386 address-space properly.
2388 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
2390 * doc/optinfo.texi (Optimization groups): Fix option used for
2392 * doc/invoke.texi (-fopt-info): Document "omp".
2393 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
2394 (OPTGROUP_ALL): Add OPTGROUP_OMP.
2395 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
2396 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
2397 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
2399 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
2401 * dumpfile.c (optgroup_options): Instead of "openmp", associate
2402 OPTGROUP_OMP with "omp".
2404 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
2407 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
2408 for arithmetic shift of unsigned V2DI.
2410 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
2412 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
2413 arc/linux.h headers.
2414 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
2415 (LINK_SPEC): Likewise.
2416 (ARC_TLS_EXTRA_START_SPEC): Likewise.
2417 (EXTRA_SPECS): Likewise.
2418 (STARTFILE_SPEC): Likewise.
2419 (ENDFILE_SPEC): Likewise.
2420 (LIB_SPEC): Likewise.
2421 (TARGET_SDATA_DEFAULT): Likewise.
2422 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
2423 (MULTILIB_DEFAULTS): Likewise.
2424 (DWARF2_UNWIND_INFO): Likewise.
2425 * config/arc/big.h: New file.
2426 * config/arc/elf.h: Likewise.
2427 * config/arc/linux.h: Likewise.
2428 * config/arc/t-uClibc: Remove.
2430 2017-02-27 Bin Cheng <bin.cheng@arm.com>
2432 PR tree-optimization/77536
2433 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
2434 (tree_transform_and_unroll_loop): Use above function to compute the
2435 estimated niter of unrolled loop and use it when scaling profile.
2436 Also use count info rather than frequency if it's non-zero.
2437 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
2438 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
2439 (vect_transform_loop): Call above function.
2441 2017-02-27 Richard Biener <rguenther@suse.de>
2443 PR tree-optimization/45397
2444 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
2445 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
2446 (visit_nary_op): Add pattern matching for CSEing sign-changed
2447 or truncated operations with wider ones.
2449 2017-02-27 Richard Biener <rguenther@suse.de>
2451 PR tree-optimization/79690
2452 * tree-vect-stmts.c (vectorizable_store): Use vector type
2453 built from the DR with address-space.
2455 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
2457 * doc/invoke.texi (Optimize Options): Refine the description
2458 of asan-use-after-return.
2460 2017-02-25 Alan Modra <amodra@gmail.com>
2462 PR rtl-optimization/79584
2463 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
2464 base, not ad->base_term, the reg within base. Remove assertion
2465 that ad->base == ad->base_term. Replace gen_int_mode using
2466 bogus mode with const0_rtx.
2468 2017-02-25 Jakub Jelinek <jakub@redhat.com>
2471 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
2472 FMA_EXPR like tcc_binary or tcc_unary.
2474 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
2477 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
2479 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
2480 (output_loc_operands): Handle DW_OP_call_ref and
2481 DW_OP_GNU_variable_value.
2482 (struct variable_value_struct): New type.
2483 (struct variable_value_hasher): Likewise.
2484 (variable_value_hash): New variable.
2485 (string_types): Remove.
2486 (copy_loc_descr): New function.
2487 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
2488 (prepend_loc_descr_to_each): New function.
2489 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
2490 instead of add_loc_descr_to_each if the first argument is single
2491 location list and the second has multiple.
2492 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
2493 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
2494 when looking for variable value which doesn't have other location info.
2495 (loc_list_from_tree): Formatting fix.
2496 (gen_array_type_die): Simplify DW_AT_string_length handling.
2497 (adjust_string_types): Remove.
2498 (gen_subprogram_die): Don't call adjust_string_types nor test/set
2499 string_types. Call resolve_variable_values.
2500 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
2501 (resolve_addr_in_expr): Likewise. Add A argument.
2502 (copy_deref_exprloc): Remove deref argument. Adjust for the
2503 original expression being DW_OP_GNU_variable_value with optionally
2504 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
2505 optionally after it.
2506 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
2507 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
2508 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
2509 (variable_value_hasher::hash, variable_value_hasher::equal): New
2511 (resolve_variable_value_in_expr, resolve_variable_value,
2512 resolve_variable_values, note_variable_value_in_expr,
2513 note_variable_value): New functions.
2514 (dwarf2out_early_finish): Call note_variable_value on all toplevel
2517 2017-02-24 Jakub Jelinek <jakub@redhat.com>
2520 * opts.h (handle_generated_option): Add GENERATED_P argument.
2521 * opts-common.c (handle_option): Adjust function comment.
2522 (handle_generated_option): Add GENERATED_P argument, pass it to
2524 (control_warning_option): Pass false to handle_generated_option
2526 * opts.c (maybe_default_option): Pass true to handle_generated_option
2528 * optc-gen.awk: Likewise.
2530 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
2532 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
2533 a REG, look at the REG it is a SUBREG of.
2534 (splitter for cmpeqsi_t): Ditto.
2536 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
2538 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
2539 the special USEs with the pattern of the insn, not the insn itself.
2541 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
2544 * doc/invoke.texi: Document -mload-store-pairs.
2546 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
2547 Sandra Loosemore <sandra@codesourcery.com>
2549 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
2550 argument isn't a CONST_INT.
2551 (nios2_alternate_compare_const): Assert op is a CONST_INT.
2552 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
2553 (nios2_validate_compare): Bypass alternate compare logic if *op2
2555 (ldstwm_operation_p): Return false if first_base is not a REG or
2556 if first_offset is not a CONST_INT.
2558 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
2560 * config/cris/cris.md: Use correct operand in a define_peephole2.
2562 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
2564 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
2566 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
2568 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
2569 this_insn if it is an INSN or JUMP_INSN.
2570 (force_offsettable): Look at base, not at addr.
2571 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
2572 on things that aren't necessarily CONST_INTs.
2574 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
2576 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
2577 -mfpmath=sse is the default also for x86-32 targets with SSE2
2578 instruction set when @option{-ffast-math} is enabled
2580 2017-02-24 Jeff Law <law@redhat.com>
2582 PR rtl-optimizatoin/79286
2583 * ira.c (update_equiv_regs): Drop may_trap_p exception to
2586 2017-02-24 Richard Biener <rguenther@suse.de>
2588 PR tree-optimization/79389
2589 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
2592 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
2594 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
2595 function comment to reflect reality.
2596 (loop_exits_before_overflow): Fix typo in function description.
2598 2017-02-24 Richard Biener <rguenther@suse.de>
2600 PR tree-optimization/79389
2601 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
2602 properly that a threading opportunity exists. Detect conditional
2603 copy/constant propagation opportunities.
2605 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
2607 * config/visium/visium.md (type): Add trap.
2608 (b): New mode attribute.
2609 (*btst): Rename into...
2610 (*btst<mode>): ...this and adjust.
2611 (*cbranchsi4_btst_insn): Rename into...
2612 (*cbranch<mode>4_btst_insn): ...this and adjust.
2613 (trap): New define_insn.
2615 2017-02-23 Jakub Jelinek <jakub@redhat.com>
2617 PR tree-optimization/79389
2618 * ifcvt.c (struct noce_if_info): Add rev_cond field.
2619 (noce_reversed_cond_code): New function.
2620 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
2621 reversed_comparison_code. Formatting fix.
2622 (noce_try_store_flag): Test rev_cond != NULL in addition to
2623 reversed_comparison_code.
2624 (noce_try_store_flag_constants): Likewise.
2625 (noce_try_store_flag_mask): Likewise.
2626 (noce_try_addcc): Use rev_cond if non-NULL instead of
2627 reversed_comparison_code.
2628 (noce_try_cmove_arith): Likewise. Formatting fixes.
2629 (noce_try_minmax, noce_try_abs): Clear rev_cond.
2630 (noce_find_if_block): Initialize rev_cond.
2631 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
2632 instead of false as last argument never attempt to reverse it
2635 2017-02-23 Bin Cheng <bin.cheng@arm.com>
2637 PR tree-optimization/79663
2638 * tree-predcom.c (combine_chains): Process refs in reverse order
2639 only for ZERO length chains, and add explaining comment.
2641 2017-02-23 Jeff Law <law@redhat.com>
2643 PR tree-optimization/79578
2644 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
2645 in call to operand_equal_p.
2647 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
2650 * config/i386/cpuid.h: Fix another undefined behavior.
2652 2017-02-23 Richard Biener <rguenther@suse.de>
2654 PR tree-optimization/79683
2655 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
2656 vector types for data-refs.
2658 2017-02-23 Martin Liska <mliska@suse.cz>
2660 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
2662 2017-02-23 Jakub Jelinek <jakub@redhat.com>
2665 * internal-fn.c (get_range_pos_neg): Moved to ...
2666 * tree.c (get_range_pos_neg): ... here. No longer static.
2667 * tree.h (get_range_pos_neg): New prototype.
2668 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
2669 are known to be in between 0 and signed maximum inclusive, try to
2670 expand both unsigned and signed divmod and use the cheaper one from
2673 2017-02-22 Jeff Law <law@redhat.com>
2675 PR tree-optimization/79578
2676 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
2677 to compare base operands.
2679 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
2682 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
2683 gpc_reg_operand instead of fpr_reg_operand.
2685 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
2687 * config/mips/mips.c (mips_return_in_memory): Force FP
2688 vector types to be returned in memory for o32 ABI.
2690 2017-02-22 Jakub Jelinek <jakub@redhat.com>
2692 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
2693 instead of DW_TAG_member for static data member declarations and don't
2694 set no_linkage_name for static inline data members.
2695 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
2698 2017-02-22 Martin Liska <mliska@suse.cz>
2700 * doc/invoke.texi: Replace inequality signs with square brackets
2703 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2705 PR tree-optimization/68644
2706 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
2708 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
2711 * lra-constraints.c (simplify_operand_subreg): Handle
2712 WORD_REGISTER_OPERATIONS targets.
2714 2017-02-22 Jakub Jelinek <jakub@redhat.com>
2717 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
2718 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
2719 elimination by swapping fld*.
2721 2017-02-22 Richard Biener <rguenther@suse.de>
2723 PR tree-optimization/79673
2724 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
2725 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
2726 irrelevant address-space qualifiers and avoiding a
2727 ADDR_SPACE_CONVERT_EXPR from fold_convert.
2729 2017-02-22 Richard Biener <rguenther@suse.de>
2731 PR tree-optimization/79666
2732 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
2733 to not symbolically negate if that may introduce undefined
2736 2017-02-22 Martin Liska <mliska@suse.cz>
2739 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
2740 * data-streamer-out.c (streamer_write_gcov_count_stream):
2742 * value-prof.c (stream_out_histogram_value): Make assert more
2743 precise based on type of counter.
2745 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
2748 * config/i386/i386.md (standard_x87sse_constant_load splitter):
2749 Use nonimmediate_operand instead of memory_operand for operand 1.
2750 (float-extend standard_x87sse_constant_load splitter): Ditto.
2752 2017-02-21 Jeff Law <law@redhat.com>
2754 PR tree-optimization/79621
2755 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
2756 blocks with edges to themselves.
2758 2017-02-21 Jakub Jelinek <jakub@redhat.com>
2761 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
2762 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
2763 Use gimple_call_builtin_p.
2766 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
2767 on temporarily removed DEBUG_INSNs.
2769 PR tree-optimization/79649
2770 * tree-loop-distribution.c (classify_partition): Give up on
2771 non-generic address space loads/stores.
2773 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
2775 * doc/loop.texi (Loop manipulation): Remove nonexistent
2776 tree_ssa_loop_version from the documentation.
2777 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
2779 2017-02-21 Jakub Jelinek <jakub@redhat.com>
2782 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
2783 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
2784 * config/rs6000/rs6000.c: Include except.h.
2785 (rs6000_expand_split_stack_prologue): Call
2786 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
2788 2017-02-21 Martin Jambor <mjambor@suse.cz>
2791 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
2794 2017-02-21 Martin Jambor <mjambor@suse.cz>
2796 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
2797 for backward compatibility only.
2798 * doc/invoke.texi (Option Summary): Remove all references to
2801 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
2805 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
2807 * lra-constraints.c (curr_insn_transform): Handle
2808 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
2810 2017-02-21 Martin Liska <mliska@suse.cz>
2812 * config/i386/i386.opt: Replace -masm-dialect with -masm.
2814 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
2816 PR translation/79638
2817 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
2819 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
2822 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2823 (arm_function_ok_for_sibcall): Return false for an indirect call by
2824 descriptor if all the argument registers are used.
2825 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
2826 alignment of the function.
2828 2017-02-21 Jakub Jelinek <jakub@redhat.com>
2830 PR tree-optimization/61441
2831 * simplify-rtx.c (simplify_const_unary_operation): For
2832 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
2833 the sNaN unmodified.
2835 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2837 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2838 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2839 instead of SYSTEM_HEADER_DIR.
2841 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
2842 Martin Liška <mliska@suse.cz>
2844 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2845 Fix typos and grammar, use active voice, and clarify.
2847 2017-02-20 Marek Polacek <polacek@redhat.com>
2850 * gimplify.c (gimplify_expr): Handle unused *&&L;.
2853 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
2855 2017-02-20 Jakub Jelinek <jakub@redhat.com>
2858 * config/i386/i386.c (ix86_expand_builtin): Handle
2859 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
2860 ix86_builtins_isa[fcode].isa as a requirement of those
2861 flags and any other flag in the bitmask.
2862 (ix86_init_mmx_sse_builtins): Use 0 instead of
2863 ~OPTION_MASK_ISA_64BIT as mask.
2864 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
2865 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
2866 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
2867 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
2869 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
2872 * lra-constraints.c (split_reg): Check requested split mode
2873 is supported by the register.
2875 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
2877 * lra-constraints.c (simplify_operand_subreg): Remove early
2880 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
2883 * lra-constraints.c (curr_insn_transform): Tighten condition
2884 for converting SUBREG reloads from OP_OUT to OP_INOUT.
2886 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
2889 * lra-constraints.c (curr_insn_transform): Handle
2890 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
2892 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
2895 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
2897 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2899 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
2902 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
2905 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2907 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
2910 2017-02-18 Jakub Jelinek <jakub@redhat.com>
2912 * final.c (last_columnnum, override_columnnum): New variables.
2913 (final_start_function): Set last_columnnum, pass it to begin_prologue
2914 hook and pass 0 to dwarf2out_begin_prologue.
2915 (final_scan_insn): Update override_columnnum. Pass last_columnnum
2916 to source_line debug hook.
2917 (notice_source_line): Compute last_columnnum and for debug_column_info
2918 return true on column changes.
2919 * debug.h (struct gcc_debug_hooks): Add column argument to
2920 source_line and begin_prologue hooks.
2921 (debug_nothing_int_charstar_int_bool): Remove prototype.
2922 (debug_nothing_int_int_charstar,
2923 debug_nothing_int_int_charstar_int_bool): New prototypes.
2924 (dwarf2out_begin_prologue): Add column argument.
2925 * debug.c (do_nothing_debug_hooks): Adjust source_line and
2926 begin_prologue hooks.
2927 (debug_nothing_int_charstar_int_bool): Remove.
2928 (debug_nothing_int_int_charstar,
2929 debug_nothing_int_int_charstar_int_bool): New functions.
2930 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
2931 through to dwarf2out_source_line.
2932 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
2933 (dwarf2out_source_line): Add column argument, emit it if requested.
2934 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
2936 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
2937 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
2938 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
2939 through to dwarf2out_begin_prologue.
2940 (vmsdbgout_source_line): Add column argument, pass it through to
2941 dwarf2out_source_line.
2942 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
2943 dbxout_source_line caller.
2944 (dbxout_source_line): Add column argument.
2946 * common.opt (gno-column-info, gcolumn-info): New options.
2947 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
2948 (check_die): Also test for multiple DW_AT_decl_column attributes.
2949 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
2950 DW_AT_decl_column if requested.
2951 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
2953 (gen_variable_die): Likewise.
2954 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
2955 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
2958 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
2959 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
2960 (ix86_handle_option): Handle OPT_m3dnowa.
2961 * doc/invoke.texi (-m3dnowa): Document.
2962 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
2963 -m3dnowa instead of -m3dnow -march=athlon.
2966 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
2967 instead of gcc_assert for K, r and R code checks. Formatting fixes.
2969 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2972 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2973 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
2974 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
2975 generator for vsx_xxpermdi_<mode>_be.
2976 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
2977 force big-endian semantics.
2978 (vsx_xxpermdi_<mode>_be): New define_expand with same
2979 implementation as previous version of vsx_xxpermdi_<mode>.
2981 2017-02-17 Jakub Jelinek <jakub@redhat.com>
2983 PR tree-optimization/79327
2984 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
2985 variable, its initialization and use.
2987 2017-02-17 Julia Koval <julia.koval@intel.com>
2989 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
2990 (OPTION_MASK_ISA_PKU_UNSET): New.
2991 (ix86_handle_option): Handle -mrdpid.
2992 * config/i386/cpuid.h (bit_RDPID): New.
2993 * config/i386/driver-i386.c (host_detect_local_cpu):
2994 Detect RDPID feature.
2995 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
2996 * config/i386/i386-c.c (ix86_target_macros_internal):
2998 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
2999 (ix86_valid_target_attribute_inner_p): Add "rdpid".
3000 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
3001 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
3002 * config/i386/i386.md (define_insn "rdpid"): New.
3003 * config/i386/i386.opt Add -mrdpid.
3004 * config/i386/immintrin.h (_rdpid_u32): New.
3006 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
3008 PR rtl-optimization/79541
3009 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
3010 instead of transforming it into USE.
3012 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
3014 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
3015 If HONOR_SNANS (SFmode) force the input to a register.
3016 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
3017 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
3018 an frsp or similar insn.
3020 2017-02-17 Martin Liska <mliska@suse.cz>
3022 PR rtl-optimization/79577
3023 * params.def (selsched-max-sched-times): Increase minimum to 1.
3025 2017-02-17 Martin Liska <mliska@suse.cz>
3027 PR rtl-optimization/79574
3028 * gcse.c (want_to_gcse_p): Prevent integer overflow.
3030 2017-02-17 Martin Liska <mliska@suse.cz>
3032 PR tree-optimization/79529
3033 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
3034 ssa_defined_default_def_p to handle cases which are implicitly
3036 * tree-ssa.c (ssa_defined_default_def_p): New function.
3037 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
3038 which are implicitly defined.
3039 * tree-ssa.h (ssa_defined_default_def_p): Declare.
3041 2017-02-17 Richard Biener <rguenther@suse.de>
3044 * params.def (max-ssa-name-query-depth): Limit to 10.
3046 2017-02-17 Richard Biener <rguenther@suse.de>
3048 PR tree-optimization/79552
3049 * tree-ssa-structalias.c (visit_loadstore): Properly verify
3052 2017-02-17 Richard Biener <rguenther@suse.de>
3055 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
3057 2017-02-17 Marek Polacek <polacek@redhat.com>
3060 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
3061 (fold_negate_expr): New wrapper.
3063 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
3065 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
3066 Correct terminology and de-emphasize pre-standard behavior.
3068 2017-02-16 Alan Modra <amodra@gmail.com>
3070 PR rtl-optimization/79286
3071 * ira.c (def_dominates_uses): New function.
3072 (update_equiv_regs): Don't create an equivalence for insns that
3073 may trap where the register def does not dominate the use.
3075 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
3077 PR rtl-optimization/78127
3078 * lra.c (lra): Call lra_eliminate before finish the loop after
3081 2017-02-16 Richard Biener <rguenther@suse.de>
3083 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
3085 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
3086 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
3087 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
3088 (isl_val_int_from_wi): New function.
3089 (extract_affine_gmp): Rename to ...
3090 (extract_affine_wi): ... this, take a widest_int.
3091 (extract_affine_int): Just wrap extract_affine_wi.
3092 (add_param_constraints): Use isl_val_int_from_wi.
3093 (add_loop_constraints): Likewise, and extract_affine_wi.
3095 2017-02-15 Jeff Law <law@redhat.com>
3098 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
3099 ira_init_register_move_cost_if_necessary.
3101 2017-02-15 Martin Sebor <msebor@redhat.com>
3104 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
3105 removed in a prior commit.
3107 2017-02-15 Bin Cheng <bin.cheng@arm.com>
3109 PR tree-optimization/79347
3110 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
3111 counters during peeling.
3113 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
3115 * Makefile.in (site.exp): Remove "set ISLVER".
3117 2017-02-15 Jakub Jelinek <jakub@redhat.com>
3120 * real.c (real_from_integer): Call real_convert even for decimal.
3122 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3125 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3127 2017-02-14 Andrew Pinski <apinski@cavium.com>
3129 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
3130 cores and change the partno/implementer to be correct.
3131 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
3132 the 'B" as the implementer.
3133 * config/aarch64/aarch64-tune.md: Regenerate.
3135 2017-02-14 Carl Love <cel@us.ibm.com>
3137 * config/rs6000/rs6000.c: Add case statement entry to make the
3138 xvcvuxdsp built-in argument unsigned.
3139 * config/rs6000/vsx.md: Fix the source and return operand types so they
3140 match the instruction definitions from the ISA document. Fix typo
3141 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
3144 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
3147 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
3148 member early_clobber_alts.
3149 * lra-lives.c (reg_early_clobber_p): New.
3150 (process_bb_lives): Use it.
3151 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
3152 (debug_operand_data): Initialize early_clobber_alts.
3153 (setup_operand_alternative): Set up early_clobber_alts.
3154 (collect_non_operand_hard_regs): Ditto. Pass early clobber
3155 alternatives to new_insn_reg.
3156 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
3158 (lra_update_insn_regno_info): Pass the new arg.
3160 2017-02-14 Jakub Jelinek <jakub@redhat.com>
3163 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
3164 (new_oacc_loop_raw): Don't clear already cleared fields.
3167 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
3168 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
3169 _mm512_prefetch_i64gather_ps): New inline functions and macros.
3171 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
3174 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
3176 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
3179 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
3180 the extra instruction to the right place to store 128-bit constant
3183 2017-02-14 Martin Sebor <msebor@redhat.com>
3186 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
3187 warning for strings of unknown length.
3189 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
3191 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
3193 2017-02-14 Jeff Law <law@redhat.com>
3196 * ira-costs.c (scan_one_insn): Initialize register move costs
3197 for pseudos seen in USE/CLOBBER insns.
3199 PR tree-optimization/79095
3200 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
3201 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
3202 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
3203 if the operands are known to be not equal, then the resulting range
3205 (intersect_ranges): If the new range is ~[0,0] and the old range is
3206 wide, then prefer ~[0,0].
3207 * tree-vrp.c (overflow_comparison_p_1): New function.
3208 (overflow_comparison_p): New function.
3209 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
3210 if NAME is used in an overflow test.
3211 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
3212 overflow check that can be expressed as an equality test, then adjust
3213 ops to be that equality test.
3215 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3217 * config/s390/s390-builtin-types.def: Remove flags argument.
3218 * config/s390/s390.c (s390_init_builtins): Likewise.
3220 2017-02-14 Martin Liska <mliska@suse.cz>
3222 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
3223 vector. Fix trailing white spaces.
3225 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
3227 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
3230 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3232 PR rtl-optimization/68664
3233 * config/arm/arm.c (arm_sched_can_speculate_insn):
3234 New function. Declare prototype.
3235 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3237 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3239 PR rtl-optimization/68664
3240 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
3242 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
3244 2017-02-14 Amit Pawar <amit.pawar@amd.com>
3246 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
3247 max skip bytes for function, loop and jump.
3249 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3251 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
3252 ABS_EXPR for gimple dump.
3254 2017-02-14 Jakub Jelinek <jakub@redhat.com>
3257 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
3259 PR tree-optimization/79408
3260 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
3261 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
3262 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3263 also if rhs1 is INTEGER_CST.
3265 2017-02-14 Richard Biener <rguenther@suse.de>
3268 * tree-into-ssa.c (insert_phi_nodes): When the function can
3269 have abnormal edges rewrite SSA names with broken use-def
3270 dominance out of SSA and register them for PHI insertion.
3272 2017-02-13 Martin Sebor <msebor@redhat.com>
3275 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
3276 clearing info.nowrite flag when snprintf size argument is a range.
3278 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3280 * cprop.c (cprop_jump): Add missing space in string literal.
3281 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3282 (get_constraint_for_component_ref): Likewise.
3283 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3284 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
3285 * lra-constraints.c (process_alt_operands): Likewise.
3286 * ipa-inline.c (inline_small_functions): Likewise.
3287 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
3288 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3289 * trans-mem.c (diagnose_tm_1_op): Likewise.
3290 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
3291 (grid_parallel_clauses_gridifiable): Likewise.
3293 * config/nvptx/mkoffload.c (process): Add space in between
3296 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
3297 "MOD4_SSE_REGS" and "ALL_REGS".
3299 * spellcheck.c (test_data): Add , in between "foo" and "food".
3301 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3304 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
3305 boundary crossing check and subsequent code generation agree.
3307 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3309 * config/aarch64/aarch64.c (has_memory_op): Delete.
3310 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
3313 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3315 PR rtl-optimization/79388
3316 PR rtl-optimization/79450
3317 * combine.c (distribute_notes): When removing TEM_INSN for which
3318 corresponding dest has last value recorded, invalidate that last
3321 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3323 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
3324 of explicit '@'. Add missing assembly comment marker on branch costs
3327 2017-02-13 Nathan Sidwell <nathan@acm.org>
3329 * gengtype-lex.l (<in_struct>): Add '/'.
3331 2017-02-13 Martin Liska <mliska@suse.cz>
3334 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
3336 2017-02-13 Richard Biener <rguenther@suse.de>
3338 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
3340 * configure: Re-generate.
3341 * config.in: Likewise.
3342 * graphite-dependences.c: Simplify as if
3343 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
3344 * graphite-isl-ast-to-gimple.c: Likewise.
3345 * graphite-optimize-isl.c: Likewise.
3346 * graphite-poly.c: Likewise.
3347 * graphite-sese-to-poly.c: Likewise.
3348 * graphite.h: Likewise.
3349 * toplev.c: Include isl/version.h and use isl_version () for
3350 printing the ISL version.
3351 * doc/install.texi: Update ISL requirement.
3353 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3355 * doc/standards.texi (Standards): Update reference to
3358 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3360 * doc/extend.texi (Named Address Spaces): sourceware.org now
3362 * doc/install.texi (Binaries): Ditto.
3365 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
3367 * doc/cpp.texi: Replace "stringify"/"stringification" with C
3368 standard terminology "stringize"/"stringizing" throughout.
3369 * doc/cppinternals.texi: Likewise.
3371 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
3373 * doc/extend.texi: Fix some spelling mistakes and typos.
3374 * doc/invoke.texi: Likewise.
3376 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
3379 * params.def (inline-min-speedup) Change from 10 to 8.
3381 2017-02-11 Jakub Jelinek <jakub@redhat.com>
3383 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
3386 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
3389 * ipa-inline-analysis.c (get_minimal_bb): New function.
3390 (record_modified): Use it.
3391 (remap_edge_change_prob): Handle also ancestor functions.
3393 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
3395 * doc/contrib.texi (Contributors): Remove broken link into
3396 the Mauve CVS repository.
3398 2017-02-11 Jakub Jelinek <jakub@redhat.com>
3401 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
3402 result computation whenever lhs doesn't have vector mode, not
3403 just when it has BLKmode.
3405 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
3407 * doc/makefile.texi (profiledbootstrap): Refer to the
3408 installation instructions only in textual form.
3410 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3413 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
3415 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
3417 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
3418 (Specific): Update mingw-w64 reference.
3420 (Specific): Remove broken link to Renesas RX processor.
3422 2017-02-10 Richard Biener <rguenther@suse.de>
3424 * toplev.c (process_options): Do not mention obsolete graphite
3425 options when printing sorry message about missing graphite support.
3426 Mention -floop-nest-optimize.
3428 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
3430 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
3431 (vtst_p16): Likewise.
3432 (vtstq_p8): Likewise.
3433 (vtstq_p16): Likewise.
3435 (vtstq_p64): Likewise.
3436 * config/arm/arm_neon.h (vgetq_lane_p64): New.
3437 (vset_lane_p64): New.
3438 (vsetq_lane_p64): New.
3440 2017-02-10 Jakub Jelinek <jakub@redhat.com>
3442 PR tree-optimization/79411
3443 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
3444 stmt operands are SSA_NAMEs used in abnormal phis.
3445 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
3448 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
3451 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
3454 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
3456 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
3458 2017-02-09 Jakub Jelinek <jakub@redhat.com>
3460 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
3464 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
3465 not arbitrary TREE_CONSTANT.
3468 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
3469 "omp declare target link" attribute unless is_global_var.
3470 * omp-offload.c (find_link_var_op): Likewise.
3472 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
3473 Chung-Lin Tang <cltang@codesourcery.com>
3475 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
3477 (gimplify_adjust_omp_clauses): Don't delete TILE.
3478 (gimplify_omp_for): Deal with TILE.
3479 * internal-fn.c (expand_GOACC_TILE): New function.
3480 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
3482 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
3483 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
3485 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
3486 avoid DIV for outermost collapse var.
3487 (expand_oacc_for): Insert tile element loop as needed. Adjust.
3488 Remove out of date comments, fix whitespace.
3489 * omp-general.c (omp_extract_for_data): Deal with tiling.
3490 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
3491 adjust OLF_DIM_BASE value.
3492 (struct omp_for_data): Add tiling field.
3493 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
3494 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
3495 for auto loops. Remove default auto determining, moved to
3496 oacc_loop_fixed_partitions.
3497 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
3498 stmts, add e_mask field.
3499 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
3500 (oacc_thread_numbers): Use oacc_dim_call.
3501 (oacc_xform_tile): New.
3502 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
3503 (finish_oacc_loop): Adjust for ifns vector.
3504 (oacc_loop_discover_walk): Append loop abstraction sites to list,
3505 add case for GOACC_TILE fns.
3506 (oacc_loop_xform_loop): Delete.
3507 (oacc_loop_process): Iterate over call list directly, and add
3508 handling for GOACC_TILE fns.
3509 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
3511 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
3512 vector partitioning to outer loops. Assign 2 partitions to loops
3513 when available. Add TILE handling.
3514 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
3515 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
3516 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
3517 * tree.c (omp_clause_num_ops): Adjust TILE ops.
3518 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
3520 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
3522 * configure.ac (ACX_BUGURL): Update.
3523 * configure: Regenerate.
3525 2017-02-09 Richard Biener <rguenther@suse.de>
3527 PR tree-optimization/69823
3528 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
3529 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
3531 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3533 * config/arc/arc-c.def: Add __NPS400__ definition.
3534 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
3535 (TARGET_NPS400): Define.
3537 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3539 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
3541 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
3543 (arc_cpu_types): Fill the arch_info field with a pointer into the
3544 arc_arch_types table.
3545 (arc_selected_cpu): Declare.
3546 * config/arc/arc.c (arc_selected_cpu): Make global.
3547 (arc_selected_arch): Delete.
3548 (arc_base_cpu): Delete.
3549 (arc_override_options): Remove references to deleted variables,
3550 update access to arch information.
3551 (ARC_OPT): Update access to arch information.
3552 (ARC_OPTX): Likewise.
3553 * config/arc/arc.h (arc_base_cpu): Remove declaration.
3554 (TARGET_ARC600): Update access to arch information.
3555 (TARGET_ARC601): Likewise.
3556 (TARGET_ARC700): Likewise.
3557 (TARGET_EM): Likewise.
3558 (TARGET_HS): Likewise.
3559 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
3562 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
3565 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
3566 condition/operands for integer GE/LE/GEU/LEU operations.
3568 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
3570 PR translation/79397
3571 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
3574 2017-02-08 Martin Jambor <mjambor@suse.cz>
3577 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
3578 whether allocation happened.
3579 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
3580 nothing was allocated.
3582 2017-02-08 Jakub Jelinek <jakub@redhat.com>
3584 PR tree-optimization/79408
3585 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
3586 constant, but SSA_NAME with a known integer range, use the minimum
3587 of that range instead of op1 to determine if modulo can be replaced
3588 with its first operand.
3590 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3592 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
3594 2017-02-08 Richard Biener <rguenther@suse.de>
3596 PR tree-optimization/71824
3597 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
3598 Check all loops contained in the merged region.
3600 2017-02-07 Andrew Pinski <apinski@cavium.com>
3602 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
3604 2017-02-07 Andrew Pinski <apinski@cavium.com>
3606 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
3607 (thunderxt88): Likewise.
3608 (thunderxt81): Disable LSE and change v8.1 to v8.
3609 (thunderxt83): Likewise.
3611 2017-02-07 Jakub Jelinek <jakub@redhat.com>
3612 Richard Biener <rguenther@suse.de>
3615 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
3616 type from int to size_t.
3617 * ira-costs.c (struct_costs_size): Change type from int to size_t.
3619 2017-02-07 Jakub Jelinek <jakub@redhat.com>
3621 PR rtl-optimization/79386
3622 * cprop.c (bypass_conditional_jumps): Initialize
3623 bypass_last_basic_block already before splitting bbs after
3624 unconditional traps...
3625 (bypass_conditional_jumps): ... rather than here.
3628 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
3629 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
3630 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
3631 fix -masm=intel patterns.
3633 2017-02-07 Richard Biener <rguenther@suse.de>
3635 PR tree-optimization/79256
3637 * builtins.c (get_object_alignment_2): Use min_align_of_type
3638 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
3639 and ADJUST_FIELD_ALIGN.
3641 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
3643 * doc/tm.texi: Regenerate.
3644 * stor-layout.c (layout_decl): Adjust.
3645 (update_alignment_for_field): Likewise.
3646 (place_field): Likewise.
3647 (min_align_of_type): Likewise.
3648 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
3649 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
3650 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
3651 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
3652 * config/frv/frv.c (frv_adjust_field_align): Likewise.
3653 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
3654 * config/i386/i386.c (x86_field_alignment): Likewise.
3655 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
3656 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
3657 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3658 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3659 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
3660 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
3664 2017-01-30 Richard Biener <rguenther@suse.de>
3666 PR tree-optimization/79256
3667 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
3668 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
3671 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
3673 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
3674 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
3675 builtins to SImode and emit a zero-extend, if necessary.
3677 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
3679 * docs/invoke.texi (RISC-V Options): Alphabetize.
3681 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
3683 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
3686 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
3688 * config/riscv/riscv.c: New file.
3689 * gcc/common/config/riscv/riscv-common.c: Likewise.
3690 * config.gcc: Likewise.
3691 * config/riscv/constraints.md: Likewise.
3692 * config/riscv/elf.h: Likewise.
3693 * config/riscv/generic.md: Likewise.
3694 * config/riscv/linux.h: Likewise.
3695 * config/riscv/multilib-generator: Likewise.
3696 * config/riscv/peephole.md: Likewise.
3697 * config/riscv/pic.md: Likewise.
3698 * config/riscv/predicates.md: Likewise.
3699 * config/riscv/riscv-builtins.c: Likewise.
3700 * config/riscv/riscv-c.c: Likewise.
3701 * config/riscv/riscv-ftypes.def: Likewise.
3702 * config/riscv/riscv-modes.def: Likewise.
3703 * config/riscv/riscv-opts.h: Likewise.
3704 * config/riscv/riscv-protos.h: Likewise.
3705 * config/riscv/riscv.h: Likewise.
3706 * config/riscv/riscv.md: Likewise.
3707 * config/riscv/riscv.opt: Likewise.
3708 * config/riscv/sync.md: Likewise.
3709 * config/riscv/t-elf-multilib: Likewise.
3710 * config/riscv/t-linux: Likewise.
3711 * config/riscv/t-linux-multilib: Likewise.
3712 * config/riscv/t-riscv: Likewise.
3713 * configure.ac: Likewise.
3714 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
3715 Waterman as RISC-V maintainers.
3716 * doc/install.texi: Add RISC-V entries.
3717 * doc/invoke.texi: Add RISC-V options section.
3718 * doc/md.texi: Add RISC-V constraints section.
3719 * configure: Regenerated.
3721 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3724 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
3725 false values to be constant vectors with all 0 or all 1 bits set.
3726 (vcondu<mode><mode>): Likewise.
3727 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
3729 (fpmask_comparison_operator): Update comment.
3730 (vecint_comparison_operator): New predicate.
3731 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
3732 vector conditionals when the true and false values are constant
3733 vectors with all 0 bits or all 1 bits set.
3735 2017-02-06 Martin Sebor <msebor@redhat.com>
3737 PR tree-optimization/79376
3738 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
3740 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
3742 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
3743 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
3744 to simplify split condition.
3746 2017-02-06 Jakub Jelinek <jakub@redhat.com>
3748 * omp-expand.c (oxpand_omp_atomic_fetch_op,
3749 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
3752 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
3754 PR rtl-optimization/68664
3755 * target.def (can_speculate_insn): New hook.
3756 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
3757 * doc/tm.texi: Regenerate.
3758 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
3759 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
3760 (rs6000_sched_can_speculate_insn): New function.
3762 2017-02-06 Jakub Jelinek <jakub@redhat.com>
3764 PR tree-optimization/79284
3765 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
3766 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
3767 vectorizable_mask_load_store, vectorizable_operation,
3768 vect_is_simple_cond, get_same_sized_vectype): Use it instead
3769 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
3770 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
3771 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
3772 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3773 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
3774 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
3775 is_gimple_assign (stmt). Replace another such test with
3776 is_gimple_assign (stmt).
3778 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
3781 * config/avr/avr.c (rtl-iter.h): Include it.
3782 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
3783 (avr_legitimate_combined_insn): ...and implementation.
3785 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
3787 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
3788 * config/s390/s390.c (s390_const_operand_ok)
3789 (s390_canonicalize_comparison, s390_extract_part)
3790 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
3791 (s390_contiguous_bitmask_p, s390_rtx_costs)
3792 (legitimize_pic_address): Likewise.
3793 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
3794 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
3795 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
3796 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
3797 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
3799 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
3801 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
3802 REGNO($0) == REGNO($1).
3804 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3806 * config/s390/linux.h(SIZE_TYPE): Add comment.
3808 2017-02-06 Julian Brown <julian@codesourcery.com>
3809 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3810 Virendra Pathak <virendra.pathak@broadcom.com>
3812 * config/aarch64/aarch64-cores.def: Change the scheduler
3814 * config/aarch64/aarch64.md: Include thunderx2t99.md.
3815 * config/aarch64/thunderx2t99.md: New file.
3817 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
3819 * doc/standards.texi (Go Language): Update link to language
3822 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
3824 * tree-eh.c (lower_resx): Sanitize profile.
3825 (cleanup_empty_eh_move_lp): Likewise.
3827 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
3830 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
3832 * cfgloopmanip.h (loop_version): Update prototype.
3833 * modulo-sched.c (sms_schedule): Update call of loop_version.
3834 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
3835 * tree-parloops.c (gen_parallel_loop): Likewise.
3836 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
3837 * tree-ssa-loop-split.c (split_loop): Likewise.
3838 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
3839 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
3841 2017-02-05 Martin Liska <mliska@suse.cz>
3844 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
3846 (print_operand_address): Initialize a struct to zero.
3848 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
3850 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
3851 garbage collector only in textual form.
3853 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
3855 * doc/extend.texi (x86 specific memory model extensions for
3856 transactional memory): Simplify a phrase.
3858 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
3861 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
3862 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
3863 (atomic_storedi_1): Likewise.
3865 2017-02-04 Jakub Jelinek <jakub@redhat.com>
3867 PR tree-optimization/79338
3868 * tree-parloops.c (gather_scalar_reductions): Don't call
3869 vect_analyze_loop_form for loop->inner before destroying loop's
3872 2017-02-03 Martin Sebor <msebor@redhat.com>
3874 PR tree-optimization/79327
3875 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
3876 when precision has resulted in leading zeros.
3877 (format_integer): Adjust the likely counter to assume an unknown
3878 argument that may be zero is non-zero.
3880 2017-02-03 Jason Merrill <jason@redhat.com>
3883 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
3884 avoid copying non-taken branch.
3886 2017-02-03 Jakub Jelinek <jakub@redhat.com>
3888 PR tree-optimization/79340
3889 * tree-vect-loop.c (vectorizable_reduction): Release
3890 vec_defs elements after safe_splicing them into other vectors.
3893 PR tree-optimization/79327
3894 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
3895 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
3897 (format_integer): Use wide_int_to_tree instead of build_int_cst
3898 + to_?hwi. If argmin is NULL, just set argmin and argmax to
3899 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
3900 of shortest and longest sequence.
3902 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
3904 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3905 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
3907 2017-02-03 Walter Lee <walt@tilera.com>
3910 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
3911 after initial stackframe link reg save.
3912 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
3914 2017-02-03 Jakub Jelinek <jakub@redhat.com>
3917 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
3918 wu for stxssp alternative.
3920 2017-02-03 Martin Sebor <msebor@redhat.com>
3922 PR tree-optimization/79352
3923 * gimple-fold.c (get_range_strlen): Add argument.
3924 (get_range_strlen): Change return type to bool.
3925 (get_maxval_strlen): Pass in a dummy argument.
3926 * gimple-fold.h (get_range_strlen): Change return type to bool.
3927 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
3928 * tree.h (array_at_struct_end_p): Add argument.
3929 * tree.c (array_at_struct_end_p): Handle it.
3931 2017-02-03 Martin Liska <mliska@suse.cz>
3934 * multiple_target.c (create_dispatcher_calls): Redirect edge
3935 from a caller of a dispatcher.
3936 (expand_target_clones): Make the clones local.
3937 (ipa_target_clone): Do both target clones and resolvers.
3938 (ipa_dispatcher_calls): Remove the pass.
3939 (pass_dispatcher_calls::gate): Likewise.
3940 (make_pass_dispatcher_calls): Likewise.
3941 * passes.def (pass_target_clone): Put as very first IPA early
3944 2017-02-03 Martin Liska <mliska@suse.cz>
3946 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
3947 in case of a function with ifunc attribute.
3949 2017-02-03 Martin Liska <mliska@suse.cz>
3951 * cgraph.c (cgraph_node::dump): Dump function version info.
3952 * symtab.c (symtab_node::dump_base): Add missing new line.
3954 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
3956 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
3957 (ifcombine_ifandif): Use it.
3959 2017-02-03 Martin Liska <mliska@suse.cz>
3961 * doc/invoke.texi: Document default value for
3962 use-after-scope-direct-emission-threshold.
3964 2017-02-03 Martin Liska <mliska@suse.cz>
3966 PR tree-optimization/79339
3967 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
3968 (format_floating): Likewise.
3970 2017-02-03 Martin Liska <mliska@suse.cz>
3973 * ipa-prop.c (ipa_node_params_t::insert): Remove current
3975 (ipa_node_params_t::remove): Likewise.
3976 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
3977 initialization from removed ipa_node_params_t::insert.
3978 (ipa_node_params::~ipa_node_params): Move from removed
3979 ipa_node_params_t::release.
3980 * symbol-summary.h (symbol_summary::m_released): New member.
3981 Do not release a summary twice. Do not allow to call finalizer
3982 for types of a summary that live in GGC memory.
3984 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3986 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
3989 2017-02-02 Martin Sebor <msebor@redhat.com>
3992 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
3993 (format_string): Tighten up the range of output for non-constant
3994 strings and correct the expected range for wide non-constant strings.
3996 2017-02-02 Martin Sebor <msebor@redhat.com>
3998 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
4001 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
4003 (-fdump-tree-@var): Add to index and document how to come up
4004 with pass-specific option and dump file names.
4005 (-fdump-passes): Clarify where to look for output.
4007 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
4010 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
4011 statistics of the analyzed path; allow threading for speed when
4012 any of BBs along the path are optimized for speed.
4014 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
4017 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
4018 settings of the virtual registers.
4021 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4023 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4024 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4027 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4029 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
4030 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
4032 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4034 * config/s390/s390.md: Add missing comments with the expanded
4036 * config/s390/vector.md: Likewise.
4037 * config/s390/vx-builtins.md: Likewise.
4039 2017-02-02 Jakub Jelinek <jakub@redhat.com>
4042 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
4043 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
4044 conditions on a single line.
4046 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4048 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4049 __S390_VX__ to __VX__.
4051 2017-02-01 Andrew Pinski <apinski@cavium.com>
4053 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
4054 stmt_info to record_stmt_cost.
4055 (vect_get_known_peeling_cost): Pass stmt_info if known to
4057 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
4058 cpu_vector_cost field into
4059 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
4060 field into vec_int_stmt_cost and vec_fp_stmt_cost.
4061 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
4062 splitting of scalar_stmt_cost and vec_stmt_cost.
4063 (thunderx_vector_cost): Likewise.
4064 (cortexa57_vector_cost): LIkewise.
4065 (exynosm1_vector_cost): Likewise.
4066 (xgene1_vector_cost): Likewise.
4067 (thunderx2t99_vector_cost): Improve after the splitting of the two
4069 (aarch64_builtin_vectorization_cost): Update for the splitting of
4070 scalar_stmt_cost and vec_stmt_cost.
4072 2017-02-01 Torvald Riegel <triegel@redhat.com>
4073 Richard Henderson <rth@redhat.com>
4075 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
4076 conditional on existance of a fast atomic load.
4077 * optabs-query.c (can_atomic_load_p): New function.
4078 * optabs-query.h (can_atomic_load_p): Declare it.
4079 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
4080 no fast atomic load is available for the particular size of access.
4081 (expand_atomic_compare_and_swap): Likewise.
4082 (expand_atomic_load): Likewise.
4083 (expand_atomic_store): Likewise.
4084 (expand_atomic_fetch_op): Likewise.
4085 * testsuite/lib/target-supports.exp
4086 (check_effective_target_sync_int_128): Remove x86 because it provides
4087 no fast atomic load.
4088 (check_effective_target_sync_int_128_runtime): Likewise.
4090 2017-02-01 Richard Biener <rguenther@suse.de>
4092 * graphite.c: Include tree-vectorizer.h for find_loop_location.
4093 (graphite_transform_loops): Provide opt-info for optimized nests.
4094 * tree-parloop.c (parallelize_loops): Provide opt-info for
4097 2017-02-01 Richard Biener <rguenther@suse.de>
4100 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
4103 2017-02-01 Richard Biener <rguenther@suse.de>
4105 PR tree-optimization/71824
4106 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
4107 Verify the loops are valid in the merged SESE region.
4108 (scop_detection::can_represent_loop_1): Check analyzing the
4109 evolution of the number of iterations in the region succeeds.
4111 2017-01-31 Ian Lance Taylor <iant@golang.org>
4113 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
4114 REG_ARGS_SIZE note to 32-bit push insns and call insn.
4116 2017-01-31 David Malcolm <dmalcolm@redhat.com>
4118 PR preprocessor/79210
4119 * input.c (get_substring_ranges_for_loc): Replace line_width
4120 assertion with error-handling.
4122 2017-01-31 Richard Biener <rguenther@suse.de>
4124 PR tree-optimization/77318
4125 * graphite-sese-to-poly.c (extract_affine): Fix assert.
4126 (create_pw_aff_from_tree): Take loop parameter.
4127 (add_condition_to_pbb): Pass loop of the condition to
4128 create_pw_aff_from_tree.
4130 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4132 * config/s390/s390.c (s390_asan_shadow_offset): New function.
4133 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
4135 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
4139 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
4141 (convert_int_to_float128): Likewise.
4142 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
4143 (convert_int_to_float128): Likewise.
4144 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
4145 (UNSPEC_IEEE128_CONVERT): Likewise.
4146 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
4147 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
4148 Use local variables for IBM extended format.
4149 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
4150 (fix_trunc<mode>si2_fprs): Likewise.
4151 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
4152 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
4153 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
4154 to know that we can now have integers of all sizes in vector
4156 (fix<uns>_<mode>di2_hw): Likewise.
4157 (float<uns>_<mode>si2_hw): Likewise.
4158 (fix_<mode>si2_hw): Likewise.
4159 (fixuns_<mode>si2_hw): Likewise.
4160 (float<uns>_<mode>di2_hw): Likewise.
4161 (float_<mode>di2_hw): Likewise.
4162 (float_<mode>si2_hw): Likewise.
4163 (floatuns_<mode>di2_hw): Likewise.
4164 (floatuns_<mode>si2_hw): Likewise.
4165 (xscvqp<su>wz_<mode>): Delete, no longer used.
4166 (xscvqp<su>dz_<mode>): Likewise.
4167 (xscv<su>dqp_<mode>): Likewise.
4168 (ieee128_mfvsrd_64bit): Likewise.
4169 (ieee128_mfvsrd_32bit): Likewise.
4170 (ieee128_mfvsrwz): Likewise.
4171 (ieee128_mtvsrw): Likewise.
4172 (ieee128_mtvsrd_64bit): Likewise.
4173 (ieee128_mtvsrd_32bit): Likewise.
4175 2017-01-31 Martin Liska <mliska@suse.cz>
4178 * ipa-prop.c (ipa_free_all_node_params): Call release method
4179 instead of ~sumbol_summary to not to trigger double times
4182 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
4184 PR tree-optimization/71691
4185 * bitmap.h (class auto_bitmap): New.
4186 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
4187 is_maybe_undefined instead of ssa_undefined_value_p.
4189 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4191 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
4192 __S390_ARCH_LEVEL__ to __ARCH__.
4194 2017-01-31 Jakub Jelinek <jakub@redhat.com>
4196 PR tree-optimization/79267
4197 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
4198 if should_remove_lhs_p is true.
4200 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
4203 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
4204 (add_alignment_attribute): New.
4205 (base_type_die): Add alignment attribute.
4206 (subrange_type_die): Likewise.
4207 (modified_type_die): Likewise.
4208 (gen_array_type_die): Likewise.
4209 (gen_descr_array_type_die: Likewise.
4210 (gen_enumeration_type_die): Likewise.
4211 (gen_subprogram_die): Likewise.
4212 (gen_variable_die): Likewise.
4213 (gen_field_die): Likewise.
4214 (gen_ptr_to_mbr_type_die): Likewise.
4215 (gen_struct_or_union_type_die): Likewise.
4216 (gen_subroutine_type_die): Likewise.
4217 (gen_typedef_die): Likewise.
4218 (base_type_cmp): Compare alignment attribute.
4220 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4223 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
4224 (setb_unsigned) New pattern for setb with CCUNS.
4225 * config/rs6000/rs6000.c (expand_block_compare): Use a different
4226 subfc./subfe sequence to avoid overflow problems. Generate a
4227 shorter sequence with cmpld/setb for power9.
4228 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
4229 for generating subfc. instruction.
4230 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
4231 now uses this instruction.
4233 2017-01-30 Ian Lance Taylor <iant@google.com>
4236 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
4237 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
4239 2017-01-30 Martin Sebor <msebor@redhat.com>
4241 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
4242 Move constant to the right of a relational operator.
4243 (get_mpfr_format_length, format_character, format_string): Ditto.
4244 (should_warn_p, maybe_warn): Same.
4246 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
4248 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
4251 * asan.c (get_translation_unit_decl): Remove function.
4252 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
4254 2017-01-30 Martin Liska <mliska@suse.cz>
4256 PR gcov-profile/79259
4257 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
4260 2017-01-30 Martin Liska <mliska@suse.cz>
4263 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
4264 Initialize variables with NULL value.
4266 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
4269 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
4271 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
4273 2017-01-30 Richard Biener <rguenther@suse.de>
4275 PR tree-optimization/79276
4276 * tree-vrp.c (process_assert_insertions): Properly adjust common
4277 when removing a duplicate.
4279 * gcc.dg/torture/pr79276.c: New testcase.
4281 2017-01-30 Richard Biener <rguenther@suse.de>
4283 PR tree-optimization/79256
4284 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
4285 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
4287 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
4289 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
4292 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
4293 ("*r<noxa>sbg_<mode>_sll_bitmask")
4294 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
4295 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
4296 Use contiguous_bitmask_nowrap_operand.
4298 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4301 * config/rs6000/altivec.h (vec_xl): Revise #define.
4302 (vec_xst): Likewise.
4304 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
4306 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
4308 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
4310 PR rtl-optimization/79194
4311 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
4312 traps before call to bypass_conditional_jumps.
4314 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
4316 PR tree-optimization/71374
4317 * lra-constraints.c (check_conflict_input_operands): New.
4318 (match_reload): Use it.
4320 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
4323 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
4324 account to calculate conflict_set.
4326 2017-01-27 Bin Cheng <bin.cheng@arm.com>
4328 PR rtl-optimization/78559
4329 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
4330 other_insn in combine.
4332 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
4334 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
4335 uint16_type_node for BT_UINT16.
4337 2017-01-27 David Malcolm <dmalcolm@redhat.com>
4339 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
4340 "RTL Tests" to menu.
4341 (GIMPLE Tests): New node.
4342 (RTL Tests): New node.
4344 2017-01-27 Richard Biener <rguenther@suse.de>
4346 PR tree-optimization/79245
4347 * tree-loop-distribution.c (distribute_loop): Apply cost
4348 modeling also to detected patterns.
4350 2017-01-27 Richard Biener <rguenther@suse.de>
4352 PR tree-optimization/71433
4353 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
4354 (compare_assert_loc): New function.
4355 (process_assert_insertions): Sort and optimize assert locations
4356 to remove duplicates and push down identical assertions on
4357 edges to their destination block.
4359 2017-01-27 Richard Biener <rguenther@suse.de>
4361 PR tree-optimization/79244
4362 * tree-vrp.c (remove_range_assertions): Forcefully propagate
4363 out SSA names even if abnormal.
4365 2017-01-27 Jakub Jelinek <jakub@redhat.com>
4367 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
4368 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
4369 instead of MPFR_RNDN.
4371 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
4374 * arm.c (arm_option_override): Don't call build_target_option_node
4375 until after doing all option overrides.
4376 (arm_valid_target_attribute_tree): Likewise.
4378 2017-01-27 Martin Liska <mliska@suse.cz>
4380 * doc/invoke.texi (-fprofile-arcs): Document profiling support
4381 for {cd}tors and C++ {cd}tors.
4383 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
4385 * config/s390/s390.md ("*setmem_long_and")
4386 ("*setmem_long_and_31z"): Use zero_extend instead of and.
4388 2017-01-26 Martin Sebor <msebor@redhat.com>
4390 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
4393 2017-01-26 Martin Sebor <msebor@redhat.com>
4395 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
4396 HAVE_DFmode before using XFmode or DFmode.
4397 (parse_directive): Avoid using the z length modifier to avoid
4398 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
4401 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
4402 to accept adjustment as an array.
4403 (get_int_range): New function.
4404 (struct directive): Make width and prec arrays.
4405 (directive::set_width, directive::set_precision): Call get_int_range.
4406 (format_integer, format_floating): Handle width and precision ranges.
4407 (format_string, parse_directive): Same.
4409 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4412 * dwarf2out.c (generate_skeleton_bottom_up): For children with
4413 comdat_type_p set, just clone them, but keep the children in the
4417 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
4418 which have direct callers with -fvar-tracking-assignments enabled
4420 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
4421 inside of type units.
4423 2017-01-26 Martin Sebor <msebor@redhat.com>
4426 * gimple-ssa-sprintf.c (struct result_range): Add likely and
4428 (struct format_result): Replace number_chars, number_chars_min,
4429 and number_chars_max with a single member of struct result_range.
4431 (format_result::operator+=): Adjust.
4432 (struct fmtresult): Remove bounded. Handle likely and unlikely
4434 (fmtresult::adjust_for_width_or_precision): New function.
4435 (fmtresult:type_max_digits): New function.
4436 (bytes_remaining): Handle likely and unlikely counters.
4437 (min_bytes_remaining): Remove.
4438 (format_percent): Simplify.
4439 (format_integer, format_floating): Set likely and unlikely counters.
4440 (get_string_length, format_character, format_string): Same.
4441 (format_plain, should_warn_p): New function.
4442 (maybe_warn): Call should_warn_p. Update diagnostic messages
4443 and handle those for all directives, including plain strings.
4444 (format_directive): Handle likely and unlikely counters.
4445 Remove unnecessary quoting from diagnostics. Add an informational
4447 (add_bytes): Remove.
4448 (pass_sprintf_length::compute_format_length): Simplify.
4449 (try_substitute_return_value): Handle likely and unlikely counters.
4451 2017-01-26 Carl Love <cel@us.ibm.com>
4453 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
4454 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
4456 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
4459 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
4460 endianess for subregs into account.
4461 * lra-constraints.c (lra_constraints): Do risky transformations
4462 always on the first iteration.
4463 * lra-lives.c (check_pseudos_live_through_calls): Add arg
4464 last_call_used_reg_set.
4465 (process_bb_lives): Define and use last_call_used_reg_set.
4466 * lra.c (lra): Always continue after lra_constraints on the first
4469 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
4471 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
4473 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
4475 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4477 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
4478 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
4479 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
4480 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
4481 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
4482 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
4483 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
4484 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
4485 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
4487 2017-01-26 Marek Polacek <polacek@redhat.com>
4490 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
4491 for the third operand.
4493 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4496 * omp-low.c (struct omp_context): Add simt_stmt field.
4497 (scan_omp_for): Return omp_context *.
4498 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
4499 context to the _simt_ SIMD stmt.
4500 (lower_omp_for): For combined SIMD with sibling _simt_
4501 SIMD, make sure to use the same decls in _looptemp_
4502 clauses as in the sibling.
4504 2017-01-26 David Sherwood <david.sherwood@arm.com>
4507 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
4510 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4513 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
4514 emit fld b; fld a; if possible.
4516 * brig-builtins.def: Update copyright years.
4517 * config/arm/arm_acle_builtins.def: Update copyright years.
4519 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
4522 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
4523 constraint instead of o for the stxsd instruction.
4525 2017-01-25 Carl Love <cel@us.ibm.com>
4527 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
4528 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
4530 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
4532 * doc/invoke.texi (C++ Dialect Options): Fix typo.
4534 2017-01-25 Richard Biener <rguenther@suse.de>
4536 PR tree-optimization/69264
4537 * target.def (vector_alignment_reachable): Improve documentation.
4538 * doc/tm.texi: Regenerate.
4539 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
4541 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
4542 earlier changes with respect to TYPE_USER_ALIGN.
4543 (vector_alignment_reachable_p): Likewise. Improve dumping.
4545 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4548 * config/arm/arm.md (xordi3): Force constant operand into a register
4551 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4553 * doc/invoke.texi (-fstore-merging): Correct default optimization
4554 levels at which it is enabled.
4555 (-O): Move -fstore-merging from list to...
4558 2017-01-25 Richard Biener <rguenther@suse.de>
4561 * omp-expand.c: Include debug.h.
4562 (expand_omp_taskreg): Make sure to generate early debug before
4563 outlining anything from a function.
4564 (expand_omp_target): Likewise.
4565 (grid_expand_target_grid_body): Likewise.
4567 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
4570 * asan.c (get_translation_unit_decl): New function.
4571 (asan_add_global): Extract modules file name from globals
4572 TRANSLATION_UNIT_DECL name.
4574 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
4577 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
4578 for long calls with APCS frame and VFP.
4580 2017-01-24 David Malcolm <dmalcolm@redhat.com>
4582 * cfg.c (original_copy_tables_initialized_p): New function.
4583 * cfg.h (original_copy_tables_initialized_p): New decl.
4584 * cfgrtl.c (relink_block_chain): Guard the call to
4585 free_original_copy_tables with a call to
4586 original_copy_tables_initialized_p.
4587 * cgraph.h (symtab_node::native_rtl_p): New decl.
4588 * cgraphunit.c (symtab_node::native_rtl_p): New function.
4589 (symtab_node::needed_p): Don't assert for early assembly output
4590 for __RTL functions.
4591 (cgraph_node::finalize_function): Set "force_output" for __RTL
4593 (cgraph_node::analyze): Bail out early for __RTL functions.
4594 (analyze_functions): Update assertion to support __RTL functions.
4595 (cgraph_node::expand): Bail out early for __RTL functions.
4596 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
4598 * function.h (struct function): Update comment for field
4600 * gimple-expr.c: Include "tree-pass.h".
4601 (gimple_has_body_p): Return false for __RTL functions.
4602 * Makefile.in (OBJS): Add run-rtl-passes.o.
4603 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
4605 (gcc::pass_manager::get_clean_slate): New accessor.
4606 * passes.c: Include "insn-addr.h".
4607 (should_skip_pass_p): Add logging. Update logic for running
4608 "expand" to be compatible with both __GIMPLE and __RTL. Guard
4609 property-provider override so it is only done for gimple passes.
4611 (skip_pass): New function.
4612 (execute_one_pass): Call skip_pass when skipping passes.
4613 * read-md.c (md_reader::read_char): Support filtering
4614 the input to a subset of line numbers.
4615 (md_reader::md_reader): Initialize fields
4616 m_first_line and m_last_line.
4617 (md_reader::read_file_fragment): New function.
4618 * read-md.h (md_reader::read_file_fragment): New decl.
4619 (md_reader::m_first_line): New field.
4620 (md_reader::m_last_line): New field.
4621 * read-rtl-function.c (function_reader::create_function): Only
4622 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
4623 curr_properties. Set DECL_INITIAL to a dummy block.
4624 (read_rtl_function_body_from_file_range): New function.
4625 * read-rtl-function.h (read_rtl_function_body_from_file_range):
4627 * run-rtl-passes.c: New file.
4628 * run-rtl-passes.h: New file.
4630 2017-01-24 Jeff Law <law@redhat.com>
4632 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
4635 2017-01-24 Bin Cheng <bin.cheng@arm.com>
4637 PR tree-optimization/79159
4638 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
4639 (record_nonwrapping_iv): Improve boundary using above function if no
4640 value range information.
4642 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4643 Martin Jambor <mjambor@suse.cz>
4645 * brig-builtins.def: New file.
4646 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
4647 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
4648 (DEF_HSAIL_SAT_BUILTIN): Likewise.
4649 (DEF_HSAIL_INTR_BUILTIN): Likewise.
4650 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
4651 * builtin-types.def (BT_INT8): New.
4652 (BT_INT16): Likewise.
4653 (BT_UINT8): Likewise.
4654 (BT_UINT16): Likewise.
4655 (BT_FN_ULONG): Likewise.
4656 (BT_FN_UINT_INT): Likewise.
4657 (BT_FN_UINT_ULONG): Likewise.
4658 (BT_FN_UINT_LONG): Likewise.
4659 (BT_FN_UINT_PTR): Likewise.
4660 (BT_FN_ULONG_PTR): Likewise.
4661 (BT_FN_INT8_FLOAT): Likewise.
4662 (BT_FN_INT16_FLOAT): Likewise.
4663 (BT_FN_UINT32_FLOAT): Likewise.
4664 (BT_FN_UINT16_FLOAT): Likewise.
4665 (BT_FN_UINT8_FLOAT): Likewise.
4666 (BT_FN_UINT64_FLOAT): Likewise.
4667 (BT_FN_UINT16_UINT32): Likewise.
4668 (BT_FN_UINT32_UINT16): Likewise.
4669 (BT_FN_UINT16_UINT16_UINT16): Likewise.
4670 (BT_FN_INT_PTR_INT): Likewise.
4671 (BT_FN_UINT_PTR_UINT): Likewise.
4672 (BT_FN_LONG_PTR_LONG): Likewise.
4673 (BT_FN_ULONG_PTR_ULONG): Likewise.
4674 (BT_FN_VOID_UINT64_UINT64): Likewise.
4675 (BT_FN_UINT8_UINT8_UINT8): Likewise.
4676 (BT_FN_INT8_INT8_INT8): Likewise.
4677 (BT_FN_INT16_INT16_INT16): Likewise.
4678 (BT_FN_INT_INT_INT): Likewise.
4679 (BT_FN_UINT_FLOAT_UINT): Likewise.
4680 (BT_FN_FLOAT_UINT_UINT): Likewise.
4681 (BT_FN_ULONG_UINT_UINT): Likewise.
4682 (BT_FN_ULONG_UINT_PTR): Likewise.
4683 (BT_FN_ULONG_ULONG_ULONG): Likewise.
4684 (BT_FN_UINT_UINT_UINT): Likewise.
4685 (BT_FN_VOID_UINT_PTR): Likewise.
4686 (BT_FN_UINT_UINT_PTR: Likewise.
4687 (BT_FN_UINT32_UINT64_PTR): Likewise.
4688 (BT_FN_INT_INT_UINT_UINT): Likewise.
4689 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
4690 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
4691 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
4692 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
4693 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
4694 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
4695 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
4696 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
4697 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
4698 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
4699 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
4700 * doc/frontends.texi: List BRIG FE.
4701 * doc/install.texi (Testing): Add BRIG tesring requirements.
4702 * doc/invoke.texi (Overall Options): Mention BRIG.
4703 * doc/standards.texi (Standards): Doucment BRIG HSA version.
4705 2017-01-24 Richard Biener <rguenther@suse.de>
4707 PR translation/79208
4708 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
4710 2017-01-24 Martin Jambor <mjambor@suse.cz>
4713 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
4714 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
4717 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
4720 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
4721 casts from signed to unsigned really don't have a range.
4723 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
4725 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
4726 GMP_RNDx for compatiblity.
4728 2017-01-24 Martin Liska <mliska@suse.cz>
4731 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
4732 that would prevent us to call alloca with -1 as argument.
4734 2017-01-24 Jakub Jelinek <jakub@redhat.com>
4736 * dwarf2out.c (output_compilation_unit_header, output_file_names):
4737 Avoid -Wformat-security warning.
4739 2017-01-23 Andrew Pinski <apinski@cavium.com>
4741 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
4744 2017-01-23 Martin Sebor <msebor@redhat.com>
4747 * gimple-ssa-sprintf.c (warn_level): New global.
4748 (format_integer): Use it here and throughout the rest of the file.
4749 Use the same switch to compute sign as base.
4750 (maybe_warn): New function.
4751 (format_directive): Factor out warnings into maybe_warn.
4752 Add debugging output. Use warn_level.
4753 (add_bytes): Use warn_level.
4754 (pass_sprintf_length::compute_format_length): Add debugging output.
4755 (try_substitute_return_value): Same.
4756 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
4759 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
4760 (struct fmtresult, format_integer, format_floating): Adjust.
4761 (fmtresult::fmtresult): Set max correctly in two argument ctor.
4762 (get_string_length, format_string,format_directive): Same.
4763 (pass_sprintf_length::compute_format_length): Same.
4764 (try_substitute_return_value): Simplify slightly.
4767 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
4768 (fmtresult::operator+=): Outlined.
4769 (struct fmtresult): Add ctors.
4770 (struct conversion_spec): Rename...
4771 (struct directive): ...to this. Add and remove data members.
4772 (directive::set_width, directive::set_precision): New functions.
4773 (format_percent): Use fmtresult ctor.
4774 (get_width_and_precision): Remove.
4775 (format_integer): Make naming changes. Avoid computing width and
4777 (format_floating): Same. Adjust indentation.
4778 (format_character, format_none): New functions.
4779 (format_string): Moved character handling to format_character.
4780 (format_directive): Remove arguments, change return type.
4781 (parse_directive): New function.
4782 (pass_sprintf_length::compute_format_length): Move directive
4783 parsing to parse_directive.
4785 2017-01-23 Jakub Jelinek <jakub@redhat.com>
4787 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
4788 (assign_assembler_name_if_needed): ... this.
4789 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
4790 (assign_assembler_name_if_needed): ... this.
4791 (free_lang_data_in_cgraph): Adjust callers.
4792 * cgraphunit.c (cgraph_node::analyze): Likewise.
4793 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
4796 2017-01-23 Richard Biener <rguenther@suse.de>
4798 PR tree-optimization/79088
4799 PR tree-optimization/79188
4800 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
4801 resetting loop bounds after last path deletion. Reset loop
4802 bounds of the target loop, make code match the comments.
4803 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
4804 Make sure loops need no fixups.
4806 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
4808 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
4809 exponent support with double type for first argument.
4810 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
4811 type returned by __builtin_vec_extract_sig,
4812 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
4813 functions from "vector int" to "vector unsigned int" or from
4814 "vector long long int" to "vector unsigned long long int".
4815 Changed type returned by __builtin_vec_extract_exp,
4816 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
4817 functions from "vector int" to "vector unsigned int" or from
4818 "vector long long int" to "vector unsigned long long int".
4819 Changed return type of __builtin_vec_test_data_class,
4820 __builtin_vec_test_data_class_sp, and
4821 __builtin_vec_test_data_class_dp from "vector int" to
4822 "vector bool int" or from "vector long long int" to "vector bool
4823 long long int" and changed second argument type from "unsigned
4824 int" to "int". Added new overloaded function forms "vector float
4825 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
4826 "vector float __builtin_vec_insert_exp_sp (vector float, vector
4827 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
4828 double, vector unsigned long long int)" and "vector double
4829 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
4830 long int)". Changed return type of
4831 __builtin_scalar_test_data_class and
4832 __builtin_scalar_test_data_class_sp and
4833 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
4834 int" and changed second argument from "unsigned int" to "int".
4835 Changed type returned by __builtin_scalar_test_neg,
4836 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
4837 from "int" to "bool int". Added new overloaded function form
4838 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
4839 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
4840 exponent double-precision with floating point first argument.
4841 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
4842 documentation of scalar_test_data_class, scalar_test_neg,
4843 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
4844 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
4845 vec_test_data_class built-in functions to reflect refinements in
4846 their type signatures.
4848 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
4850 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
4852 (aarch64_elf_asm_destructor): Likewise.
4854 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
4856 PR rtl-optimization/78634
4857 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
4858 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
4859 * ifcvt.c (noce_try_cmove): Add missing cost check.
4861 PR rtl-optimization/71724
4862 * combine.c (if_then_else_cond): Look for situations where it is
4863 beneficial to undo the work of one of the recursive calls.
4865 2017-01-23 Bin Cheng <bin.cheng@arm.com>
4867 PR tree-optimization/70754
4868 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
4869 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
4870 combined stmt before it if not NULL.
4871 (combine_chains): Process refs reversely and compute dominance point
4874 2017-01-23 Martin Liska <mliska@suse.cz>
4876 PR tree-optimization/79196
4877 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
4878 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
4880 (strlen_optimize_stmt): Call the renamed function.
4882 2017-01-23 Michael Matz <matz@suse.de>
4884 PR tree-optimization/78384
4885 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
4887 2017-01-23 Richard Biener <rguenther@suse.de>
4889 PR tree-optimization/79186
4890 * tree-vrp.c (register_new_assert_for): Make sure we've seen
4891 both incoming edges before moving an assert.
4893 2017-01-23 Martin Jambor <mjambor@suse.cz>
4895 * ipa-prop.c (load_from_param_1): Removed.
4896 (load_from_unmodified_param): Bits from load_from_param_1 put back
4898 (load_from_param): Removed.
4899 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
4900 with stmt. Reverted back to use of load_from_unmodified_param.
4902 2017-01-23 Martin Jambor <mjambor@suse.cz>
4905 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
4906 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
4907 field a pointer to garbage collected vector, mark lattices and
4908 ipcp_orig_node with GTY((skip)).
4909 (ipa_get_param_count): Adjust to descriptors being a pointer.
4910 (ipa_get_param): Likewise.
4911 (ipa_get_type): Likewise.
4912 (ipa_get_param_move_cost): Likewise.
4913 (ipa_set_param_used): Likewise.
4914 (ipa_get_controlled_uses): Likewise.
4915 (ipa_set_controlled_uses): Likewise.
4916 (ipa_is_param_used): Likewise.
4917 (ipa_node_params_t): Move into garbage collector. New methods insert
4919 (ipa_node_params_sum): Annotate wth GTY(()).
4920 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
4922 (ipa_load_from_parm_agg): Adjust declaration.
4923 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
4924 * ipa-profile.c (ipa_profile): Likewise.
4925 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
4926 (ipa_populate_param_decls): Make descriptors parameter garbage
4928 (ipa_dump_param): Adjust to descriptors being a pointer.
4929 (ipa_alloc_node_params): Likewise.
4930 (ipa_initialize_node_params): Likewise.
4931 (load_from_param_1): Make descriptors parameter garbage collected.
4932 (load_from_unmodified_param): Likewise.
4933 (load_from_param): Likewise.
4934 (ipa_load_from_parm_agg): Likewise.
4935 (ipa_node_params::~ipa_node_params): Removed.
4936 (ipa_free_all_node_params): Remove call to delete operator.
4937 (ipa_node_params_t::insert): New.
4938 (ipa_node_params_t::remove): Likewise.
4939 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
4940 copy known_csts and known_contexts vectors.
4941 (ipa_read_node_info): Adjust to descriptors being a pointer.
4942 (ipcp_modif_dom_walker): Make m_descriptors field garbage
4944 (ipcp_transform_function): Make descriptors variable garbage
4947 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
4949 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
4950 * config/i386/avx512dqintrin.h: Ditto.
4951 * config/i386/avx512fintrin.h: Ditto.
4952 * gcc/config/i386/i386.c: Handle new builtins.
4953 * config/i386/i386-builtin.def: Add new builtins.
4954 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
4955 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
4957 2017-01-23 Jakub Jelinek <jakub@redhat.com>
4958 Martin Liska <mliska@suse.cz>
4960 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
4961 * asan.c (asan_expand_poison_ifn): Support stores and use
4962 appropriate ASAN report function.
4963 * internal-fn.c (expand_ASAN_POISON_USE): New function.
4964 * internal-fn.def (ASAN_POISON_USE): Declare.
4965 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
4966 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
4967 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
4968 ASAN_POISON calls w/o LHS.
4969 * tree-ssa.c (execute_update_addresses_taken): Create clobber
4970 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
4971 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
4972 * gimplify.c (asan_poison_variables): Add attribute
4973 use_after_scope_memory to variables that really needs to live
4975 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
4976 having the attribute.
4978 2017-01-23 Martin Liska <mliska@suse.cz>
4980 * asan.c (create_asan_shadow_var): New function.
4981 (asan_expand_poison_ifn): Likewise.
4982 * asan.h (asan_expand_poison_ifn): New declaration.
4983 * internal-fn.c (expand_ASAN_POISON): Likewise.
4984 * internal-fn.def (ASAN_POISON): New builtin.
4985 * sanopt.c (pass_sanopt::execute): Expand
4986 asan_expand_poison_ifn.
4987 * tree-inline.c (copy_decl_for_dup_finish): Make function
4989 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
4990 * tree-ssa.c (is_asan_mark_p): New function.
4991 (execute_update_addresses_taken): Rewrite local variables
4992 (identified just by use-after-scope as addressable) into SSA.
4994 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
4996 * doc/install.texi (Specific): opensource.apple.com uses https
4997 now. Remove trailing slash.
4999 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
5001 * README.Portability: Remove note on an Irix compatibility issue.
5003 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
5005 * gcov.c (INCLUDE_ALGORITHM): Define.
5006 (INCLUDE_VECTOR): Define.
5007 No longer include <vector> and <algorithm> directly.
5009 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
5011 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
5013 * doc/invoke.texi (Code Gen Options): Ditto.
5015 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
5018 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
5020 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
5022 rtl-optimization/79125
5023 * cprop.c (local_cprop_pass): Handle cases where we make an
5026 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
5030 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
5031 read from, for big endian.
5033 2017-01-20 Jiong Wang <jiong.wang@arm.com>
5035 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
5036 register pauth builtins for LP64 only.
5038 2017-01-20 Marek Polacek <polacek@redhat.com>
5041 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
5044 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5046 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
5048 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
5049 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
5050 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
5052 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5055 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
5056 in big-endian mode when they are not a single duplicated value.
5058 2017-01-20 Richard Biener <rguenther@suse.de>
5060 * BASE-VER: Bump to 7.0.1.
5062 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
5064 * omp-low.c (omplow_simd_context): New struct. Use it...
5065 (lower_rec_simd_input_clauses): ...here and...
5066 (lower_rec_input_clauses): ...here to hold common data. Adjust all
5067 references to idx, lane, max_vf, is_simt.
5069 2017-01-20 Graham Markall <graham.markall@embecosm.com>
5071 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
5074 2017-01-20 Martin Jambor <mjambor@suse.cz>
5076 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
5077 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
5079 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
5080 (GTFILES): Rename hsa.c to hsa-common.c.
5081 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
5082 * hsa-dump.c: Likewise.
5083 * hsa-gen.c: Likewise.
5084 * hsa-regalloc.c: Likewise.
5085 * ipa-hsa.c: Likewise.
5086 * omp-expand.c: Likewise.
5087 * omp-low.c: Likewise.
5088 * toplev.c: Likewise.
5090 2017-01-20 Marek Polacek <polacek@redhat.com>
5093 * doc/invoke.texi: Document -Wduplicated-branches.
5094 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
5095 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
5096 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
5097 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
5098 return 0 only when not OEP_LEXICOGRAPHIC.
5099 (fold_build_cleanup_point_expr): Use the expression
5100 location when building CLEANUP_POINT_EXPR.
5101 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
5102 * tree.c (add_expr): Handle error_mark_node.
5104 2017-01-20 Martin Liska <mliska@suse.cz>
5107 * tree-profile.c (init_ic_make_global_vars): Do not call
5109 (gimple_init_gcov_profiler): Likewise.
5111 2017-01-20 Martin Liska <mliska@suse.cz>
5114 * cgraph.h (maybe_create_reference): Remove argument and
5116 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
5118 * ipa-cp.c (create_specialized_node): Likewise.
5119 * symtab.c (symtab_node::maybe_create_reference): Handle
5120 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
5122 2017-01-20 Martin Liska <mliska@suse.cz>
5124 * read-rtl-function.c (function_reader::create_function): Use
5125 build_decl instread of build_decl_stat.
5127 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
5129 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
5130 * config/i386/avx512dqintrin.h: Ditto.
5131 * config/i386/avx512fintrin.h: Ditto.
5132 * config/i386/i386-builtin-types.def: Add new types.
5133 * gcc/config/i386/i386.c: Handle new types.
5134 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
5135 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
5136 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
5137 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
5138 (__builtin_ia32_kshiftridi): New.
5139 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
5141 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
5145 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
5146 define to rs6000_init_stack_protect_guard.
5147 (rs6000_init_stack_protect_guard): New function.
5149 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5150 Yunqiang Su <yunqiang.su@imgtec.com>
5152 * config.gcc (supported_defaults): Add madd4.
5153 (with_madd4): Add validation.
5154 (all_defaults): Add madd4.
5155 * config/mips/mips.opt (mmadd4): New option.
5156 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5158 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5160 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
5161 (ISA_HAS_FUSED_MADD4): Likewise.
5162 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
5163 * gcc/doc/install.texi (--with-madd4): Document the new option.
5165 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5167 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
5168 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
5169 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
5170 (aarch64_init_pauth_hint_builtins): New.
5171 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
5172 (aarch64_expand_builtin): Expand new builtins.
5174 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5176 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
5177 * combine-stack-adj.c (no_unhandled_cfa): Handle
5178 REG_CFA_TOGGLE_RA_MANGLE.
5179 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
5180 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
5181 info for return address signing.
5182 (aarch64_expand_epilogue): Likewise.
5184 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5186 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
5187 * config/aarch64/aarch64-protos.h
5188 (aarch64_return_address_signing_enabled): New declaration.
5189 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
5191 (aarch64_expand_prologue): Sign return address before it's pushed onto
5193 (aarch64_expand_epilogue): Authenticate return address fetched from
5195 (aarch64_override_options): Sanity check for ILP32 and ISA level.
5196 (aarch64_attributes): New function attributes for "sign-return-address".
5197 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
5198 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
5199 ("*do_return"): Generate combined instructions according to key index.
5200 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
5201 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
5203 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
5204 * config/aarch64/aarch64.opt (msign-return-address=): New.
5205 * doc/extend.texi (AArch64 Function Attributes): Documents
5206 "sign-return-address=".
5207 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
5209 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
5211 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
5212 overall option summary.
5214 2017-01-19 Jiong Wang <jiong.wang@arm.com>
5216 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
5217 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
5218 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
5219 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
5221 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
5223 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
5224 -mpower9-minmax by default for -mcpu=power9.
5225 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
5226 128-bit floating point.
5228 2017-01-20 Alan Modra <amodra@gmail.com>
5230 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
5231 optimizing for size.
5233 2017-01-20 Alan Modra <amodra@gmail.com>
5236 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
5237 for strcmp and strncmp from corresponding builtin decl.
5239 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
5241 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
5242 instead of i386/rtems-64.h.
5243 * config/i386/rtems-64.h: Remove.
5245 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
5249 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5251 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
5253 2017-01-19 Tamar Christina <tamar.christina@arm.com>
5255 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
5256 Change int to HOST_WIDE_INT.
5257 * config/aarch64/aarch64-protos.h
5258 (aarch64_simd_gen_const_vector_dup): Likewise.
5259 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
5261 2017-01-19 David Malcolm <dmalcolm@redhat.com>
5263 * langhooks-def.h (lhd_type_for_size): New decl.
5264 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
5265 * langhooks.c (lhd_type_for_size): New function, taken from
5268 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
5270 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
5271 define_bypass for CR latency.
5272 (power9-cracked-alu): Update bypass latency and remove power9-branch.
5273 (power9-alu2): Add define_bypass for CR latency.
5275 (power9-mul): Update insn latency.
5276 (power9-mul-compare): Update insn latency, bypass latency and remove
5279 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5281 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5283 * config/aarch64/aarch64.md
5284 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
5285 aarch64_nopcrelative_literal_loads.
5286 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5288 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
5290 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
5292 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
5294 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
5297 * config.gcc (supported_defaults): Add lxc1-sxc1.
5298 (with_lxc1_sxc1): Add validation.
5299 (all_defaults): Add lxc1-sxc1.
5300 * config/mips/mips.opt (mlxc1-sxc1): New option.
5301 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5303 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
5304 __mips_no_lxc1_sxc1.
5305 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
5306 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
5307 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
5309 2017-01-19 Richard Biener <rguenther@suse.de>
5311 PR tree-optimization/72488
5312 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
5313 sure to restore SSA info.
5314 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
5316 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
5318 PR rtl-optimization/79121
5319 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
5320 of the inner type when shifting an extended value.
5322 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
5325 * symtab.c (symtab_node::equal_address_to): Fix comparing of
5326 interposable aliases.
5328 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
5331 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
5332 Use the evmergelohi instruction.
5333 (mov_si<mode>_e500_subreg4_2_le): Likewise.
5334 (mov_sitf_e500_subreg8_2_be): Likewise.
5335 (mov_sitf_e500_subreg12_2_le): Likewise.
5336 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
5337 (mov_si<mode>_e500_subreg4_2_be): Likewise.
5338 (mov_sitf_e500_subreg8_2_le): Likewise.
5339 (mov_sitf_e500_subreg12_2_be): Likewise.
5341 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5343 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
5344 attribute from vecsimple to vecperm.
5345 (altivec_vbpermq2): Likewise.
5347 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5350 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
5352 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5353 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
5354 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
5355 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
5356 case where N arg is SIZE_MAX.
5357 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
5358 (cmpstrsi): Add pattern.
5360 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5362 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5363 __builtin_vec_revb builtins.
5364 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
5365 built-in functions to support generation of the ISA 3.0 XXBR<x>
5366 vector byte reverse instructions.
5367 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
5368 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
5369 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
5370 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
5371 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
5372 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
5373 (P9V_BUILTIN_VEC_REVB): Likewise.
5374 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
5375 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
5376 (p9_xxbrq_v16qi): Likewise.
5377 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
5378 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
5379 (p9_xxbrh_v8hi): Likewise.
5380 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
5381 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
5382 vec_revb built-in functions.
5384 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
5386 PR rtl-optimization/78952
5387 * config/i386/i386.md (any_extract): New code iterator.
5388 (*insvqi_2): Use any_extract for source operand.
5389 (*insvqi_3): Use any_shiftrt for source operand.
5391 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
5393 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
5395 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
5397 2017-01-18 Matthias Klose <doko@ubuntu.com>
5399 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
5401 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5403 * config/rs6000/altivec.h (vec_bperm): Change #define.
5404 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
5405 (altivec_vbpermq2): New define_insn.
5406 (altivec_vbpermd): Likewise.
5407 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
5409 (VBPERMD): Likewise.
5410 (VBPERM): New polymorphic function interface.
5411 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
5412 Add entries for P9V_BUILTIN_VEC_VBPERM.
5413 * doc/extend.texi: Add interfaces for vec_bperm.
5415 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5417 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
5418 first letter of error messages.
5419 (s390_resolve_overloaded_builtin): Likewise.
5420 * config/s390/s390.c (s390_expand_builtin): Likewise.
5421 (s390_invalid_arg_for_unprototyped_fn): Likewise.
5422 (s390_valid_target_attribute_inner_p): Likewise.
5423 * config/s390/s390.md ("tabort"): Likewise.
5425 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
5427 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
5428 (ISA_AVOID_DIV_HILO): New macro.
5429 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
5430 (ISA_HAS_DDIV): Likewise.
5432 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
5434 * doc/invoke.texi (fabi-version): Correct number of occurrences.
5436 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
5438 * doc/invoke.texi (fabi-version): Spelling fix.
5440 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
5443 * doc/invoke.texi (fabi-version): Mention mangling fix for
5446 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
5449 * doc/invoke.texi (fabi-version): Document discriminator mangling.
5451 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
5454 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
5455 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
5457 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
5459 (stack_protect_test): Ditto.
5460 * config/rs6000/rs6000.opt (mstack-protector-guard=,
5461 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
5463 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
5464 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
5465 -mstack-protector-guard-offset=.
5466 (RS/6000 and PowerPC Options): Ditto.
5468 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
5470 * config/i386/i386.h (MASK_CLASS_P): New define.
5471 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
5472 there are no registers from different register sets also when
5473 mask registers are used. Update function comment.
5474 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
5475 to (*k/*r) and (*k/*km) alternatives.
5477 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
5479 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
5480 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
5481 (EH_RETURN_HANDLER_RTX): New define.
5482 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
5483 Force frame pointer in EH return functions.
5484 (aarch64_expand_epilogue): Add barrier for eh_return.
5485 (aarch64_final_eh_return_addr): Remove.
5486 (aarch64_eh_return_handler_rtx): New function.
5487 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
5489 (aarch64_eh_return_handler_rtx): New prototype.
5491 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5493 * config/rs6000/altivec.h (vec_rlmi): New #define.
5494 (vec_vrlnm): Likewise.
5495 (vec_rlnm): Likewise.
5496 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
5497 (UNSPEC_VRLNM): Likewise.
5498 (VIlong): New mode iterator.
5499 (altivec_vrl<VI_char>mi): New define_insn.
5500 (altivec_vrl<VI_char>nm): Likewise.
5501 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
5504 (RLNM): New polymorphic function entry.
5505 (VRLWMI): New monomorphic function entry.
5507 (RLMI): New polymorphic function entry.
5508 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
5509 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
5510 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
5513 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5516 * dwarf2out.c (field_byte_offset): Restore the
5517 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
5518 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
5519 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
5522 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
5525 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
5527 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5530 * dwarf2out.c (add_data_member_location_attribute): For constant
5531 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
5532 instead of DW_AT_data_member_location, DW_AT_bit_offset and
5533 DW_AT_byte_size attributes.
5535 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
5537 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
5538 after forcing to constant memory when the code model is medium.
5540 2017-01-17 Julia Koval <julia.koval@intel.com>
5543 * config/i386/avx512fintrin.h
5544 (_mm512_i32gather_ps): Change __addr type to void const*.
5545 (_mm512_mask_i32gather_ps): Ditto.
5546 (_mm512_i32gather_pd): Ditto.
5547 (_mm512_mask_i32gather_pd): Ditto.
5548 (_mm512_i64gather_ps): Ditto.
5549 (_mm512_mask_i64gather_ps): Ditto.
5550 (_mm512_i64gather_pd): Ditto.
5551 (_mm512_mask_i64gather_pd): Ditto.
5552 (_mm512_i32gather_epi32): Ditto.
5553 (_mm512_mask_i32gather_epi32): Ditto.
5554 (_mm512_i32gather_epi64): Ditto.
5555 (_mm512_mask_i32gather_epi64): Ditto.
5556 (_mm512_i64gather_epi32): Ditto.
5557 (_mm512_mask_i64gather_epi32): Ditto.
5558 (_mm512_i64gather_epi64): Ditto.
5559 (_mm512_mask_i64gather_epi64): Ditto.
5560 (_mm512_i32scatter_ps): Change __addr type to void*.
5561 (_mm512_mask_i32scatter_ps): Ditto.
5562 (_mm512_i32scatter_pd): Ditto.
5563 (_mm512_mask_i32scatter_pd): Ditto.
5564 (_mm512_i64scatter_ps): Ditto.
5565 (_mm512_mask_i64scatter_ps): Ditto.
5566 (_mm512_i64scatter_pd): Ditto.
5567 (_mm512_mask_i64scatter_pd): Ditto.
5568 (_mm512_i32scatter_epi32): Ditto.
5569 (_mm512_mask_i32scatter_epi32): Ditto.
5570 (_mm512_i32scatter_epi64): Ditto.
5571 (_mm512_mask_i32scatter_epi64): Ditto.
5572 (_mm512_i64scatter_epi32): Ditto.
5573 (_mm512_mask_i64scatter_epi32): Ditto.
5574 (_mm512_i64scatter_epi64): Ditto.
5575 (_mm512_mask_i64scatter_epi64): Ditto.
5576 * config/i386/avx512pfintrin.h
5577 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
5578 (_mm512_mask_prefetch_i32gather_ps): Ditto.
5579 (_mm512_mask_prefetch_i64gather_pd): Ditto.
5580 (_mm512_mask_prefetch_i64gather_ps): Ditto.
5581 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
5582 (_mm512_prefetch_i32scatter_ps): Ditto.
5583 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
5584 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
5585 (_mm512_prefetch_i64scatter_pd): Ditto.
5586 (_mm512_prefetch_i64scatter_ps): Ditto.
5587 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
5588 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
5589 * config/i386/avx512vlintrin.h
5590 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
5591 (_mm_mmask_i32gather_ps): Ditto.
5592 (_mm256_mmask_i32gather_pd): Ditto.
5593 (_mm_mmask_i32gather_pd): Ditto.
5594 (_mm256_mmask_i64gather_ps): Ditto.
5595 (_mm_mmask_i64gather_ps): Ditto.
5596 (_mm256_mmask_i64gather_pd): Ditto.
5597 (_mm_mmask_i64gather_pd): Ditto.
5598 (_mm256_mmask_i32gather_epi32): Ditto.
5599 (_mm_mmask_i32gather_epi32): Ditto.
5600 (_mm256_mmask_i32gather_epi64): Ditto.
5601 (_mm_mmask_i32gather_epi64): Ditto.
5602 (_mm256_mmask_i64gather_epi32): Ditto.
5603 (_mm_mmask_i64gather_epi32): Ditto.
5604 (_mm256_mmask_i64gather_epi64): Ditto.
5605 (_mm_mmask_i64gather_epi64): Ditto.
5606 (_mm256_i32scatter_ps): Change __addr type to void*.
5607 (_mm256_mask_i32scatter_ps): Ditto.
5608 (_mm_i32scatter_ps): Ditto.
5609 (_mm_mask_i32scatter_ps): Ditto.
5610 (_mm256_i32scatter_pd): Ditto.
5611 (_mm256_mask_i32scatter_pd): Ditto.
5612 (_mm_i32scatter_pd): Ditto.
5613 (_mm_mask_i32scatter_pd): Ditto.
5614 (_mm256_i64scatter_ps): Ditto.
5615 (_mm256_mask_i64scatter_ps): Ditto.
5616 (_mm_i64scatter_ps): Ditto.
5617 (_mm_mask_i64scatter_ps): Ditto.
5618 (_mm256_i64scatter_pd): Ditto.
5619 (_mm256_mask_i64scatter_pd): Ditto.
5620 (_mm_i64scatter_pd): Ditto.
5621 (_mm_mask_i64scatter_pd): Ditto.
5622 (_mm256_i32scatter_epi32): Ditto.
5623 (_mm256_mask_i32scatter_epi32): Ditto.
5624 (_mm_i32scatter_epi32): Ditto.
5625 (_mm_mask_i32scatter_epi32): Ditto.
5626 (_mm256_i32scatter_epi64): Ditto.
5627 (_mm256_mask_i32scatter_epi64): Ditto.
5628 (_mm_i32scatter_epi64): Ditto.
5629 (_mm_mask_i32scatter_epi64): Ditto.
5630 (_mm256_i64scatter_epi32): Ditto.
5631 (_mm256_mask_i64scatter_epi32): Ditto.
5632 (_mm_i64scatter_epi32): Ditto.
5633 (_mm_mask_i64scatter_epi32): Ditto.
5634 (_mm256_i64scatter_epi64): Ditto.
5635 (_mm256_mask_i64scatter_epi64): Ditto.
5636 (_mm_i64scatter_epi64): Ditto.
5637 (_mm_mask_i64scatter_epi64): Ditto.
5638 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
5639 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
5640 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
5641 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
5642 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
5643 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
5644 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
5645 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
5646 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
5647 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
5648 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
5649 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
5650 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
5651 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
5652 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
5653 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
5654 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
5655 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
5656 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
5657 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
5658 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
5659 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
5660 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
5661 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
5662 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
5663 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
5664 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
5665 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
5666 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
5667 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
5668 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
5669 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
5670 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
5671 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
5672 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
5673 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
5674 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
5675 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
5676 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
5677 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
5678 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
5679 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
5680 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
5681 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
5682 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
5683 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
5684 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
5685 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
5686 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
5687 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
5688 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
5689 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
5690 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
5691 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
5692 definitions accordingly.
5694 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
5695 Kuan-Lin Chen <kuanlinchentw@gmail.com>
5698 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
5701 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
5704 * ira-conflicts.c (ira_build_conflicts): Update total conflict
5705 hard regs for inner regno.
5707 2017-01-17 Martin Liska <mliska@suse.cz>
5710 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
5711 assumption and add comment.
5713 2017-01-17 Nathan Sidwell <nathan@acm.org>
5715 * ipa-visibility.c (localize_node): New function, broken out of ...
5716 (function_and_variable_visibility): ... here. Call it.
5718 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
5721 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5722 correctly set frequency of oudgoing edge.
5723 (duplicate_thread_path): Fix profile updating.
5725 2017-01-17 Jakub Jelinek <jakub@redhat.com>
5728 * configure.ac: Add GCC_BASE_VER.
5729 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
5730 version from BASE-VER file.
5731 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
5732 (gcc.o): Depend on $(BASEVER).
5733 * common.opt (dumpfullversion): New option.
5734 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
5735 * doc/invoke.texi: Document -dumpfullversion.
5736 * doc/install.texi: Document --with-gcc-major-version-only.
5737 * configure: Regenerated.
5739 2017-01-17 Richard Biener <rguenther@suse.de>
5741 PR tree-optimization/71433
5742 * tree-vrp.c (register_new_assert_for): Merge same asserts
5743 on all incoming edges.
5744 (process_assert_insertions_for): Handle insertions at the
5747 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
5749 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
5750 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
5752 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
5755 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
5758 2017-01-17 Alan Modra <amodra@gmail.com>
5761 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
5762 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
5763 symbolic stack limit when pic.
5765 2017-01-16 Martin Sebor <msebor@redhat.com>
5767 PR tree-optimization/78608
5768 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
5770 2017-01-16 Jeff Law <law@redhat.com>
5773 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
5774 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
5775 for several include directories that may be relative to sysroot.
5776 * config/i386/x-mingw32 (gplus_includedir): Define.
5777 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
5778 (native_system_includedir): Likewise.
5779 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
5780 override if TARGET_SYSTEM_ROOT is defined.
5781 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
5783 PR tree-optimization/79090
5784 PR tree-optimization/33562
5785 PR tree-optimization/61912
5786 PR tree-optimization/77485
5787 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
5788 and computed trims into the dump file.
5790 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
5792 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
5794 2017-01-16 Jakub Jelinek <jakub@redhat.com>
5797 * gimplify.c (gimplify_init_constructor): If want_value and
5798 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
5802 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
5803 sequence. Formatting fixes.
5804 (doloop_optimize): Formatting fixes.
5807 * gcc.c (debug_level_greater_than_spec_func): New function.
5808 (static_spec_functions): Add debug-level-gt spec function.
5809 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
5811 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
5812 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
5813 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
5814 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
5815 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
5816 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
5818 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
5820 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
5821 QImode fixups to general and mask registers only.
5823 2017-01-16 Carl Love <cel@us.ibm.com>
5825 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
5826 for built-in functions
5827 vector signed char vec_nabs (vector signed char)
5828 vector signed short vec_nabs (vector signed short)
5829 vector signed int vec_nabs (vector signed int)
5830 vector signed long long vec_nabs (vector signed long long)
5831 vector float vec_nabs (vector float)
5832 vector double vec_nabs (vector double)
5833 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
5835 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
5836 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
5837 * doc/extend.texi: Update the documentation file for the new built-in
5840 2017-01-16 Martin Sebor <msebor@redhat.com>
5842 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
5845 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5847 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
5848 UNSPEC_VSX__XXSPLTD to require special splat handling.
5850 2017-01-16 David Malcolm <dmalcolm@redhat.com>
5853 * system.h: Poison strndup.
5855 2017-01-16 Alan Modra <amodra@gmail.com>
5858 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
5861 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
5863 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
5865 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
5868 call recog here. Assert that INSN_CODE (insn) is non-negative.
5870 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
5873 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
5875 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
5876 in the currently scheduled RTL fragment.
5878 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
5880 PR rtl-optimization/78751
5881 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
5884 2017-01-14 Jeff Law <law@redhat.com>
5886 PR tree-optimization/79090
5887 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
5888 variable length stores.
5889 (compute_trims): Delete dead assignment to *trim_tail.
5890 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
5893 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
5895 PR rtl-optimization/78626
5896 PR rtl-optimization/78727
5897 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
5898 of a block, and split such blocks after everything else is finished.
5900 2017-01-14 Alan Modra <amodra@gmail.com>
5903 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
5904 target legitimate_combined_insn.
5905 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
5906 (rs6000_legitimate_combined_insn): New function.
5907 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
5909 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
5910 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
5911 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
5913 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
5915 * doc/frontends.texi (G++ and GCC): Remove references to Java.
5917 2017-01-13 Jeff Law <law@redhat.com>
5919 PR tree-optimization/33562
5920 PR tree-optimization/61912
5921 PR tree-optimization/77485
5922 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
5924 (delete_dead_assignment): Likewise.
5925 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
5926 statement to delete_dead_call and delete_dead_assignment.
5928 2017-01-13 David Malcolm <dmalcolm@redhat.com>
5931 * substring-locations.c (format_warning_va): Strengthen case 1 so
5932 that both endpoints of the substring must be within the format
5933 range for just the substring to be printed.
5935 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
5937 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
5938 * config/i386/i386.c (ix86_target_string): Add missing options
5939 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
5940 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
5941 flags_other and ix86_target_other to flags2_other. Display unknown
5943 (ix86_valid_target_attribute_inner_p): Add missing options and
5944 reorder options by implied ISAs, as in ix86_target_string.
5946 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
5948 * hash-table.h (hash_table::too_empty_p): New function.
5949 (hash_table::expand): Use it.
5950 (hash_table::traverse): Likewise.
5951 (hash_table::empty_slot): Use sizeof (value_type) instead of
5952 sizeof (PTR) to convert bytes to elements. Shrink the table
5953 if the current size is excessive for the current number of
5956 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
5958 * ira-costs.c (record_reg_classes): Break from the inner loop
5959 early once alt_fail is known to be true. Update outer loop
5960 handling accordingly.
5962 2017-01-13 Jeff Law <law@redhat.com>
5964 * tree-ssa-dse.c (decrement_count): New function.
5965 (increment_start_addr, maybe_trim_memstar_call): Likewise.
5966 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
5967 when we know the partially dead statement is a mem* function.
5969 PR tree-optimization/61912
5970 PR tree-optimization/77485
5971 * tree-ssa-dse.c: Include expr.h.
5972 (maybe_trim_constructor_store): New function.
5973 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
5975 PR tree-optimization/33562
5976 PR tree-optimization/61912
5977 PR tree-optimization/77485
5978 * doc/invoke.texi: Document new dse-max-object-size param.
5979 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
5980 * tree-ssa-dse.c: Include params.h.
5981 (dse_store_status): New enum.
5982 (initialize_ao_ref_for_dse): New, partially extracted from
5984 (valid_ao_ref_for_dse, normalize_ref): New.
5985 (setup_live_bytes_from_ref, compute_trims): Likewise.
5986 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
5987 (maybe_trim_partially_dead_store): Likewise.
5988 (maybe_trim_complex_store): Likewise.
5989 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
5990 Track what bytes live from the original store. Return tri-state
5991 for dead, partially dead or live.
5992 (dse_dom_walker): Add constructor, destructor and new private members.
5993 (delete_dead_call, delete_dead_assignment): New extracted from
5995 (dse_optimize_stmt): Make a member of dse_dom_walker.
5996 Use initialize_ao_ref_for_dse.
5998 PR tree-optimization/33562
5999 PR tree-optimization/61912
6000 PR tree-optimization/77485
6001 * sbitmap.h (bitmap_count_bits): Prototype.
6002 (bitmap_clear_range, bitmap_set_range): Likewise.
6003 * sbitmap.c (bitmap_clear_range): New function.
6004 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
6006 2017-01-13 Martin Liska <mliska@suse.cz>
6009 * function.c (set_cfun): Add new argument force.
6010 * function.h (set_cfun): Likewise.
6011 * ipa-inline-transform.c (inline_call): Use the function when
6012 strict alising from is dropped for function we inline to.
6014 2017-01-13 Richard Biener <rguenther@suse.de>
6016 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
6017 for dumping GIMPLE INTEGER_CSTs.
6019 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6021 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
6022 to 201112L since C++17.
6024 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
6027 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
6028 if -fsanitize=kernel-address is present.
6030 2017-01-13 Richard Biener <rguenther@suse.de>
6032 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
6033 as _Literal ( type ) number in case usual suffixes do not
6034 preserve all information.
6036 2017-01-13 Richard Biener <rguenther@suse.de>
6038 PR tree-optimization/77283
6039 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
6040 and ssa-iterators.h.
6041 (is_feasible_trace): Implement a cost model based on joiner
6044 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6047 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
6048 char or short to __float128/_Float128 directly.
6050 2017-01-12 Martin Sebor <msebor@redhat.com>
6052 to -Wformat-overflow.
6053 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
6054 (min_bytes_remaining): Same.
6055 (get_string_length): Same.
6056 (format_string): Same.
6057 (format_directive): Same.
6059 (pass_sprintf_length::handle_gimple_call): Same.
6061 2017-01-12 Jakub Jelinek <jakub@redhat.com>
6063 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
6064 info.nowrite calls with no lhs that can't throw. Return bool
6065 whether gsi_remove has been called or not.
6066 (pass_sprintf_length::handle_gimple_call): Return bool whether
6067 try_substitute_return_value called gsi_remove. Formatting fix.
6068 (pass_sprintf_length::execute): Don't use gsi_remove if
6069 handle_gimple_call returned true.
6072 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
6073 be removed due to side-effects, don't remove following barrier nor
6074 turn the successor edge into fallthru edge.
6076 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6079 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
6080 element-reversing loads and stores as not swappable.
6082 2017-01-12 Nathan Sidwell <nathan@acm.org>
6083 Nicolai Stange <nicstange@gmail.com>
6085 * combine.c (try_combine): Don't ignore result of overlap checking
6086 loop. Combine overlap & asm check into single loop.
6088 2017-01-12 Richard Biener <rguenther@suse.de>
6090 * tree-pretty-print.c (dump_generic_node): Provide -gimple
6091 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
6093 2017-01-12 Richard Biener <rguenther@suse.de>
6095 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
6096 and TS_TARGET_OPTION directly derive from TS_BASE.
6097 * tree-core.h (tree_optimization_option): Derive from tree_base.
6098 (tree_target_option): Likewise.
6100 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
6102 * config/i386/i386.c (memory_address_length): Increase len
6103 only when rip_relative_addr_p returns false.
6105 2017-01-11 Julia Koval <julia.koval@intel.com>
6107 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
6108 (OPTION_MASK_ISA_SGX_SET): New.
6109 (ix86_handle_option): Handle OPT_msgx.
6110 * config.gcc: Added sgxintrin.h.
6111 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
6112 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
6113 * config/i386/i386.c (ix86_target_string): Add -msgx.
6115 (ix86_option_override_internal): Handle new options.
6116 (ix86_valid_target_attribute_inner_p): Add sgx.
6117 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
6118 * config/i386/i386.opt: Add msgx.
6119 * config/i386/sgxintrin.h: New file.
6120 * config/i386/x86intrin.h: Add sgxintrin.h.
6122 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6125 * fold-const.c (maybe_nonzero_address): Return 1 for function
6127 (tree_single_nonzero_warnv_p): Don't handle function local objects
6131 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
6134 2017-01-11 David Malcolm <dmalcolm@redhat.com>
6137 * opts.c: Include "spellcheck.h"
6138 (struct string_fragment): New struct.
6139 (struct edit_distance_traits<const string_fragment &>): New
6141 (get_closest_sanitizer_option): New function.
6142 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
6144 2017-01-11 Jakub Jelinek <jakub@redhat.com>
6146 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
6148 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
6149 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
6150 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
6151 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
6152 for initial die_offset if dwarf_split_debug_info.
6153 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
6154 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
6156 (output_skeleton_debug_sections): Formatting fix. Use
6157 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
6158 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
6160 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
6162 * config/arm/cortex-a53.md: Add bypasses for
6164 (cortex_a53_r2f): Only use for transfers.
6165 (cortex_a53_f2r): Likewise.
6166 (cortex_a53_r2f_cvt): Add reservation for conversions.
6167 (cortex_a53_f2r_cvt): Likewise.
6169 2017-01-11 Tamar Christina <tamar.christina@arm.com>
6171 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
6172 to all inlined functions, change static to extern.
6174 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
6177 * config/arm/arm.c (legitimize_pic_address): Handle reference to
6179 (arm_assemble_integer): Likewise.
6181 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
6183 * config.gcc: Use new awk script to check CPU, FPU and architecture
6184 parameters for --with-... options.
6185 * config/arm/parsecpu.awk: New file
6186 * config/arm/arm-cpus.in: New file.
6187 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
6189 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
6191 * config/arm/t-arm: Update dependency rules.
6192 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
6193 of processing .def files.
6194 * config/arm/genopt.sh: Deleted.
6195 * config/arm/gentune.sh: Deleted.
6196 * config/arm/arm-cores.def: Deleted.
6197 * config/arm/arm-arches.def: Deleted.
6198 * config/arm/arm-fpus.def: Deleted.
6199 * config/arm/arm-tune.md: Regenerated.
6200 * config/arm/arm-tables.opt: Regenerated.
6201 * config/arm/arm-cpu.h: New generated file.
6202 * config/arm/arm-cpu-data.h: New generated file.
6203 * config/arm/arm-cpu-cdata.h: New generated file.
6205 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
6208 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
6210 (input_varpool_node): Unpack dynamically_initialized bit.
6212 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
6214 PR rtl-optimization/79032
6215 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
6216 the alignment of the adjusted memory reference against that of MODE,
6217 instead of the alignment of the original memory reference.
6219 2017-01-11 Martin Jambor <mjambor@suse.cz>
6221 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
6223 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
6224 decorated functions.
6226 2017-01-11 Richard Biener <rguenther@suse.de>
6228 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
6229 set range/nonnull info for PHI results. Do not set it on
6230 stmts marked for removal.
6232 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
6234 * expr.c (store_field): In the bitfield case, fetch the return value
6235 from the registers before applying a single big-endian adjustment.
6236 Always do a final load for a BLKmode value not larger than a word.
6238 2017-01-10 David Malcolm <dmalcolm@redhat.com>
6241 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6242 that we correctly handle column numbers greater than
6243 LINE_MAP_MAX_COLUMN_NUMBER.
6245 2017-01-10 Martin Sebor <msebor@redhat.com>
6248 * gimple-ssa-sprintf.c (get_destination_size): Call
6249 {init,fini}object_sizes.
6250 * tree-object-size.c (addr_object_size): Adjust.
6251 (pass_through_call): Adjust.
6252 (pass_object_sizes::execute): Adjust.
6253 * tree-object-size.h (fini_object_sizes): Declare.
6255 2017-01-10 Martin Sebor <msebor@redhat.com>
6257 PR tree-optimization/78775
6258 * builtins.c (get_size_range): Move...
6259 * calls.c: ...to here.
6260 (alloc_max_size): Accept zero argument.
6261 (operand_signed_p): Remove.
6262 (maybe_warn_alloc_args_overflow): Call get_size_range.
6263 * calls.h (get_size_range): Declare.
6265 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
6267 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
6268 from TI's devices.csv file as of September 2016.
6269 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
6271 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
6273 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
6274 * doc/invoke.texi: Likewise.
6275 * doc/md.texi: Likewise.
6276 * doc/objc.texi: Likewise.
6278 2017-01-10 Joshua Conner <joshconner@google.com>
6280 * config/arm/fuchsia-elf.h: New file.
6281 * config/fuchsia.h: New file.
6282 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
6283 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
6285 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
6287 2016-01-10 Richard Biener <rguenther@suse.de>
6289 PR tree-optimization/79034
6290 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6291 Propagate out degenerate PHIs in the joiner.
6293 2017-01-10 Martin Liska <mliska@suse.cz>
6295 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
6296 (sort_congruence_classes_by_decl_uid): Likewise.
6297 (sort_congruence_class_groups_by_decl_uid): Likewise.
6298 (sem_item_optimizer::merge_classes): Sort class, groups in these
6299 classes and members in the groups by DECL_UID of declarations.
6300 This would make merge operations stable.
6302 2017-01-10 Martin Liska <mliska@suse.cz>
6304 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
6305 usage of m_classes_vec.
6306 (sem_item_optimizer::~sem_item_optimizer): Likewise.
6307 (sem_item_optimizer::get_group_by_hash): Likewise.
6308 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6309 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
6310 (sem_item_optimizer::verify_classes): Likewise.
6311 (sem_item_optimizer::process_cong_reduction): Likewise.
6312 (sem_item_optimizer::dump_cong_classes): Likewise.
6313 (sem_item_optimizer::merge_classes): Likewise.
6314 * ipa-icf.h (congruence_class_hash): Rename from
6315 congruence_class_group_hash. Remove declaration of m_classes_vec.
6317 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
6319 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
6320 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
6321 * config.gcc: Add avx512vpopcntdqintrin.h.
6322 * config/i386/avx512vpopcntdqintrin.h: New.
6323 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
6324 * config/i386/i386-builtin-types.def: Add new types.
6325 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
6326 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
6327 __builtin_ia32_vpopcountq_v8di_mask): New.
6328 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6329 __AVX512VPOPCNTDQ__.
6330 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
6331 (PTA_AVX512VPOPCNTDQ): Define.
6332 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
6333 TARGET_AVX512VPOPCNTDQ_P): Define.
6334 * config/i386/i386.opt: Add mavx512vpopcntdq.
6335 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
6336 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
6338 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
6341 * predict.def (PRED_CALL): Set to 67.
6343 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
6345 * expr.c (store_field): In the bitfield case, if the value comes from
6346 a function call and is of an aggregate type returned in registers, do
6347 not modify the field mode; extract the value in all cases if the mode
6348 is BLKmode and the size is not larger than a word.
6350 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
6353 * config/i386/cpuid.h: Fix undefined behavior.
6355 2017-01-04 Jeff Law <law@redhat.com>
6357 PR tree-optimization/79007
6358 PR tree-optimization/67955
6359 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
6360 conservative for pt.null when flag_non_call_exceptions is on.
6362 2017-01-09 Jakub Jelinek <jakub@redhat.com>
6364 PR translation/79019
6365 PR translation/79020
6366 * params.def (PARAM_INLINE_MIN_SPEEDUP,
6367 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
6368 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
6370 * config/avr/avr.opt (maccumulate-args): Likewise.
6371 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
6372 * common.opt (freport-bug): Likewise.
6373 * cif-code.def (CIF_FINAL_ERROR): Likewise.
6374 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
6375 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
6376 translatable string.
6377 * config/i386/i386.c (function_value_32): Likewise.
6378 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
6379 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
6381 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
6382 * common/config/msp430/msp430-common.c (msp430_handle_option):
6384 * symtab.c (symtab_node::verify_base): Likewise.
6385 * opts.c (set_debug_level): Likewise.
6386 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
6387 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6388 missing whitespace to translatable strings.
6389 * config/avr/avr.md (bswapsi2): Fix typo in comment.
6390 * config/sh/superh.h: Likewise.
6391 * config/i386/xopintrin.h: Likewise.
6392 * config/i386/znver1.md: Likewise.
6393 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
6394 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
6395 * double-int.h (struct double_int): Likewise.
6396 * double-int.c (div_and_round_double): Likewise.
6397 * wide-int.cc: Likewise.
6398 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
6399 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
6400 * cfgcleanup.c (crossjumps_occured): Renamed to ...
6401 (crossjumps_occurred): ... this.
6402 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
6405 PR tree-optimization/78899
6406 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
6407 returning bool return struct loop *, NULL for failure and the new
6409 (versionable_outer_loop_p): Don't version outer loop if it has
6410 dont_vectorized bit set.
6411 (tree_if_conversion): When versioning outer loop, ensure
6412 tree_if_conversion is performed also on the inner loop of the
6413 non-vectorizable outer loop copy.
6414 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
6415 LOOP_VECTORIZED in inner loop of the scalar outer loop and
6416 prevent vectorization of it.
6417 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
6418 the outer loop vectorization of the non-scalar version is attempted
6419 before vectorization of the inner loop in scalar version. If
6420 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
6421 vectorization of its inner loop.
6422 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
6423 has 2 inner loops, rename also on edges from bb whose single pred
6424 is outer_loop->header. Fix typo in function comment.
6426 2017-01-09 Martin Sebor <msebor@redhat.com>
6429 * asan.c (asan_emit_stack_protection): Increase local buffer size
6430 to avoid snprintf truncation warning.
6432 2017-01-09 Andrew Pinski <apinski@cavium.com>
6434 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
6435 to reference thunderx2t99 for the tuning structure
6436 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
6438 (thunderx2t99_extra_costs): This.
6439 * config/aarch64/aarch64-tune.md: Regenerate.
6440 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
6441 (vulcan_addrcost_table): This.
6442 (vulcan_regmove_cost): Rename to ...
6443 (thunderx2t99_regmove_cost): This.
6444 (vulcan_vector_cost): Rename to ...
6445 (thunderx2t99_vector_cost): this.
6446 (vulcan_branch_cost): Rename to ...
6447 (thunderx2t99_branch_cost): This.
6448 (vulcan_tunings): Rename to ...
6449 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
6450 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
6452 2017-01-09 Martin Jambor <mjambor@suse.cz>
6456 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
6457 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
6458 (propagate_vr_accross_jump_function): Use the above function for all
6459 value range computations for pass-through jump functions and type
6460 converasion from explicit value range values.
6461 (ipcp_propagate_stage): Do not attempt to deduce types of formal
6462 parameters from TYPE_ARG_TYPES.
6463 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
6464 (ipa_write_node_info): Stream type of the actual argument.
6465 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
6467 2017-01-09 Martin Liska <mliska@suse.cz>
6470 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
6471 (lookup_compiler): Do not show error message with have_E.
6473 2017-01-09 Jakub Jelinek <jakub@redhat.com>
6475 PR tree-optimization/78938
6476 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
6477 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
6478 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
6479 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
6482 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6484 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
6487 2017-01-09 Richard Biener <rguenther@suse.de>
6489 PR tree-optimization/78997
6490 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
6491 name condition properly.
6493 2017-01-09 Richard Biener <rguenther@suse.de>
6496 * dwarf2out.c (is_cxx): New overload with context.
6497 (is_naming_typedef_decl): Use it.
6499 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
6501 * invoke.texi (Option Summary): Correct spacing in option lists
6502 and add line breaks to fix over-long lines.
6504 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
6508 * extend.texi (Common Variable Attributes): Add xref to GCC
6509 Internals manual to explain mode attribute keywords.
6511 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
6514 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
6515 and Preprocessor Options.
6516 (Options for Linking): Document -pthread here....
6517 (RS/6000 and PowerPC Options): ...not here.
6518 (Solaris 2 Options): ...or here.
6519 * doc/cppopts.texi: Document -pthread.
6521 2017-01-08 Martin Sebor <msebor@redhat.com>
6524 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
6525 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
6526 New member functions.
6527 (format_directive): Used them.
6529 (pass_sprintf_length::handle_gimple_call): Same.
6530 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
6531 to avoid truncation for any argument.
6532 (extract_affine_mul): Same.
6533 * tree.c (get_file_function_name): Same.
6535 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
6538 * predict.def (PRED_INDIR_CALL): Set to 86.
6540 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
6542 PR preprocessor/54124
6543 * doc/cppopts.texi: Reformat -d subtable to list the full name
6544 of the options. Add cross-reference to the docs for the general
6545 compiler -d options.
6546 * doc/invoke.texi (Developer Options): Add cross-reference to the
6547 preprocessor-specific -d option documentation.
6549 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
6551 PR preprocessor/13498
6552 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
6553 redudant material, and reflect new command-line options.
6554 (System Headers): Likewise.
6556 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
6558 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
6559 -isystem, and -idirafter. Copy-edit.
6560 * doc/cppopts.texi: Copy-edit. Remove contradiction about
6561 default for -ftrack-macro-expansion. Delete obsolete and
6562 badly-formatted implementation details about -fdebug-cpp output.
6563 * doc/cppwarnopts.texi: Copy-edit.
6565 2017-01-07 David Malcolm <dmalcolm@redhat.com>
6568 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
6569 that the transition from a max line width >= 1<<10 to narrower
6570 lines works correctly.
6572 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
6574 * doc/options.texi (PerFunction): New.
6575 * opt-functions.awk (switch_flags): Map both Optimization and
6576 PerFunction to CL_OPTIMIZATION.
6577 * opth-gen.awk: Test for PerFunction flag along with
6579 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
6580 it only when the latter is present. Skip those that don't in
6581 the hash function generator.
6582 * common.opt (fvar-tracking): Mark as PerFunction instead of
6584 (fvar-tracking-assignments): Likewise.
6585 (fvar-tracking-assignments-toggle): Likewise.
6586 (fvar-tracking-uninit): Likewise.
6588 2017-01-07 Jakub Jelinek <jakub@redhat.com>
6590 PR translation/79018
6591 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
6594 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
6597 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
6598 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
6599 TARGET_LONG_JUMP_TABLE_OFFSETS.
6600 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
6601 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
6602 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
6603 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
6604 * config/m68k/m68k.md (tablejump expander): Likewise.
6605 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
6606 TARGET_LONG_JUMP_TABLE_OFFSETS.
6607 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
6608 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
6610 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6611 David Holsgrove <david.holsgrove@xilinx.com>
6613 * common/config/microblaze/microblaze-common.c
6614 (TARGET_EXCEPT_UNWIND_INFO): Remove.
6615 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
6617 * config/microblaze/microblaze.c (microblaze_must_save_register)
6618 (microblaze_expand_epilogue, microblaze_return_addr): Handle
6620 (microblaze_eh_return): New function.
6621 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
6622 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
6623 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
6624 * config/microblaze/microblaze.md (eh_return): New pattern.
6626 2017-01-06 Jakub Jelinek <jakub@redhat.com>
6628 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
6629 GCC_DIAGNOSTIC_STRINGIFY): Define.
6631 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
6633 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6635 * config/arm/arm.md (<mcrr>): New.
6637 * config/arm/arm.c (arm_arch5te): New.
6638 (arm_option_override): Set arm_arch5te.
6639 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
6641 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
6642 (arm_mcrr_qualifiers): ... this. New.
6643 (MRRC_QUALIFIERS): Define to...
6644 (arm_mrrc_qualifiers): ... this. New.
6645 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
6647 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
6648 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
6649 (MRRCI, mrrc, MRRC): New.
6650 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
6651 VUNSPEC_MRRC2): New.
6653 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6655 * config/arm/arm.md (<mcr>): New.
6657 * config/arm/arm.c (arm_coproc_builtin_available): Add
6658 support for mcr, mrc, mcr2 and mrc2.
6659 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
6660 (arm_mcr_qualifiers): ... this. New.
6661 (MRC_QUALIFIERS): Define to ...
6662 (arm_mrc_qualifiers): ... this. New.
6663 (MCR_QUALIFIERS): Define to ...
6664 (arm_mcr_qualifiers): ... this. New.
6665 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
6667 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
6668 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
6669 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
6672 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6674 * config/arm/arm.md (*ldc): New.
6678 * config/arm/arm.c (arm_coproc_builtin_available): Add
6679 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
6680 (arm_coproc_ldc_stc_legitimate_address): New.
6681 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
6682 'qualifier_const_pointer'.
6683 (LDC_QUALIFIERS): Define to...
6684 (arm_ldc_qualifiers): ... this. New.
6685 (STC_QUALIFIERS): Define to...
6686 (arm_stc_qualifiers): ... this. New.
6687 * config/arm/arm-protos.h
6688 (arm_coproc_ldc_stc_legitimate_address): New.
6689 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
6690 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
6691 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
6692 stc2, stcl, stc2l): New.
6693 * config/arm/constraints.md (Uz): New.
6694 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
6695 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
6696 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
6697 VUNSPEC_STC2L): New.
6699 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6701 * config/arm/arm.md (<cdp>): New.
6702 * config/arm/arm.c (neon_const_bounds): Rename this ...
6703 (arm_const_bounds): ... this.
6704 (arm_coproc_builtin_available): New.
6705 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
6706 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
6707 (CDP_QUALIFIERS): Define to...
6708 (arm_cdp_qualifiers): ... this. New.
6710 (arm_expand_builtin_args): Add case for 6 arguments.
6711 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
6712 (arm_const_bounds): ... this.
6713 (arm_coproc_builtin_available): New.
6714 * config/arm/arm_acle.h (__arm_cdp): New.
6716 * config/arm/arm_acle_builtins.def (cdp): New.
6718 * config/arm/iterators.md (CDPI,CDP,cdp): New.
6719 * config/arm/neon.md: Rename all 'neon_const_bounds' to
6721 * config/arm/types.md (coproc): New.
6722 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
6723 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
6724 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
6725 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
6727 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6729 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
6730 (UBINOP_QUALIFIERS): New.
6732 (acle_builtin_data): New. Change comment.
6733 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
6734 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
6735 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
6736 arm_acle_builtins.def.
6737 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
6738 (arm_init_acle_builtins): New.
6739 (CRC32_BUILTIN): Remove.
6740 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
6741 crc32cb, crc32ch and crc32cw.
6742 (arm_init_crc32_builtins): Remove.
6743 (arm_init_builtins): Use arm_init_acle_builtins rather
6744 than arm_init_crc32_builtins.
6745 (arm_expand_acle_builtin): New.
6746 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
6747 * config/arm/arm_acle_builtins.def: New.
6749 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
6751 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
6752 (arm_builtin_datum): ... this.
6753 (arm_init_neon_builtin): Rename to ...
6754 (arm_init_builtin): ... this. Add a new parameters PREFIX
6755 and USE_SIG_IN_NAME.
6756 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
6757 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
6758 'arm_builtin_datum'.
6759 (arm_init_vfp_builtins): Likewise.
6760 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
6761 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
6762 (arm_expand_neon_args): Rename to ...
6763 (arm_expand_builtin_args): ... this. Rename builtin_arg
6764 enum values and differentiate between ARG_BUILTIN_MEMORY
6765 and ARG_BUILTIN_NEON_MEMORY.
6766 (arm_expand_neon_builtin_1): Rename to ...
6767 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
6768 values, arm_expand_builtin_args and add bool parameter NEON.
6769 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
6770 (arm_expand_vfp_builtin): Likewise.
6771 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
6773 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
6776 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
6777 * predict.c (tree_estimate_probability_bb): Reverse direction of
6778 polymorphic call predictor.
6780 2017-01-06 David Malcolm <dmalcolm@redhat.com>
6782 * passes.c (execute_one_pass): Split out pass-skipping logic into...
6783 (determine_pass_name_match): ...this new function and...
6784 (should_skip_pass_p): ...this new function.
6786 2017-01-06 Nathan Sidwell <nathan@acm.org>
6788 * ipa-visibility.c (function_and_variable_visibility): Reformat
6789 comments and long lines. Remove extrneous if.
6790 * symtab.c (symtab_node::make_decl_local): Fix code format.
6791 (symtab_node::set_section_for_node): Fix comment typo.
6793 2017-01-06 Martin Liska <mliska@suse.cz>
6796 * lra-constraints.c: Rename invariant to lra_invariant.
6797 * predict.c (set_even_probabilities): Initialize e to NULL.
6799 2017-01-05 Martin Sebor <msebor@redhat.com>
6801 PR tree-optimization/78910
6802 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
6803 (format_integer): Correct off-by-one error in the handling
6804 of precision with negative numbers in signed conversions..
6806 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
6808 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
6810 2017-01-05 Jakub Jelinek <jakub@redhat.com>
6812 PR tree-optimization/71016
6813 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
6814 factor_out_conditional_conversion. Formatting fix.
6815 (factor_out_conditional_conversion): Add cond_stmt argument.
6816 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
6817 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
6820 2017-01-05 David Malcolm <dmalcolm@redhat.com>
6822 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
6823 read-rtl-function.o, and selftest-rtl.o.
6824 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
6825 (selftest::aarch64_test_loading_full_dump): New function.
6826 (selftest::aarch64_run_selftests): New function.
6827 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
6828 selftest::aarch64_run_selftests.
6829 * config/i386/i386.c
6830 (selftest::ix86_test_loading_dump_fragment_1): New function.
6831 (selftest::ix86_test_loading_call_insn): New function.
6832 (selftest::ix86_test_loading_full_dump): New function.
6833 (selftest::ix86_test_loading_unspec): New function.
6834 (selftest::ix86_run_selftests): Call the new functions.
6835 * emit-rtl.c (maybe_set_max_label_num): New function.
6836 * emit-rtl.h (maybe_set_max_label_num): New decl.
6837 * function.c (instantiate_decls): Guard call to
6838 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
6839 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
6841 * gensupport.c (gen_reader::gen_reader): Pass "false"
6842 for new "compact" param of rtx_reader.
6843 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
6844 rather than an empty string for NULL strings.
6845 * read-md.c: Potentially include config.h rather than bconfig.h.
6846 Wrap include of errors.h with #ifdef GENERATOR_FILE.
6847 (have_error): New global, copied from errors.c.
6848 (md_reader::read_name): Rename to...
6849 (md_reader::read_name_1): ...this, adding "out_loc" param,
6850 and converting "missing name or number" to returning false, rather
6852 (md_reader::read_name): Reimplement in terms of read_name_1.
6853 (md_reader::read_name_or_nil): New function.
6854 (md_reader::read_string): Handle "(nil)" by returning NULL.
6855 (md_reader::md_reader): Add new param "compact".
6856 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
6857 (md_reader::read_file): New method.
6858 * read-md.h (md_reader::md_reader): Add new param "compact".
6859 (md_reader::read_file): New method.
6860 (md_reader::is_compact): New accessor.
6861 (md_reader::read_name): Convert return type from void to file_location.
6862 (md_reader::read_name_or_nil): New decl.
6863 (md_reader::read_name_1): New decl.
6864 (md_reader::m_compact): New field.
6865 (noop_reader::noop_reader): Pass "false" for new "compact" param
6867 (rtx_reader::rtx_reader): Add new "compact" param.
6868 (rtx_reader::read_rtx_operand): Make virtual and convert return
6869 type from void to rtx.
6870 (rtx_reader::read_until): New decl.
6871 (rtx_reader::handle_any_trailing_information): New virtual function.
6872 (rtx_reader::postprocess): New virtual function.
6873 (rtx_reader::finalize_string): New virtual function.
6874 (rtx_reader::m_in_call_function_usage): New field.
6875 (rtx_reader::m_reuse_rtx_by_id): New field.
6876 * read-rtl-function.c: New file.
6877 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
6878 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
6879 (selftest::verify_three_block_rtl_cfg): New decl.
6880 * read-rtl-function.h: New file.
6881 * read-rtl.c: Potentially include config.h rather than bconfig.h.
6882 For host, include function.h, memmodel.h, and emit-rtl.h.
6883 (one_time_initialization): New function.
6884 (struct compact_insn_name): New struct.
6885 (compact_insn_names): New array.
6886 (find_code): Handle insn codes in compact dumps.
6887 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
6888 (bind_subst_iter_and_attr): Likewise.
6889 (add_condition_to_string): Likewise.
6890 (add_condition_to_rtx): Likewise.
6891 (apply_attribute_uses): Likewise.
6892 (add_current_iterators): Likewise.
6893 (apply_iterators): Likewise.
6894 (initialize_iterators): Guard usage of apply_subst_iterator with
6895 #ifdef GENERATOR_FILE.
6896 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
6897 (md_reader::read_mapping): Likewise.
6898 (add_define_attr_for_define_subst): Likewise.
6899 (add_define_subst_attr): Likewise.
6900 (read_subst_mapping): Likewise.
6901 (check_code_iterator): Likewise.
6902 (rtx_reader::read_rtx): Likewise. Move one-time initialization
6904 (one_time_initialization): New function.
6905 (rtx_reader::read_until): New method.
6906 (read_flags): New function.
6907 (parse_reg_note_name): New function.
6908 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
6909 Handle reuse_rtx ids.
6910 Wrap iterator lookup within #ifdef GENERATOR_FILE.
6911 Add parsing support for RTL dumps, mirroring the special-cases in
6912 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
6913 values, and calling handle_any_trailing_information.
6914 (rtx_reader::read_rtx_operand): Convert return type from void
6915 to rtx, returning return_rtx. Handle case 'e'. Call
6916 finalize_string on XSTR and XTMPL fields.
6917 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
6918 "(nil)" values were omitted. Call the postprocess vfunc on the
6920 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
6921 class ctor. Initialize m_in_call_function_usage. Call
6922 one_time_initialization.
6923 * rtl-tests.c (selftest::test_uncond_jump): Call
6924 set_new_first_and_last_insn.
6925 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
6926 * selftest-rtl.c: New file.
6927 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
6928 (selftest::get_insn_by_uid): New decl.
6929 * selftest-run-tests.c (selftest::run_tests): Call
6930 read_rtl_function_c_tests.
6931 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
6932 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
6935 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
6937 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
6938 operands in a special way. Assert that pos+len <= mode precision.
6940 2017-01-05 Jakub Jelinek <jakub@redhat.com>
6942 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
6943 3 argument Alias with unlimited for the negative form.
6944 (fno-vect-cost-model): Removed.
6946 2017-01-05 Martin Liska <mliska@suse.cz>
6948 * hsa-gen.c (gen_hsa_divmod): New function.
6949 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
6951 2017-01-05 Martin Liska <mliska@suse.cz>
6954 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
6957 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6959 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
6960 small constant length operands.
6962 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6964 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
6965 between loop iterations.
6967 2017-01-05 Martin Liska <mliska@suse.cz>
6970 * gimplify.c (gimplify_decl_expr): Compare to
6971 asan_poisoned_variables instread of checking flags.
6972 (gimplify_target_expr): Likewise.
6973 (gimplify_expr): Likewise.
6974 (gimplify_function_tree): Conditionally initialize
6975 asan_poisoned_variables.
6977 2017-01-04 Jeff Law <law@redhat.com>
6979 PR tree-optimizatin/78812
6980 * rtl.h (contains_mem_rtx_p): Prototype.
6981 * ifcvt.c (containts_mem_rtx_p): Move from here to...
6982 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
6983 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
6984 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
6985 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
6987 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
6989 * input.c (assert_char_at_range): Default-initialize actual_range.
6991 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
6993 * df-scan.c (df_ref_create_structure): Make regno unsigned,
6994 to match the caller.
6996 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
6998 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
6999 insns after final jump in test to emit dummy move.
7001 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7003 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
7004 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
7006 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
7008 * multiple_target.c (create_dispatcher_calls): Init e_next.
7009 * tree-ssa-loop-split.c (split_loop): Init border.
7010 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
7013 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7018 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
7019 (altivec_register_operand): Do not return true if the operand
7020 contains a SUBREG mixing SImode and SFmode.
7021 (vsx_register_operand): Likewise.
7022 (vsx_reg_sfsubreg_ok): New predicate.
7023 (vfloat_operand): Do not return true if the operand contains a
7024 SUBREG mixing SImode and SFmode.
7025 (vint_operand): Likewise.
7026 (vlogical_operand): Likewise.
7027 (gpc_reg_operand): Likewise.
7028 (int_reg_operand): Likewise.
7029 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
7030 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
7031 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
7033 (rs6000_emit_move_si_sf_subreg): New helper function.
7034 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
7035 fixup SUBREGs involving SImode and SFmode.
7036 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
7037 numbers for the new peephole2 optimization.
7038 (peephole2 for SFmode unions): New peephole2 to optimize cases in
7039 the GLIBC math library that do AND/IOR/XOR operations on single
7040 precision floating point.
7041 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
7042 target macros to say whether we need to avoid SUBREGs mixing
7044 (TARGET_ALLOW_SF_SUBREG): Likewise.
7045 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
7046 (UNSPEC_SI_FROM_SF): Likewise.
7047 (iorxor): Change spacing.
7048 (and_ior_xor): New iterator for AND, IOR, and XOR.
7049 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
7050 (movdi_from_sf_zero_ext): Likewise.
7051 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
7052 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
7053 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
7054 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
7055 (fms<mode>4): Likewise.
7056 (fnma<mode>4): Likewise.
7057 (fnms<mode>4): Likewise.
7058 (nfma<mode>4): Likewise.
7059 (nfms<mode>4): Likewise.
7061 2017-01-04 Marek Polacek <polacek@redhat.com>
7064 * doc/invoke.texi: Document -Wpointer-compare.
7066 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7068 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
7071 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
7072 descriptions for -gdwarf-5 and emit them as uleb128 instead of
7075 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
7078 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
7079 documentation of the powerpc_popcntb_ok attribute.
7080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7081 code to issue warning messages if a requested CPU configuration is
7082 not supported by the binary (assembler and loader) toolchain.
7083 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
7084 made to define a built-in function that has been disabled.
7085 (paired_init_builtins): Add assertion to prevent ICE if attempt is
7086 made to define a built-in function that has been disabled.
7087 (altivec_init_builtins): Add comment explaining why definition
7088 of the DST built-in functions is not preceded by an assertion
7089 check. Add assertions to prevent ICE if attempts are made to
7090 define an altivec predicate or an abs* built-in function that has
7092 (htm_init_builtins): Add comment explaining why definition of the
7093 htm built-in functions is not preceded by an assertion check.
7095 2017-01-04 Jeff Law <law@redhat.com>
7097 PR tree-optimizatin/67955
7098 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
7099 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
7100 the points-to solution does not include pt_null. Use DECL_PT_UID
7103 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
7105 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
7106 Use gen_int_mode instead of gen_lopwart for const_int operands.
7108 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7110 PR tree-optimization/71563
7111 * match.pd: Simplify X << Y into X if Y is known to be 0 or
7112 out of range value - has low bits known to be zero.
7114 2017-01-04 Alan Modra <amodra@gmail.com>
7116 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
7117 * configure: Regenerate.
7118 * config.in: Regenerate.
7120 2017-01-04 Jakub Jelinek <jakub@redhat.com>
7123 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
7124 a substring of the message, but strcmp with the whole message. Ifdef
7125 ENABLE_NLS, translate the message first using dgettext.
7127 2017-01-03 Jeff Law <law@redhat.com>
7129 PR tree-optimizatin/78856
7130 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
7131 (mark_threaded_blocks): Remove code to truncate thread paths that
7132 cross multiple loop headers. Instead invalidate the cached loop
7133 iteration information and handle case of a thread path walking
7134 into an irreducible region.
7136 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7139 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
7140 assertions. Add support for doing the signbit if the IEEE 128-bit
7141 floating point value is in a GPR.
7142 * config/rs6000/rs6000.md (Fsignbit): Delete.
7143 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
7144 Update the length attribute if the value is in a GPR.
7145 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
7146 the sign or zero extension instruction, since the value is always 0/1.
7147 (signbit<mode>2_dm2): Delete using <Fsignbit>.
7150 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
7151 extracting SImode to a GPR register so that we can generate a
7152 store, limit the vector to be in a traditional Altivec register
7153 for the vextuwrx instruction.
7155 2017-01-03 Ian Lance Taylor <iant@google.com>
7157 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
7159 2017-01-03 Martin Sebor <msebor@redhat.com>
7161 PR tree-optimization/78696
7162 * gimple-ssa-sprintf.c (format_floating): Correct handling of
7163 precision. Use MPFR for %f for greater fidelity. Correct handling
7165 (pass_sprintf_length::compute_format_length): Set width and precision
7166 specified by asrerisk to void_node for vararg functions.
7167 (try_substitute_return_value): Adjust dump output.
7169 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
7171 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
7173 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
7175 * doc/invoke.texi (SPARC options): Document -mlra as the default.
7176 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
7177 -mlra/-mno-lra was passed to the compiler.
7179 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
7181 PR rtl-optimization/65618
7182 * emit-rtl.c (try_split): Move initialization of "before" and
7183 "after" to just before the call to emit_insn_after_setloc.
7185 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
7187 * doc/md.texi (Standard Names): Remove reference to Java frontend.
7189 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
7191 * dwarf2out.c (gen_enumeration_type_die): When
7192 -gno-strict-dwarf, add a DW_AT_encoding attribute.
7194 2017-01-03 Jakub Jelinek <jakub@redhat.com>
7196 PR tree-optimization/78965
7197 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
7198 Change first argument from const call_info & to call_info &. For %n
7199 set info.nowrite to false.
7202 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
7203 possibly throwing calls.
7205 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
7206 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
7207 and fns handling, rather than in a separate case SSA_NAME.
7209 2017-01-02 Jeff Law <law@redhat.com>
7211 * config/darwin-driver.c (darwin_driver_init): Const-correctness
7212 fixes for first_period and second_period variables.
7214 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
7217 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
7218 (*insvqi_1): New insn pattern.
7219 (*insvqi_1_mem_rex64): Ditto.
7221 (*insvqi_3): Rename from *insvqi.
7223 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
7225 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7227 * doc/cfg.texi (Edges): Remove reference to Java.
7228 (Maintaining the CFG): Ditto.
7230 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7233 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
7234 transparent aliases.
7236 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
7239 * predict.def (PRED_CALL): Update hitrate.
7240 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
7241 * predict.c (tree_estimate_probability_bb): Split CALL predictor
7242 into direct/indirect/polymorphic variants.
7244 2017-01-01 Jakub Jelinek <jakub@redhat.com>
7246 Update copyright years.
7248 * gcc.c (process_command): Update copyright notice dates.
7249 * gcov-dump.c (print_version): Ditto.
7250 * gcov.c (print_version): Ditto.
7251 * gcov-tool.c (print_version): Ditto.
7252 * gengtype.c (create_file): Ditto.
7253 * doc/cpp.texi: Bump @copying's copyright year.
7254 * doc/cppinternals.texi: Ditto.
7255 * doc/gcc.texi: Ditto.
7256 * doc/gccint.texi: Ditto.
7257 * doc/gcov.texi: Ditto.
7258 * doc/install.texi: Ditto.
7259 * doc/invoke.texi: Ditto.
7261 Copyright (C) 2017 Free Software Foundation, Inc.
7263 Copying and distribution of this file, with or without modification,
7264 are permitted in any medium without royalty provided the copyright
7265 notice and this notice are preserved.