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