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