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