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