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