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