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