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