rs6000.opt (mlra): Replace with stub.
[gcc.git] / gcc / ChangeLog
1 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
2
3 * config/rs6000/rs6000.opt (mlra): Replace with stub.
4 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
5 * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
6 (rs6000_debug_reg_global): Delete print of LRA status.
7 (rs6000_option_override_internal): Delete dead LRA related code.
8 (rs6000_lra_p): Delete function.
9 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
10
11 2017-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
12
13 * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
14 * config/riscv/rtems.h: New file.
15
16 2017-07-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17 Sudakshina Das <sudi.das@arm.com>
18
19 * config/aarch64/aarch64.md
20 (define_split for and<mode>3nr_compare): Move
21 non aarch64_logical_operand to a register.
22 (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
23 register immediate operand to a register.
24 * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
25
26 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
27
28 PR middle-end/81564
29 * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
30
31 2017-07-27 Richard Biener <rguenther@suse.de>
32
33 PR tree-optimization/81573
34 PR tree-optimization/81494
35 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
36 multi defuse cycle case.
37
38 2017-07-27 Richard Biener <rguenther@suse.de>
39
40 PR tree-optimization/81571
41 * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
42 PHIs.
43
44 2017-07-27 Eric Botcazou <ebotcazou@adacore.com>
45
46 * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
47 earlier and only if MASK_FPU is set. Adjust formatting.
48
49 2017-07-27 Martin Liska <mliska@suse.cz>
50
51 * opt-functions.awk: Add validation of value of Init.
52 * optc-gen.awk: Pass new argument.
53
54 2017-07-27 Martin Liska <mliska@suse.cz>
55
56 * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
57 Fix wrong condition.
58
59 2017-07-27 Martin Liska <mliska@suse.cz>
60
61 * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
62 BBs and edges seen by autoFDO.
63
64 2017-07-27 Richard Biener <rguenther@suse.de>
65
66 PR tree-optimization/81502
67 * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
68 with incompatible but same sized type.
69 (execute_update_addresses_taken): Likewise.
70
71 2017-07-27 James Greenhalgh <james.greenhalgh@arm.com>
72
73 * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
74 flag_tree_loop_vectorize rather than flag_tree_vectorize.
75
76 2017-07-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
77
78 PR target/81534
79 * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
80 ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
81 Change s_operand to memory_operand.
82
83 2017-07-27 Richard Sandiford <richard.sandiford@linaro.org>
84
85 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
86 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
87 (rs6000_emit_le_vsx_permute): ...this. Take the destination as input.
88 Emit instructions rather than returning an expression. Handle TFmode
89 and KFmode by casting to TImode.
90 (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
91 (rs6000_emit_le_vsx_store): Likewise.
92 * config/rs6000/vsx.md (VSX_TI): New iterator.
93 (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
94 (*vsx_le_undo_permute_<mode>): Likewise.
95 (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
96 emit the split sequence.
97 (*vsx_le_perm_store_<mode>): Likewise.
98
99 2017-07-27 Jakub Jelinek <jakub@redhat.com>
100
101 PR tree-optimization/81555
102 PR tree-optimization/81556
103 * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
104 if true, force CHANGED for the recursive invocation.
105 (reassociate_bb): Remember original length of ops array, pass
106 len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
107
108 * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
109 attributes for noipa attribute. For naked attribute use
110 lookup_attribute first before lookup_attribute_spec.
111 * final.c (rest_of_handle_final): Disable IPA RA for functions with
112 noipa attribute.
113 * ipa-visibility.c (non_local_p): Fix comment typos. Return true
114 for functions with noipa attribute.
115 (cgraph_externally_visible_p): Return true for functions with noipa
116 attribute.
117 * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
118 for functions with noipa attribute.
119 * doc/extend.texi: Document noipa function attribute.
120 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
121 also for functions with noipa attribute.
122 (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
123
124 2017-07-26 Andrew Pinski <apinski@cavium.com>
125
126 * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
127 vec_unalign_load_cost and vec_unalign_store_cost.
128
129 2017-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
130
131 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
132 -mvsx-small-integer option.
133 (ISA_3_0_MASKS_IEEE): Likewise.
134 (OTHER_VSX_VECTOR_MASKS): Likewise.
135 (POWERPC_MASKS): Likewise.
136 * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
137 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
138 code, only testing for DImode being allowed in non-VSX floating
139 point registers.
140 (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
141 to TARGET_P8_VECTOR test. Remove redundant VSX test inside of
142 another VSX test.
143 (rs6000_option_override_internal): Delete -mvsx-small-integer.
144 (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
145 TARGET_P8_VECTOR test.
146 (rs6000_secondary_reload_simple_move): Likewise.
147 (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
148 since TARGET_P9_VECTOR was already tested.
149 (rs6000_opt_masks): Remove -mvsx-small-integer.
150 * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
151 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
152 used.
153 (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
154 test for TARGET_VEXTRACTUB was used, and that uses
155 TARGET_P9_VECTOR.
156 (p9 extract splitter): Likewise.
157 (vsx_extract_<mode>_di_p9): Likewise.
158 (vsx_extract_<mode>_store_p9): Likewise.
159 (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
160 for TARGET_P9_VECTOR was used. Delete code that is now dead with
161 the elimination of TARGET_VSX_SMALL_INTEGER.
162 (vsx_extract_<mode>_p8): Likewise.
163 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
164 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
165 (vsx_set_<mode>_p9): Likewise.
166 (vsx_set_v4sf_p9): Likewise.
167 (vsx_set_v4sf_p9_zero): Likewise.
168 (vsx_insert_extract_v4sf_p9): Likewise.
169 (vsx_insert_extract_v4sf_p9_2): Likewise.
170 * config/rs6000/rs6000.md (sign extend splitter): Change
171 TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
172 (floatsi<mode>2_lfiwax_mem): Likewise.
173 (floatunssi<mode>2_lfiwzx_mem): Likewise.
174 (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
175 since a test for TARGET_P9_VECTOR was used.
176 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
177 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
178 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
179 (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
180 TARGET_P8_VECTOR test.
181 (fix_trunc<mode>si2_stfiwx): Likewise.
182 (fix_trunc<mode>si2_internal): Likewise.
183 (fix_trunc<SFDF:mode><QHI:mode>2): Delete
184 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
185 used.
186 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
187 (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
188 TARGET_P8_VECTOR test.
189 (fixuns_trunc<mode>si2_stfiwx): Likewise.
190 (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
191 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
192 used.
193 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
194 (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
195 since a test for TARGET_P9_VECTOR was used.
196 (splitter for loading small constants): Likewise.
197
198 2017-07-26 Andrew Pinski <apinski@cavium.com>
199
200 * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
201 vec_fp_stmt_cost.
202
203 2017-07-26 H.J. Lu <hongjiu.lu@intel.com>
204
205 PR target/81563
206 * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
207 (fp_valid_at): Likewise.
208
209 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
210
211 * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
212 (qdf24xx_addrcost_table): Likewise.
213 (cortexa57_tunings): Update to use generic_branch_cost.
214 (cortexa72_tunings): Likewise.
215 (cortexa73_tunings): Likewise.
216 (qdf24xx_tunings): Likewise.
217
218 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
219
220 * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
221 (thunderx2t99_branch_cost): Likewise.
222 (cortexa35_tunings): Update to use generic_branch_cost.
223 (cortexa53_tunings): Likewise.
224 (cortexa57_tunings): Likewise.
225 (cortexa72_tunings): Likewise.
226 (cortexa73_tunings): Likewise.
227 (thunderx2t99_tunings): Likewise.
228
229 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
230
231 * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
232 (sparc_option_override): Honour MASK_FSMULD.
233 * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
234 * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
235 * config/sparc/sparc.opt (mfsmuld): New option.
236 * doc/invoke.texi (mfsmuld): Document option.
237
238 2017-07-26 Marek Polacek <polacek@redhat.com>
239
240 PR middle-end/70992
241 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
242
243 2017-07-26 Richard Biener <rguenther@suse.de>
244
245 * gimple-match-head.c (do_valueize): Return OP if valueize
246 returns NULL_TREE.
247 (get_def): New helper to get at the def stmt of a SSA name
248 if valueize allows.
249 * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
250 do_valueize to get at the def stmt.
251 (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
252
253 2017-07-26 Wilco Dijkstra <wdijkstr@arm.com>
254
255 PR middle-end/46932
256 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
257
258 2017-07-26 Martin Liska <mliska@suse.cz>
259
260 PR sanitize/81186
261 * function.c (expand_function_start): Make expansion of
262 nonlocal_goto_save_area after parm_birth_insn.
263
264 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
265
266 * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
267 from all CPU target flags enable members.
268
269 2017-07-26 Richard Biener <rguenther@suse.de>
270
271 * genmatch.c (dt_simplify::gen): Make iterator vars const.
272 (decision_tree::gen): Make 'type' const.
273 (write_predicate): Likewise.
274
275 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
276
277 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
278 Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
279 (rs6000_option_override_internal): Likewise.
280 (rs6000_expand_vector_set): Likewise.
281 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
282 (TARGET_UPPER_REGS_SF): Likewise.
283 (TARGET_UPPER_REGS_DI): Likewise.
284 (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
285 (TARGET_DIRECT_MOVE_64BIT): Likewise.
286 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
287 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
288 (Splitters for DI constants in Altivec registers): Likewise.
289 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
290 (vsx_set_v4sf_p9): Likewise.
291 (vsx_set_v4sf_p9_zero): Likewise.
292 (vsx_insert_extract_v4sf_p9): Likewise.
293 (vsx_insert_extract_v4sf_p9_2): Likewise.
294
295 2017-07-25 Carl Love <cel@us.ibm.com>
296
297 * doc/extend.texi: Update the built-in documentation file for the
298 existing built-in functions
299 vector signed char vec_cnttz (vector signed char);
300 vector unsigned char vec_cnttz (vector unsigned char);
301 vector signed short vec_cnttz (vector signed short);
302 vector unsigned short vec_cnttz (vector unsigned short);
303 vector signed int vec_cnttz (vector signed int);
304 vector unsigned int vec_cnttz (vector unsigned int);
305 vector signed long long vec_cnttz (vector signed long long);
306 vector unsigned long long vec_cnttz (vector unsigned long long);
307
308 2017-07-25 Andrew Pinski <apinski@cavium.com>
309
310 * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
311 accesses where the use is for the first operand of a BIT_INSERT.
312
313 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
314
315 PR bootstrap/81521
316 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
317 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
318
319 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
320
321 * config/i386/gstabs.h: Delete.
322 * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
323
324 2017-07-25 Uros Bizjak <ubizjak@gmail.com>
325
326 * config/i386/i386.c (ix86_decompose_address): Do not check for
327 register RTX when looking at index_reg or base_reg.
328 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
329
330 2017-07-25 Eric Botcazou <ebotcazou@adacore.com>
331
332 * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
333 to update EH info here.
334
335 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
336
337 * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
338
339 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
340
341 * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
342
343 2017-07-25 Torsten Duwe <duwe@suse.de>
344
345 * common.opt: Introduce -fpatchable-function-entry
346 command line option, and its variables function_entry_patch_area_size
347 and function_entry_patch_area_start.
348 * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
349 including a two-value parser.
350 * target.def (print_patchable_function_entry): New target hook.
351 * targhooks.h (default_print_patchable_function_entry): New function.
352 * targhooks.c (default_print_patchable_function_entry): Likewise.
353 * toplev.c (process_options): Switch off IPA-RA if
354 patchable function entries are being generated.
355 * varasm.c (assemble_start_function): Look at the
356 patchable-function-entry command line switch and current
357 function attributes and maybe generate NOP instructions by
358 calling the print_patchable_function_entry hook.
359 * doc/extend.texi: Document patchable_function_entry attribute.
360 * doc/invoke.texi: Document -fpatchable_function_entry
361 command line option.
362 * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
363 New target hook.
364 * doc/tm.texi: Re-generate.
365
366 2017-07-25 Jakub Jelinek <jakub@redhat.com>
367
368 PR target/81532
369 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
370 TARGET_AVX512DQ rather than TARGET_AVX512BW.
371
372 2017-07-25 Tamar Christina <tamar.christina@arm.com>
373
374 * config/arm/parsecpu.awk (all_cores): Remove duplicates.
375
376 2017-07-25 Richard Biener <rguenther@suse.de>
377
378 PR tree-optimization/81455
379 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
380 not walk in cycles when looking for guards.
381
382 2017-07-25 Richard Biener <rguenther@suse.de>
383
384 PR tree-optimization/81529
385 * tree-vect-stmts.c (process_use): Disregard live induction PHIs
386 when optimizing backedge uses.
387
388 2017-07-25 David Edelsohn <dje.gcc@gmail.com>
389
390 * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
391 character for AIX.
392 * dwarf2out.c (output_macinfo): Copy debug_line_section_label
393 to dl_section_ref. On AIX, append an expression to subtract
394 the size of the section length to dl_section_ref.
395
396 2017-07-25 Segher Boessenkool <segher@kernel.crashing.org>
397
398 * configure.ac: If any of the config.* scripts fail, exit 1.
399 * configure: Regenerate.
400
401 2017-07-25 Richard Biener <rguenther@suse.de>
402
403 PR middle-end/81546
404 * tree-ssa-operands.c (verify_imm_links): Remove cap on number
405 of immediate uses, be more verbose on errors.
406
407 2017-07-25 Richard Biener <rguenther@suse.de>
408
409 PR tree-optimization/81510
410 * tree-vect-loop.c (vect_is_simple_reduction): When the
411 reduction stmt is not inside the loop bail out.
412
413 2017-07-25 Richard Biener <rguenther@suse.de>
414
415 PR tree-optimization/81303
416 * tree-vect-loop-manip.c (vect_loop_versioning): Build
417 profitability check against LOOP_VINFO_NITERSM1.
418
419 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
420
421 * domwalk.c (cmp_bb_postorder): Simplify.
422 (sort_bbs_postorder): New function. Use it...
423 (dom_walker::walk): ...here to optimize common cases.
424
425 2017-07-25 Martin Liska <mliska@suse.cz>
426
427 PR ipa/81520
428 * ipa-visibility.c (function_and_variable_visibility): Make the
429 redirection just on target that supports aliasing.
430 Fix GNU coding style.
431
432 2017-07-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
433
434 PR libgcc/61152
435 * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
436 Format changes.
437 * config/arm/rtems.h: Likewise.
438 * config/bfin/rtems.h: Likewise.
439 * config/i386/rtemself.h: Likewise.
440 * config/lm32/rtems.h: Likewise.
441 * config/m32c/rtems.h: Likewise.
442 * config/m68k/rtemself.h: Likewise.
443 * config/microblaze/rtems.h: Likewise.
444 * config/mips/rtems.h: Likewise.
445 * config/moxie/rtems.h: Likewise.
446 * config/nios2/rtems.h: Likewise.
447 * config/powerpcspe/rtems.h: Likewise.
448 * config/rs6000/rtems.h: Likewise.
449 * config/rtems.h: Likewise.
450 * config/sh/rtems.h: Likewise.
451 * config/sh/rtemself.h: Likewise.
452 * config/sparc/rtemself.h: Likewise.
453
454 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
455
456 PR 81487
457 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
458 * gimple-pretty-print.c (dump_profile, dump_probability): Same.
459 * tree-ssa-structalias.c (alias_get_name): Same.
460
461 2017-07-25 Bin Cheng <bin.cheng@arm.com>
462
463 PR target/81414
464 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
465 instructions if no du chain is found.
466
467 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
468
469 * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
470
471 2017-07-25 Richard Biener <rguenther@suse.de>
472
473 PR middle-end/81505
474 * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
475 sticky.
476
477 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
478
479 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
480 upper-regs options.
481 (ISA_2_7_MASKS_SERVER): Likewise.
482 (ISA_3_0_MASKS_IEEE): Likewise.
483 (OTHER_P8_VECTOR_MASKS): Likewise.
484 (OTHER_VSX_VECTOR_MASKS): Likewise.
485 (POWERPC_MASKS): Likewise.
486 (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
487 duplicate list of options.
488 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
489 explicit -mupper-regs options.
490 * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
491 -mupper-regs* options. Delete -mvsx-scalar-memory, which was an
492 alias for -mupper-regs-df.
493 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
494 (rs6000_init_hard_regno_mode_ok): Likewise.
495 (rs6000_option_override_internal): Likewise.
496 (rs6000_opt_masks): Likewise.
497 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
498 options in terms of whether -mvsx or -mpower8-vector was used.
499 (TARGET_UPPER_REGS_DI): Likewise.
500 (TARGET_UPPER_REGS_SF): Likewise.
501 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
502 -mupper-regs-* options.
503
504 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
505
506 * passes.c (emergency_dump_function): Print some empty lines and a
507 header before the RTL dump.
508
509 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
510
511 * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
512
513 2017-07-24 Wilco Dijkstra <wdijkstr@arm.com>
514
515 PR target/79041
516 * config/aarch64/aarch64.c (aarch64_classify_symbol):
517 Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
518
519 2017-07-24 Carl Love <cel@us.ibm.com>
520
521 * config/rs6000/rs6000-c.c: Add support for built-in functions
522 vector float vec_extract_fp32_from_shorth (vector unsigned short);
523 vector float vec_extract_fp32_from_shortl (vector unsigned short);
524 * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
525 vec_extract_fp_from_shortl): Add defines for the two builtins.
526 * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
527 VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
528 new builtins.
529 * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
530 (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
531 * doc/extend.texi: Update the built-in documentation file for the
532 new built-in function.
533
534 2017-07-24 Jakub Jelinek <jakub@redhat.com>
535
536 PR bootstrap/81521
537 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
538 documentation.
539 * doc/generic.texi: Likewise.
540 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
541 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
542
543 2017-07-24 Jackson Woodruff <jackson.woodruff@arm.com>
544
545 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
546 (aarch64_mls_elt_merge<mode>): Likewise.
547
548 2017-07-23 Krister Walfridsson <krister.walfridsson@gmail.com>
549
550 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
551 having __cxa_atexit.
552
553 2017-07-23 Michael Collison <michael.collison@arm.com>
554
555 * config/arm/arm.c (arm_option_override): Deprecate
556 use of -mstructure-size-boundary.
557 * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
558 * doc/invoke.texi: Deprecate -mstructure-size-boundary.
559
560 2017-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
561
562 PR target/80695
563 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
564 Reduce cost estimate for direct moves.
565
566 2017-07-23 Uros Bizjak <ubizjak@gmail.com>
567
568 PR target/80569
569 * config/i386/i386.c (ix86_option_override_internal): Disable
570 BMI, BMI2 and TBM instructions for -m16.
571
572 2017-07-21 Carl Love <cel@us.ibm.com>
573
574 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
575 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
576 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
577 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
578 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
579 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
580 VMULOSW): New enum "unspec" values.
581 (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
582 altivec_vmulosw): New patterns.
583 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
584 VMULOSW): Add definitions.
585
586 2017-07-21 Jim Wilson <jim.wilson@linaro.org>
587
588 * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
589 (qdf24xx): Likewise.
590 * config/aarch64/aarch64-options-extensions.def (rdma); New.
591 * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
592 (AARCH64_FL_V8_1): Renumber.
593 (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
594 (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
595 * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
596 * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs. Add
597 rdma to feature modifiers list.
598
599 2017-07-21 Yury Gribov <tetra2005@gmail.com>
600
601 PR middle-end/56727
602 * ipa-visibility (function_and_variable_visibility): Convert
603 recursive PLT call to direct call if appropriate.
604
605 2017-07-21 Andrew Pinski <apinski@cavium.com>
606
607 * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
608 operand 1 to see if the types precision matches.
609 * fold-const.c (operand_equal_p): Likewise.
610
611 2017-07-21 Richard Biener <rguenther@suse.de>
612
613 PR tree-optimization/81303
614 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
615 in datarefs vector. Allow NULL dr0 for no peeling cost estimate.
616 (vect_peeling_hash_get_lowest_cost): Adjust.
617 (vect_enhance_data_refs_alignment): Likewise. Use
618 vect_get_peeling_costs_all_drs to compute the penalty for no
619 peeling to match up costs.
620
621 2017-07-21 Richard Biener <rguenther@suse.de>
622
623 PR tree-optimization/81500
624 * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
625 we didn't identify a reduction path.
626
627 2017-07-21 Tom de Vries <tom@codesourcery.com>
628 Cesar Philippidis <cesar@codesourcery.com>
629
630 PR gcov-profile/81442
631 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
632 probabilities.
633
634 2017-07-21 Tom de Vries <tom@codesourcery.com>
635
636 PR lto/81430
637 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
638 function.
639 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
640 nvptx_override_options_after_change.
641
642 2017-07-21 Ulrich Drepper <drepper@redhat.com>
643
644 * dwarf2out.c (output_file_names): Avoid double testing for
645 dwarf_version >= 5.
646
647 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
648
649 * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
650
651 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
652
653 * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
654 hot/cold regions.
655 (try_crossjump_to_edge): Do not punt on partitioned functions.
656
657 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
658
659 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
660 Put all BBs reachable only via paths crossing cold region to cold
661 region.
662 * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
663
664 2016-07-21 Richard Biener <rguenther@suse.de>
665
666 PR tree-optimization/81303
667 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
668 into account prologue and epilogue iterations when raising
669 min_profitable_iters to sth at least covering one vector iteration.
670
671 2017-07-21 Tamar Christina <tamar.christina@arm.com>
672
673 * config/arm/arm.c (arm_test_cpu_arch_dat):
674 Check for overlap.
675
676 2017-07-20 Nathan Sidwell <nathan@acm.org>
677
678 Remove TYPE_METHODS.
679 * tree.h (TYPE_METHODS): Delete.
680 * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
681 * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
682 (dbxout_type_methods): Scan TYPE_FIELDS.
683 (dbxout_type): Don't check TYPE_METHODS here.
684 * function.c (use_register_for_decl): Always ignore register for
685 class types when not optimizing.
686 * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
687 * tree.c (free_lang_data_in_type): Stitch out member functions and
688 templates from TYPE_FIELDS.
689 (build_distinct_type_copy, verify_type_variant,
690 verify_type): Member fns are on TYPE_FIELDS.
691 * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
692 * tree-pretty-print.c (dump_generic_node): Likewise.
693
694 2017-07-20 Jakub Jelinek <jakub@redhat.com>
695
696 PR target/80846
697 * config/i386/i386.c (ix86_expand_vector_init_general): Handle
698 V2TImode and V4TImode.
699 (ix86_expand_vector_extract): Likewise.
700 * config/i386/sse.md (VMOVE): Enable V4TImode even for just
701 TARGET_AVX512F, instead of only for TARGET_AVX512BW.
702 (ssescalarmode): Handle V4TImode and V2TImode.
703 (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
704 (*vec_extractv2ti, *vec_extractv4ti): New insns.
705 (VEXTRACTI128_MODE): New mode iterator.
706 (splitter for *vec_extractv?ti first element): New.
707 (VEC_INIT_MODE): New mode iterator.
708 (vec_init<mode>): Consolidate 3 expanders into one using
709 VEC_INIT_MODE mode iterator.
710
711 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
712
713 * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
714 non_spilled_static_chain_regno_p.
715
716 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
717
718 * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
719
720 2017-07-20 Jan Hubicka <hubicka@ucw.cz>
721
722 * bb-reorder.c (connect_traces): Allow copying of blocks within
723 single partition.
724
725 2017-07-20 Richard Biener <rguenther@suse.de>
726
727 * gimple.h (gimple_phi_result): Add gphi * overload.
728 (gimple_phi_result_ptr): Likewise.
729 (gimple_phi_arg): Likewise. Adjust index assert to only
730 allow actual argument accesses rather than all slots available
731 by capacity.
732 (gimple_phi_arg_def): Add gphi * overload.
733 * tree-phinodes.c (make_phi_node): Initialize only actual
734 arguments.
735 (resize_phi_node): Clear memory not covered by old node,
736 do not initialize excess argument slots.
737 (reserve_phi_args_for_new_edge): Initialize new argument slot
738 completely.
739
740 2017-07-20 Bin Cheng <bin.cheng@arm.com>
741
742 PR tree-optimization/81388
743 Revert r238585:
744 2016-07-21 Bin Cheng <bin.cheng@arm.com>
745
746 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
747 by removing computation of may_be_zero.
748
749 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
750 Tom de Vries <tom@codesourcery.com>
751
752 PR middle-end/81030
753 * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
754 when gimple level profile disagrees with what RTL expander did.
755
756 2017-07-20 Richard Biener <rguenther@suse.de>
757
758 PR tree-optimization/61171
759 * tree-vectorizer.h (slp_instance): Add reduc_phis member.
760 (vect_analyze_stmt): Add slp instance parameter.
761 (vectorizable_reduction): Likewise.
762 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
763 (vect_is_simple_reduction): Deal with chains not detected
764 as SLP reduction chain, specifically not properly associated
765 chains containing a mix of plus/minus.
766 (get_reduction_op): Remove.
767 (get_initial_defs_for_reduction): Simplify, pass in whether
768 this is a reduction chain, pass in the SLP node for the PHIs.
769 (vect_create_epilog_for_reduction): Get the SLP instance as
770 arg and adjust.
771 (vectorizable_reduction): Get the SLP instance as arg.
772 During analysis remember the SLP node with the PHIs in the
773 instance. Simplify getting at the vectorized reduction PHIs.
774 * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
775 through SLP instance.
776 (vect_slp_analyze_operations): Likewise.
777 * tree-vect-stms.c (vect_analyze_stmt): Likewise.
778 (vect_transform_stmt): Likewise.
779
780 2017-07-20 Tom de Vries <tom@codesourcery.com>
781
782 PR tree-optimization/81489
783 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
784 read of phi arg location to before loop that modifies phi.
785
786 2017-07-20 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
787
788 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
789 New pattern.
790
791 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
792
793 PR middle-end/81331
794 * except.c (execute): Fix ordering issue.
795
796 2018-07-19 Segher Boessenkool <segher@kernel.crashing.org>
797
798 PR rtl-optimization/81423
799 * combine.c (make_compound_operation_int): Don't try to optimize
800 the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
801
802 2017-07-19 Segher Boessenkool <segher@kernel.crashing.org>
803
804 PR rtl-optimization/81423
805 * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
806 with a constant that is -1 in the truncated to mode.
807
808 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
809
810 * predict.c (propagate_unlikely_bbs_forward): Break out from ...
811 (determine_unlikely_bbs): ... here.
812 * predict.h (propagate_unlikely_bbs_forward): Declare.
813 * cfgexpand.c (pass_expand::execute): Use it.
814 * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
815 unlikely edges.
816 (find_rarely_executed_basic_blocks_and_crossing_edges): Use
817 propagate_unlikely_bbs_forward.
818
819 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
820
821 PR middle-end/81331
822 * except.c (maybe_add_nop_after_section_switch): New function.
823 (execute): Use it.
824
825 2017-07-19 Tom de Vries <tom@codesourcery.com>
826
827 * gimple.h (gimple_phi_set_arg): Make assert more strict.
828
829 2017-07-19 Tom de Vries <tom@codesourcery.com>
830
831 * gimple.h (gimple_phi_arg): Make assert more strict.
832
833 2017-07-19 Steven Munroe <munroesj@gcc.gnu.org>
834
835 * config.gcc (powerpc*-*-*): Add mmintrin.h.
836 * config/rs6000/mmintrin.h: New file.
837 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
838
839 2017-07-19 Jakub Jelinek <jakub@redhat.com>
840
841 PR tree-optimization/81346
842 * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
843
844 2017-07-19 Tom de Vries <tom@codesourcery.com>
845
846 * config/nvptx/nvptx.md (VECIM): Add V2DI.
847
848 2017-07-19 Tom de Vries <tom@codesourcery.com>
849
850 * config/nvptx/nvptx-modes.def: Add V2DImode.
851 * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
852 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
853 (nvptx_output_mov_insn): Handle lack of mov.b128.
854 (nvptx_print_operand): Handle 'H' and 'L' codes.
855 (nvptx_vector_mode_supported): Allow V2DImode.
856 (nvptx_preferred_simd_mode): New function.
857 (nvptx_data_alignment): New function.
858 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
859 nvptx_preferred_simd_mode.
860 * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
861 64 to 128 bits.
862 (DATA_ALIGNMENT): Define. Set to nvptx_data_alignment.
863
864 2017-07-19 Tom de Vries <tom@codesourcery.com>
865
866 * config/nvptx/nvptx-modes.def: New file. Add V2SImode.
867 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
868 (nvptx_vector_mode_supported): New function. Allow V2SImode.
869 (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
870 * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
871 (mov<VECIM>_insn): New define_insn.
872 (define_expand "mov<VECIM>): New define_expand.
873
874 2017-07-19 Tom de Vries <tom@codesourcery.com>
875
876 * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
877
878 2017-07-19 Jakub Jelinek <jakub@redhat.com>
879
880 PR tree-optimization/81346
881 * fold-const.h (fold_div_compare, range_check_type): Declare.
882 * fold-const.c (range_check_type): New function.
883 (build_range_check): Use range_check_type.
884 (fold_div_compare): No longer static, rewritten into
885 a match.pd helper function.
886 (fold_comparison): Don't call fold_div_compare here.
887 * match.pd (X / C1 op C2): New optimization using fold_div_compare
888 as helper function.
889
890 2017-07-19 Nathan Sidwell <nathan@acm.org>
891
892 * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
893 (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
894 * tree.c (find_decls_types_r, verify_type): Use
895 TYPE_{MIN,MAX}_VALUE_RAW.
896 * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
897 (hash_tree): Likewise.
898 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
899 Likewise.
900 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
901 Likewise.
902
903 2017-07-18 Tom de Vries <tom@codesourcery.com>
904
905 PR middle-end/81464
906 * omp-expand.c (expand_omp_for_static_chunk): Handle
907 equal-argument loop exit phi.
908
909 2017-07-18 Uros Bizjak <ubizjak@gmail.com>
910
911 PR target/81471
912 * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
913 (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
914 operand 2 predicate.
915 (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
916 operand 2 predicate.
917 (ror,rol -> rorx splitters): Use const_int_operand as
918 operand 2 predicate.
919
920 2017-06-18 Richard Biener <rguenther@suse.de>
921
922 PR tree-optimization/81410
923 * tree-vect-stmts.c (vectorizable_load): Properly adjust for
924 the gap in the ! slp_perm SLP case after each group.
925
926 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
927
928 PR middle-end/81463
929 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
930 again.
931
932 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
933
934 PR middle-end/81462
935 * predict.c (set_even_probabilities): Cleanup; do not affect
936 probabilities that are already known.
937 (combine_predictions_for_bb): Call even when count is set.
938
939 2017-07-18 Nathan Sidwell <nathan@acm.org>
940
941 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
942 TYPE_MAX_VALUE.
943
944 2017-07-18 Bin Cheng <bin.cheng@arm.com>
945
946 PR target/81408
947 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
948 optimization for loop niter analysis.
949
950 2017-07-18 Georg-Johann Lay <avr@gjlay.de>
951
952 PR target/81473
953 * config/avr/avr.c (avr_optimize_casesi): Don't use
954 INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
955
956 2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
957
958 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
959 body_cost_vec from _vect_peel_extended_info.
960 (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
961 (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
962 npeel.
963
964 2017-07-18 Bin Cheng <bin.cheng@arm.com>
965
966 * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
967
968 2017-07-18 Richard Biener <rguenther@suse.de>
969
970 PR tree-optimization/80620
971 PR tree-optimization/81403
972 * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
973 info when re-using a VN table entry.
974
975 2017-07-18 Richard Biener <rguenther@suse.de>
976
977 PR tree-optimization/81418
978 * tree-vect-loop.c (vectorizable_reduction): Properly compute
979 vectype_in. Verify that with lane-reducing reduction operations
980 we have a single def-use cycle.
981
982 2017-07-17 Carl Love <cel@us.ibm.com>
983
984 Revert commit r249424 2017-06-20 Carl Love <cel@us.ibm.com>
985
986 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
987 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
988 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
989 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
990 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
991 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
992 VMULOSW): New enum "unspec" values.
993 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
994 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
995 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
996 altivec_vmulosw): New patterns.
997 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
998 VMULOSW): Add definitions.
999 2017-07-17 Uros Bizjak <ubizjak@gmail.com>
1000
1001 * config/alpha/alpha.c: Include predict.h.
1002
1003 2017-07-17 Yury Gribov <tetra2005@gmail.com>
1004
1005 * tree-vrp.c (compare_assert_loc): Fix comparison function
1006 to return predictable results.
1007
1008 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
1009
1010 * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
1011 option.
1012 (subdi3): Likewise.
1013 * config/arc/arc.opt (mexpand-adddi): Deprecate it.
1014 * doc/invoke.texi (mexpand-adddi): Update text.
1015
1016 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
1017
1018 * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
1019 that also clobbers the CC register. The old expand code is moved
1020 to ...
1021 (*arc_clzsi2): ... here.
1022 (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
1023 the CC register. The old expand code is moved to ...
1024 (arc_ctzsi2): ... here.
1025
1026 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
1027
1028 * config/arc/arc.opt (mindexed-loads): Use initial value
1029 TARGET_INDEXED_LOADS_DEFAULT.
1030 (mauto-modify-reg): Use initial value
1031 TARGET_AUTO_MODIFY_REG_DEFAULT.
1032 * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
1033 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
1034 * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
1035 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
1036
1037 2017-07-17 Martin Liska <mliska@suse.cz>
1038
1039 PR sanitizer/81302
1040 * opts.c (finish_options): Do not allow -fgnu-tm
1041 w/ -fsanitize={kernel-,}address. Say sorry.
1042
1043 2017-07-17 Bin Cheng <bin.cheng@arm.com>
1044
1045 PR target/81369
1046 * tree-loop-distribution.c (classify_partition): Only assert on
1047 numer of iterations.
1048 (merge_dep_scc_partitions): Delete prameter. Update function call.
1049 (distribute_loop): Remove code handling loop with unknown niters.
1050 (pass_loop_distribution::execute): Skip loop with unknown niters.
1051
1052 2017-07-17 Bin Cheng <bin.cheng@arm.com>
1053
1054 PR target/81369
1055 * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
1056 function sort_partitions_by_post_order.
1057
1058 2017-07-17 Bin Cheng <bin.cheng@arm.com>
1059
1060 PR tree-optimization/81374
1061 * tree-loop-distribution.c (pass_loop_distribution::execute): Record
1062 the max index of basic blocks, rather than number of basic blocks.
1063
1064 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
1065
1066 * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
1067 proto.
1068 (arc_legitimate_pic_operand_p): Likewise.
1069 * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
1070 function.
1071 (arc_needs_pcl_p): Likewise.
1072 (arc_legitimate_pc_offset_p): Likewise.
1073 (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
1074 function is also used in constrains.md.
1075 (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
1076 validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
1077 PLUS. Only return true/false in known cases, otherwise assert.
1078 (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
1079 is already called in arc_legitimate_constant_p.
1080 * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
1081 pic addresses.
1082 (LEGITIMATE_PIC_OPERAND_P): Use
1083 arc_raw_symbolic_reference_mentioned_p function.
1084 * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
1085 function.
1086 (Cal): Likewise.
1087 (C32): Likewise.
1088
1089 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
1090 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
1093 (arc_return_address_register): New function.
1094 * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
1095 (arc_handle_fndecl_attribute): Add naked attribute.
1096 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1097 (TARGET_WARN_FUNC_RETURN): Likewise.
1098 (arc_allocate_stack_slots_for_args): New function.
1099 (arc_warn_func_return): Likewise.
1100 (machine_function): Change type fn_type.
1101 (arc_compute_function_type): Consider new naked function type,
1102 change function return type.
1103 (arc_must_save_register): Adapt to handle new
1104 arc_compute_function_type's return type.
1105 (arc_expand_prologue): Likewise.
1106 (arc_expand_epilogue): Likewise.
1107 (arc_return_address_regs): Delete.
1108 (arc_return_address_register): New function.
1109 (arc_epilogue_uses): Use above function.
1110 * config/arc/arc.h (arc_return_address_regs): Delete prototype.
1111 (arc_function_type): Change encoding, add naked type.
1112 (ARC_INTERRUPT_P): Change to handle the new encoding.
1113 (ARC_FAST_INTERRUPT_P): Likewise.
1114 (ARC_NORMAL_P): Define.
1115 (ARC_NAKED_P): Likewise.
1116 (arc_compute_function_type): Delete prototype.
1117 * config/arc/arc.md (in_ret_delay_slot): Use
1118 arc_return_address_register function.
1119 (simple_return): Likewise.
1120 (p_return_i): Likewise.
1121
1122 2017-07-17 Jakub Jelinek <jakub@redhat.com>
1123
1124 PR tree-optimization/81428
1125 * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
1126 can't be built for those types.
1127
1128 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
1129
1130 Remove stuff dead since r239246.
1131
1132 * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
1133 * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
1134 (avr_inform_devices): Remove dead stuff.
1135
1136 2017-07-17 Tamar Christina <tamar.christina@arm.com>
1137
1138 * config/arm/arm_neon.h: Fix softp typo.
1139
1140 2017-07-17 Jakub Jelinek <jakub@redhat.com>
1141
1142 PR tree-optimization/81365
1143 * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
1144 aggregate moves onto bb predecessor edges, make sure there are no
1145 loads that could alias the lhs in between the start of bb and the
1146 loads from *phi.
1147
1148 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
1149
1150 PR 80929
1151 * config/avr/avr.c (avr_mul_highpart_cost): New static function.
1152 (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
1153 [LSHIFTRT, outer_code = TRUNCATE]: Same.
1154
1155 2017-07-17 Jakub Jelinek <jakub@redhat.com>
1156
1157 PR tree-optimization/81396
1158 * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
1159 (init_symbolic_number): Initialize it to 1.
1160 (perform_symbolic_merge): Add n_ops from both operands into the new
1161 n_ops.
1162 (find_bswap_or_nop): Don't consider n->n == cmpnop computations
1163 without base_addr as useless if they need more than one operation.
1164 (bswap_replace): Handle !bswap case for NULL base_addr.
1165
1166 2017-07-17 Tom de Vries <tom@codesourcery.com>
1167
1168 PR target/81069
1169 * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
1170 as possible.
1171
1172 2017-07-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1173
1174 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
1175 conditional builtin define __FIX_LEON3FT_B2BST.
1176
1177 2017-07-17 Daniel Cederman <cederman@gaisler.com>
1178
1179 * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
1180 MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
1181 with -mfix-ut700.
1182
1183 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
1184
1185 PR rtl-optimization/81424
1186 * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
1187 to remove potential trapping from operands if -fnon-call-exceptions.
1188
1189 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
1190
1191 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
1192 profile_proability for scalling.
1193 * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
1194
1195 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
1196
1197 * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
1198
1199 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
1200
1201 * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
1202 fixpoint arithmetics.
1203
1204 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
1205
1206 * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
1207 fixpoint arithmetics.
1208
1209 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
1210
1211 * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
1212 fixpoint arithmetics.
1213
1214 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
1215
1216 * profile-count.h (profile_probability::from_reg_br_prob_note,
1217 profile_probability::to_reg_br_prob_note): New functions.
1218 * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
1219 * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
1220 * predict.c (probability_reliable_p): Update.
1221 (edge_probability_reliable_p): Update.
1222 (br_prob_note_reliable_p): Update.
1223 (invert_br_probabilities): Update.
1224 (add_reg_br_prob_note): New function.
1225 (combine_predictions_for_insn): Update.
1226 * asan.c (asan_clear_shadow): Update.
1227 * cfgbuild.c (compute_outgoing_frequencies): Update.
1228 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
1229 (update_br_prob_note): Update.
1230 (rtl_verify_edges): Update.
1231 (purge_dead_edges): Update.
1232 (fixup_reorder_chain): Update.
1233 * emit-rtl.c (try_split): Update.
1234 * ifcvt.c (cond_exec_process_insns): Update.
1235 (cond_exec_process_if_block): Update.
1236 (dead_or_predicable): Update.
1237 * internal-fn.c (expand_addsub_overflow): Update.
1238 (expand_neg_overflow): Update.
1239 (expand_mul_overflow): Update.
1240 * loop-doloop.c (doloop_modify): Update.
1241 * loop-unroll.c (compare_and_jump_seq): Update.
1242 * optabs.c (emit_cmp_and_jump_insn_1): Update.
1243 * predict.h: Update.
1244 * reorg.c (mostly_true_jump): Update.
1245 * rtl.h: Update.
1246 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
1247 * config/alpha/alpha.c (emit_unlikely_jump): Update.
1248 * config/arc/arc.c: (emit_unlikely_jump): Update.
1249 * config/arm/arm.c: (emit_unlikely_jump): Update.
1250 * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
1251 * config/frv/frv.c (frv_print_operand_jump_hint): Update.
1252 * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
1253 (ix86_print_operand): Update.
1254 (ix86_split_fp_branch): Update.
1255 (predict_jump): Update.
1256 * config/ia64/ia64.c (ia64_print_operand): Update.
1257 * config/mmix/mmix.c (mmix_print_operand): Update.
1258 * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
1259 (rs6000_expand_split_stack_prologue): Update.
1260 * config/rs6000/rs6000.c: Update.
1261 * config/s390/s390.c (s390_expand_vec_strlen): Update.
1262 (s390_expand_vec_movstr): Update.
1263 (s390_expand_cs_tdsi): Update.
1264 (s390_expand_split_stack_prologue): Update.
1265 * config/sh/sh.c (sh_print_operand): Update.
1266 (expand_cbranchsi4): Update.
1267 (expand_cbranchdi4): Update.
1268 * config/sparc/sparc.c (output_v9branch): Update.
1269 * config/spu/spu.c (get_branch_target): Update.
1270 (ea_load_store_inline): Update.
1271 * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
1272 * config/tilepro/tilepro.c: Update.
1273
1274 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
1275
1276 * gimplify.c (mostly_copy_tree_r): Revert latest change.
1277 (gimplify_save_expr): Likewise.
1278
1279 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
1280
1281 * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
1282
1283 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
1284
1285 * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
1286 TV_IPA_FNSUMMARY.
1287 * timevar.def (TV_IPA_FNSUMMARY): Define.
1288
1289 2017-07-16 Daniel Cederman <cederman@gaisler.com>
1290
1291 * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
1292 to back store errata sensitive sequence from being generated.
1293 (sqrtdf2_fix): Likewise.
1294
1295 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
1296
1297 * tree-ssa-threadupdate.c (compute_path_counts,
1298 update_joiner_offpath_counts): Use profile_probability.
1299
1300 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1301
1302 Revert:
1303 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1304
1305 * config/arm/arm-c.c (arm_cpu_builtins): Define
1306 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
1307
1308 2017-07-14 Kelvin Nilsen <kelvin@gcc.gnu.org>
1309
1310 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1311 array entries to represent __ieee128 versions of the
1312 scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
1313 scalar_extract_sig, and scalar_insert_exp built-in functions.
1314 (altivec_resolve_overloaded_builtin): Add special case handling
1315 for the __builtin_scalar_insert_exp function, as represented by
1316 the P9V_BUILTIN_VEC_VSIEDP constant.
1317 * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
1318 exponent support for __ieee128 argument.
1319 (VSESQP): Add scalar extract signature support for __ieee128
1320 argument.
1321 (VSTDCNQP): Add scalar test negative support for __ieee128
1322 argument.
1323 (VSIEQP): Add scalar insert exponent support for __int128 argument
1324 with __ieee128 result.
1325 (VSIEQPF): Add scalar insert exponent support for __ieee128
1326 argument with __ieee128 result.
1327 (VSTDCQP): Add scalar test data class support for __ieee128
1328 argument.
1329 (VSTDCNQP): Add overload support for scalar test negative with
1330 __ieee128 argument.
1331 (VSTDCQP): Add overload support for scalar test data class
1332 __ieee128 argument.
1333 * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
1334 UNSPEC_VSX_SXSIGDP.
1335 (UNSPEC_VSX_SIEXPQP): New constant.
1336 (xsxexpqp): New insn for VSX scalar extract exponent quad
1337 precision.
1338 (xsxsigqp): New insn for VSX scalar extract significand quad
1339 precision.
1340 (xsiexpqpf): New insn for VSX scalar insert exponent quad
1341 precision with floating point argument.
1342 (xststdcqp): New expand for VSX scalar test data class quad
1343 precision.
1344 (xststdcnegqp): New expand for VSX scalar test negative quad
1345 precision.
1346 (xststdcqp): New insn to match expansions for VSX scalar test data
1347 class quad precision and VSX scalar test negative quad precision.
1348 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
1349 special case operand checking to enforce that second operand of
1350 VSX scalar test data class with quad precision argument is a 7-bit
1351 unsigned literal.
1352 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
1353 prototypes and descriptions of __ieee128 versions of
1354 scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
1355 scalar_test_data_class, and scalar_test_neg built-in functions.
1356
1357 2016-07-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1358
1359 PR tree-optimization/81162
1360 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
1361 replace a negate with an add.
1362
1363 2017-07-14 James Greenhalgh <james.greenhalgh@arm.com>
1364
1365 * doc/invoke.texi (arm/-mcpu): Document +crypto.
1366
1367 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1368
1369 * config/arm/arm-c.c (arm_cpu_builtins): Define
1370 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
1371
1372 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1373
1374 * config/arm/arm-cpus.in (cortex-r52): Add new entry.
1375 (armv8-r): Set ARM Cortex-R52 as default CPU.
1376 * config/arm/arm-tables.opt: Regenerate.
1377 * config/arm/arm-tune.md: Regenerate.
1378 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
1379 Cortex-R52.
1380 * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
1381 extension for -mcpu=cortex-r52.
1382
1383 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1384
1385 * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
1386 (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
1387 * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
1388 (fp-armv8): Define it as FP_ARMv8 only.
1389 config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
1390 (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
1391 TARGET_FPU_ARMV8.
1392 config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
1393 TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
1394 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
1395 first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
1396 than TARGET_FPU_ARMV8.
1397 * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
1398 __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
1399 * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
1400 TARGET_FPU_ARMV8.
1401 * config/arm/neon.md (neon_vrint): Likewise.
1402 (neon_vcvt): Likewise.
1403 (neon_<fmaxmin_op><mode>): Likewise.
1404 (<fmaxmin><mode>3): Likewise.
1405 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
1406 * config/arm/predicates.md (arm_cond_move_operator): Check against
1407 TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
1408
1409 2017-07-14 Jackson Woodruff <jackson.woodruff@arm.com>
1410
1411 * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
1412 to top of function.
1413
1414 2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1415
1416 * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
1417 loop in comment with memset.
1418
1419 2017-07-14 Martin Liska <mliska@suse.cz>
1420
1421 * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
1422 * dwarf2out.c (is_java): Remove the function.
1423 (output_pubname): Remove usage of the function.
1424 (lower_bound_default): Remove usage of DW_LANG_Java.
1425 (gen_compile_unit_die): Likewise.
1426 * gcc.c: Remove compiler defaults for .java and .zip files.
1427 * gimple-expr.c (remove_suffix): Change as there's no longer
1428 extension than 4-letter one.
1429 * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
1430 (gimplify_save_expr): Likewise.
1431 * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
1432 as it's possible even for other languages than Java.
1433 * langhooks.h (struct lang_hooks): Remove Java from a comment.
1434 * lto-opts.c (lto_write_options): Remove reference to Java.
1435 * opts.c (strip_off_ending): Update file extension handling.
1436 * tree-cfg.c (verify_gimple_call): Remove comment with Java.
1437 * tree-eh.c (lower_resx): Likewise.
1438 * tree.c (free_lang_data_in_type): Remove dead code.
1439 (find_decls_types_r): Likewise.
1440 (build_common_builtin_nodes): Remove Java from a comment.
1441 (verify_type): Remove dead code.
1442 * varasm.c (assemble_external): Remove Java from a comment.
1443
1444 2017-07-14 Martin Liska <mliska@suse.cz>
1445
1446 * opts.c (finish_options): Add quotes.
1447 (common_handle_option): Likewise.
1448
1449 2017-07-14 Martin Liska <mliska@suse.cz>
1450
1451 * dbxout.c (get_lang_number): Do not handle GNU Pascal.
1452 * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
1453 Remove N_SO_PASCAL.
1454 * dwarf2out.c (lower_bound_default): Do not handle
1455 DW_LANG_Pascal83.
1456 (gen_compile_unit_die): Likewise.
1457 * gcc.c: Remove default extension binding for GNU Pascal.
1458 * stmt.c: Remove Pascal language from a comment.
1459 * xcoffout.c: Likewise.
1460
1461 2017-07-13 David Malcolm <dmalcolm@redhat.com>
1462
1463 PR c/81405
1464 * diagnostic-show-locus.c (fixit_cmp): New function.
1465 (layout::layout): Sort m_fixit_hints.
1466 (column_range::column_range): Assert that the values are valid.
1467 (struct char_span): New struct.
1468 (correction::overwrite): New method.
1469 (struct source_line): New struct.
1470 (line_corrections::add_hint): Add assertions. Reimplement memcpy
1471 calls in terms of classes source_line and char_span, and
1472 correction::overwrite.
1473 (selftest::test_overlapped_fixit_printing_2): New function.
1474 (selftest::diagnostic_show_locus_c_tests): Call it.
1475
1476 2017-07-13 Will Schmidt <will_schmidt@vnet.ibm.com>
1477
1478 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
1479 early if there is no lhs.
1480
1481 2017-07-13 Martin Liska <mliska@suse.cz>
1482
1483 * dwarf2out.c (gen_pointer_type_die): Remove dead code.
1484 (gen_reference_type_die): Likewise.
1485 * stor-layout.c: Remove Pascal-related comment.
1486
1487 2017-07-13 Martin Liska <mliska@suse.cz>
1488
1489 * opts.c (finish_options): Add quotes to error messages.
1490 (parse_sanitizer_options): Likewise.
1491
1492 2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1493
1494 * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
1495
1496 2017-07-13 Richard Earnshaw <rearnsha@arm.com>
1497
1498 * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
1499
1500 2017-07-13 Maxim Ostapenko <m.ostapenko@samsung.com>
1501
1502 * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
1503 during expansion.
1504 * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
1505
1506 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1507
1508 PR target/81193
1509 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
1510 provides the hardware capability bits, define the macro
1511 __BUILTIN_CPU_SUPPORTS__.
1512 * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
1513 if GLIBC does not provide the hardware capability bits. Add a
1514 gcc_unreachable call if the built-in cpu function is neither
1515 __builtin_cpu_is nor __builtin_cpu_supports.
1516 (rs6000_get_function_versions_dispatcher): Change the warning
1517 that an old GLIBC is used which does not export the capability
1518 bits to be an error.
1519 * doc/extend.texi (target_clones attribute): Document the
1520 restriction that GLIBC 2.23 or newer is needed on the PowerPC.
1521 (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
1522 needed by __builtin_cpu_is and __builtin_cpu_supports. Document
1523 the macros defined by GCC if the newer GLIBC is available.
1524
1525 2017-07-12 Jeff Law <law@redhat.com>
1526
1527 * config/riscv/riscv.c: Remove unnecessary includes. Reorder
1528 remaining includes slightly.
1529 * config/riscv/riscv-builtins.c: Include profile-count.h.
1530
1531 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
1532
1533 PR target/79883
1534 * config/avr/avr.c (avr_set_current_function): In diagnostic
1535 messages: Quote keywords and (parts of) identifiers.
1536 [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
1537 "INTERUPT".
1538
1539 2017-07-12 Carl Love <cel@us.ibm.com>
1540
1541 * config/rs6000/rs6000-c.c: Add support for built-in functions
1542 vector bool char vec_revb (vector bool char);
1543 vector bool short vec_revb (vector short char);
1544 vector bool int vec_revb (vector bool int);
1545 vector bool long long vec_revb (vector bool long long);
1546 * doc/extend.texi: Update the built-in documentation file for the
1547 new built-in functions.
1548
1549 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1550
1551 * config/s390/s390.md: Remove movcc splitter.
1552
1553 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1554
1555 * config/s390/s390.c (s390_rtx_costs): Return proper costs for
1556 load/store on condition.
1557
1558 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
1559
1560 PR target/81407
1561 * config/avr/avr.c (avr_encode_section_info)
1562 [progmem && !TREE_READONLY]: Error if progmem object needs
1563 constructing.
1564
1565 2017-07-11 Michael Collison <michael.collison@arm.com>
1566
1567 * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
1568 New pattern.
1569
1570 2017-07-11 Carl Love <cel@us.ibm.com>
1571
1572 * config/rs6000/rs6000-c.c: Add support for builtins
1573 vector unsigned int vec_parity_lsbb (vector signed int);
1574 vector unsigned int vec_parity_lsbb (vector unsigned int);
1575 vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
1576 vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
1577 vector unsigned long long vec_parity_lsbb (vector signed long long);
1578 vector unsigned long long vec_parity_lsbb (vector unsigned long long);
1579 * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
1580 * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
1581 * doc/extend.texi: Update the built-in documentation file for the
1582 new built-in functions.
1583
1584 2017-07-11 David Malcolm <dmalcolm@redhat.com>
1585
1586 * diagnostic-show-locus.c: Include "gcc-rich-location.h".
1587 (layout::m_primary_loc): New field.
1588 (layout::layout): Initialize new field. Move location filtering
1589 logic from here to...
1590 (layout::maybe_add_location_range): ...this new method. Add
1591 support for filtering to just the lines already specified by other
1592 locations.
1593 (layout::will_show_line_p): New method.
1594 (gcc_rich_location::add_location_if_nearby): New method.
1595 (selftest::test_add_location_if_nearby): New test function.
1596 (selftest::diagnostic_show_locus_c_tests): Call it.
1597 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
1598 New method.
1599
1600 2017-07-11 Tom de Vries <tom@codesourcery.com>
1601
1602 * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
1603 (bb_first_real_insn): New function.
1604 (nvptx_single): Add extra initialization of broadcasted condition
1605 variables.
1606
1607 2017-07-11 Nathan Sidwell <nathan@acm.org>
1608
1609 * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
1610
1611 2017-07-11 Georg-Johann Lay <avr@gjlay.de>
1612
1613 * doc/extend.texi (AVR Function Attributes): Remove weblink to
1614 Binutils doc as TEXI will mess them up.
1615 * doc/invoke.texi (AVR Options): Same here.
1616
1617 2017-07-11 Daniel Cederman <cederman@gaisler.com>
1618
1619 * config/sparc/sparc.opt (mfix-ut700): New option.
1620 (mfix-gr712rc): Likewise.
1621 (sparc_fix_b2bst): New variable.
1622 * doc/invoke.texi (SPARC options): Document them.
1623 (ARM options): Fix warnings.
1624 * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
1625 instructions to prevent sequences that can trigger the store-store
1626 errata for certain LEON3FT processors.
1627 (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
1628 (sparc_option_override): Set sparc_fix_b2bst appropriately.
1629 * config/sparc/sparc.md (fix_b2bst): New attribute.
1630 (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
1631
1632 2017-07-10 Uros Bizjak <ubizjak@gmail.com>
1633
1634 PR target/81375
1635 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
1636 (rcpps): Ditto.
1637 (*rsqrtsf2_sse): Ditto.
1638 (rsqrtsf2): Ditto.
1639 (div<mode>3): Macroize insn from divdf3 and divsf3
1640 using MODEF mode iterator.
1641
1642 2017-07-10 Martin Sebor <msebor@redhat.com>
1643
1644 PR tree-optimization/80397
1645 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
1646 instead of testing for equality to INTEGER_TYPE.
1647
1648 2017-07-10 Vineet Gupta <vgupta@synopsys.com>
1649
1650 * config.gcc: Remove uclibc from arc target spec.
1651
1652 2017-07-10 Claudiu Zissulescu <claziss@synopsys.com>
1653
1654 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
1655
1656 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
1657
1658 PR lto/80838
1659 * lto-wrapper.c (remove_option): New function.
1660 (merge_and_complain): Merge PIC/PIE options more realistically.
1661
1662 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
1663
1664 Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
1665
1666 PR target/20296
1667 PR target/81268
1668 * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
1669 (HAVE_AS_AVR_MGCCISR_OPTION): If so, AC_DEFINE it.
1670 * config.in: Regenerate.
1671 * configure: Regenerate.
1672 * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
1673 * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
1674 * config/avr/avr.opt (-mgas-isr-prologues): New option and...
1675 (TARGET_GASISR_PROLOGUES): ...target mask.
1676 * common/config/avr/avr-common.c
1677 (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
1678 Set -mgas-isr-prologues.
1679 * config/avr/avr-passes.def (avr_pass_pre_proep): Add
1680 INSERT_PASS_BEFORE for it.
1681 * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
1682 * config/avr/avr.c (avr_option_override)
1683 [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
1684 (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
1685 (avr_attribute_table) <no_gccisr>: Add new function attribute.
1686 (avr_set_current_function) <is_no_gccisr>: Init machine field.
1687 (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
1688 and rtl_opt_pass.
1689 (make_avr_pass_pre_proep): New function.
1690 (emit_push_sfr) <treg>: Add argument to function and use it
1691 instead of TMP_REG.
1692 (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
1693 and set machine->gasisr.yes.
1694 (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
1695 (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
1696 __gcc_isr.n_pushed to .L__stack_usage.
1697 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
1698 (avr_asm_final_postscan_insn): ...this new static function.
1699 * config/avr/avr.h (machine_function)
1700 <is_no_gccisr, use_L__stack_usage>: New fields.
1701 <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
1702 * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
1703 (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
1704 (gasisr, *gasisr): New expander and insn.
1705 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1706 [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
1707 * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
1708
1709 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
1710
1711 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
1712 in quoted strings.
1713
1714 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
1715
1716 Move jump-tables out of .text again.
1717
1718 PR target/81075
1719 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
1720 (ASM_OUTPUT_ADDR_VEC): New function.
1721 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
1722 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
1723 INSN_ADDRESSes as asm comment.
1724 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
1725 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
1726 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
1727 * config/avr/avr.md (*tablejump): Adjust comment.
1728 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1729 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
1730 New detail.
1731 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
1732 (avr_output_addr_vec): New proto.
1733 (avr_log_t) <insn_addresses>: New field.
1734
1735 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
1736
1737 PR target/81313
1738 * config/i386/i386.c (ix86_function_arg_advance): Set
1739 outgoing_args_on_stack to true if there are outgoing arguments
1740 on stack.
1741 (ix86_function_arg): Likewise.
1742 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
1743 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
1744 * config/i386/i386.h (machine_function): Add
1745 outgoing_args_on_stack.
1746
1747 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
1748
1749 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
1750 supporting pthreds.
1751 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
1752
1753 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
1754
1755 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
1756 (REAL_H): Remove $(MACHMODE_H).
1757 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
1758 double-int.h.
1759 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
1760 $(MACHMODE_H) and double-int.h.
1761 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
1762 $(MACHMODE_H).
1763 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
1764 double-int.h.
1765
1766 2017-07-07 Andrew Pinski <apinski@cavium.com>
1767
1768 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
1769 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
1770
1771 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1772
1773 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
1774 Add warning if GCC was not configured to link against a GLIBC that
1775 exports the hardware capability bits.
1776 (make_resolver_func): Make resolver function private and not a
1777 COMDAT function. Create the name with clone_function_name instead
1778 of make_unique_name.
1779
1780 PR target/81348
1781 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
1782 correct operand in doing the split.
1783
1784 2017-07-07 Carl Love <cel@us.ibm.com>
1785
1786 * config/rs6000/rs6000-c: Add support for built-in function
1787 vector unsigned short vec_pack_to_short_fp32 (vector float,
1788 vector float).
1789 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
1790 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
1791 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
1792 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
1793 (convert_4f32_8i16): Add define_expand.
1794 * doc/extend.texi: Update the built-in documentation file for the
1795 new built-in function.
1796
1797 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1798
1799 * config/sparc/m8.md: New file.
1800 * config/sparc/sparc.md: Include m8.md.
1801
1802 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1803
1804 * config/sparc/sparc.opt: New option -mvis4b.
1805 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
1806 (sparc_option_override): Handle VIS4B.
1807 (enum sparc_builtins): Define
1808 SPARC_BUILTIN_DICTUNPACK{8,16,32},
1809 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
1810 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
1811 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
1812 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
1813 (check_constant_argument): New function.
1814 (sparc_vis_init_builtins): Define builtins
1815 __builtin_vis_dictunpack{8,16,32},
1816 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
1817 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
1818 __builtin_vis_fpcmpde{8,16,32}shl and
1819 __builtin_vis_fpcmpur{8,16,32}shl.
1820 (sparc_expand_builtin): Check that the constant operands to
1821 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
1822 constant and in range.
1823 * config/sparc/sparc-c.c (sparc_target_macros): Handle
1824 TARGET_VIS4B.
1825 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
1826 (SPARC_IMM5_P): Likewise.
1827 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
1828 (enabled): Handle vis4b.
1829 (UNSPEC_DICTUNPACK): New unspec.
1830 (UNSPEC_FPCMPSHL): Likewise.
1831 (UNSPEC_FPUCMPSHL): Likewise.
1832 (UNSPEC_FPCMPDESHL): Likewise.
1833 (UNSPEC_FPCMPURSHL): Likewise.
1834 (cpu_feature): New CPU feature `vis4b'.
1835 (dictunpack{8,16,32}): New insns.
1836 (FPCSMODE): New mode iterator.
1837 (fpcscond): New code iterator.
1838 (fpcsucond): Likewise.
1839 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
1840 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
1841 (fpcmpde{8,16,32}{si,di}shl): Likewise.
1842 (fpcmpur{8,16,32}{si,di}shl): Likewise.
1843 * config/sparc/constraints.md: Define constraints `q' for unsigned
1844 2-bit integer constants and `t' for unsigned 5-bit integer
1845 constants.
1846 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
1847 predicate.
1848 (imm5_operand_dictunpack16): Likewise.
1849 (imm5_operand_dictunpack32): Likewise.
1850 (imm2_operand): Likewise.
1851 * doc/invoke.texi (SPARC Options): Document -mvis4b.
1852 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1853 ditunpack* and fpcmp*shl builtins.
1854
1855 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1856
1857 * config.gcc: Handle m8 in --with-{cpu,tune} options.
1858 * config.in: Add HAVE_AS_SPARC6 define.
1859 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
1860 M8.
1861 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
1862 TARGET_CPU_m8.
1863 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
1864 (CPP_CPU_SPEC): Handle m8.
1865 (ASM_CPU_SPEC): Likewise.
1866 * config/sparc/sparc-opts.h (enum processor_type): Add
1867 PROCESSOR_M8.
1868 * config/sparc/sparc.c (m8_costs): New struct.
1869 (sparc_option_override): Handle TARGET_CPU_m8.
1870 (sparc32_initialize_trampoline): Likewise.
1871 (sparc64_initialize_trampoline): Likewise.
1872 (sparc_issue_rate): Likewise.
1873 (sparc_register_move_cost): Likewise.
1874 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
1875 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
1876 (ASM_CPU64_DEFAULT_SPEC): Likewise.
1877 (CPP_CPU_SPEC): Handle M8.
1878 (ASM_CPU_SPEC): Likewise.
1879 (AS_M8_FLAG): Define.
1880 * config/sparc/sparc.md: Add m8 to the cpu attribute.
1881 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
1882 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
1883 M8 instructions.
1884 * configure: Regenerate.
1885 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
1886 -mtune=m8.
1887
1888 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1889
1890 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
1891 subtypes.
1892 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
1893 ("*movdi_insn_sp32"): Do not set v3pipe.
1894 ("*movsi_insn"): Likewise.
1895 ("*movdi_insn_sp64"): Likewise.
1896 ("*movsf_insn"): Likewise.
1897 ("*movdf_insn_sp32"): Likewise.
1898 ("*movdf_insn_sp64"): Likewise.
1899 ("*zero_extendsidi2_insn_sp64"): Likewise.
1900 ("*sign_extendsidi2_insn"): Likewise.
1901 ("*mov<VM32:mode>_insn"): Likewise.
1902 ("*mov<VM64:mode>_insn_sp64"): Likewise.
1903 ("*mov<VM64:mode>_insn_sp32"): Likewise.
1904 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
1905 ("<vlop:code><VL:mode>3"): Likewise.
1906 ("*not_<vlop:code><VL:mode>3"): Likewise.
1907 ("*nand<VL:mode>_vis"): Likewise.
1908 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
1909 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
1910 ("one_cmpl<VL:mode>2"): Likewise.
1911 ("faligndata<VM64:mode>_vis"): Likewise.
1912 ("alignaddrsi_vis"): Likewise.
1913 ("alignaddrdi_vis"): Likweise.
1914 ("alignaddrlsi_vis"): Likewise.
1915 ("alignaddrldi_vis"): Likewise.
1916 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
1917 ("bmaskdi_vis"): Likewise.
1918 ("bmasksi_vis"): Likewise.
1919 ("bshuffle<VM64:mode>_vis"): Likewise.
1920 ("cmask8<P:mode>_vis"): Likewise.
1921 ("cmask16<P:mode>_vis"): Likewise.
1922 ("cmask32<P:mode>_vis"): Likewise.
1923 ("pdistn<P:mode>_vis"): Likewise.
1924 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
1925
1926 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1927
1928 * config/sparc/sparc.md ("subtype"): New insn attribute.
1929 ("*wrgsr_sp64"): Set insn subtype.
1930 ("*rdgsr_sp64"): Likewise.
1931 ("alignaddrsi_vis"): Likewise.
1932 ("alignaddrdi_vis"): Likewise.
1933 ("alignaddrlsi_vis"): Likewise.
1934 ("alignaddrldi_vis"): Likewise.
1935 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
1936 ("fexpand_vis"): Likewise.
1937 ("fpmerge_vis"): Likewise.
1938 ("faligndata<VM64:mode>_vis"): Likewise.
1939 ("bshuffle<VM64:mode>_vis"): Likewise.
1940 ("cmask8<P:mode>_vis"): Likewise.
1941 ("cmask16<P:mode>_vis"): Likewise.
1942 ("cmask32<P:mode>_vis"): Likewise.
1943 ("fchksm16_vis"): Likewise.
1944 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
1945 ("fmean16_vis"): Likewise.
1946 ("fp<plusminus_insn>64_vis"): Likewise.
1947 ("<plusminus_insn>v8qi3"): Likewise.
1948 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
1949 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
1950 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
1951 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
1952 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
1953 ("*movqi_insn"): Likewise.
1954 ("*movhi_insn"): Likewise.
1955 ("*movsi_insn"): Likewise.
1956 ("movsi_pic_gotdata_op"): Likewise.
1957 ("*movdi_insn_sp32"): Likewise.
1958 ("*movdi_insn_sp64"): Likewise.
1959 ("movdi_pic_gotdata_op"): Likewise.
1960 ("*movsf_insn"): Likewise.
1961 ("*movdf_insn_sp32"): Likewise.
1962 ("*movdf_insn_sp64"): Likewise.
1963 ("*zero_extendhisi2_insn"): Likewise.
1964 ("*zero_extendqihi2_insn"): Likewise.
1965 ("*zero_extendqisi2_insn"): Likewise.
1966 ("*zero_extendqidi2_insn"): Likewise.
1967 ("*zero_extendhidi2_insn"): Likewise.
1968 ("*zero_extendsidi2_insn_sp64"): Likewise.
1969 ("ldfsr"): Likewise.
1970 ("prefetch_64"): Likewise.
1971 ("prefetch_32"): Likewise.
1972 ("tie_ld32"): Likewise.
1973 ("tie_ld64"): Likewise.
1974 ("*tldo_ldub_sp32"): Likewise.
1975 ("*tldo_ldub1_sp32"): Likewise.
1976 ("*tldo_ldub2_sp32"): Likewise.
1977 ("*tldo_ldub_sp64"): Likewise.
1978 ("*tldo_ldub1_sp64"): Likewise.
1979 ("*tldo_ldub2_sp64"): Likewise.
1980 ("*tldo_ldub3_sp64"): Likewise.
1981 ("*tldo_lduh_sp32"): Likewise.
1982 ("*tldo_lduh1_sp32"): Likewise.
1983 ("*tldo_lduh_sp64"): Likewise.
1984 ("*tldo_lduh1_sp64"): Likewise.
1985 ("*tldo_lduh2_sp64"): Likewise.
1986 ("*tldo_lduw_sp32"): Likewise.
1987 ("*tldo_lduw_sp64"): Likewise.
1988 ("*tldo_lduw1_sp64"): Likewise.
1989 ("*tldo_ldx_sp64"): Likewise.
1990 ("*mov<VM32:mode>_insn"): Likewise.
1991 ("*mov<VM64:mode>_insn_sp64"): Likewise.
1992 ("*mov<VM64:mode>_insn_sp32"): Likewise.
1993
1994 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1995
1996 * config/sparc/sparc.md ("type"): New insn type viscmp.
1997 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
1998 viscmp.
1999 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
2000 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
2001 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
2002 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
2003 viscmp.
2004 ("n7_vis_logical_11cycle"): Likewise.
2005 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
2006 * config/sparc/niagara2.md ("niag3_vis": Likewise.
2007 * config/sparc/niagara.md ("niag_vis"): Likewise.
2008 * config/sparc/ultra3.md ("us3_fga"): Likewise.
2009 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
2010
2011 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2012
2013 * config/sparc/sparc.md: New instruction type `bmask'.
2014 (bmaskdi_vis): Use the `bmask' type.
2015 (bmasksi_vis): Likewise.
2016 * config/sparc/ultra3.md (us3_array): Likewise.
2017 * config/sparc/niagara7.md (n7_array): Likewise.
2018 * config/sparc/niagara4.md (n4_array): Likewise.
2019 * config/sparc/niagara2.md (niag2_vis): Likewise.
2020 (niag3_vis): Likewise.
2021 * config/sparc/niagara.md (niag_vis): Likewise.
2022
2023 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
2024
2025 * ipa-comdats.c: Remove optimize check from gate.
2026 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
2027 for functions not optimized.
2028 (ipa_fn_summary_read): Skip optimize check.
2029 (ipa_fn_summary_write): Likewise.
2030 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
2031 is optimized.
2032 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
2033 uninlinable.
2034 (can_inline_edge_p): Check flag_pcc_struct_return for match.
2035 (check_callers): Give up on caller which is not optimized.
2036 (inline_small_functions): Likewise.
2037 (ipa_inline): Do not give up when not optimizing.
2038 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
2039 away unoptimizes cdtors.
2040 (whole_program_function_and_variable_visibility): Do
2041 ipa_discover_readonly_nonaddressable_vars in LTO mode.
2042 * ipa.c (process_references): Do not check optimize.
2043 (symbol_table::remove_unreachable_nodes): Update optimize check.
2044 (set_writeonly_bit): Update optimize check.
2045 (pass_ipa_cdtor_merge::gate): Do not check optimize.
2046 (pass_ipa_single_use::gate): Remove.
2047
2048 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2049
2050 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
2051 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
2052 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
2053 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
2054 permute_load, permute_store, adjust_extract, adjust_splat,
2055 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
2056 replace_swap_with_copy, dump_swap_insn_table,
2057 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
2058 recombine_lvx_pattern, recombine_stvx_pattern,
2059 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
2060 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
2061 to file rs6000-p8swap.c.
2062 * config/rs6000/rs6000-p8swap.c: New file.
2063 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
2064 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
2065 and rs6000*-*-* targets.
2066
2067 2017-07-06 David Malcolm <dmalcolm@redhat.com>
2068
2069 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
2070
2071 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
2072
2073 * lto-wrapper.c (merge_and_complain): Do not merge
2074 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
2075 fsigned_zeros, ftrapping_math, fwrapv.
2076 (append_compiler_options): Do not track these options.
2077 (append_linker_options): Likewie
2078
2079 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
2080
2081 * cgraphunit.c (cgraph_node::finalize_function): When
2082 !flag_toplevel_reorde set no_reorder flag.
2083 (varpool_node::finalize_decl): Likewise.
2084 (symbol_table::compile): Drop no toplevel reorder path.
2085
2086 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
2087
2088 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
2089 edges; zero probability is not better than uninitialized.
2090
2091 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
2092
2093 * asan.h (asan_sanitize_allocas_p): Declare.
2094 * asan.c (asan_sanitize_allocas_p): New function.
2095 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
2096 (handle_builtin_alloca): Likewise.
2097 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
2098 if !asan_sanitize_allocas_p.
2099 * params.def (asan-instrument-allocas): Add new option.
2100 * params.h (ASAN_PROTECT_ALLOCAS): Define.
2101 * opts.c (common_handle_option): Disable allocas sanitization for
2102 KASan by default.
2103
2104 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
2105
2106 * asan.c: Include gimple-fold.h.
2107 (get_last_alloca_addr): New function.
2108 (handle_builtin_stackrestore): Likewise.
2109 (handle_builtin_alloca): Likewise.
2110 (asan_emit_allocas_unpoison): Likewise.
2111 (get_mem_refs_of_builtin_call): Add new parameter, remove const
2112 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
2113 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
2114 (instrument_builtin_call): Pass gimple iterator to
2115 get_mem_refs_of_builtin_call.
2116 (last_alloca_addr): New global.
2117 * asan.h (asan_emit_allocas_unpoison): Declare.
2118 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
2119 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
2120 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
2121 if function calls alloca.
2122 * gimple-fold.c (replace_call_with_value): Remove static keyword.
2123 * gimple-fold.h (replace_call_with_value): Declare.
2124 * internal-fn.c: Include asan.h.
2125 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
2126 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
2127
2128 2017-07-06 David Malcolm <dmalcolm@redhat.com>
2129
2130 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
2131 (C_SELFTEST_FLAGS): New.
2132 (CPP_SELFTEST_FLAGS): New.
2133 (SELFTEST_DEPS): New, from deps of s-selftest.
2134 (C_SELFTEST_DEPS): New, from deps of s-selftest.
2135 (CPP_SELFTEST_DEPS): New.
2136 (selftest): Add dependency on s-selftest-c++.
2137 (s-selftest): Rename to...
2138 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
2139 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
2140 than SELFTEST_FLAGS.
2141 (selftest-gdb): Rename to...
2142 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
2143 C_SELFTEST_FLAGS.
2144 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
2145 (selftest-valgrind): Rename to...
2146 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
2147 C_SELFTEST_FLAGS.
2148 (selftest-valgrind): Reintroduce as an alias for
2149 selftest-c-valgrind.
2150 (s-selftest-c++): New.
2151 (selftest-c++-gdb): New.
2152 (selftest-c++-valgrind): New.
2153
2154 2017-07-06 Olivier Hainque <hainque@adacore.com>
2155
2156 * gcc.c (process_command): When deciding if undefined variables
2157 should be ignored when processing specs, accept "gcc -v" as well.
2158
2159 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
2160
2161 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
2162 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
2163
2164 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2165
2166 * config/arm/arm-cpus.in (armv8-r): Add new entry.
2167 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
2168 * config/arm/arm-tables.opt: Regenerate.
2169 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
2170 enumerator.
2171 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
2172
2173 2017-07-06 Carl Love <cel@us.ibm.com>
2174
2175 * ChangeLog: Clean up from mid air collision
2176
2177 2017-07-06 Carl Love <cel@us.ibm.com>
2178
2179 * config/rs6000/rs6000-c.c: Add support for built-in functions
2180 vector signed int vec_subc (vector signed int, vector signed int);
2181 vector signed __int128 vec_subc (vector signed __int128,
2182 vector signed __int128);
2183 vector unsigned __int128 vec_subc (vector unsigned __int128,
2184 vector unsigned __int128);
2185 vector signed int vec_sube (vector signed int, vector signed int,
2186 vector signed int);
2187 vector unsigned int vec_sube (vector unsigned int,
2188 vector unsigned int,
2189 vector unsigned int);
2190 vector signed __int128 vec_sube (vector signed __int128,
2191 vector signed __int128,
2192 vector signed__int128);
2193 vector unsigned __int128 vec_sube (vector unsigned __int128,
2194 vector unsigned __int128,
2195 vector unsigned __int128);
2196 vector signed int vec_subec (vector signed int, vector signed int,
2197 vector signed int);
2198 vector unsigned int vec_subec (vector unsigned int,
2199 vector unsigned int,
2200 vector unsigned int);
2201 vector signed __int128 vec_subec (vector signed __int128,
2202 vector signed __int128,
2203 vector signed__int128);
2204 vector unsigned __int128 vec_subec (vector unsigned __int128,
2205 vector unsigned __int128,
2206 vector unsigned __int128);
2207 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
2208 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
2209 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
2210 BU_ALTIVEC_OVERLOAD_X definitions.
2211 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
2212 * doc/extend.texi: Update the built-in documentation file for the new
2213 built-in functions.
2214
2215 2017-07-06 David Malcolm <dmalcolm@redhat.com>
2216
2217 PR c++/79300
2218 * diagnostic-show-locus.c (layout::layout): Use start and finish
2219 spelling location for the start and finish of each range.
2220 * genmatch.c (linemap_client_expand_location_to_spelling_point):
2221 Add unused aspect param.
2222 * input.c (expand_location_1): Add "aspect" param, and use it
2223 to access the correct part of the location.
2224 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
2225 expand_location_1.
2226 (expand_location_to_spelling_point): Likewise.
2227 (linemap_client_expand_location_to_spelling_point): Add "aspect"
2228 param, and pass it to expand_location_1.
2229
2230 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
2231
2232 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
2233 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
2234 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
2235 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
2236 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
2237 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
2238 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
2239 _mm_maskz_getmant_ss): New intrinsics.
2240 (__builtin_ia32_getexpss128_mask): Changed to ...
2241 __builtin_ia32_getexpss128_round ... this.
2242 (__builtin_ia32_getexpsd128_mask): Changed to ...
2243 __builtin_ia32_getexpsd128_round ... this.
2244 * config/i386/i386-builtin-types.def
2245 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
2246 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
2247 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
2248 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
2249 __builtin_ia32_getmantss_mask_round): New builtins.
2250 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
2251 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
2252 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
2253 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
2254 * config/i386/sse.md
2255 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
2256 avx512f_sgetexp<mode><mask_scalar_name>
2257 <round_saeonly_scalar_name> ... this.
2258 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
2259 %0, %1, %2<round_saeonly_op3>}): Changed to ...
2260 vgetexp<ssescalarmodesuffix>
2261 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2262 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
2263 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
2264 avx512f_vgetmant<mode><mask_scalar_name>
2265 <round_saeonly_scalar_name> ... this.
2266 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
2267 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
2268 vgetmant<ssescalarmodesuffix>
2269 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
2270 %0<mask_scalar_operand4>, %1, %2
2271 <round_saeonly_scalar_mask_op4>, %3} ... this.
2272 * config/i386/subst.md (mask_scalar_operand4,
2273 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
2274 round_saeonly_scalar_nimm_predicate): New subst attributes.
2275
2276 2017-07-06 Julia Koval <julia.koval@intel.com>
2277
2278 * config/i386/i386.c (ix86_erase_embedded_rounding):
2279 Remove code for old rounding pattern.
2280
2281 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
2282
2283 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
2284
2285 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
2286
2287 * doc/sourcebuild.texi (Test Directives, Variants of
2288 dg-require-support): Add documentation for dg-require-stack-check.
2289
2290 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
2291
2292 * config/i386/subst.md (mask_scalar, round_scalar,
2293 round_saeonly_scalar): New meta-templates.
2294 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
2295 round_scalar_mask_operand3, round_scalar_mask_op3,
2296 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
2297 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
2298 round_saeonly_scalar_constraint,
2299 round_saeonly_scalar_prefix): New subst attribute.
2300 * config/i386/sse.md
2301 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
2302 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
2303 <round_scalar_name> ... this.
2304 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
2305 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
2306 <round_scalar_name> ... this.
2307 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
2308 <sse>_vm<code><mode>3<mask_scalar_name>
2309 <round_saeonly_scalar_name> ... this.
2310 (v<plusminus_mnemonic><ssescalarmodesuffix>
2311 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
2312 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
2313 v<plusminus_mnemonic><ssescalarmodesuffix>
2314 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2315 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
2316 (v<multdiv_mnemonic><ssescalarmodesuffix>
2317 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
2318 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
2319 v<multdiv_mnemonic><ssescalarmodesuffix>
2320 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2321 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
2322 (v<maxmin_float><ssescalarmodesuffix>
2323 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
2324 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
2325 v<maxmin_float><ssescalarmodesuffix>
2326 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
2327 %0<mask_scalar_operand3>, %1, %<iptr>2
2328 <round_saeonly_scalar_mask_op3>} ... this.
2329
2330 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
2331
2332 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
2333 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
2334
2335 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
2336 Alan Hayward <alan.hayward@arm.com>
2337 David Sherwood <david.sherwood@arm.com>
2338
2339 * combine.c (simplify_if_then_else): Remove "enum" before
2340 "machine_mode".
2341 * compare-elim.c (can_eliminate_compare): Likewise.
2342 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
2343 Likewise.
2344 (aarch64_lookup_simd_builtin_type): Likewise.
2345 (aarch64_simd_builtin_type): Likewise.
2346 (aarch64_init_simd_builtin_types): Likewise.
2347 (aarch64_simd_expand_args): Likewise.
2348 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
2349 Likewise.
2350 (aarch64_reverse_mask): Likewise.
2351 (aarch64_simd_emit_reg_reg_move): Likewise.
2352 (aarch64_gen_adjusted_ldpstp): Likewise.
2353 (aarch64_ccmp_mode_to_code): Likewise.
2354 (aarch64_operands_ok_for_ldpstp): Likewise.
2355 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2356 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
2357 Likewise.
2358 (aarch64_min_divisions_for_recip_mul): Likewise.
2359 (aarch64_reassociation_width): Likewise.
2360 (aarch64_get_condition_code_1): Likewise.
2361 (aarch64_simd_emit_reg_reg_move): Likewise.
2362 (aarch64_simd_attr_length_rglist): Likewise.
2363 (aarch64_reverse_mask): Likewise.
2364 (aarch64_operands_ok_for_ldpstp): Likewise.
2365 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2366 (aarch64_gen_adjusted_ldpstp): Likewise.
2367 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
2368 Likewise.
2369 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
2370 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
2371 (arm_lookup_simd_builtin_type): Likewise.
2372 (arm_simd_builtin_type): Likewise.
2373 (arm_init_simd_builtin_types): Likewise.
2374 (arm_expand_builtin_args): Likewise.
2375 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
2376 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
2377 (ft32_setup_incoming_varargs): Likewise.
2378 (ft32_function_arg): Likewise.
2379 (ft32_function_arg_advance): Likewise.
2380 (ft32_pass_by_reference): Likewise.
2381 (ft32_arg_partial_bytes): Likewise.
2382 (ft32_valid_pointer_mode): Likewise.
2383 (ft32_addr_space_pointer_mode): Likewise.
2384 (ft32_addr_space_legitimate_address_p): Likewise.
2385 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
2386 Likewise.
2387 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
2388 (ix86_emit_outlined_ms2sysv_restore): Likewise.
2389 (iamcu_alignment): Likewise.
2390 (canonicalize_vector_int_perm): Likewise.
2391 (ix86_noce_conversion_profitable_p): Likewise.
2392 (ix86_mpx_bound_mode): Likewise.
2393 (ix86_operands_ok_for_move_multiple): Likewise.
2394 * config/microblaze/microblaze-protos.h
2395 (microblaze_expand_conditional_branch_reg): Likewise.
2396 * config/microblaze/microblaze.c
2397 (microblaze_expand_conditional_branch_reg): Likewise.
2398 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
2399 Likewise.
2400 (rs6000_reassociation_width): Likewise.
2401 (rs6000_invalid_binary_op): Likewise.
2402 (fusion_p9_p): Likewise.
2403 (emit_fusion_p9_load): Likewise.
2404 (emit_fusion_p9_store): Likewise.
2405 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
2406 Likewise.
2407 (riscv_hard_regno_mode_ok_p): Likewise.
2408 (riscv_address_insns): Likewise.
2409 (riscv_split_symbol): Likewise.
2410 (riscv_legitimize_move): Likewise.
2411 (riscv_function_value): Likewise.
2412 (riscv_hard_regno_nregs): Likewise.
2413 (riscv_expand_builtin): Likewise.
2414 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
2415 (riscv_build_integer): Likewise.
2416 (riscv_split_integer): Likewise.
2417 (riscv_legitimate_constant_p): Likewise.
2418 (riscv_cannot_force_const_mem): Likewise.
2419 (riscv_regno_mode_ok_for_base_p): Likewise.
2420 (riscv_valid_base_register_p): Likewise.
2421 (riscv_valid_offset_p): Likewise.
2422 (riscv_valid_lo_sum_p): Likewise.
2423 (riscv_classify_address): Likewise.
2424 (riscv_legitimate_address_p): Likewise.
2425 (riscv_address_insns): Likewise.
2426 (riscv_load_store_insns): Likewise.
2427 (riscv_force_binary): Likewise.
2428 (riscv_split_symbol): Likewise.
2429 (riscv_force_address): Likewise.
2430 (riscv_legitimize_address): Likewise.
2431 (riscv_move_integer): Likewise.
2432 (riscv_legitimize_const_move): Likewise.
2433 (riscv_legitimize_move): Likewise.
2434 (riscv_address_cost): Likewise.
2435 (riscv_subword): Likewise.
2436 (riscv_output_move): Likewise.
2437 (riscv_canonicalize_int_order_test): Likewise.
2438 (riscv_emit_int_order_test): Likewise.
2439 (riscv_function_arg_boundary): Likewise.
2440 (riscv_pass_mode_in_fpr_p): Likewise.
2441 (riscv_pass_fpr_single): Likewise.
2442 (riscv_pass_fpr_pair): Likewise.
2443 (riscv_get_arg_info): Likewise.
2444 (riscv_function_arg): Likewise.
2445 (riscv_function_arg_advance): Likewise.
2446 (riscv_arg_partial_bytes): Likewise.
2447 (riscv_function_value): Likewise.
2448 (riscv_pass_by_reference): Likewise.
2449 (riscv_setup_incoming_varargs): Likewise.
2450 (riscv_print_operand): Likewise.
2451 (riscv_elf_select_rtx_section): Likewise.
2452 (riscv_save_restore_reg): Likewise.
2453 (riscv_for_each_saved_reg): Likewise.
2454 (riscv_register_move_cost): Likewise.
2455 (riscv_hard_regno_mode_ok_p): Likewise.
2456 (riscv_hard_regno_nregs): Likewise.
2457 (riscv_class_max_nregs): Likewise.
2458 (riscv_memory_move_cost): Likewise.
2459 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
2460 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
2461 (rl78_addr_space_address_mode): Likewise.
2462 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2463 Likewise.
2464 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
2465 (rs6000_reassociation_width): Likewise.
2466 (rs6000_invalid_binary_op): Likewise.
2467 (fusion_p9_p): Likewise.
2468 (emit_fusion_p9_load): Likewise.
2469 (emit_fusion_p9_store): Likewise.
2470 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
2471 (ok_for_simple_move_operands): Likewise.
2472 (ok_for_simple_move_strict_operands): Likewise.
2473 (ok_for_simple_arith_logic_operands): Likewise.
2474 (visium_legitimize_reload_address): Likewise.
2475 (visium_select_cc_mode): Likewise.
2476 (output_cbranch): Likewise.
2477 (visium_split_double_move): Likewise.
2478 (visium_expand_copysign): Likewise.
2479 (visium_expand_int_cstore): Likewise.
2480 (visium_expand_fp_cstore): Likewise.
2481 * config/visium/visium.c (visium_pass_by_reference): Likewise.
2482 (visium_function_arg): Likewise.
2483 (visium_function_arg_advance): Likewise.
2484 (visium_libcall_value): Likewise.
2485 (visium_setup_incoming_varargs): Likewise.
2486 (visium_legitimate_constant_p): Likewise.
2487 (visium_legitimate_address_p): Likewise.
2488 (visium_legitimize_address): Likewise.
2489 (visium_secondary_reload): Likewise.
2490 (visium_register_move_cost): Likewise.
2491 (visium_memory_move_cost): Likewise.
2492 (prepare_move_operands): Likewise.
2493 (ok_for_simple_move_operands): Likewise.
2494 (ok_for_simple_move_strict_operands): Likewise.
2495 (ok_for_simple_arith_logic_operands): Likewise.
2496 (visium_function_value_1): Likewise.
2497 (rtx_ok_for_offset_p): Likewise.
2498 (visium_legitimize_reload_address): Likewise.
2499 (visium_split_double_move): Likewise.
2500 (visium_expand_copysign): Likewise.
2501 (visium_expand_int_cstore): Likewise.
2502 (visium_expand_fp_cstore): Likewise.
2503 (visium_split_cstore): Likewise.
2504 (visium_select_cc_mode): Likewise.
2505 (visium_split_cbranch): Likewise.
2506 (output_cbranch): Likewise.
2507 (visium_print_operand_address): Likewise.
2508 * expmed.c (flip_storage_order): Likewise.
2509 * expmed.h (emit_cstore): Likewise.
2510 (flip_storage_order): Likewise.
2511 * genrecog.c (validate_pattern): Likewise.
2512 * hsa-gen.c (gen_hsa_addr): Likewise.
2513 * internal-fn.c (expand_arith_overflow): Likewise.
2514 * ira-color.c (allocno_copy_cost_saving): Likewise.
2515 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2516 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
2517 (process_invariant_for_inheritance): Likewise.
2518 * lra-eliminations.c (move_plus_up): Likewise.
2519 * omp-low.c (lower_oacc_reductions): Likewise.
2520 * simplify-rtx.c (simplify_subreg): Likewise.
2521 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
2522 (TARGET_CHKP_BOUND_MODE): Likewise..
2523 * targhooks.c (default_chkp_bound_mode): Likewise.
2524 (default_setup_incoming_vararg_bounds): Likewise.
2525 * targhooks.h (default_chkp_bound_mode): Likewise.
2526 (default_setup_incoming_vararg_bounds): Likewise.
2527 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
2528 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
2529 (have_whole_vector_shift): Likewise.
2530 * tree-vect-stmts.c (vectorizable_load): Likewise.
2531 * doc/tm.texi: Regenerate.
2532
2533 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
2534
2535 Graceful degrade if Binutils PR21472 is not available.
2536
2537 PR target/81072
2538 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
2539 .rodata in flash test fails.
2540 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
2541 * confgure: Regenerate.
2542 * config.in: Regenerate.
2543 * config/avr/avr.c (avr_asm_named_section)
2544 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
2545 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
2546 (avr_asm_init_sections): Same.
2547
2548 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2549
2550 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
2551 (fma<VH:mode>4_intrinsic): Likewise.
2552 (*fmsub<VCVTF:mode>4): Likewise.
2553 (*fmsub<VH:mode>4_intrinsic): Likewise.
2554
2555 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
2556
2557 PR target/81305
2558 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
2559 Don't depend on "optimize > 0".
2560 (out_movhi_r_mr, out_movqi_mr_r): Same.
2561 (out_movhi_mr_r, out_movqi_r_mr): Same.
2562 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
2563 io_address_operand on "optimize > 0".
2564
2565 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2566
2567 * tree-loop-distribution.c: Add general explanantion on the pass.
2568 (generate_loops_for_partition): Mark distributed loop.
2569 (pg_add_dependence_edges): New parameter. Handle alias data
2570 dependence specially and record it in the parameter if asked.
2571 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
2572 (init_partition_graph_vertices, add_partition_graph_edge): New.
2573 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
2574 (free_partition_graph_vdata, build_partition_graph): New.
2575 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
2576 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
2577 (data_ref_segment_size, latch_dominated_by_data_ref): New.
2578 (compute_alias_check_pairs, version_loop_by_alias_check): New.
2579 (version_for_distribution_p, finalize_partitions): New.
2580 (distribute_loop): Handle alias data dependence specially. Factor
2581 out loop fusion code as functions and call these functions.
2582
2583 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2584
2585 * tree-loop-distribution.c (classify_partition): New parameter and
2586 better handle reduction statement.
2587 (rdg_build_partitions): Revise comment.
2588 (distribute_loop): Compute statements in all partitions and pass it
2589 to classify_partition.
2590
2591 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2592
2593 * tree-loop-distribution.c (enum partition_type): New.
2594 (struct partition): New field type.
2595 (partition_merge_into): Add parameter. Update partition type.
2596 (data_dep_in_cycle_p, update_type_for_merge): New functions.
2597 (build_rdg_partition_for_vertex): Compute partition type.
2598 (rdg_build_partitions): Dump partition type.
2599 (distribute_loop): Update calls to partition_merge_into.
2600
2601 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2602
2603 * tree-loop-distribution.c (struct ddr_hasher): New.
2604 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
2605 (ddrs_table): New.
2606 (classify_partition): Call get_data_dependence.
2607 (pg_add_dependence_edges): Ditto.
2608 (distribute_loop): Release data dependence hash table.
2609
2610 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2611
2612 * tree-loop-distribution.c (ref_base_address): Delete.
2613 (similar_memory_accesses): Rename ...
2614 (share_memory_accesses): ... to this. Check if partitions access
2615 the same memory reference.
2616 (distribute_loop): Call share_memory_accesses.
2617
2618 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2619
2620 * tree-loop-distribution.c (struct partition): New field recording
2621 its data reference.
2622 (partition_alloc, partition_free): Init and release data refs.
2623 (partition_merge_into): Merge data refs.
2624 (build_rdg_partition_for_vertex): Collect data refs for partition.
2625 (pg_add_dependence_edges): Change parameters from vector to bitmap.
2626 Update uses.
2627 (distribute_loop): Remve data refs from vertice data of partition
2628 graph.
2629
2630 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2631
2632 * tree-loop-distribution.c (params.h): Include header file.
2633 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
2634 (datarefs_vec): New global var.
2635 (create_rdg_vertices): Use datarefs_vec directly.
2636 (free_rdg): Don't free data references.
2637 (build_rdg): Update use. Don't free data references.
2638 (distribute_loop): Compute global variable for data references.
2639 Bail out if there are too many data references.
2640
2641 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2642
2643 * tree-loop-distribution.c (loop_nest): New global var.
2644 (build_rdg): Use loop directly, rather than loop nest.
2645 (pg_add_dependence_edges): Remove loop nest parameter. Use global
2646 variable directly.
2647 (distribute_loop): Compute global variable loop nest. Update use.
2648
2649 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2650
2651 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
2652 (partition_merge_into): New parameter. Dump reason for fusion.
2653 (distribute_loop): Update use of partition_merge_into.
2654
2655 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2656
2657 * tree-loop-distribution.c (bb_top_order_index): New.
2658 (bb_top_order_index_size, bb_top_order_cmp): New.
2659 (stmts_from_loop): Use topological order.
2660 (pass_loop_distribution::execute): Compute and release topological
2661 order for basic blocks.
2662
2663 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2664
2665 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
2666 if no loops.
2667
2668 2017-07-05 Bin Cheng <bin.cheng@arm.com>
2669
2670 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
2671 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
2672 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
2673 * internal-fn.def (LOOP_DIST_ALIAS): New.
2674 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
2675 (fold_loop_internal_call): ... this.
2676 (vect_loop_dist_alias_call): New function.
2677 (set_uid_loop_bbs): Call fold_loop_internal_call.
2678 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
2679 internal calls.
2680
2681 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
2682
2683 PR target/81300
2684 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
2685 Require dead FLAGS_REG at the beginning of a peephole.
2686
2687 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
2688
2689 PR target/81294
2690 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
2691 arguments in the call to __builtin_ia32_sbb_u32.
2692 (_subborrow_u64): Swap _X and _Y arguments in the call to
2693 __builtin_ia32_sbb_u64.
2694
2695 2017-07-04 Jakub Jelinek <jakub@redhat.com>
2696
2697 PR debug/81278
2698 * tree-vrp.c (compare_assert_loc): Turn into a function template
2699 with stable template parameter. Only test if a->e is NULL,
2700 !a->e == !b->e has been verified already. Use e == NULL or
2701 e != NULL instead of e or ! e tests. If stable is true, don't use
2702 iterative_hash_expr, on the other side allow a or b or both NULL
2703 and sort the NULLs last.
2704 (process_assert_insertions): Sort using compare_assert_loc<false>
2705 instead of compare_assert_loc, later sort using
2706 compare_assert_loc<true> before calling process_assert_insertions_for
2707 in a loop. Use break instead of continue once seen NULL pointer.
2708
2709 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2710
2711 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
2712 Cortex-R7 and Cortex-R8 processors.
2713
2714 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
2715
2716 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
2717 uninitialized while src is not.
2718
2719 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
2720
2721 * common/config/arm/arm-common.c: Adjust include path for
2722 arm-cpu-cdata.h
2723 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
2724 (arm-cpu.h): Create in build directory. Adjust dependency rules.
2725 (arm-cpu-data.h): Likewise.
2726 (arm-cpu-cdata.h): Likewise.
2727 * config/arm/arm-cpu.h: Delete.
2728 * config/arm/arm-cpu-cdata.h: Delete.
2729 * config/arm/arm-cpu-data.h: Delete.
2730
2731 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
2732
2733 * config/arm/arm-cpus.in (cortex-a55): New.
2734 (cortex-a75): Likewise.
2735 (cortex-a75.cortex-a55): Likewise.
2736 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
2737 cortex-a75.
2738 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
2739 * config/arm/arm-cpu-cdata.h: Regenerate.
2740 * config/arm/arm-cpu-data.h: Regenerate.
2741 * config/arm/arm-cpu.h: Regenerate.
2742 * config/arm/arm-tables.opt: Regenerate.
2743 * config/arm/arm-tune.md: Regenerate.
2744
2745 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
2746
2747 * haifa-sched.c (sched_create_recovery_edges): Update profile.
2748
2749 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
2750
2751 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
2752 probability.
2753
2754 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
2755
2756 PR tree-optimization/81292
2757 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
2758 full_string_p, also call adjust_related_strinfos if the adjustment
2759 is simple, otherwise invalidate related strinfos.
2760
2761 2017-07-04 Martin Liska <mliska@suse.cz>
2762
2763 PR sanitizer/81040
2764 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
2765 newly created variable as DECL_IGNORED_P.
2766
2767 2017-07-04 Martin Liska <mliska@suse.cz>
2768
2769 PR ipa/81293
2770 * ipa-inline.c (inline_small_functions):
2771 Use xstrdup_for_dump.
2772
2773 2017-07-04 Tom de Vries <tom@codesourcery.com>
2774
2775 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
2776
2777 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
2778
2779 PR target/81033
2780 * config/darwin.c (darwin_function_switched_text_sections):
2781 Fix spaces.
2782
2783 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
2784
2785 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
2786
2787 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
2788
2789 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
2790
2791 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2792
2793 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
2794 min_profitable_iters, and th as inclusive lower bounds.
2795 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
2796 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
2797 for min_profitable_iters and min_profitable_estimate.
2798 (vect_transform_loop): Treat th as an inclusive lower bound.
2799 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
2800
2801 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
2802
2803 PR target/81033
2804 * config/darwin.c (darwin_function_switched_text_sections):
2805 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
2806 in two pieces, and suppress the use of buf.
2807
2808 2017-07-03 Nathan Sidwell <nathan@acm.org>
2809
2810 * hash-table.h (hash_table_mod1): Fix indentation.
2811
2812 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
2813
2814 PR middle-end/81290
2815 * predict.c (force_edge_cold): Be more careful about propagation
2816 backward.
2817 * profile-count.h (profile_probability::guessed,
2818 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
2819 New.
2820 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
2821
2822 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
2823
2824 * doc/invoke.texi (rcpc architecture extension): Document it.
2825
2826 2017-07-03 Richard Biener <rguenther@suse.de>
2827
2828 PR tree-optimization/60510
2829 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
2830 the scalar reduction PHI and use it.
2831 (vectorizable_reduction): Properly guard the single_defuse_cycle
2832 path for non-SLP reduction chains where we cannot use it.
2833 Rework reduc_def/index and vector type deduction. Rework
2834 vector operand gathering during reduction op code-gen.
2835 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
2836 chains dissolve the chain and leave it to non-SLP reduction
2837 handling.
2838
2839 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2840
2841 * tree-data-ref.h (dr_alignment): Declare.
2842 * tree-data-ref.c (dr_alignment): New function.
2843 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
2844 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
2845 set it.
2846 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
2847
2848 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2849
2850 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
2851 and base_misalignment fields.
2852 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
2853 * tree-data-ref.c: Include builtins.h.
2854 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
2855 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
2856 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
2857 * tree-vect-data-refs.c: Include tree-cfg.h.
2858 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
2859 fields instead of calculating an alignment here.
2860 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
2861 innermost_loop_behavior fields.
2862
2863 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2864
2865 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
2866 field.
2867 (DR_STEP_ALIGNMENT): New macro.
2868 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
2869 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
2870 (create_data_ref): Print it.
2871 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
2872 to tell whether the step preserves vector (mis)alignment.
2873 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2874 Move the check for an integer step and generalise to all INTEGER_CST.
2875 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
2876 Print the outer step alignment.
2877
2878 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2879
2880 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
2881 with offset_alignment.
2882 (DR_ALIGNED_TO): Delete.
2883 (DR_OFFSET_ALIGNMENT): New macro.
2884 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
2885 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
2886 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
2887 (create_data_ref): Likewise.
2888 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2889 (vect_analyze_data_refs): Likewise.
2890 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
2891 creating dummy innermost behavior.
2892
2893 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2894
2895 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
2896 with a "innermost_loop_behavior *" and refeence tree.
2897 * tree-data-ref.c (dr_analyze_innermost): Likewise.
2898 (create_data_ref): Update call accordingly.
2899 * tree-predcom.c (find_looparound_phi): Likewise.
2900
2901 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
2902
2903 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
2904 fields with dr_wrt_vec_loop.
2905 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
2906 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
2907 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
2908 (vect_dr_behavior): New function.
2909 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
2910 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
2911 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
2912 track whether the step preserves the misalignment.
2913 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
2914 Use vect_dr_behavior.
2915 (vect_setup_realignment): Update call accordingly.
2916 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
2917 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
2918 call to vect_create_addr_base_for_vector_ref.
2919 (vect_create_cond_for_align_checks): Likewise.
2920 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
2921 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
2922 (vect_recog_mask_conversion_pattern): Likewise.
2923 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
2924 (new_stmt_vec_info): Remove redundant zeroing.
2925
2926 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
2927
2928 * common/config/arm/arm-common.c (arm_be8_option): New function.
2929 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
2930 (ISA_ARMv6): Add isa_bit_be8.
2931 * config/arm/arm.h (arm_be8_option): Add prototype.
2932 (BE8_SPEC_FUNCTION): New define.
2933 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
2934 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
2935 (mlittle-endian): Similarly.
2936 (mbe8, mbe32): New options.
2937 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
2938 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
2939
2940 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
2941
2942 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
2943
2944 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
2945
2946 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
2947 (cleanup_tree_cfg_bb): Use it.
2948 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
2949 New functions.
2950 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
2951
2952 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
2953
2954 PR bootstrap/81285
2955 * loop-doloop.c (add_test): Update profile.
2956
2957 2017-07-03 Martin Liska <mliska@suse.cz>
2958
2959 PR sanitize/81040
2960 * sanopt.c (rewrite_usage_of_param): New function.
2961 (sanitize_rewrite_addressable_params): Likewise.
2962 (pass_sanopt::execute): Call rewrite_usage_of_param.
2963
2964 2017-07-03 Richard Biener <rguenther@suse.de>
2965
2966 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
2967 back to using VIEW_CONVERT_EXPR.
2968
2969 2017-07-03 Martin Liska <mliska@suse.cz>
2970
2971 PR other/78366
2972 * doc/extend.texi: Document when a resolver function is
2973 generated for target_clones.
2974
2975 2017-07-03 Martin Liska <mliska@suse.cz>
2976
2977 * asan.c (asan_emit_stack_protection): Unpoison just red zones
2978 and shadow memory of auto variables which are subject of
2979 use-after-scope sanitization.
2980 (asan_expand_mark_ifn): Add do set only when is_poison.
2981
2982 2016-07-03 Richard Biener <rguenther@suse.de>
2983
2984 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
2985 reduction PHIs.
2986 (vect_force_simple_reduction): Record reduction def -> phi mapping.
2987 (vectorizable_reduction): Perform reduction PHI creation when
2988 visiting a reduction PHI and adjust and simplify code generation
2989 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
2990 (vect_transform_loop): Visit reduction PHIs.
2991 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
2992 defs into the SLP tree.
2993 (vect_build_slp_tree): Reduction defs terminate the recursion.
2994 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
2995 of reduction defs.
2996 (vect_get_vec_defs_for_stmt_copy): Export.
2997 (vect_get_vec_defs): Likewise.
2998 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
2999 purpose.
3000 (vect_get_vec_defs_for_stmt_copy): Declare.
3001 (vect_get_vec_defs): Likewise.
3002
3003 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
3004
3005 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
3006 parameter with a "loop" parameter and use it instead of the
3007 loop containing DR_STMT. Don't check simple_iv when doing
3008 BB analysis. Describe the two analysis modes in the comment.
3009
3010 2017-07-03 Tom de Vries <tom@codesourcery.com>
3011
3012 PR tree-optimization/69468
3013 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
3014 (find_same_succ_bb): Handle ignore_edge_flags.
3015
3016 2017-07-03 Tom de Vries <tom@codesourcery.com>
3017
3018 PR tree-optimization/81192
3019 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
3020 hash.
3021 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
3022 differs.
3023 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
3024
3025 2017-07-03 Tom de Vries <tom@codesourcery.com>
3026
3027 PR tree-optimization/81192
3028 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
3029 BB_SAME_SUCC (bb) == NULL.
3030
3031 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
3032
3033 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
3034 consistency.
3035
3036 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
3037
3038 * dumpfile.c: Include profile-count.h
3039 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
3040 update profile.
3041 (insert_cond_bb): Update profile.
3042 * tree-cfg.h (insert_cond_bb): Update prototype.
3043 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
3044 * tree-dump.c: Do not include tree-cfg.
3045
3046 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
3047
3048 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
3049
3050 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
3051
3052 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
3053 bb.
3054
3055 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
3056
3057 * tree-complex.c (expand_complex_div_wide): update profile.
3058
3059 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
3060 Alan Hayward <alan.hayward@arm.com>
3061 David Sherwood <david.sherwood@arm.com>
3062
3063 * Makefile.in (MACHMODE_H): Remove insn-modes.h
3064 (CORETYPES_H): New define.
3065 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
3066 (insn-modes-inline.h, s-modes-inline-h): New rules.
3067 (generated_files): Add insn-modes-inline.h.
3068 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
3069 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
3070 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
3071 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
3072 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
3073 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
3074 (build/gencodes.o, build/genconditions.o): Likewise.
3075 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
3076 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
3077 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
3078 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
3079 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
3080 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
3081 * coretypes.h: Include everything up to real.h for generators.
3082 Include insn-modes.h first. Include wide-int-print.h after
3083 wide-int.h. Include insn-modes-inline.h and then machmode.h.
3084 * machmode.h: Don't include insn-modes.h here.
3085 * function-tests.c: Remove includes of signop.h, machmode.h,
3086 double-int.h and wide-int.h.
3087 * rtl.h: Likewise.
3088 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
3089 and wide-int.h.
3090 * optc-save-gen.awk: Likewise.
3091 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
3092 * godump.c: Remove include of wide-int-print.h.
3093 * pretty-print.h: Likewise.
3094 * wide-int-print.cc: Likewise.
3095 * wide-int.cc: Likewise.
3096 * hash-map-tests.c: Remove include of signop.h.
3097 * hash-set-tests.c: Likewise.
3098 * rtl-tests.c: Likewise.
3099 * mkconfig.sh: Remove include of machmode.h.
3100 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
3101 into...
3102 (emit_insn_modes_inline_h): ...this new function. Emit the code
3103 into an insn-modes-inline.h header file, adding appropriate
3104 include guards and end comments.
3105 (emit_insn_modes_c_header): Remove include of machmode.h.
3106 (emit_min_insn_modes_c_header): Include coretypes.h rather than
3107 machmode.h.
3108 (main): Handle -i flag and call emit_insn_modes_inline_h when
3109 it is passed.
3110
3111 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
3112
3113 * tree-ssa-strlen.c (strinfo): Rename the length field to
3114 nonzero_chars. Add a full_string_p field.
3115 (compare_nonzero_chars, zero_length_string_p): New functions.
3116 (get_addr_stridx): Add an offset_out parameter.
3117 Use compare_nonzero_chars.
3118 (get_stridx): Update accordingly. Use compare_nonzero_chars.
3119 (new_strinfo): Update after above changes to strinfo.
3120 (set_endptr_and_length): Set full_string_p.
3121 (get_string_length): Update after above changes to strinfo.
3122 (unshare_strinfo): Update call to new_strinfo.
3123 (maybe_invalidate): Likewise.
3124 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
3125 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
3126 as a uhwi instead of an shwi. Update after above changes to
3127 strinfo and new_strinfo.
3128 (zero_length_string): Assert that chainsi contains full strings.
3129 Use zero_length_string_p. Update call to new_strinfo.
3130 (adjust_related_strinfos): Update after above changes to strinfo.
3131 Copy full_string_p from origsi.
3132 (adjust_last_stmt): Use zero_length_string_p.
3133 (handle_builtin_strlen): Update after above changes to strinfo and
3134 new_strinfo. Install the lhs as the string length if the previous
3135 entry didn't describe a full string.
3136 (handle_builtin_strchr): Update after above changes to strinfo
3137 and new_strinfo.
3138 (handle_builtin_strcpy): Likewise.
3139 (handle_builtin_strcat): Likewise.
3140 (handle_builtin_malloc): Likewise.
3141 (handle_pointer_plus): Likewise.
3142 (handle_builtin_memcpy): Likewise. Track nonzero characters
3143 that aren't necessarily followed by a nul terminator.
3144 (handle_char_store): Likewise.
3145
3146 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
3147
3148 PR tree-optimization/80769
3149 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
3150 for malloc and calloc. Document the new invariant that all related
3151 strinfos have delayed lengths or none do.
3152 (verify_related_strinfos): Move earlier in file.
3153 (set_endptr_and_length): New function, split out from...
3154 (get_string_length): ...here. Also set the lengths of related
3155 strinfos.
3156 (zero_length_string): Assert that chainsi has known (rather than
3157 delayed) lengths.
3158 (adjust_related_strinfos): Likewise.
3159
3160 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
3161
3162 PR tree-optimization/81136
3163 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
3164 assert that two references with the same misalignment have the same
3165 compile-time misalignment if those compile-time misalignments
3166 are known.
3167
3168 2017-07-01 Andi Kleen <ak@linux.intel.com>
3169
3170 * print-tree.c (print_node): Print all attributes.
3171
3172 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
3173
3174 * cfg.c (scale_bbs_frequencies): New function.
3175 * cfg.h (scale_bbs_frequencies): Declare it.
3176 * cfgloopanal.c (single_likely_exit): Cleanup.
3177 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
3178 as parameter.
3179 (scale_loop_profile): Likewise.
3180 (loop_version): Likewise.
3181 (create_empty_loop_on_edge): Update.
3182 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
3183 scale_loop_frequencies, scale_loop_profile, loopify,
3184 loop_version): Update prototypes.
3185 * modulo-sched.c (sms_schedule): Update.
3186 * predict.c (unlikely_executed_edge_p): Also check probability.
3187 (probably_never_executed_edge_p): Fix typo.
3188 * tree-if-conv.c (version_loop_for_if_conversion): Update.
3189 * tree-parloops.c (gen_parallel_loop): Update.
3190 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
3191 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
3192 * tree-ssa-loop-split.c (split_loop): Update.
3193 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
3194 * tree-vect-loop-manip.c (vect_do_peeling): Update.
3195 (vect_loop_versioning): Update.
3196 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
3197
3198 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
3199
3200 * trans-mem.c (split_bb_make_tm_edge): Update profile.
3201
3202 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
3203
3204 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
3205 to keep profile consistent.
3206
3207 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
3208
3209 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
3210 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3211 * profile-count.h (max_safe_multiplier): Make unsigned.
3212 (profile_count::guessed_zero): New.
3213
3214 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
3215
3216 * bb-reorder.c (fix_up_crossing_landing_pad,
3217 fix_crossing_conditional_branches): Use make_single_succ_edge
3218 to keep profile consistent.
3219
3220 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
3221
3222 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
3223 to update profile.
3224
3225 2017-07-01 Jakub Jelinek <jakub@redhat.com>
3226
3227 PR sanitizer/81262
3228 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
3229 the right scopes, make sure cond_jump isn't preserved between multiple
3230 iterations. Search for fallthru edge whenever there are 3+ edges and
3231 use find_fallthru_edge for it.
3232
3233 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
3234
3235 Patch by Alexander Monakov <amonakov@ispras.ru>
3236 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
3237 probabilities consistently.
3238
3239 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
3240
3241 * pa.c (pa_expand_compare_and_swap_loop): Update call of
3242 emit_cmp_and_jump_insns.
3243
3244 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
3245
3246 PR ipa/81261
3247 * tree-inline.c (expand_call_inline): Combine profile statuses.
3248
3249 2017-06-30 Andrew Pinski <apinski@cavium.com>
3250
3251 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
3252 fold_stmt returned true.
3253
3254 2017-06-30 Nathan Sidwell <nathan@acm.org>
3255
3256 * ggc.h (empty_string): Delete.
3257 * cfgexpand.c (expand_asm_stmt): Use plain "".
3258 * optabs.c (expand_asm_memory_barrier): Likewise.
3259 * stringpool.c (empty_string): Delete.
3260 (digit_vector, digit_string): Delete.
3261 (ggc_alloc_string): Use plain "", don't optimize single digit
3262 strings. Use ggc_alloc_atomic.
3263
3264 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
3265
3266 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
3267 comparison set and one other set, use the cost of the non-comparison
3268 set.
3269
3270 2017-06-30 Nathan Sidwell <nathan@acm.org>
3271
3272 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
3273 some formatting.
3274
3275 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
3276
3277 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
3278 loops. Remove now unneeded calls to gimple_switch_set_label() that
3279 just set removed labels to NULL_TREE.
3280
3281 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
3282
3283 * tree-ssanames.c (set_range_info_raw): Abstract from ...
3284 (set_range_info): ...here. Only call set_range_info_raw if domain
3285 is useful.
3286 (set_nonzero_bits): Call set_range_info_raw.
3287 * tree-ssanames.h (set_range_info_raw): New.
3288
3289 2017-06-30 Jakub Jelinek <jakub@redhat.com>
3290
3291 PR target/81225
3292 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
3293 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
3294 of nonimmediate_operand and <store_mask_constraint> instead of m
3295 for the input operand. For V8FI iterator, always split if input
3296 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
3297 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
3298 <store_mask_predicate> instead of register_operand and
3299 <store_mask_constraint> instead of v for the input operand. Make
3300 sure both operands aren't MEMs for if not <mask_applied>.
3301
3302 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
3303
3304 * lto-wrapper.c (copy_file) Close both file descriptors before
3305 exiting normally.
3306
3307 2017-06-30 Martin Liska <mliska@suse.cz>
3308
3309 PR ipa/81214
3310 * multiple_target.c (create_dispatcher_calls): Make ifunc
3311 also for function that don't have calls or are not referenced.
3312
3313 2017-06-30 Richard Biener <rguenther@suse.de>
3314
3315 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
3316 analyze the first scalar stmt. Move vector type computation
3317 for the BB case here from ...
3318 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
3319 live operation processing in the SLP case properly.
3320
3321 2017-06-30 Richard Biener <rguenther@suse.de>
3322
3323 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
3324
3325 2017-06-30 Martin Liska <mliska@suse.cz>
3326
3327 PR sanitizer/81021
3328 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
3329 before BUILT_IN_UNWIND_RESUME when ASAN is used.
3330
3331 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
3332
3333 * doc/invoke.texi (AArch64): Add missing options and remove redundant
3334 ones.
3335
3336 2017-06-30 Richard Biener <rguenther@suse.de>
3337
3338 PR tree-optimization/81249
3339 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
3340 condition reduction result to original scalar type.
3341
3342 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3343
3344 * profile-count.h (enum profile_quality): Fix typos and whitespace
3345 issues.
3346
3347 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3348
3349 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
3350 type for branch probabilities.
3351
3352 2017-06-29 Julian Brown <julian@codesourcery.com>
3353 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3354
3355 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
3356 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
3357 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
3358 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
3359
3360 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3361
3362 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
3363 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
3364 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
3365 CC usage from generic code to here.
3366 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
3367 CC usage into the target macros.
3368
3369 2017-06-29 Maya Rashish <coypu@sdf.org>
3370
3371 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
3372 objects.
3373
3374 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
3375
3376 * arm/arm-builtins.c: Include profile-count.h
3377 * except.c (sjlj_emit_function_enter): Use
3378 profile_probability::unlikely.
3379
3380 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3381
3382 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
3383 and tocrel_offset be pointer args rather than implicitly using
3384 static versions.
3385 (legitimate_constant_pool_address_p, rs6000_emit_move,
3386 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
3387 tocrel_offset and use in toc_relative_expr_p call.
3388 (print_operand, print_operand_address): Use static tocrel_base_oac
3389 and tocrel_offset_oac.
3390 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
3391 tocrel_offset_oac.
3392
3393 2017-06-29 Maya Rashish <coypu@sdf.org>
3394
3395 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
3396
3397 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
3398
3399 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
3400 objects, take into account only the alignment of 'op0' and 'mode1' if
3401 'op0' is a MEM.
3402
3403 2017-06-29 Steve Ellcey <sellcey@cavium.com>
3404
3405 * ccmp.c (ccmp_tree_comparison_p): New function.
3406 (ccmp_candidate_p): Update to use above function.
3407 (get_compare_parts): New function.
3408 (expand_ccmp_next): Update to use new functions.
3409 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
3410 new functions.
3411 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
3412 take mode as argument.
3413 * ccmp.h (expand_ccmp_expr): Add mode as argument.
3414 * expr.c (expand_expr_real_1): Pass mode as argument.
3415
3416 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
3417
3418 * combine.c (combine_instructions): Print insns to dump_file, together
3419 with their costs.
3420
3421 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
3422
3423 * asan.c (asan_emit_stack_protection): Update.
3424 (create_cond_insert_point): Update.
3425 * auto-profile.c (afdo_propagate_circuit): Update.
3426 * basic-block.h (struct edge_def): Turn probability to
3427 profile_probability.
3428 (EDGE_FREQUENCY): Update.
3429 * bb-reorder.c (find_traces_1_round): Update.
3430 (better_edge_p): Update.
3431 (sanitize_hot_paths): Update.
3432 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
3433 (make_single_succ_edge): Update.
3434 (check_bb_profile): Update.
3435 (dump_edge_info): Update.
3436 (update_bb_profile_for_threading): Update.
3437 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
3438 probabilitycount to 0.
3439 * cfgbuild.c (compute_outgoing_frequencies): Update.
3440 * cfgcleanup.c (try_forward_edges): Update.
3441 (outgoing_edges_match): Update.
3442 (try_crossjump_to_edge): Update.
3443 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
3444 (expand_gimple_tailcall): Update.
3445 (construct_init_block): Use make_single_succ_edge.
3446 (construct_exit_block): Use make_single_succ_edge.
3447 * cfghooks.c (verify_flow_info): Update.
3448 (redirect_edge_succ_nodup): Update.
3449 (split_edge): Update.
3450 (account_profile_record): Update.
3451 * cfgloopanal.c (single_likely_exit): Update.
3452 * cfgloopmanip.c (scale_loop_profile): Update.
3453 (set_zero_probability): Remove.
3454 (duplicate_loop_to_header_edge): Update.
3455 * cfgloopmanip.h (loop_version): Update prototype.
3456 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
3457 (force_nonfallthru_and_redirect): Update.
3458 (update_br_prob_note): Update.
3459 (rtl_verify_edges): Update.
3460 (purge_dead_edges): Update.
3461 (rtl_lv_add_condition_to_bb): Update.
3462 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
3463 * cgraphunit.c (init_lowered_empty_function): Update.
3464 (cgraph_node::expand_thunk): Update.
3465 * cilk-common.c: Include profile-count.h
3466 * dojump.c (inv): Remove.
3467 (jumpifnot): Update.
3468 (jumpifnot_1): Update.
3469 (do_jump_1): Update.
3470 (do_jump): Update.
3471 (do_jump_by_parts_greater_rtx): Update.
3472 (do_compare_rtx_and_jump): Update.
3473 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
3474 do_jump_1. do_compare_rtx_and_jump): Update prototype.
3475 * dwarf2cfi.c: Include profile-count.h
3476 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
3477 (sjlj_emit_dispatch_table): Likewise.
3478 * explow.c: Include profile-count.h
3479 * expmed.c (emit_store_flag_force): Update.
3480 (do_cmp_and_jump): Update.
3481 * expr.c (compare_by_pieces_d::generate): Update.
3482 (compare_by_pieces_d::finish_mode): Update.
3483 (emit_block_move_via_loop): Update.
3484 (store_expr_with_bounds): Update.
3485 (store_constructor): Update.
3486 (expand_expr_real_2): Update.
3487 (expand_expr_real_1): Update.
3488 * expr.h (try_casesi, try_tablejump): Update prototypes.
3489 * gimple-pretty-print.c (dump_probability): Update.
3490 (dump_profile): New.
3491 (dump_gimple_label): Update.
3492 (dump_gimple_bb_header): Update.
3493 * graph.c (draw_cfg_node_succ_edges): Update.
3494 * hsa-gen.c (convert_switch_statements): Update.
3495 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
3496 (find_if_case_1): Update.
3497 (find_if_case_2): Update.
3498 * internal-fn.c (expand_arith_overflow_result_store): Update.
3499 (expand_addsub_overflow): Update.
3500 (expand_neg_overflow): Update.
3501 (expand_mul_overflow): Update.
3502 (expand_vector_ubsan_overflow): Update.
3503 * ipa-cp.c (good_cloning_opportunity_p): Update.
3504 * ipa-split.c (split_function): Use make_single_succ_edge.
3505 * ipa-utils.c (ipa_merge_profiles): Update.
3506 * loop-doloop.c (add_test): Update.
3507 (doloop_modify): Update.
3508 * loop-unroll.c (compare_and_jump_seq): Update.
3509 (unroll_loop_runtime_iterations): Update.
3510 * lra-constraints.c (lra_inheritance): Update.
3511 * lto-streamer-in.c (input_cfg): Update.
3512 * lto-streamer-out.c (output_cfg): Update.
3513 * mcf.c (adjust_cfg_counts): Update.
3514 * modulo-sched.c (sms_schedule): Update.
3515 * omp-expand.c (expand_omp_for_init_counts): Update.
3516 (extract_omp_for_update_vars): Update.
3517 (expand_omp_ordered_sink): Update.
3518 (expand_omp_for_ordered_loops): Update.
3519 (expand_omp_for_generic): Update.
3520 (expand_omp_for_static_nochunk): Update.
3521 (expand_omp_for_static_chunk): Update.
3522 (expand_cilk_for): Update.
3523 (expand_omp_simd): Update.
3524 (expand_omp_taskloop_for_outer): Update.
3525 (expand_omp_taskloop_for_inner): Update.
3526 * omp-simd-clone.c (simd_clone_adjust): Update.
3527 * optabs.c (expand_doubleword_shift): Update.
3528 (expand_abs): Update.
3529 (emit_cmp_and_jump_insn_1): Update.
3530 (expand_compare_and_swap_loop): Update.
3531 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
3532 * predict.c (predictable_edge_p): Update.
3533 (edge_probability_reliable_p): Update.
3534 (set_even_probabilities): Update.
3535 (combine_predictions_for_insn): Update.
3536 (combine_predictions_for_bb): Update.
3537 (propagate_freq): Update.
3538 (estimate_bb_frequencies): Update.
3539 (force_edge_cold): Update.
3540 * profile-count.c (profile_count::dump): Add missing space into dump.
3541 (profile_count::debug): Add newline.
3542 (profile_count::differs_from_p): Explicitly convert to unsigned.
3543 (profile_count::stream_in): Update.
3544 (profile_probability::dump): New member function.
3545 (profile_probability::debug): New member function.
3546 (profile_probability::differs_from_p): New member function.
3547 (profile_probability::differs_lot_from_p): New member function.
3548 (profile_probability::stream_in): New member function.
3549 (profile_probability::stream_out): New member function.
3550 * profile-count.h (profile_count_quality): Rename to ...
3551 (profile_quality): ... this one.
3552 (profile_probability): New.
3553 (profile_count): Update.
3554 * profile.c (compute_branch_probabilities): Update.
3555 * recog.c (peep2_attempt): Update.
3556 * sched-ebb.c (schedule_ebbs): Update.
3557 * sched-rgn.c (find_single_block_region): Update.
3558 (compute_dom_prob_ps): Update.
3559 (schedule_region): Update.
3560 * sel-sched-ir.c (compute_succs_info): Update.
3561 * stmt.c (struct case_node): Update.
3562 (do_jump_if_equal): Update.
3563 (get_outgoing_edge_probs): Update.
3564 (conditional_probability): Update.
3565 (emit_case_dispatch_table): Update.
3566 (expand_case): Update.
3567 (expand_sjlj_dispatch_table): Update.
3568 (emit_case_nodes): Update.
3569 * targhooks.c: Update.
3570 * tracer.c (better_p): Update.
3571 (find_best_successor): Update.
3572 * trans-mem.c (expand_transaction): Update.
3573 * tree-call-cdce.c: Update.
3574 * tree-cfg.c (gimple_split_edge): Upate.
3575 (move_sese_region_to_fn): Upate.
3576 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
3577 * tree-eh.c (lower_resx): Upate.
3578 (cleanup_empty_eh_move_lp): Upate.
3579 * tree-if-conv.c (version_loop_for_if_conversion): Update.
3580 * tree-inline.c (copy_edges_for_bb): Update.
3581 (copy_cfg_body): Update.
3582 * tree-parloops.c (gen_parallel_loop): Update.
3583 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
3584 (gimple_gen_time_profiler): Update.
3585 * tree-ssa-dce.c (remove_dead_stmt): Update.
3586 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
3587 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
3588 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
3589 (unloop_loops): Update.
3590 (try_peel_loop): Update.
3591 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
3592 * tree-ssa-loop-split.c (connect_loops): Update.
3593 (split_loop): Update.
3594 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
3595 (hoist_guard): Update.
3596 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
3597 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
3598 (value_replacement): Update.
3599 * tree-ssa-reassoc.c (branch_fixup): Update.
3600 * tree-ssa-tail-merge.c (replace_block_by): Update.
3601 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
3602 (create_edge_and_update_destination_phis): Update.
3603 (compute_path_counts): Update.
3604 (recompute_probabilities): Update.
3605 (update_joiner_offpath_counts): Update.
3606 (freqs_to_counts_path): Update.
3607 (duplicate_thread_path): Update.
3608 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
3609 (struct switch_conv_info): Update.
3610 (gen_inbound_check): Update.
3611 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
3612 (vect_do_peeling): Update.
3613 (vect_loop_versioning): Update.
3614 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
3615 (optimize_mask_stores): Update.
3616 * ubsan.c (ubsan_expand_null_ifn): Update.
3617 * value-prof.c (gimple_divmod_fixed_value): Update.
3618 (gimple_divmod_fixed_value_transform): Update.
3619 (gimple_mod_pow2): Update.
3620 (gimple_mod_pow2_value_transform): Update.
3621 (gimple_mod_subtract): Update.
3622 (gimple_mod_subtract_transform): Update.
3623 (gimple_ic): Update.
3624 (gimple_stringop_fixed_value): Update.
3625 (gimple_stringops_transform): Update.
3626 * value-prof.h: Update.
3627
3628 2017-06-29 Carl Love <cel@us.ibm.com>
3629
3630 * config/rs6000/rs6000-c.c: Add support for built-in functions
3631 vector signed int vec_signed (vector float);
3632 vector signed long long vec_signed (vector double);
3633 vector signed int vec_signed2 (vector double, vector double);
3634 vector signed int vec_signede (vector double);
3635 vector signed int vec_signedo (vector double);
3636 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
3637 instruction generator.
3638 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
3639 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
3640 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
3641 Add define_insn.
3642 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
3643 vunsignede_v2df): Add define_expands.
3644 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
3645 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
3646 VEC_UNSIGNEDO): Add definitions.
3647 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
3648 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
3649 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
3650 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
3651 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
3652 * config/rs6000/altivec.h (vec_signed, vec_signed2,
3653 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
3654 vec_unsignede, vec_unsignedo): Add builtin defines.
3655 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
3656 declaration.
3657 * doc/extend.texi: Update the built-in documentation file for the
3658 new built-in functions.
3659
3660 2017-06-29 Richard Biener <rguenther@suse.de>
3661
3662 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
3663 reduction chains to LOOP_VINFO_REDUCTIONS.
3664 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
3665 SLP reductions after processing reduction chains.
3666
3667 2017-06-29 Nathan Sidwell <nathan@acm.org>
3668
3669 * builtins.c (fold_builtin_FUNCTION): Use
3670 lang_hooks.decl_printable_name.
3671
3672 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
3673
3674 PR middle-end/81194
3675 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
3676 with only one label.
3677 * stmt.c (expand_case): Assert NCASES is greater than one.
3678
3679 2017-06-29 Richard Biener <rguenther@suse.de>
3680
3681 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
3682 anything.
3683 (group_case_labels): Likewise.
3684 (find_taken_edge): Push sanity checking on val to workers...
3685 (find_taken_edge_cond_expr): ... here
3686 (find_taken_edge_switch_expr): ... and here, handle cases
3687 with just a default label.
3688 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
3689 (group_case_labels): Likewise.
3690 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
3691 group_case_labels does anything cleanup the CFG again.
3692
3693 2017-06-29 Bin Cheng <bin.cheng@arm.com>
3694
3695 PR tree-optimization/81196
3696 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
3697 exit condition comparing two IVs.
3698
3699 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
3700
3701 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
3702 profile to the dummy entry at the end of the list of architectures.
3703 * config/arm/arm-cpu-cdata.h: Regenerated.
3704
3705 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3706 Michael Collison <michael.collison@arm.com>
3707
3708 PR target/70119
3709 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
3710 New pattern.
3711 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
3712 (*aarch64_reg_<mode>3_minus_mask): New pattern.
3713 (*aarch64_<optab>_reg_di3_mask2): New pattern.
3714 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
3715 of shift when the shift amount is masked with constant equal to
3716 the size of the mode.
3717 * config/aarch64/predicates.md (subreg_lowpart_operator): New
3718 predicate.
3719
3720 2017-06-29 Martin Liska <mliska@suse.cz>
3721
3722 * config/i386/i386.opt: Change range from [1,5] to [0,5].
3723
3724 2017-06-29 Yury Gribov <tetra2005@gmail.com>
3725
3726 PR bootstrap/80565
3727 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
3728 code.
3729 * ipa-inline.h
3730 (edge_growth_cache_entry::edge_growth_cache_entry): New
3731 function.
3732 (reset_edge_growth_cache): Update to use constructor.
3733
3734 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3735
3736 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
3737 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
3738 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
3739
3740 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
3741
3742 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
3743 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
3744
3745 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
3746
3747 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
3748 (*-linux-uclibc*): Add t-uclibc tmake_file.
3749 * config/t-musl: New.
3750 * config/t-uclibc: New.
3751
3752 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
3753
3754 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
3755 context.
3756 (gen_comm_data): Emit architectural setting of arch_prof.
3757 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
3758 profile.
3759 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
3760 (armv8-m.base, armv8-m.main): Likewise.
3761 * arm-protos.h (arm_build_target): Add profile field.
3762 (arch_option): Likewise.
3763 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
3764 the active target.
3765 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
3766 arm_active_target.profile.
3767
3768 2017-06-28 Richard Biener <rguenther@suse.de>
3769
3770 PR middle-end/81227
3771 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
3772 TYPE_OVERFLOW_WRAPS.
3773 * match.pd (negate_expr_p): Likewise.
3774 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
3775 fold_build2, not fold_binary.
3776
3777 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
3778
3779 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
3780 Convert memory address to Pmode.
3781 (aarch64_print_operand): Assert MEM operands are always Pmode.
3782
3783 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
3784
3785 PR target/79665
3786 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
3787 Remove redundant if.
3788 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
3789 * config/arm/aarch-common-protos.h
3790 (aarch_forward_to_shift_is_not_shifted_re): Remove.
3791 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
3792
3793 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
3794
3795 PR ipa/81238
3796 * multiple_target.c (create_dispatcher_calls): Set the default
3797 clone to be static, not public.
3798
3799 2017-06-28 Richard Biener <rguenther@suse.de>
3800
3801 * tree-vect-loop.c (vectorizable_reduction): Move special
3802 cond reduction IV var creation ...
3803 (vect_create_epilog_for_reduction): ... here. Remove induction_index
3804 parameter. Use STMT_VINFO_VECTYPE.
3805 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
3806 constant_p.
3807
3808 2017-06-28 Martin Liska <mliska@suse.cz>
3809
3810 PR ipa/81128
3811 * ipa-visibility.c (non_local_p): Handle visibility.
3812
3813 2017-06-28 Martin Liska <mliska@suse.cz>
3814
3815 PR driver/79659
3816 * common.opt: Add IntegerRange to various options.
3817 * opt-functions.awk (integer_range_info): New function.
3818 * optc-gen.awk: Add integer_range_info to cl_options struct.
3819 * opts-common.c (decode_cmdline_option): Handle
3820 CL_ERR_INT_RANGE_ARG.
3821 (cmdline_handle_error): Likewise.
3822 * opts.c (print_filtered_help): Show valid interval in
3823 when --help is provided.
3824 * opts.h (struct cl_option): Add range_min and range_max fields.
3825 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
3826
3827 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
3828
3829 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
3830 (x * C EQ/NE y * C): New transformation.
3831
3832 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
3833
3834 * genmultilib (combination_space): Accept '+' in option names.
3835
3836 2017-06-28 Martin Liska <mliska@suse.cz>
3837
3838 PR sanitizer/81224
3839 * asan.c (instrument_derefs): Bail out inner references
3840 that are hard register variables.
3841
3842 2017-06-28 Jakub Jelinek <jakub@redhat.com>
3843
3844 PR target/81175
3845 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
3846 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
3847
3848 2017-06-28 Richard Biener <rguenther@suse.de>
3849
3850 * tree-vectorizer.h (vect_get_vec_defs): Remove.
3851 (vect_get_slp_defs): Adjust.
3852 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
3853 out from ...
3854 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
3855 simplify.
3856 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3857 get_initial_defs_for_reduction instead of vect_get_vec_defs.
3858 (vectorizable_reduction): Adjust.
3859 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
3860 handling.
3861 (vect_get_slp_defs): Likewise.
3862 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
3863 (vectorizable_bswap): Adjust.
3864 (vectorizable_call): Likewise.
3865 (vectorizable_conversion): Likewise.
3866 (vectorizable_assignment): Likewise.
3867 (vectorizable_shift): Likewise.
3868 (vectorizable_operation): Likewise.
3869 (vectorizable_store): Likewise.
3870 (vectorizable_condition): Likewise.
3871 (vectorizable_comparison): Likewise.
3872
3873 2017-06-28 Michael Collison <michael.collison@arm.com>
3874
3875 PR target/68535
3876 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
3877 set of base_reg
3878 (arm_gen_movmemqi): Removed unused variable 'i'.
3879 Convert 'for' loop into 'while' loop.
3880 (arm_expand_prologue): Remove last unnecessary set of insn.
3881 (thumb_pop): Remove unused variable 'pushed_words'.
3882 (thumb_exit): Remove last unnecessary set of regs_to_pop.
3883
3884 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3885
3886 * config/s390/predicates.md: Use s390_rel_address_ok_p.
3887 * config/s390/s390-protos.h: Add prototype of
3888 s390_rel_address_ok_p.
3889 * config/s390/s390.c (s390_got_symbol): New function.
3890 (s390_rel_address_ok_p): New function.
3891 (legitimize_pic_address): Use s390_rel_address_ok_p.
3892 (s390_load_got): Use s390_got_symbol.
3893 (s390_option_override): Issue error if
3894 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
3895 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3896 New macro.
3897 * config/s390/s390.opt: New option mpic-data-is-text-relative.
3898
3899 2017-06-27 Andrew Pinski <apinski@cavium.com>
3900
3901 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
3902 (X * copysign (1.0, X)): New pattern.
3903 (X * copysign (1.0, -X)): New pattern.
3904 (copysign (-1.0, CST)): New pattern.
3905
3906 2017-06-27 Joseph Myers <joseph@codesourcery.com>
3907
3908 * genmultilib (combination_space): Remove variable.
3909 Validate reuse rules against regular expression for any sequence
3910 of multilib options in any order.
3911
3912 2017-06-27 Michael Collison <michael.collison@arm.com>
3913
3914 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
3915 call aarch64_split_simd_combine.
3916 * (aarch64_combine_internal<mode>): Delete pattern.
3917 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
3918 Allow register and subreg operands.
3919
3920 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
3921
3922 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
3923 specific need, just fallback on defaults.
3924 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
3925
3926 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
3927 Olivier Hainque <hainque@adacore.com>
3928
3929 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
3930 map for 64bits.
3931 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
3932 targets. Pick a default if no particular attempt applied.
3933 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
3934 larger contexts.
3935
3936 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
3937
3938 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
3939 (x86_64-wrs-vxworks7): Likewise.
3940
3941 2017-06-27 Marek Polacek <polacek@redhat.com>
3942
3943 PR sanitizer/81223
3944 * ubsan.c (instrument_null): Check get_base_address's result for null.
3945
3946 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
3947
3948 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
3949
3950 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
3951
3952 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
3953 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
3954 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
3955 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
3956 New function types.
3957 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
3958 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
3959 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
3960 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
3961 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
3962 BUILT_IN_FEUPDATEENV): New builtins.
3963 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
3964 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
3965 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
3966 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
3967 macros.
3968 (builtin_structptr_types): Adjust size.
3969 * tree.c (builtin_structptr_types): Add four entries.
3970
3971 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
3972 Olivier Hainque <hainque@adacore.com>
3973
3974 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
3975 (TLS_SYM): New local macro, forcing reference to __tls__ on
3976 link command lines for VxWorks 7 RTPs, triggering initialization
3977 of tlsLib.
3978 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
3979 OS features TLS support, true for RTPs on VxWorks 7.
3980 * config/vxworks.c (vxworks_override_options): Setup emutls
3981 accordingly.
3982
3983 2017-06-27 Jakub Jelinek <jakub@redhat.com>
3984
3985 * predict.c (test_prediction_value_range): Use -1U instead of -1
3986 to avoid narrowing conversion warning.
3987 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
3988 to avoid narrowing conversion warning.
3989 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
3990 -1.
3991 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
3992
3993 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
3994
3995 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
3996 64bit configurations.
3997 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
3998 (SIZE_TYPE): Likewise.
3999 * config/vxworks.c (vxworks_emutls_var_fields): Use
4000 long_unsigned_type_node instead of unsigned_type_node as the offset
4001 field type, which is "pointer" mode in emutls.c.
4002
4003 2017-06-27 Jakub Jelinek <jakub@redhat.com>
4004
4005 PR sanitizer/81209
4006 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
4007
4008 PR middle-end/81207
4009 * gimple-fold.c (replace_call_with_call_and_fold): Handle
4010 gimple_vuse copying separately from gimple_vdef copying.
4011
4012 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4013
4014 * value-prof.c (free_hist): Remove call to memset and the enclosing if
4015 condition.
4016
4017 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
4018 Olivier Hainque <hainque@adacore.com>
4019
4020 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
4021 for all vxworks7 targets.
4022 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
4023 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
4024 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
4025 variations for VX6/VX7 and 32/64bits later on in ...
4026 (VXWORKS_LIB_SPEC): Leverage new macros.
4027 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
4028 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
4029
4030 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
4031
4032 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
4033 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
4034
4035 2017-06-26 Carl Love <cel@us.ibm.com>
4036
4037 * config/rs6000/rs6000-c.c: Add support for built-in functions
4038 vector bool char vec_reve (vector bool char);
4039 vector signed char vec_reve (vector signed char);
4040 vector unsigned char vec_reve (vector unsigned char);
4041 vector bool int vec_reve (vector bool int);
4042 vector signed int vec_reve (vector signed int);
4043 vector unsigned int vec_reve (vector unsigned int);
4044 vector bool long long vec_reve (vector bool long long);
4045 vector signed long long vec_reve (vector signed long long);
4046 vector unsigned long long vec_reve (vector unsigned long long);
4047 vector bool short vec_reve (vector bool short);
4048 vector signed short vec_reve (vector signed short);
4049 vector double vec_reve (vector double);
4050 vector float vec_reve (vector float);
4051 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
4052 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
4053 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
4054 (altivec_vreve): New pattern.
4055 * config/rs6000/altivec.h (vec_reve): New define.
4056 * doc/extend.texi (vec_rev): Update the built-in documentation file
4057 for the new built-in functions.
4058
4059 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4060
4061 PR tree-optimization/71815
4062 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
4063 function.
4064 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
4065 has_single_use.
4066 (slsr_process_phi): Likewise.
4067 (replace_uncond_cands_and_profitable_phis): Don't replace a
4068 multiply candidate with a stride of 1 (copy or cast).
4069 (phi_incr_cost): Call uses_consumed_by_stmt rather than
4070 has_single_use.
4071 (lowest_cost_path): Likewise.
4072 (total_savings): Likewise.
4073
4074 2017-06-26 Richard Biener <rguenther@suse.de>
4075
4076 PR target/81175
4077 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
4078 Use def_builtin_pure for all gather builtins.
4079
4080 2017-06-26 Richard Biener <rguenther@suse.de>
4081
4082 PR tree-optimization/81203
4083 * tree-tailcall.c (find_tail_calls): Do not move stmts into
4084 non-dominating BBs.
4085
4086 2017-06-26 Marek Polacek <polacek@redhat.com>
4087
4088 PR c/80116
4089 * doc/invoke.texi: Document -Wmultistatement-macros.
4090
4091 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
4092
4093 * doc/sourcebuild.texi (ARM-specific attributes): Document new
4094 arm_neon_ok_no_float_abi effective target.
4095
4096 2017-06-26 Richard Biener <rguenther@suse.de>
4097
4098 PR tree-optimization/80928
4099 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
4100 (copy_bbs): Set BB_DUPLICATED flag early.
4101 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
4102 marked blocks.
4103 (execute_on_shrinking_pred): Likewise.
4104 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
4105 BB_DUPLICATED blocks.
4106 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
4107 iterate over all PHIs considering removal of *gsi.
4108
4109 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
4110
4111 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
4112 qdf24xx.
4113
4114 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4115
4116 * config/rs6000/rs6000-string.c: (expand_block_clear,
4117 do_load_for_compare, select_block_compare_mode,
4118 compute_current_alignment, expand_block_compare,
4119 expand_strncmp_align_check, expand_strn_compare,
4120 expand_block_move, rs6000_output_load_multiple)
4121 Move functions related to string/block move/compare
4122 to a separate file.
4123 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
4124 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
4125 for this function which is now used in two files.
4126 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
4127 * config.gcc: Add rs6000-string.o to extra_objs for
4128 targets powerpc*-*-* and rs6000*-*-*.
4129
4130 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4131
4132 PR target/80510
4133 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
4134 32-bit, since indexed is not valid for DImode.
4135 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
4136 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
4137 (define_peephole2 for Altivec d-form load): Add 32-bit support.
4138 (define_peephole2 for Altivec d-form store): Likewise.
4139
4140 PR ipa/81185
4141 * multiple_target.c (create_dispatcher_calls): Only create the
4142 dispatcher call if the function is the default clone of a
4143 versioned function.
4144
4145 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
4146
4147 PR middle-end/80902
4148 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
4149 a call, force the call to not be a tail call.
4150
4151 2017-06-23 Jeff Law <law@redhat.com>
4152
4153 * doc/contrib.texi: Add entry for Steven Pemberton's work on
4154 enquire.
4155
4156 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
4157
4158 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
4159 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
4160 handling for early expansion of vector shifts (sl,sr,sra,rl).
4161 (builtin_function_type): Add vector shift right instructions
4162 to the unsigned argument list.
4163
4164 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
4165
4166 rtl-optimizatoin/79286
4167 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
4168 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
4169 trap. PIC register plus a const unspec without offset can never trap.
4170
4171 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
4172
4173 * tree.h (builtin_structptr_type): New type.
4174 (builtin_structptr_types): Declare new array.
4175 * tree.c (builtin_structptr_types): New array.
4176 (free_lang_data, build_common_tree_nodes): Use it.
4177
4178 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
4179
4180 PR c++/81187
4181 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
4182 -Wnoexcept.
4183
4184 2017-06-22 Matt Turner <mattst88@gmail.com>
4185
4186 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
4187 Lake models to skylake case. Assume skylake for unknown
4188 models with clflushopt.
4189
4190 2017-06-22 Jeff Law <law@redhat.com>
4191
4192 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
4193 frame sizes that do not satisfy aarch64_uimm12_shift.
4194
4195 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
4196
4197 * profile-count.h (apply_probability,
4198 apply_scale, probability_in): Fix checks for zero.
4199
4200 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4201
4202 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
4203 * doc/cppdiropts.texi (-I @var{dir}): Document it.
4204
4205 2016-06-22 Richard Biener <rguenther@suse.de>
4206
4207 * tree-vect-loop.c (vect_model_reduction_cost): Handle
4208 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
4209 REDUC_MAX_EXPR support.
4210 (vectorizable_reduction): Likewise.
4211 (vect_create_epilog_for_reduction): Likewise.
4212
4213 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
4214
4215 * match.pd (A / (1 << B) -> A >> B): New.
4216 * generic-match-head.c: Include optabs-tree.h.
4217 * gimple-match-head.c: Likewise.
4218 * optabs-tree.h (target_supports_op_p): New.
4219 * optabs-tree.c (target_supports_op_p): New.
4220
4221 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4222
4223 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
4224 $gcc_cv_ld --help output.
4225 (gcc_cv_ld_demangle): Likewise.
4226 (gcc_cv_ld_eh_frame_hdr): Likewise.
4227 (gcc_cv_ld_pie): Likewise.
4228 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
4229 (gcc_cv_ld_buildid): Likewise.
4230 (gcc_cv_ld_sysroot): Likewise.
4231 (ld_bndplt_support): Likewise.
4232 (ld_pushpopstate_support): Likewise.
4233 * configure: Regenerate.
4234 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
4235
4236 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4237
4238 PR target/81151
4239 * config/i386/sse.md (round<mode>2): Renumber match_dup and
4240 operands indexes to avoid gap between operands and match_dups.
4241
4242 2017-06-21 Andrew Pinski <apinski@cavium.com>
4243
4244 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
4245 Increment Arith_shift and Arith_shift_reg by 1.
4246 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
4247 New tuning flag.
4248 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4249 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
4250 (aarch64_strip_extend): Add new argument and test for it.
4251 (aarch64_cheap_mult_shift_p): New function.
4252 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
4253 add a cost if it is true.
4254 Update calls to aarch64_strip_extend.
4255 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
4256
4257 2017-06-21 Andrew Pinski <apinski@cavium.com>
4258
4259 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
4260 tunings.
4261 (thunderxt88): Likewise.
4262 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
4263 (thunderx_prefetch_tune): New variable.
4264 (thunderx2t99_prefetch_tune): Update for the correct values.
4265 (thunderxt88_tunings): New variable.
4266 (thunderx_tunings): Use thunderx_prefetch_tune instead of
4267 generic_prefetch_tune.
4268 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
4269
4270 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4271
4272 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
4273 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
4274 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
4275 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
4276 (aarch64_atomic_cas<mode>, GPI): Likewise.
4277
4278 2017-06-21 Martin Liska <mliska@suse.cz>
4279
4280 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
4281 statements on cold and hot labels.
4282 * predict.c (tree_estimate_probability_bb): Remove the
4283 prediction from this place.
4284
4285 2017-06-21 Martin Liska <mliska@suse.cz>
4286
4287 PR tree-optimization/79489
4288 * gimplify.c (maybe_add_early_return_predict_stmt): New
4289 function.
4290 (gimplify_return_expr): Call the function.
4291 * predict.c (tree_estimate_probability_bb): Remove handling
4292 of early return.
4293 * predict.def: Update comment about early return predictor.
4294 * gimple-predict.h (is_gimple_predict): New function.
4295 * predict.def: Change default value of early return to 66.
4296 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
4297 statements.
4298 * passes.def: Put pass_strip_predict_hints to the beginning of
4299 IPA passes.
4300
4301 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
4302
4303 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
4304 FUNCTION_DECL declarations.
4305 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
4306 declarations.
4307 (dwaf2out_decl): Likewise.
4308 * godump.c (go_early_global_decl): Skip call to the real debug hook
4309 for FUNCTION_DECL declarations.
4310 * passes.c (rest_of_decl_compilation): Skip call to the
4311 early_global_decl debug hook for FUNCTION_DECL declarations, unless
4312 -fdump-go-spec is passed.
4313
4314 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
4315
4316 * config/i386/i386.c (struct builtin_isa): New field pure_p.
4317 Reorder for compactness.
4318 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
4319 (def_builtin_pure, def_builtin_pure2): New functions.
4320 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
4321
4322 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
4323
4324 * match.pd (nop_convert): New predicate.
4325 ((A +- CST1) +- CST2): Allow some NOP conversions.
4326
4327 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4328
4329 PR c++/81130
4330 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
4331 with ctors/dtors if GOVD_SHARED is set.
4332
4333 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
4334
4335 * config/aarch64/aarch64.md (movti_aarch64):
4336 Emit mov rather than orr.
4337 (movtf_aarch64): Likewise.
4338 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
4339 Emit mov rather than orr.
4340
4341 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
4342
4343 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
4344 Swap alternatives, make integer dup more expensive.
4345
4346 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
4347
4348 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
4349 Return true for non-tls symbols.
4350
4351 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
4352
4353 * config/aarch64/aarch64-cores.def (cortex-a55): New.
4354 (cortex-a75): Likewise.
4355 (cortex-a75.cortex-a55): Likewise.
4356 * config/aarch64/aarch64-tune.md: Regenerate.
4357 * doc/invoke.texi (-mtune): Document new values for -mtune.
4358
4359 2017-06-21 Tom de Vries <tom@codesourcery.com>
4360
4361 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
4362 stack_size feature.
4363 (Effective-Target Keywords, Other attributes): Suggest using
4364 dg-add-options stack_size feature to get stack limit in stack_size
4365 effective target documentation.
4366
4367 2017-06-21 Julian Brown <julian@codesourcery.com>
4368 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
4369
4370 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
4371 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
4372 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
4373 reservation.
4374 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
4375 attribute type list for neon_multiply.
4376 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
4377 attribute type list for neon_multiply.
4378 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
4379 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
4380 attribute type list for neon_multiply.
4381 * config/arm/types.md (crypto_pmull): Add.
4382 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
4383 attribute type list.
4384
4385 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
4386
4387 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
4388 arm1176jzf-s.
4389
4390 2017-06-20 Jakub Jelinek <jakub@redhat.com>
4391
4392 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
4393 to make sure not to dereference a NULL cost_classes_ptr pointer.
4394
4395 2017-06-20 Carl Love <cel@us.ibm.com>
4396
4397 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4398 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
4399 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
4400 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
4401 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
4402 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
4403 VMULOSW): New enum "unspec" values.
4404 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
4405 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
4406 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
4407 altivec_vmulosw): New patterns.
4408 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
4409 VMULOSW): Add definitions.
4410
4411 2017-06-20 Julia Koval <julia.koval@intel.com>
4412
4413 * config/i386/i386.c: Fix rounding expand for new pattern.
4414 * config/i386/subst.md: Fix pattern (parallel -> unspec).
4415
4416 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
4417
4418 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
4419 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
4420
4421 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
4422
4423 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
4424 feature string.
4425
4426 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
4427
4428 * config/aarch64/aarch64-cores.def: Rearrange to sort by
4429 architecture, then by implementer ID.
4430 * config/aarch64/aarch64-tune.md: Regenerate.
4431
4432 2017-06-20 Richard Biener <rguenther@suse.de>
4433
4434 PR middle-end/81097
4435 * fold-const.c (split_tree): Fold to type before negating.
4436
4437 2017-06-20 David Malcolm <dmalcolm@redhat.com>
4438
4439 * diagnostic-show-locus.c
4440 (selftest::test_fixit_deletion_affecting_newline): New function.
4441 (selftest::diagnostic_show_locus_c_tests): Call it.
4442
4443 2017-06-20 Andreas Schwab <schwab@suse.de>
4444
4445 PR target/80970
4446 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
4447 instead of "+d".
4448
4449 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4450
4451 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
4452 __ARM_FEATURE_COPROC according to support.
4453
4454 2017-06-20 Jakub Jelinek <jakub@redhat.com>
4455
4456 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
4457 Rewritten to avoid overflow for > 32-bit pointers.
4458
4459 PR sanitizer/81125
4460 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
4461 by removing enum keyword.
4462 (ubsan_type_descriptor): Likewise. Formatting fix.
4463
4464 PR target/81121
4465 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
4466 splitter): Require TARGET_SSE2 in the condition.
4467
4468 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4469
4470 PR target/79799
4471 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
4472 for doing vector set of SFmode on ISA 3.0.
4473 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
4474 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
4475 element.
4476 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
4477 SFmode value into a V4SF variable that was extracted from another
4478 V4SF variable without converting the element to double precision
4479 and back to single precision vector format.
4480 (vsx_insert_extract_v4sf_p9_2): Likewise.
4481
4482 2017-06-19 Jakub Jelinek <jakub@redhat.com>
4483
4484 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
4485 in UWHI to avoid undefined overflow.
4486
4487 PR sanitizer/81125
4488 * ubsan.h (enum ubsan_encode_value_phase): New.
4489 (ubsan_encode_value): Change second argument to
4490 enum ubsan_encode_value_phase with default value of
4491 UBSAN_ENCODE_VALUE_GENERIC.
4492 * ubsan.c (ubsan_encode_value): Change second argument to
4493 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
4494 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
4495 create_tmp_var_raw instead of create_tmp_var and use a
4496 TARGET_EXPR.
4497 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
4498 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
4499 ubsan_encode_value callers.
4500
4501 PR sanitizer/81111
4502 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
4503 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
4504 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
4505
4506 2017-06-19 Richard Biener <rguenther@suse.de>
4507
4508 PR middle-end/81118
4509 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
4510 estimates if we changed anything.
4511
4512 2017-06-19 Richard Biener <rguenther@suse.de>
4513
4514 PR tree-optimization/80887
4515 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
4516 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
4517 simplified lookups, then reset mprts_hook.
4518 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
4519 simplifying.
4520 (try_to_simplify): Likewise.
4521
4522 2017-06-19 Martin Liska <mliska@suse.cz>
4523
4524 PR sanitizer/80879
4525 * gimplify.c (gimplify_switch_expr):
4526 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
4527
4528 2017-06-19 Martin Liska <mliska@suse.cz>
4529
4530 * doc/install.texi: Document that PGO runs in 4 stages.
4531
4532 2017-06-19 Martin Liska <mliska@suse.cz>
4533
4534 PR ipa/80732
4535 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
4536 to dispatcher function name.
4537 * multiple_target.c (replace_function_decl): New function.
4538 (create_dispatcher_calls): Redirect both edges and references.
4539
4540 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
4541
4542 * profile-count.c (profile_count::dump): Dump quality.
4543 (profile_count::differs_from_p): Update for unsigned val.
4544 * profile-count.h (profile_count_quality): New enum.
4545 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
4546
4547 2017-06-19 Richard Biener <rguenther@suse.de>
4548
4549 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
4550 struct function as arg.
4551 (estimate_numbers_of_iterations): Export overload with loop arg.
4552 (free_numbers_of_iterations_estimates_loop): Use an overload of
4553 free_numbers_of_iterations_estimates instead.
4554 * tree-cfg.c (remove_bb): Adjust.
4555 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
4556 * tree-parloops.c (gen_parallel_loop): Likewise.
4557 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
4558 Likewise.
4559 (tree_unroll_loops_completely): Likewise.
4560 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4561 Use an overload instead and export.
4562 (estimated_loop_iterations): Adjust.
4563 (max_loop_iterations): Likewise.
4564 (likely_max_loop_iterations): Likewise.
4565 (estimate_numbers_of_iterations): Take struct function as arg
4566 and adjust.
4567 (loop_exits_before_overflow): Adjust.
4568 (free_numbers_of_iterations_estimates_loop): Use an overload.
4569 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
4570 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
4571
4572 2017-06-19 Richard Biener <rguenther@suse.de>
4573
4574 PR ipa/81112
4575 * ipa-prop.c (find_constructor_constant_at_offset): Handle
4576 RANGE_EXPR conservatively.
4577
4578 2017-06-16 Carl Love <cel@us.ibm.com>
4579
4580 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4581 definitions for vec_float, vec_float2, vec_floato,
4582 vec_floate built-ins.
4583 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
4584 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
4585 floate.
4586 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
4587 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
4588 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
4589 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
4590 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
4591 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
4592 vec_floato): Add builtin defines.
4593 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
4594 Update the built-in documentation file for the new built-in
4595 functions.
4596
4597 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4598
4599 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
4600 (mthumb): Mark as the negative of -marm.
4601
4602 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4603
4604 * doc/invoke.texi (ARM Options, -mcpu): Document supported
4605 extension options.
4606 (ARM Options, -mtune): Document that this accepts the same
4607 extension options as -mcpu.
4608 (ARM Options, -mfpu): Document addition of -mfpu=auto.
4609
4610 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4611
4612 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
4613 permitted extensions.
4614
4615 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4616
4617 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
4618 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
4619 (armv8-m.main): Add option +nodsp.
4620 * config/arm/arm-cpu-cdata.h: Regenerated.
4621
4622 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4623
4624 * config/arm/t-fuchsia: New file.
4625 * config.gcc (arm*-*-fuchsia*): Use it.
4626
4627 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4628
4629 * config/arm/t-symbian: Rewrite for new option infrastructure.
4630
4631 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4632
4633 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
4634 (MULTILIB_REQUIRED): Likewise.
4635
4636 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4637
4638 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
4639 (MULTILIB_RESUE): Likewise.
4640 (MULTILIB_MATCHES): Likewise.
4641 (MULTLIB_REQUIRED): Likewise.
4642
4643 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4644
4645 * config/arm/t-rtems: Rewrite for new option framework.
4646
4647 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4648
4649 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
4650 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
4651 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
4652 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
4653 * config/arm/t-multilib: ... here.
4654 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
4655 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
4656 armv7-a and armv8*-a when A-profile libraries have not been built.
4657 * config/arm/t-rmprofile: Rewrite.
4658
4659 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4660
4661 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
4662 with a backslash. Remove the backslash after substituting unescaped
4663 periods.
4664 * doc/fragments.texi (MULTILIB_REUSE): Document it.
4665
4666 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4667
4668 * config.gcc: (arm*-*-*): When building a-profile libraries, force
4669 the driver to pass through the default setting of -mfloat-abi.
4670 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
4671 rather than NULL.
4672 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
4673 (all_feat_combs): New rule.
4674 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
4675 default libraries.
4676 * config/arm/t-aprofile: Rewrite.
4677
4678 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4679
4680 * config/arm/arm.h (FPUTYPE_AUTO): Define.
4681 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
4682 fpu is not specified by the user/command-line.
4683 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
4684 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
4685 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
4686 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
4687 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
4688 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
4689
4690 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4691
4692 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
4693 * config/arm/t-arm-elf: Rewritten.
4694
4695 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4696
4697 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
4698 have some floating-point instructions.
4699 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
4700 (TARGET_MAYBE_HARD_FLOAT): New macro.
4701 * config/arm/arm-builtins.c (arm_init_builtins): Use
4702 TARGET_MAYBE_HARD_FLOAT.
4703 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
4704
4705 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4706
4707 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
4708 (configargs.h): Include it.
4709 (arm_print_hint_for_fpu_option): New function.
4710 (arm_parse_fpu_option): New function.
4711 (candidate_extension): New class.
4712 (arm_canon_for_multilib): New function.
4713 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
4714 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
4715 (ARCH_CANONICAL_SPECS): New macro.
4716 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
4717
4718 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4719
4720 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
4721 are set after handling multilib fragments. Set target_cpu_default2
4722 from with_cpu.
4723
4724 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4725
4726 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
4727 cpu name.
4728 (arm*-*-*): Set target_cpu_default2 to a quoted string.
4729 * config/arm/parsecpu.awk (check_cpu): Validate any extension
4730 options.
4731 (check_arch): Likewise.
4732 * config/arm/arm.c (arm_configure_build_target): Handle
4733 TARGET_CPU_DEFAULT being a string constant. Scan any feature
4734 options in the default.
4735
4736 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4737
4738 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
4739 when an option is an alias of another.
4740 * config/arm/parsecpu.awk (optalias): New parser token.
4741 (gen_comm_data): Mark non-alias options as such. Emit entries
4742 for extension aliases.
4743 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
4744 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
4745 (armv6kz, armv6zk, armv6t2): Likewise.
4746 (armv7): Make vfpv3-d16 an alias.
4747 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
4748 canonical order.
4749 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
4750 Sort in canonical order.
4751 (armv8-a): Sort in canonical order.
4752 (armv8.1-a, armv8.2-a): Likewise.
4753 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
4754 canonical order.
4755 (cortex-a9): Sort in canonical order.
4756 * config/arm/arm.c (selftests.h): Include it.
4757 (arm_test_cpu_arch_data): New function.
4758 (arm_run_self_tests): New function.
4759 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
4760 (targetm): Move declaration to the end of the file.
4761 * arm-cpu-cdata.h: Regenerated.
4762
4763 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4764
4765 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
4766 call to target_mode_check describing the type of option passed.
4767 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
4768 (arm_target_thumb_only): Use arm_parse_arch_option_name or
4769 arm_parse_cpu_option_name to match parameters against list of
4770 available targets.
4771 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
4772 arm_arch_core_flags data structure.
4773 * config/arm/arm-cpu_cdata.h: Regenerated.
4774
4775 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4776
4777 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
4778 config/arm/arm.c.
4779 (arm_print_hint_for_cpu_option): Likewise.
4780 (arm_print_hint_for_arch_option): Likewise.
4781 (arm_parse_cpu_option_name): Likewise.
4782 (arm_parse_arch_option_name): Likewise.
4783 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
4784 of entries in the all_fpus list.
4785 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
4786 (arm_parse_cpu_option_name): Declare.
4787 (arm_parse_arch_option_name): Declare.
4788 (arm_parse_option_features): Declare.
4789 (arm_intialize_isa): Declare.
4790 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
4791 data tables to ...
4792 (gen_comm_data): ... here. Make definitions non-static.
4793 * config/arm/arm-cpu-data.h: Regenerated.
4794 * config/arm/arm-cpu-cdata.h: Regenerated.
4795
4796 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4797
4798 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
4799 (cpu_arch_extension): New structure.
4800 (cpu_arch_option, arch_option, cpu_option): New structures.
4801 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
4802 architecture types.
4803 (gen_data): Generate new format data tables.
4804 * config/arm/arm.c (cpu_tune): New structure.
4805 (cpu_option, processors): Delete.
4806 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
4807 (arm_print_hint_for_cpu_option): ... this and ...
4808 (arm_print_hint_for_arch_option): ... this.
4809 (arm_parse_arch_cpu_name): Delete. Replace with ...
4810 (arm_parse_cpu_option_name): ... this and ...
4811 (arm_parse_arch_option_name): ... this.
4812 (arm_unrecognized_feature): Change type of target parameter to
4813 cpu_arch_option.
4814 (arm_parse_arch_cpu_features): Delete. Replace with ...
4815 (arm_parse_option_features): ... this.
4816 (arm_configure_build_target): Rework to use new configuration data
4817 tables.
4818 (arm_print_tune_info): Rework for new configuration data tables.
4819 * config/arm/arm-cpu-data.h: Regenerated.
4820 * config/arm/arm-cpu.h: Regenerated.
4821
4822 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4823
4824 * Makefile.in (OBJS): Move sbitmap.o from here ...
4825 (OBJS-libcommon): ... to here.
4826
4827 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4828
4829 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
4830 (ISA_ALL_CRYPTO): New macro.
4831 (ISA_ALL_SIMD): New macro
4832 (ISA_ALL_FP): New macro.
4833 * config/arm/arm.c (fpu_bitlist): Update initializer.
4834 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
4835 simd or fp.
4836 (arm9e): Add fpu. Add option for nofp
4837 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
4838 (arm926ej-s, arm1026ej-s): Likewise.
4839 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
4840 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
4841 neon-fp16, neon-vfpv4, nofp and nosimd.
4842 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
4843 (cortex-a8): Add fpu. Add option for nofp.
4844 (cortex-a9): Add fpu. Add options for nosimd and nofp.
4845 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
4846 (cortex-r4f): Add fpu.
4847 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
4848 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
4849 for nofp.
4850 (cortex-r8): Likewise.
4851 (cortex-m4): Add fpu. Add option for nofp.
4852 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
4853 (cortex-a17.cortex-a7): Likewise.
4854 (cortex-a32): Add fpu. Add options for crypto and nofp.
4855 (cortex-a35, cortex-a53): Likewise.
4856 (cortex-a57): Add fpu. Add option for crypto.
4857 (cortex-a72, cortex-a73): Likewise.
4858 (exynos-m1): Likewise.
4859 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
4860 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
4861 (cortex-m33): Add fpu. Add option for nofp.
4862 * config/arm/arm-cpu-cdata.h: Regenerated
4863 * config/arm/arm-cpu-data.h: Regenerated.
4864
4865 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4866
4867 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
4868 (armv5te, armv5tej): Likewise.
4869 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
4870 (armv7): Add options fp and vfpv3-d16.
4871 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
4872 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
4873 nofp and nosimd.
4874 (armv7ve): Likewise.
4875 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
4876 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
4877 (armv8-a): Add nocrypto option.
4878 (armv8.1-a, armv8.2-a): Likewise.
4879 (armv8-m.main): add options fp, fp.dp and nofp.
4880
4881 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4882
4883 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
4884 nofp.
4885 (armv8-a+crc): Delete.
4886 (armv8.1-a): Add options simd, crypto and nofp.
4887 (armv8.2-a): Add options fp16, simd, crypto and nofp.
4888 (armv8.2-a+fp16): Delete.
4889 (armv8-m.main): Add option dsp.
4890 (armv8-m.main+dsp): Delete.
4891 (cortex-a8): Add fpu. Add nofp option.
4892 (cortex-a9): Add fpu. Add nofp and nosimd options.
4893 * config/arm/parsecpu.awk (gen_data): Generate option tables and
4894 link to main cpu and architecture data structures.
4895 (gen_comm_data): Only put isa attributes from the main architecture
4896 in common tables.
4897 (option): New statement for architecture and CPU entries.
4898 * arm.c (struct cpu_option): New structure.
4899 (struct processors): Add entry for options.
4900 (arm_unrecognized_feature): New function.
4901 (arm_parse_arch_cpu_name): Ignore any characters after the first
4902 '+' character.
4903 (arm_parse_arch_cpu_feature): New function.
4904 (arm_configure_build_target): Separate out any CPU and architecture
4905 features and parse separately. Don't error out if -mfpu=auto is
4906 used with only an architecture string.
4907 (arm_print_asm_arch_directives): New function.
4908 (arm_file_start): Call it.
4909 * config/arm/arm-cpu-cdata.h: Regenerated.
4910 * config/arm/arm-cpu-data.h: Likewise.
4911 * config/arm/arm-tables.opt: Likewise.
4912
4913 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4914
4915 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
4916 assembler when it is not -mfpu=auto.
4917
4918 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4919
4920 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
4921 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
4922 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
4923 (ASM_CPU_SPEC): Rewrite.
4924 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
4925 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
4926 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
4927 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
4928 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
4929 copied string is NUL-terminated. Also strip any characters prefixed
4930 by '+'.
4931 (arm_rewrite_selected_arch): New function.
4932 (arm_rewrite_march): New function.
4933
4934 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
4935
4936 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
4937 (x_arm_cpu_string, x_arm_tune_string): Likewise.
4938 (march, mcpu, mtune): Convert to string-based options.
4939 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
4940 (arm_parse_arch_cpu_name): New function.
4941 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
4942 identify selected architecture or CPU.
4943 (arm_option_save): New function.
4944 (TARGET_OPTION_SAVE): Redefine.
4945 (arm_option_restore): Restore string options.
4946 (arm_option_print): Print string options.
4947
4948 2017-06-16 Martin Sebor <msebor@redhat.com>
4949
4950 PR tree-optimization/80933
4951 PR tree-optimization/80934
4952 * builtins.c (fold_builtin_3): Do not handle bcmp here.
4953 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
4954 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
4955 (gimple_fold_builtin): Call them.
4956
4957 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
4958
4959 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
4960 as unlikely; update profile.
4961
4962 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
4963
4964 * predict.c (force_edge_cold): Handle declaring edges impossible
4965 more aggresively.
4966
4967 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
4968
4969 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
4970 profile.
4971 (try_unroll_loop_completely): Fix reporting.
4972
4973 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
4974
4975 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
4976
4977 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
4978
4979 PR target/71778
4980 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
4981 if given a non-constant argument for an intrinsic which requires a
4982 constant.
4983
4984 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
4985
4986 * profile.c (compare_freqs): New function.
4987 (branch_prob): Sort edge list.
4988 (find_spanning_tree): Assume that the list is priority sorted.
4989
4990 2017-06-16 Richard Biener <rguenther@suse.de>
4991
4992 PR tree-optimization/81090
4993 * passes.def (pass_record_bounds): Remove.
4994 * tree-pass.h (make_pass_record_bounds): Likewise.
4995 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
4996 make_pass_record_bounds): Likewise.
4997 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
4998 not free niter estimates at the beginning but at the end.
4999 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
5000
5001 2017-06-16 Richard Biener <rguenther@suse.de>
5002
5003 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
5004 initializer to workaround ICE in host GCC 4.8.
5005
5006 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
5007
5008 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
5009 counts.
5010 (clone_inlined_nodes): Update.
5011
5012 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5013
5014 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
5015 prefetch settings, and enable prefetching by default at -O3.
5016
5017 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5018
5019 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5020 Set flag_prefetch_loop_arrays according to tuning data.
5021
5022 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5023
5024 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
5025 New tune structure.
5026 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
5027 [Unrelated to main purpose of the patch] Place the pointer field last
5028 to enable type checking errors when tune structure are wrongly merged.
5029 * config/aarch64/aarch64.c (generic_prefetch_tune,)
5030 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
5031 (thunderx2t99_prefetch_tune): New tune constants.
5032 (tune_params *_tunings): Update all tunings (no functional change).
5033 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
5034 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
5035 from tunings structures.
5036
5037 2017-06-16 Jakub Jelinek <jakub@redhat.com>
5038
5039 PR sanitizer/81094
5040 * ubsan.c (instrument_null): Add T argument, use it instead
5041 of computing it based on IS_LHS.
5042 (instrument_object_size): Likewise.
5043 (pass_ubsan::execute): Adjust instrument_null and
5044 instrument_object_size callers to pass gimple_get_lhs or
5045 gimple_assign_rhs1 result to it. Use instrument_null instead of
5046 calling get_base_address and instrument_mem_ref. Handle
5047 aggregate call arguments for object-size sanitization.
5048
5049 2017-06-16 Yury Gribov <tetra2005@gmail.com>
5050
5051 PR tree-optimization/81089
5052 * tree-vrp.c (is_masked_range_test): Validate operands of
5053 subexpression.
5054
5055 2017-06-15 Martin Sebor <msebor@redhat.com>
5056
5057 PR c++/80560
5058 * dumpfile.c (dump_register): Avoid calling memset to initialize
5059 a class with a default ctor.
5060 * gcc.c (struct compiler): Remove const qualification.
5061 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
5062 * hash-table.h: Ditto.
5063 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
5064 assignment.
5065 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
5066 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
5067 default ctor.
5068 * params.h (struct param_info): Make struct members non-const.
5069 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
5070 with default initialization.
5071 * vec.h (vec_copy_construct, vec_default_construct): New helper
5072 functions.
5073 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
5074 with vec_copy_construct.
5075 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
5076 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
5077 * doc/invoke.texi (-Wclass-memaccess): Document.
5078
5079 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5080
5081 * emit-rtl.h (is_leaf): Update comment about local
5082 register allocator.
5083
5084 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
5085
5086 PR target/78818
5087 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
5088 for a variable to have a section before checking if the section has a
5089 name.
5090 Set section to.persistent if persistent attribute is set.
5091 Warn if .persistent attribute is used on an automatic variable.
5092
5093 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
5094
5095 PR rtl-optimization/80474
5096 * reorg.c (update_block): Do not ignore instructions in a delay slot.
5097
5098 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
5099
5100 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
5101 of REGNO.
5102
5103 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
5104
5105 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
5106 (casesi): Emit bounds checking as RTL.
5107 (casesi_internal_mips16_<mode>): Remove bounds checking.
5108
5109 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5110
5111 * config/xtensa/xtensa.c (xtensa_option_override): Append
5112 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
5113 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
5114 xtensa_doloop_hooks): Define unconditionally.
5115 (xtensa_reorg_loops): Only call reorg_loops in the presence of
5116 TARGET_LOOPS.
5117 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
5118 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
5119 for it in xtensa_option_override.
5120 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5121 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
5122
5123 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
5124
5125 * doc/cppopts.texi: Document '-' special value to -MF.
5126
5127 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
5128
5129 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
5130 (cortex_a53_fconst): Likewise.
5131 (cortex_a53_fpmul): Likewise.
5132 (cortex_a53_f_load_64): Likewise.
5133 (cortex_a53_f_load_many): Likewise.
5134 (cortex_a53_advsimd_alu): Likewise.
5135 (cortex_a53_advsimd_alu_q): Likewise.
5136 (cortex_a53_advsimd_mul): Likewise.
5137 (cortex_a53_advsimd_mul_q): Likewise.
5138 (fpmac bypass): Add new bypass for fpmac-fpmac case.
5139 Add missing fmul, r2f_cvt and fconst cases.
5140
5141 2017-06-14 Richard Biener <rguenther@suse.de>
5142
5143 PR middle-end/81088
5144 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
5145 literal constants.
5146 (fold_binary_loc): When associating do not treat pre-existing
5147 TREE_OVERFLOW on literal constants as a reason to allow
5148 TREE_OVERFLOW on associated literal constants.
5149
5150 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
5151
5152 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
5153 (MASK_FEATURES): New macro.
5154 * config/sparc/sparc.c (sparc_option_override): Remove the special
5155 handling of -mfpu and generalize it to all MASK_FEATURES switches.
5156
5157 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
5158
5159 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
5160 a division of 0 if non-call exceptions are enabled.
5161
5162 2017-06-14 Andrew Pinski <apinski@cavium.com>
5163 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5164
5165 PR target/71663
5166 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
5167 Improve vector initialization code gen for only variable case.
5168
5169 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
5170
5171 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
5172
5173 2017-06-14 Richard Biener <rguenther@suse.de>
5174
5175 PR tree-optimization/81083
5176 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
5177 as values.
5178
5179 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5180
5181 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
5182 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
5183 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
5184 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
5185 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
5186 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
5187
5188 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5189
5190 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
5191 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
5192
5193 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5194
5195 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
5196
5197 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5198
5199 * config/rs6000/t-rtems: Don't handle SPE.
5200
5201 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5202
5203 * config/rs6000/t-linux: Don't handle SPE.
5204
5205 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5206
5207 * config/rs6000/eabispe.h: Delete file.
5208
5209 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5210
5211 * config/rs6000/t-spe: Delete file.
5212
5213 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5214
5215 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
5216 (rs6000_legitimate_offset_address_p): Return false for anything in
5217 V2SImode or V2SFmode.
5218
5219 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
5220
5221 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
5222 except V2SF and V2SI. Rearrange the vector modes, and add comments.
5223 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
5224 and V4HImode.
5225 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
5226 (rs6000_legitimate_offset_address_p): Ditto.
5227 (rs6000_emit_move): Ditto.
5228 (rs6000_init_builtins): Remove V4HI_type_node.
5229
5230 2017-06-13 Martin Liska <mliska@suse.cz>
5231
5232 PR sanitize/78204
5233 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
5234 (gate_asan): Likewise.
5235 * asan.h (asan_no_sanitize_address_p): Remove the function.
5236 (sanitize_flags_p): New function.
5237 * builtins.def: Fix coding style.
5238 * common.opt: Use renamed enum value.
5239 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
5240 * doc/extend.texi: Document no_sanitize attribute.
5241 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
5242 to SANITIZE_UNDEFINED_NONDEFAULT.
5243 * gcc.c (sanitize_spec_function): Use the renamed enum value.
5244 * gimple-fold.c (optimize_atomic_compare_exchange_p):
5245 Use sanitize_flags_p.
5246 * gimplify.c (gimplify_function_tree): Likewise.
5247 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
5248 * opts.c (parse_no_sanitize_attribute): New function.
5249 (common_handle_option): Use renamed enum value.
5250 * opts.h (parse_no_sanitize_attribute): Declare.
5251 * tree.c (sanitize_flags_p): New function.
5252 * tree.h: Declared here.
5253 * tsan.c: Use sanitize_flags_p.
5254 * ubsan.c (ubsan_expand_null_ifn): Likewise.
5255 (instrument_mem_ref): Likewise.
5256 (instrument_bool_enum_load): Likewise.
5257 (do_ubsan_in_current_function): Remove the function.
5258 (pass_ubsan::execute): Use sanitize_flags_p.
5259 * ubsan.h: Remove do_ubsan_in_current_function
5260 * tree-cfg.c (print_no_sanitize_attr_value): New function.
5261 (dump_function_to_file): Use it here.
5262
5263 2017-06-13 Martin Jambor <mjambor@suse.cz>
5264
5265 PR tree-optimization/80803
5266 PR tree-optimization/81063
5267 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
5268 (propagate_subaccesses_across_link): Enqueue subtree whenever
5269 necessary instead of relying on the caller.
5270
5271 2017-06-13 Martin Jambor <mjambor@suse.cz>
5272
5273 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
5274 that have a first_link.
5275 (sort_and_splice_var_accesses): Do not check first_link before
5276 enquing.
5277 (subtree_mark_written_and_enqueue): Likewise.
5278 (propagate_all_subaccesses): Likewise and do not stop at first
5279 parent with a first_link.
5280
5281 2017-06-13 Martin Jambor <mjambor@suse.cz>
5282
5283 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
5284 instead of f.
5285
5286 2017-06-13 Yury Gribov <tetra2005@gmail.com>
5287
5288 * match.pd: New pattern.
5289
5290 2017-06-13 Yury Gribov <tetra2005@gmail.com>
5291
5292 * tree-vrp.c (is_masked_range_test): New function.
5293 (register_edge_assert_for): Determine ranges for
5294 some bit tests.
5295
5296 2017-06-13 Yury Gribov <tetra2005@gmail.com>
5297
5298 PR tree-optimization/67328
5299 * fold-const.c (maskable_range_p): New function.
5300 (build_range_check): Generate bittests if possible.
5301
5302 2017-06-13 Martin Liska <mliska@suse.cz>
5303
5304 * gimple-pretty-print.c (dump_probability): Add new argument.
5305 (dump_edge_probability): Dump both probability and count.
5306 (dump_gimple_label): Likewise.
5307 (dump_gimple_bb_header): Likewise.
5308
5309 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
5310
5311 PR target/81072
5312 * config/avr/avr-devices.c: Fix indentation.
5313 * config/avr/gen-avr-mmcu-specs.c: Dito.
5314
5315 2017-06-13 Richard Biener <rguenther@suse.de>
5316
5317 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
5318 instead get vector type from stmt_info.
5319 (vectorizable_reduction): Adjust. Remove dead code.
5320
5321 2017-06-13 Richard Biener <rguenther@suse.de>
5322
5323 PR middle-end/81065
5324 * fold-const.c (extract_muldiv_1): Remove bogus distribution
5325 case of C * (x * C2 + C3).
5326 (fold_addr_of_array_ref_difference): Properly fold index difference.
5327
5328 2017-06-12 David S. Miller <davem@davemloft.net>
5329
5330 PR target/80968
5331 * config/sparc/sparc.md (return expander): Emit frame blockage if
5332 function uses alloca.
5333
5334 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
5335
5336 * combine.c (make_field_assignment): Check len rather than the mode
5337 precision when calling force_to_mode.
5338
5339 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
5340
5341 Support multilibs and devices that see flash in RAM address range.
5342
5343 PR target/81072
5344 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
5345 (avr_mcu_t) <flash_pm_offset>: New field.
5346 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
5347 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
5348 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
5349 (AVR_TINY_PM_OFFSET): Remove macro.
5350 * config/avr/avr.opt (-mshort-calls): New option.
5351 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
5352 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
5353 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5354 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
5355 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
5356 instead of avr_arch->have_jmp_call.
5357 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
5358 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
5359 avr_arch->flash_pm_offset to define.
5360 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
5361 new field flash_pm_offset. Add entry for avrxmega3.
5362 (avr_texinfo): Add entry for avrxmega3.
5363 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
5364 attiny212, attiny214,
5365 attiny412, attiny414, attiny416, attiny417,
5366 attiny814, attiny816, attiny817,
5367 attiny1614, attiny1616, attiny1617,
5368 attiny3214, attiny3216, attiny3217.
5369 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
5370 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
5371 (avr_print_operand_address) [AVR_TINY]: Same.
5372 (avr_asm_init_sections) <readonly_data_section>: Only patch
5373 callback if avr_arch->flash_pm_offset = 0.
5374 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
5375 for rodata if avr_arch->flash_pm_offset != 0.
5376 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
5377 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
5378 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
5379 (m_options): Append opt_rcall.
5380 (m_dirnames): Append dir_rcall.
5381 * config/avr/t-multilib: Regenerate.
5382
5383 * configure.ac [target=avr]: Check whether avrxmega3 default
5384 linker description file works as needed.
5385 * configure: Regenerate.
5386 * doc/avr-mmcu.texi: Regenerate.
5387 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
5388 <__AVR_ARCH__>: Document avrxmega3 and 103.
5389 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
5390 <__AVR_SHORT_CALLS__>: Document it.
5391 <__AVR_PM_BASE_ADDRESS__>: Document it.
5392 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
5393 (AVR Variable Attributes) <progmem>: Document this is
5394 not needed for avrxmega3.
5395 (AVR Named Address Spaces) <__flash>: Dito.
5396
5397 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
5398
5399 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
5400
5401 2017-06-12 Doug Rupp <rupp@adacore.com>
5402
5403 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
5404 Append vxworks-stdint.h to the tm_file list.
5405 * config/vxworks-stdint.h: New file.
5406
5407 2017-06-12 Martin Liska <mliska@suse.cz>
5408
5409 PR tree-optimization/81041
5410 * tree-profile.c (gimple_gen_ic_func_profiler):
5411 Create an extra BB in profile-generate
5412 (gimple_gen_time_profiler): Likewise.
5413
5414 2017-06-12 Jakub Jelinek <jakub@redhat.com>
5415
5416 PR tree-optimization/81003
5417 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
5418 (update_range_test): Use it instead of force_gimple_operand_gsi.
5419
5420 2017-06-12 Richard Biener <rguenther@suse.de>
5421
5422 PR tree-optimization/81053
5423 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
5424 with backedge value not defined in loop. Simplify def stmt
5425 compute.
5426
5427 2017-06-11 Tom de Vries <tom@codesourcery.com>
5428
5429 PR target/79939
5430 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
5431 Return true.
5432 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
5433 nvptx_cannot_force_const_mem.
5434
5435 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
5436
5437 * opts.c (finish_options): Move test for flag_split_stack after
5438 it has been initialized.
5439
5440 2017-06-11 Jason Merrill <jason@redhat.com>
5441
5442 * tree.h (id_equal): New.
5443 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
5444 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
5445 instead of strcmp of IDENTIFIER_POINTER.
5446
5447 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
5448
5449 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
5450 (mark_all_inlined_calls_cdtor): Fix formating.
5451 (inline_transform): Rescale profile before inlining.
5452
5453 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
5454
5455 * cgraph.h (cgraph_edge::clone): Update prototype.
5456 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
5457 (cgraph_node::create_clone): Update.
5458 (cgraph_node::create_version_clone): Update.
5459 * tree-inline.c (copy_bb): Update.
5460 (expand_call_inline): Update.
5461
5462 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
5463
5464 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
5465 factored out from ...
5466 (rs6000_emit_prologue): ... here.
5467
5468 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
5469
5470 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
5471 factored out from ...
5472 (rs6000_emit_prologue): ... here.
5473
5474 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
5475
5476 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
5477 edge counts.
5478 (handle_missing_profiles): Fix computation of tp_first_run.
5479 (counts_to_freqs): Do not touch freqs when count is 0.
5480
5481 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
5482
5483 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
5484 profile.
5485
5486 2017-06-10 Tom de Vries <tom@codesourcery.com>
5487
5488 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5489 attributes): Document signal effective target.
5490
5491 2017-06-10 Tom de Vries <tom@codesourcery.com>
5492
5493 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
5494 Document effective target stack_size.
5495
5496 2017-06-09 David Malcolm <dmalcolm@redhat.com>
5497
5498 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
5499 to the edit_context if they can be auto-applied.
5500
5501 2017-06-9 Ian Lance Taylor <iant@golang.org>
5502
5503 * opts.c (finish_options): If -fsplit-stack, disable implicit
5504 -forder-blocks-and-partition.
5505 * doc/invoke.texi (Optimize Options): Document that when using
5506 -fsplit-stack -forder-blocks-and-partition is not implicitly
5507 enabled.
5508
5509 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
5510
5511 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
5512 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
5513 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
5514 * builtins.def (abort, trap, unreachable): Declare cold.
5515 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
5516 * tree-core.h (ECF_COLD): New.
5517 * tree.c (set_call_expr_flags): Handle ECF_COLD.
5518 (build_common_builtin_nodes): Mark unreachable and abort as cold.
5519
5520 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
5521
5522 * predict.c (unlikely_executed_stmt_p): Cleanup.
5523
5524 2017-06-09 Richard Biener <rguenther@suse.de>
5525
5526 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
5527 model if the ref is always written to.
5528
5529 2017-06-09 Tamar Christina <tamar.christina@arm.com>
5530
5531 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
5532
5533 2017-06-09 Tamar Christina <tamar.christina@arm.com>
5534
5535 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
5536 than udiv.
5537
5538 2017-06-09 Tom de Vries <tom@codesourcery.com>
5539
5540 PR target/80855
5541 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
5542 "target cannot support label values" when encountering LABEL_REF.
5543
5544 2017-06-09 Martin Liska <mliska@suse.cz>
5545
5546 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
5547 (gimple_gen_ic_func_profiler): Emit direct comparison
5548 of __gcov_indirect_call_callee with NULL.
5549 (gimple_gen_time_profiler): Change probability from
5550 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
5551
5552 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
5553
5554 * profile.c (edge_gcov_counts): Turn to pointer.
5555 (compute_branch_probabilities, compute_branch_probabilities): Update.
5556 (branch_prob): Do not clear edge_gcov_count.
5557 * profile.h (edge_gcov_counts): Turn to pointer.
5558 (edge_gcov_count): Update.
5559
5560 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
5561
5562 * gimple.h (gimple_check_failed): Mark cold.
5563
5564 2017-06-09 Richard Biener <rguenther@suse.de>
5565
5566 PR tree-optimization/66623
5567 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
5568 refactor check_reduction into two parts, properly computing
5569 whether we have to check reduction validity for outer loop
5570 vectorization.
5571
5572 2017-06-09 Richard Biener <rguenther@suse.de>
5573
5574 PR tree-optimization/79483
5575 * graphite-scop-detection.c (order): New global.
5576 (get_order): Compute bb to order mapping that satisfies code
5577 generation constraints.
5578 (cmp_pbbs): New helper.
5579 (build_scops): Start domwalk at entry block, sort generated
5580 pbbs.
5581
5582 2017-06-09 Richard Biener <rguenther@suse.de>
5583
5584 PR middle-end/81007
5585 * ipa-polymorphic-call.c
5586 (ipa_polymorphic_call_context::restrict_to_inner_class):
5587 Skip FIELD_DECLs with error_mark_node type.
5588 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
5589 last again.
5590
5591 2017-06-09 Martin Liska <mliska@suse.cz>
5592
5593 * predict.c (struct branch_predictor): New struct.
5594 (test_prediction_value_range): New test.
5595 (predict_c_tests): New function.
5596 * selftest-run-tests.c (selftest::run_tests): Run the function.
5597 * selftest.h: Declare new tests.
5598
5599 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
5600
5601 PR target/80966
5602 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
5603 gen_add3_insn did not fail.
5604 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
5605 r0, construct that number in a temporary reg and add that reg to r0.
5606 If asked to put the result in r0 as well, fail.
5607
5608 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
5609
5610 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
5611 for early expansion of vec_eqv.
5612
5613 2017-06-08 Jakub Jelinek <jakub@redhat.com>
5614
5615 PR middle-end/81005
5616 * ubsan.c (instrument_null): Avoid pointless code temporary.
5617 (pass_ubsan::execute): Instrument aggregate arguments of calls.
5618
5619 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
5620
5621 PR target/81015
5622 Revert:
5623 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
5624
5625 PR target/59874
5626 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
5627 (*clzhi2): Ditto.
5628
5629 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5630
5631 * predict.c (unlikely_executed_edge_p): Move ahead.
5632 (probably_never_executed_edge_p): Use it.
5633
5634 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
5635
5636 PR middle-end/79988
5637 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
5638 gimple_call_builtin_p call.
5639
5640 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5641
5642 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
5643 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
5644 rtl_check_failed_type2, rtl_check_failed_code1,
5645 rtl_check_failed_code2, rtl_check_failed_code_mode,
5646 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
5647 rtvec_check_failed_bounds, rtl_check_failed_flag,
5648 _fatal_insn_not_found, _fatal_insn): Likewise.
5649 * tree.h (tree_contains_struct_check_failed,
5650 tree_check_failed, tree_not_check_failed,
5651 tree_class_check_failed, tree_range_check_failed,
5652 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
5653 tree_vec_elt_check_failed, phi_node_elt_check_failed,
5654 tree_operand_check_failed, omp_clause_check_failed,
5655 omp_clause_operand_check_failed, omp_clause_range_check_failed):
5656 Likewise.
5657
5658 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5659
5660 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
5661 flag_branch_probabilities.
5662 * ipa-inline.c (edge_badness): Likewise.
5663 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
5664 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5665 * predict.c (maybe_hot_frequency_p): Likewise.
5666 (probably_never_executed): Likewise.
5667 * sched-ebb.c (schedule_ebbs): Likewise.
5668 * sched-rgn.c (find_single_block_region): Likewise.
5669 * tracer.c (tail_duplicate): Likewise.
5670
5671 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5672
5673 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
5674 longer requires x_flag_profile_use.
5675
5676 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5677
5678 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
5679 instead of flag_reorder_blocks_and_partition.
5680 * dbxout.c (dbxout_function_end): Likewise.
5681 * dwarf2out.c (gen_subprogram_die): Likewise.
5682 * haifa-sched.c (sched_create_recovery_edges): Likewise.
5683 * hw-doloop.c (reorg_loops): Likewise.
5684 * varasm.c (assemble_start_function,
5685 assemble_end_function): Likewise.
5686 (decide_function_section): Do not check for
5687 flag_reorder_blocks_and_partition.
5688
5689 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
5690
5691 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
5692 New function.
5693 (chkp_get_hard_register_fake_addr_expr): Ditto.
5694 (chkp_build_addr_expr): Add check for hard reg case.
5695 (chkp_parse_array_and_component_ref): Ditto.
5696 (chkp_find_bounds_1): Ditto.
5697 (chkp_process_stmt): Don't generate bounds store for
5698 hard reg case.
5699
5700 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5701
5702 * predict.c (maybe_hot_bb_p): Do not check profile status.
5703 (maybe_hot_edge_p): Likewise.
5704 (probably_never_executed): Check for zero counts even if profile
5705 is not read.
5706 (unlikely_executed_edge_p): New function.
5707 (unlikely_executed_stmt_p): New function.
5708 (unlikely_executed_bb_p): New function.
5709 (set_even_probabilities): Use unlikely predicates.
5710 (combine_predictions_for_bb): Likewise.
5711 (predict_paths_for_bb): Likewise.
5712 (predict_paths_leading_to_edge): Likewise.
5713 (determine_unlikely_bbs): New function.
5714 (estimate_bb_frequencies): Use it.
5715 (compute_function_frequency): Use zero counts even if profile is
5716 not read.
5717 * profile-count.h: Fix typo.
5718
5719 2017-08-08 Julia Koval <julia.koval@intel.com>
5720
5721 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
5722 _mm512_mask_cvtsepi16_storeu_epi8,
5723 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
5724 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
5725 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
5726 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
5727 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
5728 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
5729 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
5730 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
5731 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
5732 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
5733 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
5734 __builtin_ia32_pmovuswb256mem_mask,
5735 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
5736 __builtin_ia32_pmovwb512mem_mask): New builtins.
5737
5738 2017-08-08 Julia Koval <julia.koval@intel.com>
5739
5740 PR target/73350,80862
5741 * config/i386/subst.md (round): Fix round pattern.
5742 * config/i386/i386.c (ix86_erase_embedded_rounding):
5743 Fix erasing rounding for the fixed pattern.
5744
5745 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
5746
5747 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
5748
5749 2017-06-08 Martin Liska <mliska@suse.cz>
5750
5751 PR gcov-profile/80911
5752 * gcov.c (block_info::block_info): New constructor.
5753
5754 2017-06-07 Carl Love <cel@us.ibm.com>
5755
5756 * config/rs6000/rs6000-c: The return type of the following
5757 built-in functions was implemented as int not long long. Fix sign
5758 of return value for the unsigned version of vec_mulo and vec_mule.
5759 vector unsigned long long vec_bperm (vector unsigned long long,
5760 vector unsigned char)
5761 vector signed long long vec_mule (vector signed int,
5762 vector signed int)
5763 vector unsigned long long vec_mule (vector unsigned int,
5764 vector unsigned int)
5765 vector signed long long vec_mulo (vector signed int,
5766 vector signed int)
5767 vector unsigned long long vec_mulo (vector unsigned int,
5768 vector unsigned int)
5769 * doc/extend.texi: Fix the documentation for the built-in
5770 functions.
5771
5772 2017-06-07 Carl Love <cel@us.ibm.com>
5773
5774 PR target/80982
5775 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
5776 for BE.
5777
5778 2017-06-07 Carl Love <cel@us.ibm.com>
5779
5780 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
5781 support, Generate doublehv for signed int/float for BE case only.
5782
5783 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
5784
5785 * doc/invoke.texi (mcx16): Rewrite.
5786
5787 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5788
5789 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
5790 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
5791 *mov<mode>_softfloat, and an anonymous splitter): Use
5792 nonimmediate_operand instead of rs6000_nonimmediate_operand.
5793
5794 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5795
5796 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
5797 SPEFSCR registers.
5798 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
5799 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
5800 (rs6000_debug_reg_global): Adjust.
5801 (rs6000_init_hard_regno_mode_ok): Adjust.
5802 (rs6000_dbx_register_number): Adjust.
5803 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
5804 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5805 Remove SPE_ACC and SPEFSCR.
5806 (REG_ALLOC_ORDER): Ditto.
5807 (FRAME_POINTER_REGNUM): Change to 111.
5808 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
5809 (REG_CLASS_NAMES): Ditto.
5810 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
5811 (REGISTER_NAMES): Ditto.
5812 (ADDITIONAL_REG_NAMES): Ditto.
5813 (rs6000_reg_names): Ditto.
5814 * config/rs6000/rs6000.md: Renumber some register number
5815 define_constants.
5816
5817 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5818
5819 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
5820 registers.
5821 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
5822 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
5823 to 117.
5824 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
5825 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5826 Delete the SPE high registers.
5827 (REG_ALLOC_ORDER): Ditto.
5828 (enum reg_class): Remove SPE_HIGH_REGS.
5829 (REG_CLASS_NAMES): Ditto.
5830 (REG_CLASS_CONTENTS): Delete the SPE high registers.
5831 (REGISTER_NAMES): Ditto.
5832 (rs6000_reg_names): Ditto.
5833 * doc/tm.texi.in: Remove SPE as example.
5834 * doc/tm.texi: Regenerate.
5835
5836 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5837
5838 * config/rs6000/8540.md (ppc8540_brinc): Delete.
5839 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
5840 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
5841 * config/rs6000/rs6000.md (type): Remove "brinc".
5842
5843 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5844
5845 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
5846 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
5847 * config/rs6000/linuxspe.h: Delete file.
5848 * config/rs6000/rs6000.md: Don't include spe.md.
5849 * config/rs6000/spe.h: Delete file.
5850 * config/rs6000/spe.md: Delete file.
5851 * config/rs6000/t-rs6000: Remove spe.md.
5852
5853 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5854
5855 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
5856 (reg_or_none500mem_operand): Delete.
5857 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
5858 instead of reg_or_none500mem_operand.
5859
5860 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5861
5862 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
5863 handling of SPE flags.
5864 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
5865
5866 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5867
5868 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
5869 SPE ABI handling.
5870 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
5871 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
5872 paired_divv2sf3): Similar.
5873 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
5874 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
5875 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
5876 RS6000_BUILTIN_S.
5877 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
5878 Rename the paired_* instruction patterns.
5879 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
5880 define __SPE__.
5881 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
5882 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
5883 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
5884 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
5885 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
5886 PAIRED_VECTOR_MODE.
5887 (struct machine_function): Delete field spe_insn_chain_scanned_p.
5888 (spe_func_has_64bit_regs_p): Delete.
5889 (spe_expand_predicate_builtin): Delete.
5890 (spe_expand_evsel_builtin): Delete.
5891 (TARGET_DWARF_REGISTER_SPAN): Do not define.
5892 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
5893 (invalid_e500_subreg): Delete.
5894 (rs6000_legitimize_address): Always force_reg op2 as well, for
5895 paired single memory accesses.
5896 (rs6000_member_type_forces_blk): Delete.
5897 (rs6000_spe_function_arg): Delete.
5898 (rs6000_expand_unop_builtin): Delete SPE handling.
5899 (rs6000_expand_binop_builtin): Ditto.
5900 (spe_expand_stv_builtin): Delete.
5901 (bdesc_2arg_spe): Delete.
5902 (spe_expand_builtin): Delete.
5903 (spe_expand_predicate_builtin): Delete.
5904 (spe_expand_evsel_builtin): Delete.
5905 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
5906 (spe_init_builtins): Delete.
5907 (spe_func_has_64bit_regs_p): Delete.
5908 (savres_routine_name): Delete "info" parameter. Adjust callers.
5909 (rs6000_emit_stack_reset): Ditto.
5910 (rs6000_dwarf_register_span): Delete.
5911 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
5912 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
5913 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
5914 Delete.
5915 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
5916 Delete.
5917 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
5918 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
5919 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
5920 mulv2sf3, divv2sf3): Delete expanders.
5921
5922 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5923
5924 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
5925
5926 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5927
5928 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
5929 * config/rs6000/rs6000.c: Ditto.
5930
5931 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5932
5933 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
5934 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
5935 comparison_operator.
5936
5937 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5938
5939 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
5940 * config/rs6000/rs6000.opt: Ditto.
5941 * config/rs6000/t-rtems: Ditto.
5942
5943 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5944
5945 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
5946 TARGET_E500_SINGLE by 0, simplify.
5947 * config/rs6000/rs6000.c: Ditto.
5948 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
5949 (spe_build_register_parallel): Delete.
5950 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
5951 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
5952 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
5953 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
5954 (E500_CONVERT): Delete.
5955 * config/rs6000/spe.md: Remove many patterns and all define_constants.
5956
5957 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
5958
5959 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
5960 * config/rs6000/dfp.md: Ditto.
5961 (negdd2, *negdd2_fpr): Merge.
5962 (absdd2, *absdd2_fpr): Merge.
5963 (negtd2, *negtd2_fpr): Merge.
5964 (abstd2, *abstd2_fpr): Merge.
5965 * config/rs6000/e500.h: Delete file.
5966 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
5967 TARGET_FPRS by 1 and simplify.
5968 * config/rs6000/rs6000-c.c: Ditto.
5969 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
5970 TARGET_DF_SPE by 0.
5971 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
5972 TARGET_DF_SPE.
5973 * config/rs6000/rs6000.md: Ditto.
5974 (floatdidf2, *floatdidf2_fpr): Merge.
5975 (move_from_CR_gt_bit): Delete.
5976 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
5977 (E500_CR_IOR_COMPARE): Delete.
5978 (All patterns that require !TARGET_FPRS): Delete.
5979 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
5980
5981 2017-06-07 Bin Cheng <bin.cheng@arm.com>
5982
5983 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
5984
5985 2017-06-07 Bin Cheng <bin.cheng@arm.com>
5986
5987 * graphds.c (add_edge): Intitialize edge's attached data.
5988 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
5989 pointer parameter. Call pointed function on each edge during
5990 graph traversing. Skip traversing the edge when the function
5991 returns true.
5992 (graphds_dfs, graphds_scc): Ditto.
5993 (for_each_edge): New parameter. Pass the new parameter to callback
5994 function.
5995 * graphds.h (skip_edge_callback): New function pointer type.
5996 (graphds_dfs, graphds_scc): New function pointer parameter.
5997 (graphds_edge_callback, for_each_edge): New parameter.
5998
5999 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6000
6001 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
6002 out code checking if runtime alias check is possible to below ...
6003 Call the new function.
6004 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
6005 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
6006
6007 2017-06-07 Marek Polacek <polacek@redhat.com>
6008
6009 PR sanitizer/80932
6010 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
6011 TYPE_OVERFLOW_WRAPS check.
6012
6013 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6014
6015 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
6016 if versioning is required.
6017 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
6018 peeling with the check for versioning.
6019
6020 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6021
6022 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
6023 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
6024 Set true to new parameter if new ssa variable is defined.
6025 (vect_gen_vector_loop_niters): Refactor. Set range information
6026 for the new vector loop bound variable.
6027 (vect_do_peeling): Ditto.
6028
6029 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6030
6031 * tree-affine.c (ssa.h): Include header file.
6032 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
6033 has wrapping overflow behavior.
6034
6035 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6036
6037 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
6038
6039 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6040
6041 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
6042 (tree_to_aff_combination): ... here.
6043
6044 2017-06-07 Bin Cheng <bin.cheng@arm.com>
6045
6046 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
6047 reg_pressure model function.
6048 (ivopts_global_cost_for_size): Delete.
6049 (determine_set_costs, iv_ca_recount_cost): Call new model function
6050 ivopts_estimate_reg_pressure.
6051
6052 2017-06-07 Tamar Christina <tamar.christina@arm.com>
6053
6054 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
6055 expensive than udiv. Remove floating point cases from mod.
6056
6057 2017-06-07 Tamar Christina <tamar.christina@arm.com>
6058
6059 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
6060 Increase idiv cost.
6061
6062 2017-06-07 Tamar Christina <tamar.christina@arm.com>
6063
6064 * config/aarch64/aarch64.md
6065 (copysignsf3): Fix mask generation.
6066
6067 2017-06-07 Jakub Jelinek <jakub@redhat.com>
6068
6069 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
6070 TDI_gimple.
6071 (class dump_manager): Add register_dumps method.
6072 * dumpfile.c: Include langhooks.h.
6073 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
6074 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
6075 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
6076 (dump_manager::dump_register): Start with 512 entries instead of 32.
6077 (dump_manager::register_dumps): New method.
6078 * toplev.c (general_init): Instead of invoking register_dumps
6079 langhook, invoke register_dumps method on the dump manager.
6080 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
6081 TDI_generic.
6082
6083 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
6084
6085 * doc/md.texi: Clarify the restrictions on a define_insn condition.
6086 Say that # requires an associated define_split to exist, and that
6087 the define_split must be suitable for use after register allocation.
6088
6089 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
6090
6091 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
6092 (compute_outgoing_frequencies): Also initialize zero counts.
6093 (find_many_sub_basic_blocks): Do not produce uninitialized profile
6094 around loops; preserve more of profile when nothing changes.
6095
6096 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
6097
6098 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
6099 here.
6100 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
6101 * config/arm/arm-cpu-cdata.h: Regenerate.
6102 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
6103 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
6104 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
6105 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
6106 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
6107 support.
6108 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
6109 support.
6110 * config/arm/t-rmprofile: Likewise.
6111 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
6112
6113 2017-06-06 David S. Miller <davem@davemloft.net>
6114
6115 PR target/80968
6116 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
6117 blockage if function uses alloca.
6118
6119 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6120
6121 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
6122 New "uid" fields to hold pretty-print IDs of group and ref.
6123 Memory references are now identified as <group_id>:<ref_id>
6124 instead of using [random] addresses.
6125 (dump_mem_details): Simplify, no functional change.
6126 (dump_mem_ref): Simplify and make output more concise.
6127 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
6128 (find_or_create_group): Initialize group uid.
6129 (record_ref): Initialize ref uid. Improve debug output.
6130 (prune_group_by_reuse, should_issue_prefetch_p,)
6131 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
6132 (mark_nontemporal_store, determine_loop_nest_reuse):
6133 Improve debug output.
6134
6135 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6136
6137 * dbgcnt.def (prefetch): New debug counter.
6138 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
6139 (schedule_prefetches): Stop issueing prefetches if debug counter
6140 tripped.
6141
6142 2017-06-06 Tom de Vries <tom@codesourcery.com>
6143
6144 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
6145 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
6146
6147 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6148
6149 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
6150 Use aarch64_reg_or_zero predicate for operand 4.
6151 (aarch64_compare_and_swap<mode> define_insn_and_split):
6152 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
6153 (aarch64_store_exclusive<mode>): Likewise for operand 2.
6154
6155 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
6156
6157 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
6158 (arm_compute_save_core_reg_mask): This.
6159 (thumb1_compute_save_reg_mask): Rename into ...
6160 (thumb1_compute_save_core_reg_mask): This.
6161 (arm_compute_save_reg0_reg12_mask): Adapt comment.
6162 (arm_compute_frame_layout): Likewise.
6163
6164 2017-06-06 Richard Biener <rguenther@suse.de>
6165
6166 PR tree-optimization/80974
6167 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
6168 keep or clear leaders SSA info.
6169
6170 2017-06-06 Tom de Vries <tom@codesourcery.com>
6171
6172 * config/nvptx/nvptx.c (split_mode_p): New function.
6173 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
6174
6175 2017-06-06 Tom de Vries <tom@codesourcery.com>
6176
6177 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
6178
6179 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
6180
6181 PR bootstrap/80978
6182 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
6183 profile.
6184
6185 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
6186
6187 * shrink-wrap.c (handle_simple_exit): Update profile.
6188 (try_shrink_wrapping): Upate profile.
6189
6190 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
6191
6192 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
6193 (tree_guess_outgoing_edge_probabilities): New.
6194 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
6195 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
6196
6197 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
6198
6199 * ipa-split.c (split_function): Initialize return bb profile.
6200
6201 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
6202
6203 * profile.c (compute_branch_probabilities): Also initialize
6204 EXIT_BLOCK profile.
6205
6206 2017-06-06 Richard Biener <rguenther@suse.de>
6207
6208 PR tree-optimization/80928
6209 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
6210 (vect_analyze_loop_operations): Properly guard analysis for
6211 pure SLP case.
6212 (vect_transform_loop): Likewise.
6213 (vect_analyze_loop_2): Also reset SLP type on PHIs.
6214 (vect_model_induction_cost): Do not cost for pure SLP.
6215 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
6216 of induction in inner loop vectorization.
6217 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
6218 (vect_get_and_check_slp_defs): Handle vect_induction_def.
6219 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
6220 recursion.
6221 (vect_analyze_slp_cost_1): Cost induction.
6222 (vect_detect_hybrid_slp_stmts): Handle PHIs.
6223 (vect_get_slp_vect_defs): Likewise.
6224 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
6225 (vect_transform_stmt): Handle SLP reductions.
6226 * tree-vectorizer.h (vectorizable_induction): Adjust.
6227
6228 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6229
6230 * config/rs6000/rs6000.c (make_resolver_func): Update
6231 init_lowered_empty_function call.
6232
6233 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6234
6235 * doc/invoke.texi: Document the -fprofile-abs-path option.
6236 * common.opt (fprofile-abs-path): New option.
6237 * gcov-io.h (gcov_write_filename): Declare.
6238 * gcov-io.c (gcov_write_filename): New function.
6239 * coverage.c (coverage_begin_function): Use gcov_write_filename.
6240 * profile.c (output_location): Likewise.
6241
6242 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
6243
6244 * shring-wrap.c: Revert accidental commit.
6245
6246 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
6247
6248 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
6249
6250 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
6251
6252 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
6253 new edge.
6254 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
6255 profile in callgraph edge.
6256 * profile-count.h (apply_probability): If THIS is 0, then result is 0
6257 (apply_scale): Likewise.
6258 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
6259 Also scale profile when inlining function with zero profile.
6260 (initialize_cfun): Update exit block profile even when it is zero.
6261 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
6262 when profile is read.
6263
6264 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6265
6266 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
6267 (CLONE_*): New constants to define the processors we can generate
6268 code for with the target_clone attribute.
6269 (rs6000_clone_map): New array to identify which clone processors
6270 the current program is running on.
6271 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
6272 target_clone attribute.
6273 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
6274 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
6275 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
6276 (cpu_expand_builtin): Add support for target_clone attribute.
6277 (rs6000_valid_attribute_p): Allow "default" attribute.
6278 (get_decl_name): New debug function to simplify printing the
6279 current function name in debugging statements.
6280 (rs6000_clone_priority): New functions to support the target_clone
6281 attribute, and be able to generate code to switch between ISA 2.05
6282 through ISA 3.0 (power6 through power9).
6283 (rs6000_compare_version_priority): Likewise.
6284 (rs6000_get_function_versions_dispatcher): Likewise.
6285 (make_resolver_func): Likewise.
6286 (add_condition_to_bb): Likewise.
6287 (dispatch_function_versions): Likewise.
6288 (rs6000_generate_version_dispatcher_body): Likewise.
6289 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
6290 (fusion_gpr_load_p): Fix a spacing issue.
6291 * doc/extend.texi (Common Function Attributes): Document that the
6292 PowerPC supports the target_clone attribute.
6293
6294 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
6295
6296 * config/arm/arm.h: explain F symbol found in description of ARM
6297 register allocation in its legend.
6298
6299 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
6300
6301 * config/mips/frame-header-opt.c: Include profile-count.h.
6302 * config/riscv/riscv.c: Include profile-count.h
6303
6304 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
6305
6306 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
6307 update profile.
6308 (sm_set_flag_if_changed): Add bbs field.
6309 (execute_sm_if_changed_flag_set): Pass BBS.
6310 (execute_sm): Update.
6311
6312 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6313
6314 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
6315 New pattern.
6316
6317 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6318
6319 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
6320 (peephole2): New peephole2 to emit the above.
6321 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
6322
6323 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6324
6325 * config/aarch64/aarch64.c (define_peephole2 above
6326 *sub_<shift>_<mode>): New peephole.
6327
6328 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
6329
6330 * config/i386/i386.c (make_resolver_func): Update.
6331 * Makefile.in: Add profile-count.h and profile-count.o
6332 * auto-profile.c (afdo_indirect_call): Update to new API.
6333 (afdo_set_bb_count): Update.
6334 (afdo_propagate_edge): Update.
6335 (afdo_propagate_circuit): Update.
6336 (afdo_calculate_branch_prob): Update.
6337 (afdo_annotate_cfg): Update.
6338 * basic-block.h: Include profile-count.h
6339 (struct edge_def): Turn count to profile_count.
6340 (struct basic_block_def): Likewie.
6341 (REG_BR_PROB_BASE): Move to profile-count.h
6342 (RDIV): Move to profile-count.h
6343 * bb-reorder.c (max_entry_count): Turn to profile_count.
6344 (find_traces): Update.
6345 (rotate_loop):Update.
6346 (connect_traces):Update.
6347 (sanitize_hot_paths):Update.
6348 * bt-load.c (migrate_btr_defs): Update.
6349 * cfg.c (RDIV): Remove.
6350 (init_flow): Use alloc_block.
6351 (alloc_block): Uninitialize count.
6352 (unchecked_make_edge): Uninitialize count.
6353 (check_bb_profile): Update.
6354 (dump_edge_info): Update.
6355 (dump_bb_info): Update.
6356 (update_bb_profile_for_threading): Update.
6357 (scale_bbs_frequencies_int): Update.
6358 (scale_bbs_frequencies_gcov_type): Update.
6359 (scale_bbs_frequencies_profile_count): New.
6360 * cfg.h (update_bb_profile_for_threading): Update.
6361 (scale_bbs_frequencies_profile_count): Declare.
6362 * cfgbuild.c (compute_outgoing_frequencies): Update.
6363 (find_many_sub_basic_blocks): Update.
6364 * cfgcleanup.c (try_forward_edges): Update.
6365 (try_crossjump_to_edge): Update.
6366 * cfgexpand.c (expand_gimple_tailcall): Update.
6367 (construct_exit_block): Update.
6368 * cfghooks.c (verify_flow_info): Update.
6369 (dump_bb_for_graph): Update.
6370 (split_edge): Update.
6371 (make_forwarder_block): Update.
6372 (duplicate_block): Update.
6373 (account_profile_record): Update.
6374 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
6375 (get_estimated_loop_iterations): Update.
6376 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
6377 (single_likely_exit): Update.
6378 * cfgloopmanip.c (scale_loop_profile): Update.
6379 (loopify): Update.
6380 (set_zero_probability): Update.
6381 (lv_adjust_loop_entry_edge): Update.
6382 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
6383 (purge_dead_edges): Update.
6384 (rtl_account_profile_record): Update.
6385 * cgraph.c (cgraph_node::create): Uninitialize count.
6386 (symbol_table::create_edge): Uninitialize count.
6387 (cgraph_update_edges_for_call_stmt_node): Update.
6388 (cgraph_edge::dump_edge_flags): Update.
6389 (cgraph_node::dump): Update.
6390 (cgraph_edge::maybe_hot_p): Update.
6391 * cgraph.h: Include profile-count.h
6392 (create_clone), create_edge, create_indirect_edge): Update.
6393 (cgraph_node): Turn count to profile_count.
6394 (cgraph_edge0: Likewise.
6395 (make_speculative, clone): Update.
6396 (create_edge): Update.
6397 (init_lowered_empty_function): Update.
6398 * cgraphclones.c (cgraph_edge::clone): Update.
6399 (duplicate_thunk_for_node): Update.
6400 (cgraph_node::create_clone): Update.
6401 * cgraphunit.c (cgraph_node::analyze): Update.
6402 (cgraph_node::expand_thunk): Update.
6403 * final.c (dump_basic_block_info): Update.
6404 * gimple-streamer-in.c (input_bb): Update.
6405 * gimple-streamer-out.c (output_bb): Update.
6406 * graphite.c (print_global_statistics): Update.
6407 (print_graphite_scop_statistics): Update.
6408 * hsa-brig.c: Include basic-block.h.
6409 * hsa-dump.c: Include basic-block.h.
6410 * hsa-gen.c (T sum_slice): Update.
6411 (convert_switch_statements):Update.
6412 * hsa-regalloc.c: Include basic-block.h.
6413 * ipa-chkp.c (chkp_produce_thunks): Update.
6414 * ipa-cp.c (struct caller_statistics): Update.
6415 (init_caller_stats): Update.
6416 (gather_caller_stats): Update.
6417 (ipcp_cloning_candidate_p): Update.
6418 (good_cloning_opportunity_p): Update.
6419 (get_info_about_necessary_edges): Update.
6420 (dump_profile_updates): Update.
6421 (update_profiling_info): Update.
6422 (update_specialized_profile): Update.
6423 (perhaps_add_new_callers): Update.
6424 (decide_about_value): Update.
6425 (ipa_cp_c_finalize): Update.
6426 * ipa-devirt.c (struct odr_type_warn_count): Update.
6427 (struct decl_warn_count): Update.
6428 (struct final_warning_record): Update.
6429 (possible_polymorphic_call_targets): Update.
6430 (ipa_devirt): Update.
6431 * ipa-fnsummary.c (redirect_to_unreachable): Update.
6432 * ipa-icf.c (sem_function::merge): Update.
6433 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
6434 * ipa-inline.c (compute_uninlined_call_time): Update.
6435 (compute_inlined_call_time): Update.
6436 (want_inline_small_function_p): Update.
6437 (want_inline_self_recursive_call_p): Update.
6438 (edge_badness): Update.
6439 (lookup_recursive_calls): Update.
6440 (recursive_inlining): Update.
6441 (inline_small_functions): Update.
6442 (dump_overall_stats): Update.
6443 (dump_inline_stats): Update.
6444 * ipa-profile.c (ipa_profile_generate_summary): Update.
6445 (ipa_propagate_frequency): Update.
6446 (ipa_profile): Update.
6447 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
6448 * ipa-utils.c (ipa_merge_profiles): Update.
6449 * loop-doloop.c (doloop_modify): Update.
6450 * loop-unroll.c (report_unroll): Update.
6451 (unroll_loop_runtime_iterations): Update.
6452 * lto-cgraph.c (lto_output_edge): Update.
6453 (lto_output_node): Update.
6454 (input_node): Update.
6455 (input_edge): Update.
6456 (merge_profile_summaries): Update.
6457 * lto-streamer-in.c (input_cfg): Update.
6458 * lto-streamer-out.c (output_cfg): Update.
6459 * mcf.c (create_fixup_graph): Update.
6460 (adjust_cfg_counts): Update.
6461 (sum_edge_counts): Update.
6462 * modulo-sched.c (sms_schedule): Update.
6463 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
6464 * predict.c (maybe_hot_count_p): Update.
6465 (probably_never_executed): Update.
6466 (dump_prediction): Update.
6467 (combine_predictions_for_bb): Update.
6468 (propagate_freq): Update.
6469 (handle_missing_profiles): Update.
6470 (counts_to_freqs): Update.
6471 (rebuild_frequencies): Update.
6472 (force_edge_cold): Update.
6473 * predict.h: Include profile-count.h
6474 (maybe_hot_count_p, counts_to_freqs): UPdate.
6475 * print-rtl-function.c: Do not include cfg.h
6476 * print-rtl.c: Include basic-block.h
6477 * profile-count.c: New file.
6478 * profile-count.h: New file.
6479 * profile.c (is_edge_inconsistent): Update.
6480 (correct_negative_edge_counts): Update.
6481 (is_inconsistent): Update.
6482 (set_bb_counts): Update.
6483 (read_profile_edge_counts): Update.
6484 (compute_frequency_overlap): Update.
6485 (compute_branch_probabilities): Update; Initialize and deinitialize
6486 gcov_count tables.
6487 (branch_prob): Update.
6488 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
6489 (edge_gcov_count): New.
6490 (bb_gcov_count): New.
6491 * shrink-wrap.c (try_shrink_wrapping): Update.
6492 * tracer.c (better_p): Update.
6493 * trans-mem.c (expand_transaction): Update.
6494 (ipa_tm_insert_irr_call): Update.
6495 (ipa_tm_insert_gettmclone_call): Update.
6496 * tree-call-cdce.c: Update.
6497 * tree-cfg.c (gimple_duplicate_sese_region): Update.
6498 (gimple_duplicate_sese_tail): Update.
6499 (gimple_account_profile_record): Update.
6500 (execute_fixup_cfg): Update.
6501 * tree-inline.c (copy_bb): Update.
6502 (copy_edges_for_bb): Update.
6503 (initialize_cfun): Update.
6504 (freqs_to_counts): Update.
6505 (copy_cfg_body): Update.
6506 (expand_call_inline): Update.
6507 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
6508 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
6509 (try_unroll_loop_completely): Update.
6510 (try_peel_loop): Update.
6511 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
6512 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
6513 * tree-ssa-loop-split.c (connect_loops): Update.
6514 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
6515 * tree-ssa-reassoc.c (branch_fixup): Update.
6516 * tree-ssa-tail-merge.c (replace_block_by): Update.
6517 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
6518 (compute_path_counts): Update.
6519 (update_profile): Update.
6520 (recompute_probabilities): Update.
6521 (update_joiner_offpath_counts): Update.
6522 (estimated_freqs_path): Update.
6523 (freqs_to_counts_path): Update.
6524 (clear_counts_path): Update.
6525 (ssa_fix_duplicate_block_edges): Update.
6526 (duplicate_thread_path): Update.
6527 * tree-switch-conversion.c (case_bit_test_cmp): Update.
6528 (struct switch_conv_info): Update.
6529 * tree-tailcall.c (decrease_profile): Update.
6530 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
6531 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
6532 * value-prof.c (check_counter): Update.
6533 (gimple_divmod_fixed_value): Update.
6534 (gimple_mod_pow2): Update.
6535 (gimple_mod_subtract): Update.
6536 (gimple_ic_transform): Update.
6537 (gimple_stringop_fixed_value): Update.
6538 * value-prof.h (gimple_ic): Update.
6539
6540 2017-06-02 Carl Love <cel@us.ibm.com>
6541
6542 * config/rs6000/rs6000-c: Add support for built-in functions
6543 vector double vec_doublee (vector signed int);
6544 vector double vec_doublee (vector unsigned int);
6545 vector double vec_doublee (vector float);
6546 vector double vec_doubleh (vector signed int);
6547 vector double vec_doubleh (vector unsigned int);
6548 vector double vec_doubleh (vector float);
6549 vector double vec_doublel (vector signed int);
6550 vector double vec_doublel (vector unsigned int);
6551 vector double vec_doublel (vector float);
6552 vector double vec_doubleo (vector signed int);
6553 vector double vec_doubleo (vector unsigned int);
6554 vector double vec_doubleo (vector float);.
6555 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
6556 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
6557 UNS_DOUBLEL.
6558 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
6559 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
6560 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
6561 VS_sxwsp.
6562 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
6563 vec_doublel, vec_doubleh.
6564 * doc/extend.texi: Update the built-in documentation file for the
6565 new built-in functions.
6566
6567 2017-06-02 David Malcolm <dmalcolm@redhat.com>
6568
6569 PR jit/80954
6570 * ipa-inline-analysis.c (free_growth_caches): Set
6571 edge_removal_hook_holder to NULL after removing it.
6572
6573 2017-06-02 Sudakshina Das <sudi.das@arm.com>
6574
6575 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
6576 comparision with zero.
6577
6578 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
6579 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
6580 for early expansion of vec_min and vec_max builtins.
6581 (builtin_function_type): Add min/max unsigned variants to those
6582 identified as having unsigned arguments.
6583
6584 2017-06-02 Olivier Hainque <hainque@adacore.com>
6585
6586 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
6587
6588 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6589
6590 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
6591 Use VALL_F16 iterator rather than VALL.
6592
6593 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6594
6595 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
6596 Emit CBNZ inside loop when doing a strong exchange and comparing
6597 against zero. Generate the CC flags after the loop.
6598
6599 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
6600
6601 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
6602 (dl_section_ref): New.
6603 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
6604 On AIX, append an expression to subtract the size of the
6605 section length to dl_section_ref.
6606
6607 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
6608
6609 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
6610 for early expansion of vector absolute builtins.
6611
6612 2017-06-02 Richard Biener <rguenther@suse.de>
6613
6614 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
6615 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
6616
6617 2017-06-02 Richard Biener <rguenther@suse.de>
6618
6619 PR tree-optimization/80948
6620 * tree-tailcall.c (find_tail_calls): Track stmts to move in
6621 stmt order as well.
6622
6623 2017-06-02 Richard Biener <rguenther@suse.de>
6624
6625 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
6626 PHIs are ok.
6627 * tree-vect-stmts.c (process_use): Do not mark backedge defs
6628 for inductions as relevant.
6629
6630 2017-06-02 Richard Biener <rguenther@suse.de>
6631
6632 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
6633 (vectorizable_induction): ... this. Remove dead code.
6634
6635 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
6636
6637 * builtins. (expand_builtin_alloca): Remove second parameter and
6638 infer its value from the first parameter instead.
6639 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
6640
6641 2017-06-02 Jakub Jelinek <jakub@redhat.com>
6642
6643 PR rtl-optimization/80903
6644 * loop-doloop.c (add_test): Unshare sequence.
6645
6646 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6647
6648 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
6649
6650 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6651
6652 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
6653 static.
6654 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
6655 xlogue_layout::get_instance, logue_layout::xlogue_layout,
6656 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
6657 (xlogue_layout::get_stub_rtx): Make static.
6658 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
6659 (xlogue_layout::compute_stub_managed_regs): Rename to...
6660 (xlogue_layout::count_stub_managed_regs): ...this.
6661 (xlogue_layout::is_stub_managed_reg): New function.
6662 (xlogue_layout::m_stub_names): Rename to...
6663 (xlogue_layout::s_stub_names): ...this, make static.
6664 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
6665 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
6666 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
6667 xlogue_layout::s_stub_names): Instantiate statics.
6668 (stub_managed_regs): Remove.
6669 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
6670 (disable_call_ms2sysv_xlogues): Rename to...
6671 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
6672 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
6673 warning logic.
6674 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
6675 change after reload_completed.
6676 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
6677 directly.
6678 (ix86_expand_prologue): Likewise.
6679 (ix86_expand_epilogue): Likewise.
6680 (ix86_expand_split_stack_prologue): Likewise.
6681 (ix86_compute_frame_layout): Remove frame parameter ...
6682 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
6683 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
6684 only if necessary.
6685 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
6686 (ix86_frame): Move from here ...
6687 * config/i386/i386.h (ix86_frame): ... to here.
6688 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
6689 complete ix86_frame data structure instead. Remove some_ld_name.
6690
6691 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
6692
6693 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
6694 symbols that hold a DECL_VALUE_EXPR.
6695
6696 2017-06-01 Martin Jambor <mjambor@suse.cz>
6697
6698 PR tree-optimization/80898
6699 * tree-sra.c (process_subtree_disqualification): Removed.
6700 (disqualify_candidate): Do not acll
6701 process_subtree_disqualification.
6702 (subtree_mark_written_and_enqueue): New function.
6703 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
6704 RHS has been disqualified and re-queue LHS if necessary. Apart
6705 from that, ignore disqualified RHS.
6706
6707 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6708
6709 * config/s390/s390.c (s390_emit_epilogue): Disable early return
6710 address fetch for z10 or later.
6711
6712 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6713
6714 * config/arc/arc.md (tst_movb): Add guard when splitting.
6715
6716 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6717
6718 * config/arc/arc.c (arc_can_eliminate): Test against
6719 arc_frame_pointer_needed.
6720
6721 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6722
6723 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
6724 to prevent store reordering.
6725 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
6726 (type): Add block type.
6727 (stack_tie): Define special instruction to be used in
6728 expand_prologue.
6729
6730 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6731
6732 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
6733 constraint. It is not valid for the pattern.
6734 (noncommutative_binary_comparison): Likewise.
6735
6736 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6737
6738 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
6739 scaled addresses.
6740
6741 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6742
6743 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
6744 be used by the reg-alloc.
6745
6746 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6747
6748 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
6749 reg-alloc when having mul64 or mul32x16 instructions.
6750 (mulsidi3): Likewise.
6751 (umulsidi3): Likewise.
6752 (mulsi32x16): New pattern.
6753 (mulsi64): Likewise.
6754 (mulsidi64): Likewise.
6755 (umulsidi64): Likewise.
6756 (MUL32x16_REG): Define.
6757 (mul64_600): Use MUL32x16_REG.
6758 (mac64_600): Likewise.
6759 (umul64_600): Likewise.
6760 (umac64_600): Likewise.
6761
6762 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
6763
6764 * config/arc/arc.md (mulsi3_700): Make it commutative.
6765
6766 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
6767
6768 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
6769 type for movstouw.
6770 (*sign_extendsidi2_insn): Likewise for movstosw.
6771
6772 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
6773
6774 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
6775 the type of the input discriminant value. Convert the
6776 discriminant value of signedness vary.
6777
6778 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
6779
6780 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
6781 Add to -Wall section.
6782
6783 2017-06-01 Richard Biener <rguenther@suse.de>
6784
6785 PR middle-end/66313
6786 * fold-const.c (fold_plusminus_mult_expr): If the factored
6787 factor may be zero use a wrapping type for the inner operation.
6788 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
6789 and handle moved defs.
6790 (process_assignment): Properly guard the unary op case. Return a
6791 tri-state indicating that moving the stmt before the call may allow
6792 to continue. Pass through to_move.
6793 (find_tail_calls): Handle moving unrelated defs before
6794 the call.
6795
6796 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
6797
6798 PR target/80618
6799 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
6800 splitter result in the canonical way.
6801
6802 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
6803
6804 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
6805 also for 32bit target. Update insn attributes.
6806 (zero-extendsidi2 splitter): Allow all registers for operand 1.
6807
6808 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
6809
6810 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
6811 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
6812 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
6813 (_mm_maskz_min_ss): New intrinsics.
6814
6815 2017-05-31 Martin Liska <mliska@suse.cz>
6816
6817 * tree-vect-loop.c (vect_create_epilog_for_reduction):
6818 Change comment style to one we normally use.
6819 (vectorizable_reduction): Likewise.
6820 (vectorizable_induction): Likewise.
6821 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
6822 (vectorizable_call): Likewise.
6823 (vectorizable_simd_clone_call): Likewise.
6824 (vectorizable_conversion): Likewise.
6825 (vectorizable_assignment): Likewise.
6826 (vectorizable_shift): Likewise.
6827 (vectorizable_operation): Likewise.
6828 (vectorizable_store): Likewise.
6829 (vectorizable_load): Likewise.
6830 * tree-vectorizer.h: Likewise.
6831
6832 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
6833
6834 * passes.c (emergency_dump_function): New.
6835 * tree-pass.h (emergency_dump_function): Declare.
6836 * plugin.c (plugins_internal_error_function): Remove.
6837 * plugin.h (plugins_internal_error_function): Remove declaration.
6838 * toplev.c (internal_error_function): New static function. Use it...
6839 (general_init): ...here.
6840
6841 2017-05-31 Graham Markall <graham.markall@embecosm.com>
6842
6843 * config/arc/arc.c (arc_print_operand): Handle constant operands.
6844 (arc_rtx_costs): Add costs for new patterns.
6845 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
6846 * config/arc/predicates.md: Add _1_2_3_operand predicate.
6847
6848 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
6849
6850 * tree-ssa-strlen.c (get_next_strinfo): New function.
6851 (get_stridx_plus_constant): Use it.
6852 (zero_length_string): Likewise.
6853 (adjust_related_strinfos): Likewise.
6854 (adjust_last_stmt): Likewise.
6855
6856 2017-05-31 Richard Biener <rguenther@suse.de>
6857
6858 PR target/80880
6859 * config/i386/i386.c (ix86_expand_builtin): Remove assert
6860 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
6861
6862 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
6863
6864 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
6865 loop_vinfo argument and use of dependence distance vectors.
6866 Check instead whether the two references differ only in their
6867 initial value and assume that they have the same alignment if the
6868 difference is a multiple of the vector alignment.
6869 (vect_analyze_data_refs_alignment): Update call accordingly.
6870
6871 2017-05-31 Martin Liska <mliska@suse.cz>
6872
6873 PR target/79155
6874 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
6875
6876 2017-05-31 Bin Cheng <bin.cheng@arm.com>
6877
6878 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
6879 (create_intersect_range_checks): Move from ...
6880 * tree-data-ref.c (create_intersect_range_checks_index)
6881 (create_intersect_range_checks): ... to here.
6882 (create_runtime_alias_checks): New function factored from ...
6883 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
6884 here. Call above function.
6885 * tree-data-ref.h (create_runtime_alias_checks): New function.
6886
6887 2017-05-31 Bin Cheng <bin.cheng@arm.com>
6888
6889 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
6890 segment length for dr_b and compute it in wide_int.
6891
6892 2017-05-31 Richard Biener <rguenther@suse.de>
6893
6894 PR tree-optimization/80906
6895 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
6896 and pass through iv_map.
6897 (copy_bb_and_scalar_dependences): Adjust.
6898 (translate_pending_phi_nodes): Likewise.
6899 (copy_loop_close_phi_args): Handle code-generating IVs instead
6900 of ICEing.
6901
6902 2017-05-30 David Malcolm <dmalcolm@redhat.com>
6903
6904 * diagnostic-color.c (color_dict): Add "type-diff".
6905 (parse_gcc_colors): Update comment.
6906 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6907 -fdiagnostics-show-template-tree and -fno-elide-type.
6908 (GCC_COLORS): Add type-diff to example.
6909 (type-diff=): New.
6910 (-fdiagnostics-show-template-tree): New.
6911 (-fno-elide-type): New.
6912 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
6913 the pp_format_decoder callback. Call any m_format_postprocessor's
6914 "handle" method.
6915 (pretty_printer::pretty_printer): Initialize
6916 m_format_postprocessor.
6917 (pretty_printer::~pretty_printer): Delete any
6918 m_format_postprocessor.
6919 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
6920 (class format_postprocessor): New class.
6921 (struct pretty_printer::format_decoder): Document the new parameters.
6922 (struct pretty_printer::m_format_postprocessor): New field.
6923 * tree-diagnostic.c (default_tree_printer): Update for new
6924 bool and const char ** params.
6925 * tree-diagnostic.h (default_tree_printer): Likewise.
6926
6927 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
6928
6929 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
6930 (lwa_operand): Delete rs6000_gen_cell_microcode test.
6931 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
6932 rs6000_gen_cell_microcode code.
6933 (rs6000_final_prescan_insn): Delete.
6934 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
6935 "warn-cell-microcode" entries.
6936 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
6937 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
6938 throughout. Change cc_reg_not_micro_cr0_operand to
6939 cc_reg_not_cr0_operand throughout.
6940 (*extendhi<mode>2_noload): Delete.
6941 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
6942 (mwarn-cell-microcode): Delete.
6943 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
6944 -mgen-cell-microcode and -mwarn-cell-microcode.
6945
6946 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
6947
6948 PR target/80833
6949 * config/i386/constraints.md (Yd): New constraint.
6950 (Ye): Ditto.
6951 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
6952 and (?Yd, r) alternatives. Update insn attributes.
6953 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
6954 and (?*Yd, r) alternatives. Update insn attributes.
6955 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
6956
6957 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
6958
6959 * gimplify.c (gimplify_modify_expr): Don't create a
6960 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
6961 function.
6962
6963 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
6964
6965 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
6966
6967 2017-05-30 Richard Biener <rguenther@suse.de>
6968
6969 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
6970 and reduc_def fields.
6971 (STMT_VINFO_REDUC_TYPE): New define.
6972 (STMT_VINFO_REDUC_DEF): Likewise.
6973 (vect_force_simple_reduction): Adjust prototype.
6974 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
6975 (vect_is_simple_reduction): Remove check_reduction argument.
6976 (vect_force_simple_reduction): Adjust and set
6977 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
6978 (vectorizable_reduction): Do not re-do reduction analysis
6979 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
6980 * tree-parloops.c (gather_scalar_reductions): Adjust.
6981
6982 2017-05-30 Richard Biener <rguenther@suse.de>
6983
6984 PR middle-end/80901
6985 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
6986 split_edge code.
6987
6988 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
6989
6990 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
6991 Introduce unknown_misalignment parameter and remove vf.
6992 (vect_peeling_hash_get_lowest_cost):
6993 Pass unknown_misalignment parameter.
6994 (vect_enhance_data_refs_alignment):
6995 Fix unsupportable data ref treatment.
6996
6997 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
6998
6999 * tree-vect-data-refs.c (vect_get_data_access_cost):
7000 Workaround for SLP handling.
7001 (vect_enhance_data_refs_alignment):
7002 Compute costs for doing no peeling at all, compare to the best
7003 peeling costs so far and avoid peeling if cheaper.
7004
7005 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
7006
7007 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
7008 Return peeling info and set costs to zero for unlimited cost
7009 model.
7010 (vect_enhance_data_refs_alignment): Also inspect all datarefs
7011 with unknown misalignment. Compute and costs for unknown
7012 misalignment, compare them to the costs for known misalignment
7013 and choose the cheapest for peeling.
7014
7015 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
7016
7017 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
7018 (vect_get_peeling_costs_all_drs): Create function.
7019 (vect_peeling_hash_get_lowest_cost):
7020 Use vect_get_peeling_costs_all_drs.
7021 (vect_peeling_supportable): Create function.
7022 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
7023
7024 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
7025
7026 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
7027 DR_HAS_NEGATIVE_STEP.
7028 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
7029 (vect_enhance_data_refs_alignment): Use.
7030 (vect_duplicate_ssa_name_ptr_info): Use.
7031 * tree-vectorizer.h (dr_misalignment): Use.
7032 (known_alignment_for_access_p): Use.
7033
7034 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
7035
7036 PR target/78838
7037 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
7038 .lowtext.
7039 (has_section_name): New function.
7040
7041 2017-05-30 Martin Liska <mliska@suse.cz>
7042
7043 PR other/80909
7044 * auto-profile.c (get_function_decl_from_block): Fix
7045 parenthesis.
7046
7047 2017-05-30 Richard Biener <rguenther@suse.de>
7048
7049 PR middle-end/80876
7050 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
7051
7052 2017-05-30 Martin Liska <mliska@suse.cz>
7053
7054 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
7055 * dumpfile.h (struct dump_file_info): Remove ctors.
7056
7057 2017-05-30 Martin Liska <mliska@suse.cz>
7058
7059 * predict.def: Fix GNU coding style.
7060
7061 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
7062
7063 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
7064 Mark 'to' argument with ATTRIBUTE_UNUSED.
7065
7066 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
7067
7068 * config/xtensa/xtensa.c (xtensa_emit_call): Use
7069 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
7070 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
7071 format string.
7072
7073 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
7074
7075 * doc/install.texi (Options specification): Restore entry of
7076 --enable-sjlj-exceptions.
7077
7078 2017-05-27 Michael Eager <eager@eagercon.com>
7079
7080 Revert:
7081 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7082
7083 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
7084
7085 * config/microblaze/microblaze.h
7086 (FIXED_REGISTERS): Update in macro.
7087 (CALL_USED_REGISTERS): Update in macro.
7088
7089 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
7090
7091 * doc/install.texi: Add links to macOS binary distributions.
7092
7093 2017-05-27 Jakub Jelinek <jakub@redhat.com>
7094
7095 PR bootstrap/80887
7096 Revert:
7097 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
7098
7099 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
7100
7101 2017-05-26 Martin Liska <mliska@suse.cz>
7102
7103 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
7104
7105 2017-05-26 Martin Liska <mliska@suse.cz>
7106
7107 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
7108 always leading ';; '.
7109 (dump_bb_info): Likewise.
7110 (brief_dump_cfg): Likewise.
7111 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
7112 * dumpfile.c: Remove usage of TDF_VERBOSE.
7113 * dumpfile.h (enum dump_kind): Likewise.
7114 (dump_gimple_bb_header): Do not use TDF_COMMENT.
7115 * print-tree.c (debug_verbose): Remove.
7116 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
7117 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
7118 * tree-diagnostic.c (default_tree_printer): Replace
7119 TDF_DIAGNOSTIC with TDF_SLIM.
7120
7121 2017-05-26 Bin Cheng <bin.cheng@arm.com>
7122
7123 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
7124 in parameter loop, rather than loop_vinfo.
7125 (create_intersect_range_checks): Ditto.
7126 (vect_create_cond_for_alias_checks): Update call to above functions.
7127
7128 2017-05-26 Bin Cheng <bin.cheng@arm.com>
7129
7130 PR tree-optimization/80815
7131 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
7132 for merging runtime alias checks. Handle negative DR_STEPs.
7133
7134 2017-05-26 Bin Cheng <bin.cheng@arm.com>
7135
7136 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
7137 Move from ...
7138 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
7139 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
7140 out code pruning runtime alias checks.
7141 * tree-data-ref.c (prune_runtime_alias_test_list): New function
7142 factored out from above.
7143 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
7144 Move from ...
7145 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
7146 ... to here.
7147 (prune_runtime_alias_test_list): New decalaration.
7148
7149 2017-05-26 Bin Cheng <bin.cheng@arm.com>
7150
7151 * tree-vect-data-refs.c (compare_tree): Rename and move ...
7152 * tree-data-ref.c (data_ref_compare_tree): ... to here.
7153 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
7154 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
7155 (operator==, comp_dr_with_seg_len_pair): Ditto.
7156 (vect_prune_runtime_alias_test_list): Ditto.
7157
7158 2017-05-26 Martin Liska <mliska@suse.cz>
7159
7160 PR ipa/80663
7161 * params.def: Bound partial-inlining-entry-probability param.
7162
7163 2017-05-26 Marek Polacek <polacek@redhat.com>
7164
7165 PR sanitizer/80875
7166 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
7167 can be negated.
7168
7169 2017-05-26 Richard Biener <rguenther@suse.de>
7170
7171 PR tree-optimization/80842
7172 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
7173 value.
7174
7175 2017-05-26 Richard Biener <rguenther@suse.de>
7176
7177 PR tree-optimization/80844
7178 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
7179
7180 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
7181
7182 * doc/md.texi (Machine Constraints): Update x86 family
7183 machine constraints section to match 'config/i386/constraints.md'.
7184
7185 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
7186
7187 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
7188
7189 2017-05-25 Nathan Sidwell <nathan@acm.org>
7190
7191 * doc/invoke.texi (--enable-languages): Update documentation.
7192
7193 2017-05-25 Martin Liska <mliska@suse.cz>
7194
7195 * dumpfile.c: Add TDF_FOLDING.
7196 * dumpfile.h (enum dump_kind): Likewise.
7197 * genmatch.c (dt_simplify::gen_1): Use it.
7198
7199 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
7200
7201 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
7202
7203 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
7204
7205 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
7206 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
7207
7208 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
7209
7210 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
7211 * match.pd (X == C): Rewrite it here.
7212 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
7213 with_certain_nonzero_bits2): New predicates.
7214 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
7215
7216 2017-05-24 Nathan Sidwell <nathan@acm.org>
7217
7218 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
7219 avoid warning.
7220
7221 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
7222 warning.
7223
7224 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
7225
7226 * config/powerpcspe: New port. Files are copied from the rs6000
7227 port, with "rs6000" in filenames replaced by "powerpcspe".
7228
7229 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
7230
7231 PR rtl-optimization/80754
7232 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
7233
7234 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
7235
7236 * config/sparc/sparc.md (length): Return the correct value for -mflat
7237 sibcalls to match output_sibcall.
7238
7239 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
7240
7241 PR bootstrap/80860
7242 PR bootstrap/80843
7243 * config/rs6000/rs6000.c (struct machine_function): Add new field
7244 n_components.
7245 (rs6000_get_separate_components): Init that field, use it.
7246 (rs6000_components_for_bb): Use the field.
7247
7248 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7249
7250 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
7251
7252 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
7253
7254 PR middle-end/80823
7255 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
7256
7257 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7258
7259 PR target/80725
7260 * config/s390/s390.c (s390_check_qrst_address): Check incoming
7261 address against address_operand predicate.
7262 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
7263
7264 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
7265
7266 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
7267 parameters passed indirectly.
7268
7269 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
7270
7271 * config/i386/i386.md (*movdi_internal): Remove SSE4
7272 alternative 18 (?r, *v). Update insn attributes.
7273 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
7274 Update insn attributes.
7275 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
7276 Update insn attributes.
7277 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
7278 alternative 1 (r, v). Remove isa attribute.
7279 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
7280 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
7281 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7282
7283 2017-05-23 Tom de Vries <tom@codesourcery.com>
7284
7285 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
7286 dg-line directive.
7287
7288 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
7289
7290 * cgraphunit.c (symbol_table::process_new_functions): Update.
7291 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
7292 (inline_generate_summary): Rename to ...
7293 (ipa_fn_summary_generate): ... this one.
7294 (inline_read_summary): Rename to ...
7295 (ipa_fn_summary_read): ... this one.
7296 (inline_write_summary): Rename to ...
7297 (ipa_fn_summary_write): ... this one.
7298 (inline_free_summary): Rename to ...
7299 (ipa_free_fn_summary): ... this one.
7300 (pass_data_local_fn_summary, pass_local_fn_summary,
7301 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
7302 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
7303 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
7304 make_pass_ipa_fn_summary): New.
7305 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
7306 inline_write_summary, inline_free_summary): Remove.
7307 (ipa_free_fn_summary) : New.
7308 * ipa-inline.c (ipa_inline): Update.
7309 (pass_ipa_inline): Do not generate summaries.
7310 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
7311 Remove.
7312 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
7313 and add pass_ipa_fn_summary.
7314 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
7315 New.
7316 (make_pass_inline_parameters): Remove.
7317
7318 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
7319
7320 * omp-low.c (struct omp_context): Remove "default_kind" member.
7321 Adjust all users.
7322
7323 * omp-offload.c (execute_oacc_device_lower): Remove the
7324 parallelism dimensions function attributes for unparallelized
7325 OpenACC kernels constructs.
7326
7327 2017-05-23 Martin Liska <mliska@suse.cz>
7328
7329 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
7330 functions.
7331 (cgraph_edge::make_speculative): Likewise.
7332 (cgraph_edge::resolve_speculation): Likewise.
7333 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7334 (cgraph_node::dump): Likewise.
7335 * cgraph.h: Likewise.
7336 * cgraphunit.c (analyze_functions): Likewise.
7337 (symbol_table::compile): Likewise.
7338 * ipa-cp.c (print_all_lattices): Likewise.
7339 (determine_versionability): Likewise.
7340 (initialize_node_lattices): Likewise.
7341 (ipcp_verify_propagated_values): Likewise.
7342 (estimate_local_effects): Likewise.
7343 (update_profiling_info): Likewise.
7344 (create_specialized_node): Likewise.
7345 (perhaps_add_new_callers): Likewise.
7346 (decide_about_value): Likewise.
7347 (decide_whether_version_node): Likewise.
7348 (identify_dead_nodes): Likewise.
7349 (ipcp_store_bits_results): Likewise.
7350 * ipa-devirt.c (dump_targets): Likewise.
7351 (ipa_devirt): Likewise.
7352 * ipa-icf.c (sem_item::dump): Likewise.
7353 (sem_function::equals): Likewise.
7354 (sem_variable::equals): Likewise.
7355 (sem_item_optimizer::read_section): Likewise.
7356 (sem_item_optimizer::execute): Likewise.
7357 (congruence_class::dump): Likewise.
7358 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
7359 (dump_inline_summary): Likewise.
7360 (estimate_node_size_and_time): Likewise.
7361 (inline_analyze_function): Likewise.
7362 * ipa-inline-transform.c (inline_call): Likewise.
7363 * ipa-inline.c (report_inline_failed_reason): Likewise.
7364 (want_early_inline_function_p): Likewise.
7365 (edge_badness): Likewise.
7366 (update_edge_key): Likewise.
7367 (inline_small_functions): Likewise.
7368 * ipa-profile.c (ipa_profile): Likewise.
7369 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
7370 (ipa_make_edge_direct_to_target): Likewise.
7371 (remove_described_reference): Likewise.
7372 (ipa_impossible_devirt_target): Likewise.
7373 (propagate_controlled_uses): Likewise.
7374 (ipa_print_node_params): Likewise.
7375 (ipcp_transform_function): Likewise.
7376 * ipa-pure-const.c (pure_const_read_summary): Likewise.
7377 (propagate_pure_const): Likewise.
7378 * ipa-reference.c (generate_summary): Likewise.
7379 (read_write_all_from_decl): Likewise.
7380 (propagate): Likewise.
7381 (ipa_reference_read_optimization_summary): Likewise.
7382 * ipa-utils.c (ipa_merge_profiles): Likewise.
7383 * ipa.c (walk_polymorphic_call_targets): Likewise.
7384 (symbol_table::remove_unreachable_nodes): Likewise.
7385 (ipa_single_use): Likewise.
7386 * passes.c (execute_todo): Likewise.
7387 * predict.c (drop_profile): Likewise.
7388 * symtab.c (symtab_node::get_dump_name): New function.
7389 (symtab_node::dump_name): Likewise.
7390 (symtab_node::dump_asm_name): Likewise.
7391 (symtab_node::dump_references): Likewise.
7392 (symtab_node::dump_referring): Likewise.
7393 (symtab_node::dump_base): Likewise.
7394 (symtab_node::debug_symtab): Likewise.
7395 * tree-sra.c (convert_callers_for_node): Likewise.
7396 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7397 * value-prof.c (init_node_map): Likewise.
7398
7399 2017-05-23 Martin Liska <mliska@suse.cz>
7400
7401 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
7402 and symtab_node::debug_symtab to symbol_table::debug.
7403 * cgraphunit.c (analyze_functions): Use the renamed function.
7404 (symbol_table::compile): Likewise.
7405 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
7406 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7407 * passes.c (execute_todo): Likewise.
7408 * symtab.c (symbol_table::dump): New function.
7409 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
7410
7411 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
7412
7413 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
7414 that nonconst implies exec.
7415
7416 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
7417
7418 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
7419 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
7420 (inline_edge_summary_vec): Turn into ...
7421 (ipa_call_summaries): ... this one.
7422 (redirect_to_unreachable, edge_set_predicate,
7423 evaluate_properties_for_edge, inline_summary_alloc,
7424 reset_ipa_call_summary, reset_inline_summary,
7425 inline_summary_t::duplicate): Update.
7426 (inline_edge_duplication_hook): Turn to ...
7427 (ipa_call_summary_t::duplicate): ... this one.
7428 (inline_edge_removal_hook): Turn to ...
7429 (ipa_call_summary_t::remove): ... this one.
7430 (dump_inline_edge_summary): Turn to ...
7431 (dump_ipa_call_summary): ... this one.
7432 (estimate_function_body_sizes): Update.
7433 (inline_update_callee_summaries): Update.
7434 (remap_edge_change_prob): Update.
7435 (remap_edge_summaries): Update.
7436 (inline_merge_summary): Update.
7437 (do_estimate_edge_time): Update.
7438 (inline_generate_summary): Update.
7439 (inline_read_section): Update.
7440 (inline_read_summary): Update.
7441 (inline_free_summary): Update.
7442 * ipa-inline.c (can_inline_edge_p): Update.
7443 (compute_inlined_call_time): Update.
7444 (want_inline_small_function_p): Update.
7445 (edge_badness): Update.
7446 (early_inliner): Update.
7447 * ipa-inline.h (inline_edge_summary): Turn to ...
7448 (ipa_call_summary): ... this one.
7449 (ipa_call_summary_t): New class.
7450 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
7451 (ipa_call_summaries): New.
7452 (inline_edge_summary): Remove.
7453 (estimate_edge_growth): Update.
7454 * ipa-profile.c (ipa_propagate_frequency_1): Update.
7455 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
7456 * ipa-split.c (execute_split_functions): Update.
7457 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
7458
7459 2017-05-23 Tom de Vries <tom@codesourcery.com>
7460
7461 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
7462 attributes): Document rdrand effective target.
7463
7464 2017-05-23 Tom de Vries <tom@codesourcery.com>
7465
7466 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
7467 attributes): Sort alphabetically.
7468
7469 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
7470
7471 * config/avr/genmultilib.awk: Use gsub instead of gensub.
7472
7473 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7474
7475 PR target/80718
7476 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
7477 V2DF/V2DI splat into two separate patterns, one that handles
7478 registers, and the other that only handles memory. Drop support
7479 for splatting from a GPR on ISA 2.07 and then splitting the
7480 splat into direct move and splat.
7481 (vsx_splat_<mode>_reg): Likewise.
7482 (vsx_splat_<mode>_mem): Likewise.
7483
7484 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
7485
7486 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
7487
7488 2017-05-22 Jakub Jelinek <jakub@redhat.com>
7489
7490 PR middle-end/80809
7491 * omp-low.c (finish_taskreg_remap): New function.
7492 (finish_taskreg_scan): If unit size of ctx->record_type
7493 is non-constant, unshare the size expression and replace
7494 decls in it with possible outer var refs.
7495
7496 PR middle-end/80809
7497 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
7498 GOVD_SHARED rather than GOVD_PRIVATE with it.
7499 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
7500 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
7501
7502 PR middle-end/80853
7503 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
7504 as last argument to build_outer_var_ref for pointer bases of array
7505 section reductions.
7506
7507 2017-05-19 Martin Sebor <msebor@redhat.com>
7508
7509 * print-tree.c (print_node): Print DECL_READ_P flag.
7510
7511 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
7512
7513 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
7514 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
7515 * cgraph.c: Likewise.
7516 * cgraphunit.c: Likewise.
7517 * gengtype.c: Likewise.
7518 * ipa-cp.c: Likewise.
7519 * ipa-devirt.c: Likewise.
7520 * ipa-icf.c: Likewise.
7521 * ipa-predicate.c: Likewise.
7522 * ipa-profile.c: Likewise.
7523 * ipa-prop.c: Likewise.
7524 * ipa-split.c: Likewise.
7525 * ipa.c: Likewise.
7526 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
7527 edge_predicate_pool, dump_inline_hints,
7528 inline_summary::account_size_time, redirect_to_unreachable,
7529 edge_set_predicate, set_hint_predicate,
7530 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
7531 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
7532 inline_summary_t::remove, remap_hint_predicate_after_duplication,
7533 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
7534 ipa_call_summary_t::remove, initialize_growth_caches,
7535 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
7536 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
7537 mark_modified, unmodified_parm_1, unmodified_parm,
7538 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
7539 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
7540 compute_bb_predicates, will_be_nonconstant_expr_predicate,
7541 will_be_nonconstant_predicate, record_modified_bb_info,
7542 get_minimal_bb, record_modified, param_change_prob,
7543 phi_result_unknown_predicate, predicate_for_phi_result,
7544 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
7545 estimate_function_body_sizes, compute_inline_parameters,
7546 compute_inline_parameters_for_curren, pass_data_inline_parameters,
7547 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
7548 inline_update_callee_summaries, remap_edge_change_prob,
7549 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
7550 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
7551 inline_analyze_function, inline_summary_t::insert,
7552 inline_generate_summary, read_ipa_call_summary, inline_read_section,
7553 inline_read_summary, write_ipa_call_summary, inline_write_summary,
7554 inline_free_summary): Move to ipa-fnsummary.h
7555 (predicate_t): Remove.
7556 * ipa-fnsummary.c: New file.
7557 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
7558 (enum inline_hints_vals, inline_hints, agg_position_info,
7559 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
7560 inline_summaries, ipa_call_summary, ipa_call_summary_t,
7561 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
7562 dump_inline_summary, dump_inline_hints, inline_generate_summary,
7563 inline_read_summary, inline_write_summary, inline_free_summary,
7564 inline_analyze_function, initialize_inline_failed,
7565 inline_merge_summary, inline_update_overall_summary,
7566 compute_inline_parameters): Move to ipa-fnsummary.h
7567 * ipa-fnsummary.h: New file.
7568 * ipa-inline-transform.h: Include ipa-inline.h.
7569 * ipa-inline.c: LIkewise.
7570
7571 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
7572
7573 * ipa-inline.c (edge_badness): Use inlined_time instead of
7574 inline_summaries->get.
7575
7576 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
7577
7578 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
7579
7580 2017-05-22 Nathan Sidwell <nathan@acm.org>
7581
7582 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
7583 (fdump-lang): Document 'raw' option.
7584 * dumpfile.h (TDI_tu): Delete.
7585 * dumpfile.c (dump_files): Remove translation-unit.
7586 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
7587
7588 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
7589
7590 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
7591 command option from $(AWK) call.
7592 * config/avr/genmultilib.awk: Simplify and rewrite so that it
7593 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
7594 [FORMAT]: Remove handling of variable.
7595 * config/avr/t-multilib: Regenerate.
7596
7597 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
7598
7599 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
7600 self_time.
7601 (dump_inline_summary): Do not print self_time.
7602 (estimate_function_body_sizes): Do not set self_time.
7603 (compute_inline_parameters): Likewise.
7604 (inline_read_section, inline_write_summary): Do not stream self_time.
7605 * ipa-inline.h (inline_summary): Drop self_time.
7606
7607 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
7608
7609 * ipa-inline-analysis.c (account_size_time): Rename to ...
7610 (inline_summary::account_size_time): ... this one.
7611 (reset_ipa_call_summary): Turn to ...
7612 (ipa_call_summary::reset): ... this one.
7613 (reset_inline_summary): Turn to ...
7614 (inline_summary::reset): ... this one.
7615 (inline_summary_t::remove): Update.
7616 (inline_summary_t::duplicate): Update.
7617 (ipa_call_summary_t::remove): Update.
7618 (dump_inline_summary): Update.
7619 (estimate_function_body_sizes): Update.
7620 (compute_inline_parameters): Update.
7621 (estimate_node_size_and_time): Update.
7622 (inline_merge_summary): Update.
7623 (inline_update_overall_summary): Update.
7624 (inline_read_section): Update.
7625 (inline_write_summary): Update.
7626 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
7627 add account_size_time and reset member functions.
7628 (ipa_call_summary): Add reset function.
7629 * ipa-predicate.h (predicate::operator &): Constify.
7630
7631 2017-05-22 Richard Biener <rguenther@suse.de>
7632
7633 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
7634
7635 2017-05-19 Jason Merrill <jason@redhat.com>
7636
7637 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
7638
7639 2017-05-19 Marek Polacek <polacek@redhat.com>
7640
7641 PR sanitizer/80800
7642 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
7643 TYPE_OVERFLOW_WRAPS checks.
7644
7645 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
7646
7647 * tree-core.h (enum omp_clause_default_kind): Add
7648 "OMP_CLAUSE_DEFAULT_PRESENT".
7649 * tree-pretty-print.c (dump_omp_clause): Handle it.
7650 * gimplify.c (enum gimplify_omp_var_data): Add
7651 "GOVD_MAP_FORCE_PRESENT".
7652 (gimplify_adjust_omp_clauses_1): Map it to
7653 "GOMP_MAP_FORCE_PRESENT".
7654 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
7655
7656 * gimplify.c (oacc_default_clause): Clarify.
7657
7658 2017-05-19 Nathan Sidwell <nathan@acm.org>
7659
7660 LANG_HOOK_REGISTER_DUMPS
7661 * toplev.c (general_init): Call register dump lang hook.
7662 * doc/invoke.texi: Document -fdump-lang option family.
7663 * dumpfile.c (dump_files): Remove class dump here.
7664 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
7665 * dumpfile.h (tree_dump_index): Remove TDI_class.
7666 * langhooks-def.h (lhd_register_dumps): Declare.
7667 (LANG_HOOKS_REGISTER_DUMPS): Define.
7668 (LANG_HOOKS_INITIALIZER): Add it.
7669 * langhooks.c (lhd_register_dumps): Define.
7670 * langhooks.h (struct lang_hooks): Add register_dumps.
7671
7672 2017-05-19 Nathan Sidwell <nathan@acm.org>
7673
7674 * context.h (context::set_passes): New.
7675 * context.c (context::context): Do not create pass manager.
7676 * toplev.c (general_init): Create pass manager here.
7677
7678 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7679
7680 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
7681 use this splitter if two add or or instructions would also work for
7682 the constant we want to generate.
7683
7684 2017-05-19 Richard Biener <rguenther@suse.de>
7685
7686 PR build/80821
7687 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
7688 predicate evaluation.
7689
7690 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
7691
7692 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
7693 add ctor.
7694 * ipa-inline.c (want_inline_small_function_p): Do not cast to
7695 unsigned.
7696
7697 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
7698
7699 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
7700 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
7701 (inline_edge_summary_vec): Turn into ...
7702 (ipa_call_summaries): ... this one.
7703 (redirect_to_unreachable, edge_set_predicate,
7704 evaluate_properties_for_edge, inline_summary_alloc,
7705 reset_ipa_call_summary, reset_inline_summary,
7706 inline_summary_t::duplicate): Update.
7707 (inline_edge_duplication_hook): Turn to ...
7708 (ipa_call_summary_t::duplicate): ... this one.
7709 (inline_edge_removal_hook): Turn to ...
7710 (ipa_call_summary_t::remove): ... this one.
7711 (dump_inline_edge_summary): Turn to ...
7712 (dump_ipa_call_summary): ... this one.
7713 (estimate_function_body_sizes): Update.
7714 (inline_update_callee_summaries): Update.
7715 (remap_edge_change_prob): Update.
7716 (remap_edge_summaries): Update.
7717 (inline_merge_summary): Update.
7718 (do_estimate_edge_time): Update.
7719 (inline_generate_summary): Update.
7720 (inline_read_section): Update.
7721 (inline_read_summary): Update.
7722 (inline_free_summary): Update.
7723 * ipa-inline.c (can_inline_edge_p): Update.
7724 (compute_inlined_call_time): Update.
7725 (want_inline_small_function_p): Update.
7726 (edge_badness): Update.
7727 (early_inliner): Update.
7728 * ipa-inline.h (inline_edge_summary): Turn to ...
7729 (ipa_call_summary): ... this one.
7730 (ipa_call_summary_t): New class.
7731 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
7732 (ipa_call_summaries): New.
7733 (inline_edge_summary): Remove.
7734 (estimate_edge_growth): Update.
7735 * ipa-profile.c (ipa_propagate_frequency_1): Update.
7736 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
7737 * ipa-split.c (execute_split_functions): Update.
7738 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
7739
7740 2017-05-19 Richard Biener <rguenther@suse.de>
7741
7742 PR middle-end/80764
7743 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
7744
7745 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7746
7747 * config/rs6000/rs6000.c (struct machine_function): Add field
7748 fpr_is_wrapped_separately.
7749 (rs6000_get_separate_components): Use 64 components. Handle the
7750 new FPR components.
7751 (rs6000_components_for_bb): Handle the FPR components.
7752 (rs6000_emit_prologue_components): Handle the FPR components.
7753 (rs6000_emit_epilogue_components): Handle the FPR components.
7754 (rs6000_set_handled_components): Handle the FPR components.
7755 (rs6000_emit_prologue): Don't output prologue code for those FPRs
7756 that are already separately shrink-wrapped.
7757 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
7758 that are already separately shrink-wrapped.
7759
7760 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7761
7762 PR target/80510
7763 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
7764 New predicate.
7765
7766 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
7767 (define_peephole2 for Altivec d-form load): Add peepholes to catch
7768 cases where the register allocator uses a move and an offsettable
7769 memory operation to/from a FPR register on ISA 2.06/2.07.
7770 (define_peephole2 for Altivec d-form store): Likewise.
7771
7772 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
7773
7774 PR target/80799
7775 * config/i386/mmx.md (*mov<mode>_internal): Enable
7776 alternatives 11, 12, 13 and 14 also for 32bit targets.
7777 Remove alternatives 15, 16, 17 and 18.
7778 * config/i386/sse.md (vec_concatv2di): Change
7779 alternative (!x, *y) to (x, ?!*Yn).
7780
7781 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
7782
7783 * dumpfile.h (enum dump_kind): Remove stray comma.
7784
7785 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
7786
7787 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
7788 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
7789 predicate::num_conditions
7790 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
7791 (CHANGED): turn into predicate::changed.
7792 (agg_position_info): Move to ipa-predicate.h
7793 (add_condition, predicate::add_clause, predicate::operator &=,
7794 predicate::or_with, predicate::evaluate, predicate::probability,
7795 dump_condition, dump_clause, predicate::dump,
7796 predicate::remap_after_duplication, predicate::remap_after_inlining,
7797 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
7798 (evaluate_conditions_for_known_args): Update.
7799 (set_cond_stmt_execution_predicate): Update.
7800 * ipa-inline.h: Include ipa-predicate.h
7801 (condition, inline_param_summary, conditions, agg_position_info,
7802 predicate): Move to ipa-predicate.h
7803 * ipa-predicate.c: New file.
7804 * ipa-predicate.h: New file.
7805
7806 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
7807
7808 * final.c (leaf_function_p): Check we are not in a sequence.
7809
7810 2017-05-18 Martin Liska <mliska@suse.cz>
7811
7812 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
7813 * dumpfile.c (dump_register): Use new enum dump_kind.
7814 (get_dump_file_name): Likewise.
7815 (dump_enable_all): Likewise.
7816 (dump_switch_p_1): Likewise.
7817 (enable_rtl_dump_file): Remove usage of TDF_RTL.
7818 * dumpfile.h (enum dump_kind): New enum type.
7819 (struct dump_file_info): Create constructor and
7820 format fields and comments.
7821 * passes.c (pass_manager::register_one_dump_file):
7822 Use num dump_kind.
7823 * statistics.c (statistics_early_init): Likewise.
7824 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
7825 TDF_TREE with TDF_SLIM.
7826 (gather_memory_references_ref): Likewise.
7827
7828 2017-05-18 Martin Liska <mliska@suse.cz>
7829
7830 * vec.h (struct vnull): Use it.
7831
7832 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
7833
7834 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
7835 (true_predicate, false_predicate, true_predicate_p,
7836 false_predicate_p): Remove.
7837 (single_cond_predicate, not_inlined_predicate): Turn to member function
7838 in ipa-inline.h
7839 (add_condition): Update.
7840 (add_clause): Turn to...
7841 (predicate::add_clause): ... this one; update; allow passing NULL
7842 as parameter.
7843 (and_predicates): Turn to ...
7844 (predicate::operator &=): ... this one.
7845 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
7846 (or_predicates): Turn to ...
7847 (predicate::or_with): ... this one.
7848 (evaluate_predicate): Turn to ...
7849 (predicate::evaluate): ... this one.
7850 (predicate_probability): Turn to ...
7851 (predicate::probability): ... this one.
7852 (dump_condition): Update.
7853 (dump_predicate): Turn to ...
7854 (predicate::dump): ... this one.
7855 (account_size_time): Update.
7856 (edge_set_predicate): Update.
7857 (set_hint_predicate): UPdate.
7858 (evaluate_conditions_for_known_args): Update.
7859 (evaluate_properties_for_edge): Update.
7860 (remap_predicate_after_duplication): Turn to...
7861 (predicate::remap_after_duplication): ... this one.
7862 (remap_hint_predicate_after_duplication): Update.
7863 (inline_summary_t::duplicate): UPdate.
7864 (dump_inline_edge_summary): Update.
7865 (dump_inline_summary): Update.
7866 (set_cond_stmt_execution_predicate): Update.
7867 (set_switch_stmt_execution_predicate): Update.
7868 (compute_bb_predicates): Update.
7869 (will_be_nonconstant_expr_predicate): Update.
7870 (will_be_nonconstant_predicate): Update.
7871 (phi_result_unknown_predicate): Update.
7872 (predicate_for_phi_result): Update.
7873 (array_index_predicate): Update.
7874 (estimate_function_body_sizes): Update.
7875 (estimate_node_size_and_time): Update.
7876 (estimate_ipcp_clone_size_and_time): Update.
7877 (remap_predicate): Rename to ...
7878 (predicate::remap_after_inlining): ... this one.
7879 (remap_hint_predicate): Update.
7880 (inline_merge_summary): Update.
7881 (inline_update_overall_summary): Update.
7882 (estimate_size_after_inlining): Update.
7883 (read_predicate): Rename to ...
7884 (predicate::stream_in): ... this one.
7885 (read_inline_edge_summary): Update.
7886 (write_predicate): Rename to ...
7887 (predicate::stream_out): ... this one.
7888 (write_inline_edge_summary): Update.
7889 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
7890 (clause_t): Turn to uint32_t
7891 (predicate): Turn to class; implement constructor and operators
7892 ==, !=, &
7893 (size_time_entry): Update.
7894 (inline_summary): Update.
7895 (inline_edge_summary): Update.
7896
7897 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
7898
7899 * fold-const.c (fold_binary_loc): Move transformation...
7900 * match.pd (C - X CMP X): ... here.
7901
7902 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
7903
7904 * config/sparc/sparc.c (sparc_option_override): Set function
7905 alignment for -mcpu=niagara7 to 64 to match the I$ line.
7906 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
7907 latency to 1.
7908 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
7909 latency to 2.
7910 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
7911
7912 2017-05-18 Marek Polacek <polacek@redhat.com>
7913
7914 PR sanitizer/80797
7915 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
7916 (pass_ubsan::execute): Call gimple_assign_single_p instead of
7917 gimple_assign_load_p.
7918
7919 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7920
7921 PR middle-end/80692
7922 * real.c (do_compare): Give decimal_do_compare preference over
7923 comparing just the signs.
7924
7925 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
7926
7927 * doc/md.texi (Canonicalization of Instructions): Describe the
7928 canonical form of instructions that inherently set a condition
7929 code register.
7930
7931 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
7932
7933 PR middle-end/80775
7934 * tree-cfg.c: Move deletion of unreachable case statements to after
7935 the merging of consecutive case labels.
7936
7937 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
7938
7939 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
7940 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
7941 restoring of callee-saved registers.
7942
7943 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
7944
7945 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
7946 * config/visium/visium.c (single_set_and_flags): Likewise.
7947 * config/visium/visium.md (Substitutions): Likewise.
7948
7949 2017-05-17 Martin Liska <mliska@suse.cz>
7950
7951 * cfg.c: Introduce dump_flags_t type and
7952 use it instead of int type.
7953 * cfg.h: Likewise.
7954 * cfghooks.c: Likewise.
7955 * cfghooks.h (struct cfg_hooks): Likewise.
7956 * cfgrtl.c: Likewise.
7957 * cfgrtl.h: Likewise.
7958 * cgraph.c (cgraph_node::get_body): Likewise.
7959 * coretypes.h: Likewise.
7960 * domwalk.c: Likewise.
7961 * domwalk.h: Likewise.
7962 * dumpfile.c (struct dump_option_value_info): Likewise.
7963 (dump_enable_all): Likewise.
7964 (dump_switch_p_1): Likewise.
7965 (opt_info_switch_p): Likewise.
7966 * dumpfile.h (enum tree_dump_index): Likewise.
7967 (struct dump_file_info): Likewise.
7968 * genemit.c: Likewise.
7969 * generic-match-head.c: Likewise.
7970 * gengtype.c (open_base_files): Likewise.
7971 * gimple-pretty-print.c: Likewise.
7972 * gimple-pretty-print.h: Likewise.
7973 * graph.c (print_graph_cfg): Likewise.
7974 * graphite-scop-detection.c (dot_all_sese): Likewise.
7975 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
7976 * loop-unroll.c (report_unroll): Likewise.
7977 * passes.c (pass_manager::register_one_dump_file): Likewise.
7978 * print-tree.c: Likewise.
7979 * statistics.c: Likewise.
7980 * tree-cfg.c: Likewise.
7981 * tree-cfg.h: Likewise.
7982 * tree-dfa.c: Likewise.
7983 * tree-dfa.h: Likewise.
7984 * tree-dump.c (dump_function): Likewise.
7985 * tree-dump.h (struct dump_info): Likewise.
7986 * tree-pretty-print.c: Likewise.
7987 * tree-pretty-print.h: Likewise.
7988 * tree-ssa-live.c: Likewise.
7989 * tree-ssa-live.h: Likewise.
7990 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
7991 * tree-vect-loop.c: Likewise.
7992 * tree-vect-slp.c: Likewise.
7993
7994 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
7995 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7996
7997 PR tree-optimization/80457
7998 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
7999 of all arguments to a statement as scalar_to_vec operations.
8000 (vectorizable_call): Adjust call to vect_model_simple_cost for
8001 new parameter.
8002 (vectorizable_conversion): Likewise.
8003 (vectorizable_assignment): Likewise.
8004 (vectorizable_shift): Likewise.
8005 (vectorizable_operation): Likewise.
8006 (vectorizable_comparison): Likewise.
8007 (vect_is_simple_cond): Record the def types for operands.
8008 (vectorizable_condition): Likewise, call vect_model_simple_cost.
8009 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
8010 for statement argument count.
8011
8012 2017-05-16 Carl Love <cel@us.ibm.com>
8013
8014 * config/rs6000/rs6000-c: Add support for built-in functions
8015 vector unsigned long long vec_bperm (vector unsigned long long,
8016 vector unsigned char)
8017 vector signed long long vec_mule (vector signed int,
8018 vector signed int)
8019 vector unsigned long long vec_mule (vector unsigned int,
8020 vector unsigned int)
8021 vector signed long long vec_mulo (vector signed int,
8022 vector signed int)
8023 vector unsigned long long vec_mulo (vector unsigned int,
8024 vector unsigned int)
8025 vector signed char vec_sldw (vector signed char,
8026 vector signed char,
8027 const int)
8028 vector unsigned char vec_sldw (vector unsigned char,
8029 vector unsigned char,
8030 const int)
8031 vector signed short vec_sldw (vector signed short,
8032 vector signed short,
8033 const int)
8034 vector unsigned short vec_sldw (vector unsigned short,
8035 vector unsigned short,
8036 const int)
8037 vector signed int vec_sldw (vector signed int,
8038 vector signed int,
8039 const int)
8040 vector unsigned int vec_sldw (vector unsigned int,
8041 vector unsigned int,
8042 const int)
8043 vector signed long long vec_sldw (vector signed long long,
8044 vector signed long long,
8045 const int)
8046 vector unsigned long long vec_sldw (vector unsigned long long,
8047 vector unsigned long long,
8048 const int)
8049 * config/rs6000/rs6000-c: Add support for built-in functions
8050 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
8051 * config/rs6000/altivec.h: Add defintion for vec_sldw.
8052 * doc/extend.texi: Update the built-in documentation for the
8053 new built-in functions.
8054
8055 2017-05-16 Marek Polacek <polacek@redhat.com>
8056
8057 PR sanitizer/80536
8058 PR sanitizer/80386
8059 * tree.c (save_expr): Don't fold the expression.
8060
8061 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
8062
8063 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
8064 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
8065 and (?*y,m). Update insn attributes.
8066
8067 2017-05-16 Martin Liska <mliska@suse.cz>
8068
8069 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
8070 flags argument of print_gimple_stmt, print_gimple_expr,
8071 print_generic_stmt and print_generic_expr.
8072 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8073 * coretypes.h: Likewise.
8074 * except.c (dump_eh_tree): Likewise.
8075 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8076 * gimple-pretty-print.h: Likewise.
8077 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
8078 (backprop::push_to_worklist): Likewise.
8079 (backprop::pop_from_worklist): Likewise.
8080 (backprop::process_use): Likewise.
8081 (backprop::intersect_uses): Likewise.
8082 (note_replacement): Likewise.
8083 * gimple-ssa-store-merging.c
8084 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
8085 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
8086 (pass_store_merging::execute): Likewise.
8087 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
8088 (ssa_base_cand_dump_callback): Likewise.
8089 (dump_incr_vec): Likewise.
8090 (replace_refs): Likewise.
8091 (replace_mult_candidate): Likewise.
8092 (create_add_on_incoming_edge): Likewise.
8093 (create_phi_basis): Likewise.
8094 (insert_initializers): Likewise.
8095 (all_phi_incrs_profitable): Likewise.
8096 (introduce_cast_before_cand): Likewise.
8097 (replace_one_candidate): Likewise.
8098 * gimplify.c (gimplify_expr): Likewise.
8099 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
8100 (set_rename): Likewise.
8101 (rename_uses): Likewise.
8102 (copy_loop_phi_nodes): Likewise.
8103 (add_close_phis_to_merge_points): Likewise.
8104 (copy_loop_close_phi_args): Likewise.
8105 (copy_cond_phi_args): Likewise.
8106 (graphite_copy_stmts_from_block): Likewise.
8107 (translate_pending_phi_nodes): Likewise.
8108 * graphite-poly.c (print_pdr): Likewise.
8109 (dump_gbb_cases): Likewise.
8110 (dump_gbb_conditions): Likewise.
8111 (print_scop_params): Likewise.
8112 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
8113 (build_cross_bb_scalars_use): Likewise.
8114 (gather_bbs::before_dom_children): Likewise.
8115 * hsa-dump.c (dump_hsa_immed): Likewise.
8116 * ipa-cp.c (print_ipcp_constant_value): Likewise.
8117 (get_replacement_map): Likewise.
8118 * ipa-inline-analysis.c (dump_condition): Likewise.
8119 (estimate_function_body_sizes): Likewise.
8120 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
8121 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
8122 * ipa-prop.c (ipa_dump_param): Likewise.
8123 (ipa_print_node_jump_functions_for_edge): Likewise.
8124 (ipa_modify_call_arguments): Likewise.
8125 (ipa_modify_expr): Likewise.
8126 (ipa_dump_param_adjustments): Likewise.
8127 (ipa_dump_agg_replacement_values): Likewise.
8128 (ipcp_modif_dom_walker::before_dom_children): Likewise.
8129 * ipa-pure-const.c (check_stmt): Likewise.
8130 (pass_nothrow::execute): Likewise.
8131 * ipa-split.c (execute_split_functions): Likewise.
8132 * omp-offload.c (dump_oacc_loop_part): Likewise.
8133 (dump_oacc_loop): Likewise.
8134 * trans-mem.c (tm_log_emit): Likewise.
8135 (tm_memopt_accumulate_memops): Likewise.
8136 (dump_tm_memopt_set): Likewise.
8137 (dump_tm_memopt_transform): Likewise.
8138 * tree-cfg.c (gimple_verify_flow_info): Likewise.
8139 (print_loop): Likewise.
8140 * tree-chkp-opt.c (chkp_print_addr): Likewise.
8141 (chkp_gather_checks_info): Likewise.
8142 (chkp_get_check_result): Likewise.
8143 (chkp_remove_check_if_pass): Likewise.
8144 (chkp_use_outer_bounds_if_possible): Likewise.
8145 (chkp_reduce_bounds_lifetime): Likewise.
8146 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
8147 (chkp_mark_completed_bounds): Likewise.
8148 (chkp_register_incomplete_bounds): Likewise.
8149 (chkp_mark_invalid_bounds): Likewise.
8150 (chkp_maybe_copy_and_register_bounds): Likewise.
8151 (chkp_build_returned_bound): Likewise.
8152 (chkp_get_bound_for_parm): Likewise.
8153 (chkp_build_bndldx): Likewise.
8154 (chkp_get_bounds_by_definition): Likewise.
8155 (chkp_generate_extern_var_bounds): Likewise.
8156 (chkp_get_bounds_for_decl_addr): Likewise.
8157 * tree-chrec.c (chrec_apply): Likewise.
8158 * tree-data-ref.c (dump_data_reference): Likewise.
8159 (dump_subscript): Likewise.
8160 (dump_data_dependence_relation): Likewise.
8161 (analyze_overlapping_iterations): Likewise.
8162 * tree-inline.c (expand_call_inline): Likewise.
8163 (tree_function_versioning): Likewise.
8164 * tree-into-ssa.c (dump_defs_stack): Likewise.
8165 (dump_currdefs): Likewise.
8166 (dump_names_replaced_by): Likewise.
8167 (dump_update_ssa): Likewise.
8168 (update_ssa): Likewise.
8169 * tree-object-size.c (pass_object_sizes::execute): Likewise.
8170 * tree-parloops.c (build_new_reduction): Likewise.
8171 (try_create_reduction_list): Likewise.
8172 (ref_conflicts_with_region): Likewise.
8173 (oacc_entry_exit_ok_1): Likewise.
8174 (oacc_entry_exit_single_gang): Likewise.
8175 * tree-pretty-print.h: Likewise.
8176 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
8177 (get_scalar_evolution): Likewise.
8178 (add_to_evolution): Likewise.
8179 (get_loop_exit_condition): Likewise.
8180 (analyze_evolution_in_loop): Likewise.
8181 (analyze_initial_condition): Likewise.
8182 (analyze_scalar_evolution): Likewise.
8183 (instantiate_scev): Likewise.
8184 (number_of_latch_executions): Likewise.
8185 (gather_chrec_stats): Likewise.
8186 (final_value_replacement_loop): Likewise.
8187 (scev_const_prop): Likewise.
8188 * tree-sra.c (dump_access): Likewise.
8189 (disqualify_candidate): Likewise.
8190 (create_access): Likewise.
8191 (reject): Likewise.
8192 (maybe_add_sra_candidate): Likewise.
8193 (create_access_replacement): Likewise.
8194 (analyze_access_subtree): Likewise.
8195 (analyze_all_variable_accesses): Likewise.
8196 (sra_modify_assign): Likewise.
8197 (initialize_constant_pool_replacements): Likewise.
8198 (find_param_candidates): Likewise.
8199 (decide_one_param_reduction): Likewise.
8200 (replace_removed_params_ssa_names): Likewise.
8201 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8202 * tree-ssa-copy.c (dump_copy_of): Likewise.
8203 (copy_prop_visit_cond_stmt): Likewise.
8204 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
8205 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
8206 (record_equivalences_from_stmt): Likewise.
8207 * tree-ssa-dse.c (compute_trims): Likewise.
8208 (delete_dead_call): Likewise.
8209 (delete_dead_assignment): Likewise.
8210 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
8211 (forward_propagate_into_cond): Likewise.
8212 (pass_forwprop::execute): Likewise.
8213 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8214 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
8215 Likewise.
8216 (move_computations_worker): Likewise.
8217 (execute_sm): Likewise.
8218 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
8219 (remove_exits_and_undefined_stmts): Likewise.
8220 (remove_redundant_iv_tests): Likewise.
8221 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
8222 (adjust_iv_update_pos): Likewise.
8223 * tree-ssa-math-opts.c (bswap_replace): Likewise.
8224 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
8225 (value_replacement): Likewise.
8226 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
8227 * tree-ssa-pre.c (print_pre_expr): Likewise.
8228 (get_representative_for): Likewise.
8229 (create_expression_by_pieces): Likewise.
8230 (insert_into_preds_of_block): Likewise.
8231 (eliminate_insert): Likewise.
8232 (eliminate_dom_walker::before_dom_children): Likewise.
8233 (eliminate): Likewise.
8234 (remove_dead_inserted_code): Likewise.
8235 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
8236 * tree-ssa-reassoc.c (get_rank): Likewise.
8237 (eliminate_duplicate_pair): Likewise.
8238 (eliminate_plus_minus_pair): Likewise.
8239 (eliminate_not_pairs): Likewise.
8240 (undistribute_ops_list): Likewise.
8241 (eliminate_redundant_comparison): Likewise.
8242 (update_range_test): Likewise.
8243 (optimize_range_tests_var_bound): Likewise.
8244 (optimize_vec_cond_expr): Likewise.
8245 (rewrite_expr_tree): Likewise.
8246 (rewrite_expr_tree_parallel): Likewise.
8247 (linearize_expr): Likewise.
8248 (break_up_subtract): Likewise.
8249 (linearize_expr_tree): Likewise.
8250 (attempt_builtin_powi): Likewise.
8251 (attempt_builtin_copysign): Likewise.
8252 (transform_stmt_to_copy): Likewise.
8253 (transform_stmt_to_multiply): Likewise.
8254 (dump_ops_vector): Likewise.
8255 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
8256 (print_scc): Likewise.
8257 (set_ssa_val_to): Likewise.
8258 (visit_reference_op_store): Likewise.
8259 (visit_use): Likewise.
8260 (sccvn_dom_walker::before_dom_children): Likewise.
8261 (run_scc_vn): Likewise.
8262 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
8263 Likewise.
8264 (expr_hash_elt::print): Likewise.
8265 (const_and_copies::pop_to_marker): Likewise.
8266 (const_and_copies::record_const_or_copy_raw): Likewise.
8267 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
8268 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
8269 (dump_predicates): Likewise.
8270 (find_uninit_use): Likewise.
8271 (warn_uninitialized_phi): Likewise.
8272 (pass_late_warn_uninitialized::execute): Likewise.
8273 * tree-ssa.c (verify_vssa): Likewise.
8274 (verify_ssa): Likewise.
8275 (maybe_optimize_var): Likewise.
8276 * tree-vrp.c (dump_value_range): Likewise.
8277 (dump_all_value_ranges): Likewise.
8278 (dump_asserts_for): Likewise.
8279 (register_edge_assert_for_2): Likewise.
8280 (vrp_visit_cond_stmt): Likewise.
8281 (vrp_visit_switch_stmt): Likewise.
8282 (vrp_visit_stmt): Likewise.
8283 (vrp_visit_phi_node): Likewise.
8284 (simplify_cond_using_ranges_1): Likewise.
8285 (fold_predicate_in): Likewise.
8286 (evrp_dom_walker::before_dom_children): Likewise.
8287 (evrp_dom_walker::push_value_range): Likewise.
8288 (evrp_dom_walker::pop_value_range): Likewise.
8289 (execute_early_vrp): Likewise.
8290
8291 2017-05-16 Richard Biener <rguenther@suse.de>
8292
8293 * dwarf2out.c (loc_list_from_tree_1): Do not create
8294 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
8295
8296 2017-05-16 Richard Biener <rguenther@suse.de>
8297
8298 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
8299 just generated.
8300 (note_variable_value_in_expr): If we resolved the decl ref
8301 do not push to the stack.
8302
8303 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
8304
8305 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
8306 operations in fast-math mode.
8307 (vaddq_f16): Likewise.
8308 (vmul_f16): Likewise.
8309 (vmulq_f16): Likewise.
8310 (vsub_f16): Likewise.
8311 (vsubq_f16): Likewise.
8312 * config/arm/neon.md (add<mode>3): New.
8313 (sub<mode>3): New.
8314 (fma:<VH:mode>3): New. Also remove outdated comment.
8315 (mul<mode>3): New.
8316
8317 2017-05-16 Martin Liska <mliska@suse.cz>
8318
8319 PR ipa/79849.
8320 PR ipa/79850.
8321 * ipa-devirt.c (warn_types_mismatch): Fix typo.
8322 (odr_types_equivalent_p): Likewise.
8323
8324 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
8325
8326 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
8327
8328 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
8329
8330 PR target/80425
8331 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
8332 non-interunit SSE move alternatives with '?'.
8333 (zero-extendsidi peephole2): New peephole to skip intermediate
8334 general register in SSE zero-extend sequence.
8335
8336 2017-05-15 Jeff Law <law@redhat.com>
8337
8338 * reorg.c (relax_delay_slots): Create a new variable to hold
8339 the temporary target rather than clobbering TARGET_LABEL.
8340
8341 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
8342 missing argument to extract_bit_field call.
8343 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
8344
8345 2017-05-15 Martin Liska <mliska@suse.cz>
8346
8347 PR driver/31468
8348 * gcc.c (process_command): Do not allow empty argument of -o option.
8349
8350 2017-05-15 Renlin Li <renlin.li@arm.com>
8351
8352 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
8353 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
8354 * config/aarch64/constraints.md (Usf): Add long call check.
8355 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
8356 (call_value): Likewise.
8357 (sibcall): Likewise.
8358 (sibcall_value): Likewise.
8359 (call_insn): New.
8360 (call_value_insn): New.
8361 (sibcall_insn): Update rtx pattern.
8362 (sibcall_value_insn): Likewise.
8363 (call_internal): Remove.
8364 (call_value_internal): Likewise.
8365 (sibcall_internal): Likewise.
8366 (sibcall_value_internal): Likewise.
8367 (call_reg): Likewise.
8368 (call_symbol): Likewise.
8369 (call_value_reg): Likewise.
8370 (call_value_symbol): Likewise.
8371
8372 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
8373
8374 PR target/80600
8375 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
8376
8377 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
8378
8379 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
8380 compatible with CCGOCmode and with CCZmode.
8381
8382 2017-05-14 Martin Sebor <msebor@redhat.com>
8383
8384 PR middle-end/77671
8385 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
8386 (gimple_fold_builtin_snprintf): Same.
8387 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
8388 (gimple_fold_builtin_snprintf): Same.
8389 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
8390 of character types.
8391 (is_call_safe): New function.
8392 (try_substitute_return_value): Call it.
8393 (try_simplify_call): New function.
8394 (pass_sprintf_length::handle_gimple_call): Call it.
8395
8396 2017-05-14 Martin Sebor <msebor@redhat.com>
8397
8398 PR middle-end/80669
8399 * builtins.c (expand_builtin_stpncpy): Simplify.
8400
8401 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
8402
8403 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
8404 * config/i386/i386.h
8405 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
8406 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
8407 (struct machine_function): Add new members call_ms2sysv,
8408 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
8409 (struct machine_frame_state): New fields sp_realigned and
8410 sp_realigned_offset.
8411 * config/i386/i386.c
8412 (enum xlogue_stub): New enum.
8413 (enum xlogue_stub_sets): New enum.
8414 (class xlogue_layout): New class.
8415 (struct ix86_frame): New fields stack_realign_allocate_offset,
8416 stack_realign_offset and outlined_save_offset. Modify comments to
8417 detail stack layout when using out-of-line stubs.
8418 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
8419 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
8420 -mcall-ms2sysv-xlogues.
8421 (stub_managed_regs): New static variable.
8422 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
8423 registers managed by out-of-line stub.
8424 (disable_call_ms2sysv_xlogues): New function.
8425 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
8426 m->call_ms2sysv when appropriate and compute frame layout for
8427 out-of-line stubs.
8428 (sp_valid_at, fp_valid_at): New inline functions.
8429 (choose_basereg): New function.
8430 (choose_baseaddr): Add align parameter, use choose_basereg and modify
8431 all callers.
8432 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
8433 Use align parameter of choose_baseaddr to generated aligned SSE movs
8434 when possible.
8435 (pro_epilogue_adjust_stack): Modify to track
8436 machine_frame_state::sp_realigned.
8437 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
8438 (ix86_nsaved_sseregs): Likewise.
8439 (ix86_emit_save_regs): Likewise.
8440 (ix86_emit_save_regs_using_mov): Likewise.
8441 (ix86_emit_save_sse_regs_using_mov): Likewise.
8442 (get_scratch_register_on_entry): Likewise.
8443 (gen_frame_set): New function.
8444 (gen_frame_load): Likewise.
8445 (gen_frame_store): Likewise.
8446 (emit_outlined_ms2sysv_save): Likewise.
8447 (emit_outlined_ms2sysv_restore): Likewise.
8448 (ix86_expand_prologue): Modify stack re-alignment code and call
8449 emit_outlined_ms2sysv_save when appropriate.
8450 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
8451 parameter rtx_insn *insn, which allows the function to be used to only
8452 generate the notes.
8453 (ix86_expand_epilogue): Modify validity checks of frame and stack
8454 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
8455 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
8456 * config/i386/predicates.md
8457 (save_multiple): New predicate.
8458 (restore_multiple): Likewise.
8459 * config/i386/sse.md
8460 (save_multiple<mode>): New pattern.
8461 (save_multiple_realign<mode>): Likewise.
8462 (restore_multiple<mode>): Likewise.
8463 (restore_multiple_and_return<mode>): Likewise.
8464 (restore_multiple_leave_return<mode>): Likewise.
8465 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
8466
8467 2017-05-14 Julia Koval <julia.koval@intel.com>
8468
8469 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
8470 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
8471 (__builtin_ia32_xsetbv): New builtins.
8472 * config/i386/i386.c (ix86_expand_special_args_builtin):
8473 Process new types.
8474 (ix86_expand_builtin): Special expand for new intrinsics.
8475 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
8476 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
8477 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
8478
8479 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8480
8481 * cfganal.c (inverted_post_order_compute): Change argument type
8482 to vec *.
8483 * cfganal.h (inverted_post_order_compute): Adjust prototype.
8484 * df-core.c (rest_of_handle_df_initialize): Adjust.
8485 (rest_of_handle_df_finish): Likewise.
8486 (df_analyze_1): Likewise.
8487 (df_analyze): Likewise.
8488 (loop_inverted_post_order_compute): Change argument to be a vec *.
8489 (df_analyze_loop): Adjust.
8490 (df_get_n_blocks): Likewise.
8491 (df_get_postorder): Likewise.
8492 * df.h (struct df_d): Change field to be a vec.
8493 * lcm.c (compute_laterin): Adjust.
8494 (compute_available): Likewise.
8495 * lra-lives.c (lra_create_live_ranges_1): Likewise.
8496 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
8497 * tree-ssa-pre.c (compute_antic): Likewise.
8498
8499 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8500
8501 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
8502 (depth_first_search::depth_first_search): Change structure init
8503 function to this constructor.
8504 (depth_first_search::add_bb): Rename function to this member.
8505 (depth_first_search::execute): Likewise.
8506 (flow_dfs_compute_reverse_finish): Adjust.
8507
8508 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8509
8510 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
8511 (longest_simple_path): Likewise.
8512 * shrink-wrap.c (spread_components): Likewise.
8513 (disqualify_problematic_components): Likewise.
8514 (emit_common_heads_for_components): Likewise.
8515 (emit_common_tails_for_components): Likewise.
8516 (insert_prologue_epilogue_for_components): Likewise.
8517
8518 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8519
8520 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
8521 auto_sbitmap.
8522
8523 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8524
8525 * df-core.c (df_set_blocks): Start using auto_bitmap.
8526 (df_compact_blocks): Likewise.
8527 * df-problems.c (df_rd_confluence_n): Likewise.
8528 * df-scan.c (df_insn_rescan_all): Likewise.
8529 (df_process_deferred_rescans): Likewise.
8530 (df_update_entry_block_defs): Likewise.
8531 (df_update_exit_block_uses): Likewise.
8532 (df_entry_block_bitmap_verify): Likewise.
8533 (df_exit_block_bitmap_verify): Likewise.
8534 (df_scan_verify): Likewise.
8535 * lra-constraints.c (lra_constraints): Likewise.
8536 (undo_optional_reloads): Likewise.
8537 (lra_undo_inheritance): Likewise.
8538 * lra-remat.c (calculate_gen_cands): Likewise.
8539 (do_remat): Likewise.
8540 * lra-spills.c (assign_spill_hard_regs): Likewise.
8541 (spill_pseudos): Likewise.
8542 * tree-ssa-pre.c (bitmap_set_and): Likewise.
8543 (bitmap_set_subtract_values): Likewise.
8544
8545 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8546
8547 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
8548 management with auto_bitmap.
8549 (fix_inter_tick): Likewise.
8550 (fix_recovery_deps): Likewise.
8551 * ira.c (add_store_equivs): Likewise.
8552 (find_moveable_pseudos): Likewise.
8553 (split_live_ranges_for_shrink_wrap): Likewise.
8554 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
8555 (rtx_reuse_manager::seen_def_p): Likewise.
8556 (rtx_reuse_manager::set_seen_def): Likewise.
8557 * print-rtl.h (class rtx_reuse_manager): Likewise.
8558
8559 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8560
8561 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
8562 lifetime.
8563 (migrate_btr_def): Likewise.
8564 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
8565 * df-core.c (loop_post_order_compute): Likewise.
8566 (loop_inverted_post_order_compute): Likewise.
8567 * hsa-common.h: Likewise.
8568 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
8569 * init-regs.c (initialize_uninitialized_regs): Likewise.
8570 * ipa-inline.c (resolve_noninline_speculation): Likewise.
8571 (inline_small_functions): Likewise.
8572 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
8573 * ira.c (combine_and_move_insns): Likewise.
8574 (build_insn_chain): Likewise.
8575 * loop-invariant.c (find_invariants): Likewise.
8576 * lower-subreg.c (propagate_pseudo_copies): Likewise.
8577 * predict.c (tree_predict_by_opcode): Likewise.
8578 (predict_paths_leading_to): Likewise.
8579 (predict_paths_leading_to_edge): Likewise.
8580 (estimate_loops_at_level): Likewise.
8581 (estimate_loops): Likewise.
8582 * shrink-wrap.c (try_shrink_wrapping): Likewise.
8583 (spread_components): Likewise.
8584 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
8585 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
8586 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
8587 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
8588 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
8589 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8590 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
8591 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
8592 (mark_threaded_blocks): Likewise.
8593 (thread_through_all_blocks): Likewise.
8594 * tree-ssa.c (verify_ssa): Likewise.
8595 (execute_update_addresses_taken): Likewise.
8596 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
8597
8598 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8599
8600 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
8601 auto_vec.
8602 (post_order_compute): Likewise.
8603 (inverted_post_order_compute): Likewise.
8604 (pre_and_rev_post_order_compute_fn): Likewise.
8605
8606 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8607
8608 * genrecog.c (int_set::int_set): Explicitly construct our
8609 auto_vec base class.
8610 * vec.h (auto_vec::auto_vec): New constructor.
8611
8612 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8613
8614 * bitmap.h (class auto_bitmap): New constructor taking
8615 bitmap_obstack * argument.
8616
8617 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8618
8619 * bitmap.h (class auto_bitmap): Change type of m_bits to
8620 bitmap_head, and adjust ctor / dtor and member operators.
8621
8622 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
8623
8624 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
8625 when returned register mode doesn't match original mode.
8626
8627 2017-05-12 Jeff Law <law@redhat.com>
8628 Jakub Jelinek <jakub@redhat.com>
8629
8630 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
8631 we look for cc setter after the compare-elim changes.
8632 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
8633 within the vector to match what compare-elim now expects.
8634 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
8635 (xorsi3_flags, one_cmplsi2_flags): Likewise.
8636
8637 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
8638 after the compare-elim changes.
8639 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
8640 the vector to match what compare-elim now expects.
8641 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
8642 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
8643 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
8644 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
8645 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
8646
8647 * config/visium/visium.c (single_set_and_flags): Fix where
8648 we look for cc setter after the compare-elim changes.
8649 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
8650 with the vector to match what compare-elim now expects.
8651 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
8652 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
8653 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
8654 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
8655 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
8656 (neg<mode>2_insn_set_overflow): Likewise.
8657
8658 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
8659
8660 PR middle-end/79794
8661 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
8662 maybe_expand_insn call, set ops[0].target. If still set after call,
8663 set alt_rtl. Add extra arg to recursive calls.
8664 (extract_bit_field): Add alt_rtl argument. Pass to
8665 extract_bit_field.
8666 * expmed.h (extract_bit_field): Fix prototype.
8667 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
8668 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
8669 to extract_bit_field_calls.
8670 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
8671 Pass alt_rtl to extract_bit_field calls.
8672 * calls.c (store_unaligned_arguments_into_psuedos)
8673 load_register_parameters): Pass extra NULL to extract_bit_field calls.
8674 * optabs.c (maybe_legitimize_operand): Clear op->target when call
8675 gen_reg_rtx.
8676 * optabs.h (struct expand_operand): Add target bitfield.
8677
8678 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
8679
8680 * compare-elim.c (try_eliminate_compare): Canonicalize
8681 operation with embedded compare to
8682 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
8683 (set (reg) (operation)].
8684
8685 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
8686
8687 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
8688
8689 PR target/80723
8690 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
8691 cost of adding a carry flag for ADC instruction.
8692 [case MINUS]: Ignore the cost of subtracting a carry flag
8693 for SBB instruction.
8694
8695 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
8696
8697 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
8698 and x86intrin.h
8699 * config/rs6000/bmiintrin.h: New file.
8700 * config/rs6000/bmi2intrin.h: New file.
8701 * config/rs6000/x86intrin.h: New file.
8702
8703 2017-05-12 Jeff Law <law@redhat.com>
8704
8705 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
8706 markers.
8707
8708 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
8709
8710 PR middle-end/80707
8711 * tree-cfg.c: Remove cfg edges of unreachable case statements.
8712
8713 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
8714
8715 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
8716 early expansion of vector divide builtins.
8717 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
8718 builtins identified as having unsigned arguments.
8719
8720 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
8721
8722 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
8723 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
8724 expansion of vector logical operations (and, andc, or, xor,
8725 nor, orc, nand).
8726
8727 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
8728
8729 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
8730 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
8731
8732 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
8733
8734 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
8735 early GIMPLE expansion of vector multiplies.
8736
8737 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
8738
8739 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
8740 TARGET_HAVE_MOVT conditional.
8741 (movt splitter): Likewise.
8742
8743 2017-05-12 Richard Biener <rguenther@suse.de>
8744
8745 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
8746 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8747 Fold all stmts not inplace.
8748
8749 2017-05-12 Richard Biener <rguenther@suse.de>
8750
8751 PR tree-optimization/80713
8752 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
8753 inserted_exprs bit for not removed stmts.
8754
8755 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
8756
8757 PR middle-end/69921
8758 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
8759 parallelized" attribute for parallelized OpenACC kernels.
8760 * omp-offload.c (execute_oacc_device_lower): Use it.
8761
8762 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
8763 Set "oacc kernels" attribute.
8764 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
8765 parameter. Adjust all users.
8766 (oacc_fn_attrib_kernels_p): Remove function.
8767 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
8768 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
8769 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
8770 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
8771 assert "oacc kernels" attribute is set.
8772
8773 2017-05-11 Carl Love <cel@us.ibm.com>
8774
8775 * config/rs6000/rs6000-c: Add support for built-in functions
8776 vector unsigned char vec_popcnt (vector signed char)
8777 vector unsigned char vec_popcnt (vector unsigned char)
8778 vector unsigned short vec_popcnt (vector signed short)
8779 vector unsigned short vec_popcnt (vector unsigned short)
8780 vector unsigned int vec_popcnt (vector signed int)
8781 vector unsigned int vec_popcnt (vector unsigned int)
8782 vector unsigned long long vec_popcnt (vector signed long long)
8783 vector unsigned long long vec_popcnt (vector unsigned long long)
8784 vector signed long long vec_slo (vector signed long long,
8785 vector signed char)
8786 vector signed long long vec_slo (vector signed long long,
8787 vector unsigned char)
8788 vector unsigned long long vec_slo (vector unsigned long long,
8789 vector signed char)
8790 vector unsigned long long vec_slo (vector unsigned long long,
8791 vector unsigned char)
8792 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
8793 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
8794 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
8795 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
8796 * doc/extend.texi: Update the built-in documentation file for the
8797 new built-in functions.
8798
8799 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8800
8801 * attribs.h (sorted_attr_string): Move machine independent
8802 functions for target clone support from the i386 port to common
8803 code. Rename ix86_function_versions to common_function_versions.
8804 Rename make_name to make_unique_name.
8805 (common_function_versions): Likewise.
8806 (make_unique_name): Likewise.
8807 (make_dispatcher_decl): Likewise.
8808 (is_function_default_version): Likewise.
8809 * attribs.c (attr_strcmp): Likewise.
8810 (sorted_attr_string): Likewise.
8811 (common_function_versions): Likewise.
8812 (make_unique_name): Likewise.
8813 (make_dispatcher_decl): Likewise.
8814 (is_function_default_version): Likewise.
8815 * config/i386/i386.c (attr_strcmp): Likewise.
8816 (sorted_attr_string): Likewise.
8817 (ix86_function_versions): Likewise.
8818 (make_name): Likewise.
8819 (make_dispatcher_decl): Likewise.
8820 (is_function_default_version): Likewise.
8821 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
8822
8823 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8824
8825 PR target/80695
8826 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
8827 Account for direct move costs for vec_construct of integer
8828 vectors.
8829
8830 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
8831
8832 PR target/80706
8833 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
8834 (UNSPEC_STX_ATOMIC): Ditto.
8835 (loaddi_via_sse): New insn.
8836 (storedi_via_sse): Ditto.
8837 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
8838 Update corresponding peephole2 patterns.
8839 (atomic_storedi_fpu): Ditto.
8840
8841 2017-05-11 Julia Koval <julia.koval@intel.com>
8842
8843 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
8844 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
8845 New intrinsics.
8846 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
8847 (__builtin_ia32_rsqrt14ss_mask): New builtins.
8848 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
8849
8850 2017-05-11 Nathan Sidwell <nathan@acm.org>
8851
8852 * graphite-poly.c: Include dumpfile.h.
8853
8854 * dumpfle.h (dump_function): Declare here ...
8855 * tree-dump.h (dump_function): ... not here.
8856 * dumpfile.c: #include tree-cfg.h.
8857 (dump_function): Move here from ...
8858 * tree-dump.c (dump_function): ... here.
8859 * gimplify.c: #include splay-tree.h, not tree-dump.h.
8860 * graphite-poly.c: Don't include tree-dump.h.
8861 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
8862 * print-tree.c: Likewise.
8863 * stor-layout.c: Likewise.
8864 * tree-nested.c: Likewise.
8865
8866 * dumpfile.c (dump_start): Use TDF_FLAGS.
8867 (dump_enable_all): Fix TDF_KIND check thinko.
8868
8869 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
8870
8871 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8872 array entries to represent two legal parameterizations of the
8873 overloaded __builtin_cmpb function, as represented by the
8874 P6_OV_BUILTIN_CMPB constant.
8875 (altivec_resolve_overloaded_builtin): Add special case handling
8876 for the __builtin_cmpb function, as represented by the
8877 P6_OV_BUILTIN_CMPB constant.
8878 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
8879 (BU_P6_64BIT_2): New macro.
8880 (BU_P6_OVERLOAD_2): New macro
8881 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
8882 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
8883 (CMPB): Add overload support to represent both 32-bit and 64-bit
8884 compare-bytes function.
8885 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8886 support for TARGET_CMPB.
8887 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
8888 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
8889 documentation of the __builtin_cmpb overloaded built-in function.
8890
8891 2017-05-11 Richard Biener <rguenther@suse.de>
8892
8893 PR tree-optimization/80705
8894 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
8895 bases are not vectorizable.
8896
8897 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8898
8899 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
8900 when counting register pressure.
8901
8902 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8903
8904 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
8905 (iv_ca_more_deps): Renamed to ...
8906 (iv_ca_compare_deps): ... this.
8907 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
8908
8909 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8910
8911 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
8912 to ...
8913 (determine_group_iv_costs): ... here.
8914 (find_inv_vars_cb): Record inv var if it's not recorded before.
8915
8916 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8917
8918 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
8919 (get_shiftadd_cost): Ditto.
8920
8921 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8922
8923 * tree-ssa-address.c: Include header file.
8924 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
8925 address.
8926 (add_to_parts): Refactor.
8927 (addr_to_parts): New parameter. Update use of move_hint_to_base.
8928 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
8929 in new order.
8930
8931 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8932
8933 PR tree-optimization/53090
8934 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
8935 COMP_IV_EXPR_2.
8936 (extract_cond_operands): Detect condition with IV on both sides
8937 and return COMP_IV_EXPR_2.
8938 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
8939 (rewrite_use_compare): Simplify by removing call to function
8940 extract_cond_operands.
8941
8942 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8943
8944 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
8945 (extract_cond_operands): Detect condition comparing against non-
8946 invariant bound and return appropriate enum value.
8947 (find_interesting_uses_cond): Update use of extract_cond_operands.
8948 Handle its return value accordingly.
8949 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
8950
8951 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8952
8953 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
8954 nonlinear iv_use computation in loop invariant sensitive way.
8955
8956 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8957
8958 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
8959 (find_iv_candidates): Call relate_compare_use_with_all_cands.
8960
8961 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8962
8963 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
8964 (dump_cand): Support iv_cand.inv_exprs.
8965 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
8966 for candidates.
8967 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
8968 iv_cand.inv_exprs.
8969
8970 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8971
8972 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
8973 from ...
8974 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
8975 as local function. Include necessary header files.
8976 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
8977
8978 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8979
8980 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
8981
8982 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8983
8984 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
8985 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
8986 RSHIFT_EXPR and BIT_NOT_EXPR.
8987
8988 2017-05-11 Bin Cheng <bin.cheng@arm.com>
8989
8990 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
8991 (adjust_setup_cost): New parameter supporting round up adjustment.
8992 (struct address_cost_data): Delete.
8993 (force_expr_to_var_cost): Don't bound cost with spill_cost.
8994 (split_address_cost, ptr_difference_cost): Delete.
8995 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
8996 (struct ainc_cost_data): New struct.
8997 (get_address_cost_ainc): New function.
8998 (get_address_cost, get_computation_cost): Reimplement.
8999 (determine_group_iv_cost_address): Record inv_expr for all uses of
9000 a group.
9001 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
9002 (iv_ca_has_deps): Reimplemented to ...
9003 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
9004 than OLD_CP.
9005 (iv_ca_extend): Call iv_ca_more_deps.
9006
9007 2017-05-11 Bin Cheng <bin.cheng@arm.com>
9008
9009 * tree-ssa-address.c (struct mem_address): Move to header file.
9010 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
9011 * tree-ssa-address.h (struct mem_address): Move from C file.
9012 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
9013
9014 2017-05-11 Bin Cheng <bin.cheng@arm.com>
9015
9016 * tree-affine.h (aff_combination_type): New interface.
9017 (aff_combination_zero_p): Remove static.
9018 (aff_combination_const_p): New interface.
9019 (aff_combination_singleton_var_p): New interfaces.
9020
9021 2017-05-11 Richard Biener <rguenther@suse.de>
9022
9023 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9024 Skip unreachable blocks and destinations.
9025 (eliminate): Move stmt removal and fixup ...
9026 (fini_eliminate): ... here. Skip inserted exprs.
9027 (pass_pre::execute): Move fini_pre after fini_eliminate.
9028 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
9029 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
9030 PRE to get rid of dead code that has invalid SSA form and
9031 split critical edges again.
9032
9033 2017-05-11 Bin Cheng <bin.cheng@arm.com>
9034
9035 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
9036
9037 2017-05-11 Richard Biener <rguenther@suse.de>
9038
9039 * passes.c (execute_function_todo): Verify loops if they are
9040 said to be up-to-date.
9041 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
9042 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
9043
9044 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
9045
9046 PR target/80090
9047 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
9048 handle calling assemble_external ourself.
9049
9050 PR target/79027
9051 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
9052 modes with zero size. Enhance comment.
9053
9054 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9055
9056 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
9057 built-ins for vec_xl and vec_xst with short and char pointer
9058 arguments.
9059
9060 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
9061
9062 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
9063 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
9064 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
9065 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
9066 (_mm_maskz_min_round_ss): New intrinsics.
9067 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
9068 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
9069 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
9070 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
9071 (__builtin_ia32_minss_mask_round): New builtins.
9072 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
9073 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
9074 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
9075 Rename to ...
9076 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
9077 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
9078 Change to ...
9079 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
9080 ... this.
9081
9082 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
9083
9084 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
9085 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
9086 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
9087 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
9088 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
9089 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
9090 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
9091 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
9092 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
9093 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
9094 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
9095 (__builtin_ia32_mulss_mask_round): New builtins.
9096 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
9097 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
9098 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
9099 Rename to ...
9100 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
9101 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
9102 Change to ...
9103 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
9104 ... this.
9105
9106 2017-05-10 Julia Koval <julia.koval@intel.com>
9107
9108 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
9109 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
9110 (_mm256_setr_m128i): New intrinsics.
9111
9112 2017-05-10 Julia Koval <julia.koval@intel.com>
9113
9114 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
9115 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
9116 (_mm_maskz_rcp14_ss): New intrinsics.
9117 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
9118 (__builtin_ia32_rcp14ss_mask): New builtins.
9119 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
9120
9121 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
9122
9123 PR tree-optimization/51513
9124 * tree-cfg.c (gimple_seq_unreachable_p): New function.
9125 (assert_unreachable_fallthru_edge_p): Use it.
9126 (group_case_labels_stmt): Likewise.
9127 * tree-cfg.h: Prototype it.
9128 * stmt.c: Include cfghooks.h and tree-cfg.h.
9129 (emit_case_dispatch_table) <gap_label>: New local variable.
9130 Use it to fill dispatch table gaps.
9131 Test for default_label before updating probabilities.
9132 (expand_case) <default_label>: Remove unneeded initialization.
9133 Test for unreachable default case statement and remove its edge.
9134 Set default_label accordingly.
9135 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
9136
9137 2017-05-10 Carl Love <cel@us.ibm.com>
9138
9139 * config/rs6000/rs6000-c: Add support for built-in functions
9140 vector signed char vec_neg (vector signed char)
9141 vector signed short int vec_neg (vector short int)
9142 vector signed int vec_neg (vector signed int)
9143 vector signed long long vec_neg (vector signed long long)
9144 vector float vec_neg (vector float)
9145 vector double vec_neg (vector double)
9146 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
9147 overload.
9148 * config/rs6000/altivec.h: Add define for vec_neg
9149 * doc/extend.texi: Update the built-in documentation for the
9150 new built-in functions.
9151
9152 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9153
9154 PR tree-optimization/77644
9155 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
9156
9157 2017-05-10 Nathan Sidwell <nathan@acm.org>
9158
9159 * dumpfile.h (TDI_lang_all): New.
9160 (TDF_KIND): New. Renumber others
9161 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
9162 than bits.
9163 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
9164 lang-all.
9165 (get_dump_file_name): Adjust suffix generation.
9166 (dump_enable_all): Use TDF_KIND.
9167 * doc/invoke.texi (-fdump-lang-all): Document.
9168
9169 * dumpfile.h: Tabify.
9170
9171 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
9172
9173 PR target/80671
9174 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
9175 Move member access before delete.
9176
9177 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
9178
9179 * tree-inline.c (expand_call_inline): Split block at stmt
9180 before the call.
9181
9182 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9183
9184 PR target/68163
9185 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
9186 are now unused after splitting mov{sf,sd}_hardfloat.
9187 (f32_lr2): Likewise.
9188 (f32_lm): Likewise.
9189 (f32_lm2): Likewise.
9190 (f32_li): Likewise.
9191 (f32_li2): Likewise.
9192 (f32_lv): Likewise.
9193 (f32_sr): Likewise.
9194 (f32_sr2): Likewise.
9195 (f32_sm): Likewise.
9196 (f32_sm2): Likewise.
9197 (f32_si): Likewise.
9198 (f32_si2): Likewise.
9199 (f32_sv): Likewise.
9200 (f32_dm): Likewise.
9201 (f32_vsx): Likewise.
9202 (f32_av): Likewise.
9203 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
9204 For movsf, order stores so the VSX stores occur before the GPR
9205 store which encourages the register allocator to use a traditional
9206 FPR instead of a GPR. For movsd, order the stores so that the GPR
9207 store comes before the VSX stores to allow the power6 to work.
9208 This is due to the power6 not having a 32-bit integer store
9209 instruction from a FPR.
9210 (movsf_hardfloat): Likewise.
9211 (movsd_hardfloat): Likewise.
9212
9213 2017-05-09 Martin Sebor <msebor@redhat.com>
9214
9215 PR translation/80280
9216 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
9217 added in r247778.
9218
9219 PR translation/80280
9220 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
9221 data member added in r247778.
9222 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
9223
9224 2017-05-09 Nathan Sidwell <nathan@acm.org>
9225
9226 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
9227
9228 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
9229 typedefs.
9230
9231 2017-05-09 Marek Polacek <polacek@redhat.com>
9232
9233 * doc/invoke.texi: Fix typo.
9234
9235 2017-05-09 Richard Biener <rguenther@suse.de>
9236
9237 * tree-vrp.c (vrp_val_is_max): Adjust comment.
9238 (vrp_val_is_min): Likewise.
9239 (set_value_range_to_value): Likewise.
9240 (set_value_range_to_nonnegative): Likewise.
9241 (gimple_assign_nonzero_p): Likewise.
9242 (gimple_stmt_nonzero_p): Likewise.
9243 (vrp_int_const_binop): Likewise. Remove unreachable case.
9244 (adjust_range_with_scev): Adjust comments.
9245 (compare_range_with_value): Likewise.
9246 (extract_range_from_phi_node): Likewise.
9247 (test_for_singularity): Likewise.
9248
9249 2017-05-09 Richard Biener <rguenther@suse.de>
9250
9251 * tree-vrp.c (get_single_symbol): Add assert that we don't
9252 get overflowed constants as invariant part.
9253 (compare_values_warnv): Add comment before the TREE_NO_WARNING
9254 checks. Use wi::cmp instead of recursing for integer constants.
9255 (compare_values): Just ignore whether we assumed undefined
9256 overflow instead of failing the compare.
9257 (extract_range_for_var_from_comparison_expr): Add comment before the
9258 TREE_NO_WARNING sets.
9259 (test_for_singularity): Likewise.
9260 (extract_range_from_comparison): Do not disable optimization
9261 when we assumed undefined overflow.
9262 (extract_range_basic): Remove init of unused var.
9263
9264 2017-05-09 Richard Biener <rguenther@suse.de>
9265
9266 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
9267 (extract_range_from_multiplicative_op_1): Adjust.
9268 (extract_range_from_binary_expr_1): Use int_const_binop.
9269
9270 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
9271
9272 PR target/80101
9273 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
9274 rs6000_store_data_bypass_p in seven define_bypass directives and
9275 in several comments.
9276 * config/rs6000/rs6000-protos.h: Add prototype for
9277 rs6000_store_data_bypass_p function.
9278 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
9279 function implements slightly different (rs6000-specific) semantics
9280 than store_data_bypass_p, returning false rather than aborting
9281 with assertion error when arguments do not satisfy the
9282 requirements of store data bypass.
9283 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
9284 rs6000_store_data_bypass_p.
9285
9286 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
9287
9288 * config/xtensa/xtensa-protos.h
9289 (xtensa_initial_elimination_offset): New declaration.
9290 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
9291 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
9292 macro definition, add case for FRAME_POINTER_REGNUM when
9293 FRAME_GROWS_DOWNWARD.
9294 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
9295 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
9296 xtensa_initial_elimination_offset.
9297
9298 2017-05-08 Nathan Sidwell <nathan@acm.org>
9299
9300 * doc/invoke.texi: Alphabetize -fdump options.
9301
9302 2017-05-08 Martin Sebor <msebor@redhat.com>
9303
9304 PR translation/80280
9305 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
9306
9307 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
9308
9309 * target.def (compute_frame_layout): New optional target hook.
9310 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
9311 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
9312 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
9313 target hook.
9314 * reload1.c (verify_initial_elim_offsets): Likewise.
9315 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
9316 (use_simple_return_p): Call arm_compute_frame_layout if needed.
9317 (arm_get_frame_offsets): Split up into this ...
9318 (arm_compute_frame_layout): ... and this function.
9319
9320 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
9321
9322 * config/aarch64/constraints.md (Usa): New constraint.
9323 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
9324
9325 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9326
9327 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
9328 with_multilib_list after it has been checked.
9329
9330 2017-05-08 Richard Biener <rguenther@suse.de>
9331
9332 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
9333 (bitmap_set_subtract_values): Likewise.
9334
9335 2017-05-08 Richard Biener <rguenther@suse.de>
9336
9337 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
9338 (gimple_assign_nonzero): ... this and remove strict_overflow_p
9339 argument.
9340 (gimple_stmt_nonzero_warnv_p): Rename to ...
9341 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
9342 argument.
9343 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
9344 (extract_range_basic): Adjust, do not disable propagation on
9345 strict overflow sensitive simplification.
9346 (vrp_visit_cond_stmt): Likewise.
9347
9348 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
9349
9350 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
9351 body size unconditionally.
9352
9353 2017-05-07 Jeff Law <law@redhat.com>
9354
9355 Revert:
9356 2017-05-06 Jeff Law <law@redhat.com>
9357 PR tree-optimization/78496
9358 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
9359 code.
9360
9361 PR tree-optimization/78496
9362 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
9363 (simplify_stmt_using_ranges): Call it.
9364 (vrp_dom_walker::before_dom_children): Extract equivalences
9365 from an ASSERT_EXPR with an equality comparison against a
9366 constant.
9367
9368 2017-05-06 Jeff Law <law@redhat.com>
9369
9370 PR tree-optimization/78496
9371 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
9372 code.
9373
9374 PR tree-optimization/78496
9375 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
9376 (simplify_stmt_using_ranges): Call it.
9377 (vrp_dom_walker::before_dom_children): Extract equivalences
9378 from an ASSERT_EXPR with an equality comparison against a
9379 constant.
9380
9381 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
9382
9383 * lra-constraints.c (lra_copy_reg_equiv): New function.
9384 (split_reg): Use it to copy equivalence information from the
9385 original register to the spill register.
9386
9387 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
9388
9389 PR rtl-optimization/75964
9390 * simplify-rtx.c (simplify_const_relational_operation): Remove
9391 invalid handling of comparisons of integer ABS.
9392
9393 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
9394
9395 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
9396 initialize to zero.
9397 (init_regs): Remove declaration.
9398 (function_arg_advance_32): Initialize error_p as boolean variable.
9399
9400 2017-05-05 Nathan Sidwell <nathan@acm.org>
9401
9402 * store-motion.c (remove_reachable_equiv_notes): Reformat long
9403 lines. Use for (;;).
9404
9405 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9406
9407 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
9408 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
9409 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
9410 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
9411 VF=2 that require versioning.
9412
9413 2017-05-05 David Malcolm <dmalcolm@redhat.com>
9414
9415 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
9416 int.
9417
9418 2017-05-05 David Malcolm <dmalcolm@redhat.com>
9419
9420 * diagnostic.h (diagnostic_override_option_index): Convert from
9421 macro to inline function.
9422
9423 2017-05-05 David Malcolm <dmalcolm@redhat.com>
9424
9425 * diagnostic.c (last_module_changed_p): New function.
9426 (set_last_module): New function.
9427 (diagnostic_report_current_module): Convert macro usage to
9428 the above functions.
9429 * diagnostic.h (diagnostic_context::last_module): Strengthen
9430 from const line_map * to const line_map_ordinary *.
9431 (diagnostic_last_module_changed): Delete macro.
9432 (diagnostic_set_last_module): Delete macro.
9433
9434 2017-05-05 David Malcolm <dmalcolm@redhat.com>
9435
9436 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
9437 with diagnostic_report_diagnostic.
9438 (diagnostic_n_impl_richloc): Likewise.
9439 * diagnostic.h (report_diagnostic): Delete macro.
9440 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
9441 with diagnostic_report_diagnostic.
9442 * substring-locations.c (format_warning_va): Likewise.
9443
9444 2017-05-05 David Malcolm <dmalcolm@redhat.com>
9445
9446 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
9447 save/restor of format_spec. Move option-printing code to...
9448 (print_option_information): ...this new function, and
9449 reimplement by simply printing to the pretty_printer,
9450 rather than appending to the format string.
9451
9452 2017-05-05 David Malcolm <dmalcolm@redhat.com>
9453
9454 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
9455 handling logic into...
9456 (update_effective_level_from_pragmas): ...this new function.
9457
9458 2017-05-04 Andrew Waterman <andrew@sifive.com>
9459
9460 * config/riscv/riscv.opt (mstrict-align): New option.
9461 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
9462 (SLOW_UNALIGNED_ACCESS): Define.
9463 (riscv_slow_unaligned_access): Declare.
9464 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
9465 field.
9466 (riscv_slow_unaligned_access): New variable.
9467 (rocket_tune_info): Set slow_unaligned_access to true.
9468 (optimize_size_tune_info): Set slow_unaligned_access to false.
9469 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
9470 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
9471 (riscv_option_override): Set riscv_slow_unaligned_access.
9472 * doc/invoke.texi: Add -mstrict-align to RISC-V.
9473
9474 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
9475
9476 * config/riscv/riscv.md: Unify indentation.
9477
9478 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9479
9480 PR target/79038
9481 PR target/79202
9482 PR target/79203
9483 * config/rs6000/rs6000.md (u code attribute): Add FIX and
9484 UNSIGNED_FIX.
9485 (extendsi<mode>2): Add support for doing sign extension via
9486 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
9487 don't have ISA 3.0 instructions.
9488 (extendsi<mode>2 splitter): Likewise.
9489 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
9490 generate the normal insns since SImode can now go in vector
9491 registers. Disallow the special UNSPECs needed for previous
9492 machines to hide SImode being used. Add new insns
9493 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
9494 (fix_trunc<mode>si2_stfiwx): Likewise.
9495 (fix_trunc<mode>si2_internal): Likewise.
9496 (fixuns_trunc<mode>si2): Likewise.
9497 (fixuns_trunc<mode>si2_stfiwx): Likewise.
9498 (fctiw<u>z_<mode>_smallint): Likewise.
9499 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
9500 of floating point to 32-bit integer from doing a direct move to
9501 the GPR registers to do a store.
9502 (fctiwz_<mode>): Break long line.
9503
9504 2017-05-05 Bin Cheng <bin.cheng@arm.com>
9505
9506 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
9507 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
9508 (addr_list, addr_offset_valid_p): New.
9509 (split_address_groups): Check offset validity with above function.
9510 (gt-tree-ssa-loop-ivopts.h): Include header file.
9511
9512 2017-05-05 Nathan Sidwell <nathan@acm.org>
9513
9514 * config.gcc (arm*-*-*): Add missing 'fi'.
9515
9516 2017-05-05 Steve Ellcey <sellcey@cavium.com>
9517
9518 * doc/invoke.texi (-fopt-info): Explicitly say order of options
9519 included in -fopt-info does not matter.
9520 * doc/optinfo.texi (-fopt-info): Fix description of default
9521 behavour. Explicitly say order of options included in -fopt-info
9522 does not matter.
9523
9524 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
9525
9526 * config.gcc: Allow combinations of aprofile and rmprofile values for
9527 --with-multilib-list.
9528 * config/arm/t-multilib: New file.
9529 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
9530 variables. Remove setting of ISA and floating-point ABI in
9531 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
9532 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
9533 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
9534 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
9535 CPU options.
9536 * config/arm/t-rmprofile: Likewise except for the matches changes.
9537 * doc/install.texi (--with-multilib-list): Document the combination of
9538 aprofile and rmprofile values and warn about pitfalls in doing that.
9539
9540 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
9541
9542 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
9543 (movdi_aarch64): Likewise.
9544
9545 2017-05-05 Jakub Jelinek <jakub@redhat.com>
9546
9547 PR tree-optimization/80632
9548 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
9549 field.
9550 (build_arrays): Initialize it for virtual phis.
9551 (fix_phi_nodes): Use it for virtual phis.
9552
9553 PR tree-optimization/80558
9554 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
9555 [x, y] op z into [x op, y op z] for op & or | if conditions
9556 are met.
9557
9558 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
9559 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
9560
9561 PR target/71607
9562 * config/arm/arm.md (use_literal_pool): Remove.
9563 (64-bit immediate split): No longer takes cost into consideration
9564 if arm_disable_literal_pool is enabled.
9565 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
9566 used when arm_disable_literal_pool is enabled.
9567 (arm_max_const_double_inline_cost): Remove use of
9568 arm_disable_literal_pool.
9569 (push_minipool_fix): Add assert.
9570 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
9571 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
9572 (no_literal_pool_sf_immediate): New.
9573
9574 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9575
9576 PR tree-optimization/80613
9577 * tree-ssa-dce.c (propagate_necessity): Remove cases for
9578 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
9579
9580 2017-05-05 Richard Biener <rguenther@suse.de>
9581
9582 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
9583
9584 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
9585
9586 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
9587 of this flag from insn conditions due to removal from r247495.
9588
9589 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
9590
9591 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
9592 New function.
9593 (arm_early_store_addr_dep_ptr): Likewise.
9594 * config/arm/aarch-common-protos.h
9595 (arm_early_load_addr_dep_ptr): Add prototype.
9596 (arm_early_store_addr_dep_ptr): Likewise.
9597 * config/arm/cortex-a53.md: Add new bypasses.
9598
9599 2017-05-05 Jakub Jelinek <jakub@redhat.com>
9600
9601 * tree.c (next_type_uid): Change type to unsigned.
9602 (type_hash_canon): Decrement back next_type_uid if
9603 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
9604 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
9605 if possible.
9606
9607 2017-05-04 Martin Sebor <msebor@redhat.com>
9608
9609 * builtins.c: Fix a trivial typo in a comment.
9610
9611 PR middle-end/79234
9612 * builtins.c (check_sizes): Adjust to handle reading past the end.
9613 Avoid printing excessive upper bound of ranges. Use %E to print
9614 tree nodes instead of converting them to %wu.
9615 (expand_builtin_memchr): New function.
9616 (compute_dest_size): Rename...
9617 (compute_objsize): ...to this.
9618 (expand_builtin_memcpy): Adjust.
9619 (expand_builtin_mempcpy): Adjust.
9620 (expand_builtin_strcat): Adjust.
9621 (expand_builtin_strcpy): Adjust.
9622 (check_strncat_sizes): Adjust.
9623 (expand_builtin_strncat): Adjust.
9624 (expand_builtin_strncpy): Adjust and simplify.
9625 (expand_builtin_memset): Adjust.
9626 (expand_builtin_bzero): Adjust.
9627 (expand_builtin_memcmp): Adjust.
9628 (expand_builtin): Handle memcmp.
9629 (maybe_emit_chk_warning): Check strncat just once.
9630
9631 2017-05-04 Martin Sebor <msebor@redhat.com>
9632
9633 PR preprocessor/79214
9634 PR middle-end/79222
9635 PR middle-end/79223
9636 * builtins.c (check_sizes): Add inlining context and issue
9637 warnings even when -Wno-system-headers is set.
9638 (check_strncat_sizes): Same.
9639 (expand_builtin_strncat): Same.
9640 (expand_builtin_memmove): New function.
9641 (expand_builtin_stpncpy): Same.
9642 (expand_builtin): Handle memmove and stpncpy.
9643
9644 2017-05-04 Bin Cheng <bin.cheng@arm.com>
9645
9646 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
9647 which is not used any more.
9648
9649 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
9650
9651 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
9652
9653 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
9654
9655 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
9656 (cortexa53_tunings): Likewise.
9657 (cortexa57_tunings): Likewise.
9658 (cortexa72_tunings): Likewise.
9659 (cortexa73_tunings): Likewise.
9660
9661 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
9662
9663 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
9664 Set loop alignment to 8.
9665
9666 2017-05-04 Martin Sebor <msebor@redhat.com>
9667
9668 PR translation/80280
9669 * builtins.c (expand_builtin_object_size): Add missing quoting to
9670 %D and like directives.
9671 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
9672 (hsa_type_for_tree_type): Same.
9673 (verify_function_arguments): Same.
9674 * symtab.c (symbol_table::change_decl_assembler_name): Same.
9675 * varasm.c (get_section): Same.
9676 (mark_weak): Same.
9677
9678 2017-05-04 Martin Sebor <msebor@redhat.com>
9679
9680 PR translation/80280
9681 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
9682
9683 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
9684
9685 * config/aarch64/aarch64.c (generic_addrcost_table):
9686 Change HI/TI mode setting.
9687
9688 2017-05-04 Martin Jambor <mjambor@suse.cz>
9689
9690 PR tree-optimization/80622
9691 * tree-sra.c (comes_initialized_p): New function.
9692 (build_accesses_from_assign): Only set write lazily when
9693 comes_initialized_p is false.
9694 (analyze_access_subtree): Use comes_initialized_p.
9695 (propagate_subaccesses_across_link): Assert !comes_initialized_p
9696 instead of testing for PARM_DECL.
9697
9698 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9699
9700 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
9701 constraint on operand 0 to allow more general addressing modes.
9702 Adjust output template.
9703 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
9704 New function.
9705 * config/aarch64/aarch64-protos.h
9706 (aarch64_address_valid_for_prefetch_p): Declare prototype.
9707 * config/aarch64/constraints.md (Dp): New address constraint.
9708 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
9709 predicate.
9710
9711 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
9712
9713 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
9714 update use of estimate_ipcp_clone_size_and_time.
9715 (estimate_local_effects): Update use of
9716 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
9717 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
9718 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
9719 Return nonspecialized time.
9720
9721 2017-05-04 Richard Biener <rguenther@suse.de>
9722
9723 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
9724 for the last VUSE which def dominates the PHI. Directly call
9725 maybe_skip_until.
9726 (get_continuation_for_phi_1): Remove.
9727
9728 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9729
9730 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
9731 to explain the use of truncating division. Cap the number of
9732 iterations to the maximum given by nb_iterations_upper_bound,
9733 if defined.
9734
9735 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9736
9737 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
9738 * configure: Regenerate.
9739 * config.in: Regenerate.
9740 * config/i386/driver-mingw32.c: new file.
9741 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
9742 * config.host: Link driver-mingw32.o on MinGW host.
9743 * doc/install.texi: Document new --enable-mingw-wildcard configure
9744 option.
9745
9746 2017-05-04 Marek Polacek <polacek@redhat.com>
9747
9748 PR tree-optimization/80612
9749 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
9750
9751 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
9752 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
9753
9754 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
9755 (movt splitter): Likewise.
9756 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
9757 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
9758 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
9759 block for Thumb-1 with MOVT.
9760 (thumb2_legitimate_address_p): Move code block ...
9761 (can_avoid_literal_pool_for_label_p): ... into this new function.
9762 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
9763 literal pool.
9764 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
9765 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
9766 "M-profile targets with the MOVT instruction".
9767
9768 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
9769
9770 * config/arm/arm-builtins.c (arm_init_builtins): Rename
9771 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
9772 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
9773
9774 2017-05-04 Martin Liska <mliska@suse.cz>
9775
9776 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
9777 variable cond_code.
9778
9779 2017-05-04 Richard Biener <rguenther@suse.de>
9780
9781 * tree.c (array_at_struct_end_p): Handle arrays at struct
9782 end with flexarrays more conservatively. Refactor and treat
9783 arrays of arrays or aggregates more strict. Fix
9784 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
9785 * tree.c (array_at_struct_end_p): Adjust prototype.
9786 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
9787 * gimple-fold.c (get_range_strlen): Likewise.
9788 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
9789
9790 2017-05-04 Richard Biener <rguenther@suse.de>
9791
9792 PR tree-optimization/31130
9793 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
9794 false.
9795 (supports_overflow_infinity): Likewise.
9796 (is_negative_overflow_infinity): Likewise.
9797 (is_positive_overflow_infinity): Likewise.
9798 (is_overflow_infinity): Likewise.
9799 (stmt_overflow_infinity): Likewise.
9800 (overflow_infinity_range_p): Likewise.
9801 (usable_range_p): Remove as always returning true.
9802 (make_overflow_infinity): Remove.
9803 (negative_overflow_infinity): Likewise.
9804 (positive_overflow_infinity): Likewise.
9805 (avoid_overflow_infinity): Likewise.
9806 (set_value_range): Adjust accordingly.
9807 (set_value_range_to_nonnegative): Likewise, remove now unused
9808 overflow_infinity arg.
9809 (vrp_operand_equal_p): Adjust.
9810 (update_value_range): Likewise.
9811 (range_int_cst_singleton_p): Likewise.
9812 (operand_less_p): Likewise.
9813 (compare_values_warnv): Likewise.
9814 (extract_range_for_var_from_comparison_expr): Likewise.
9815 (vrp_int_const_binop): Likewise.
9816 (zero_nonzero_bits_from_vr): Likewise.
9817 (extract_range_from_multiplicative_op_1): Likewise.
9818 (extract_range_from_binary_expr_1): Likewise.
9819 (extract_range_from_unary_expr): Likewise.
9820 (extract_range_from_comparison): Likewise.
9821 (extract_range_basic): Likewise.
9822 (adjust_range_with_scev): Likewise.
9823 (compare_ranges): Likewise.
9824 (compare_range_with_value): Likewise.
9825 (dump_value_range): Likewise.
9826 (test_for_singularity): Likewise, remove strict_overflow_p parameter
9827 never used.
9828 (simplify_cond_using_ranges): Adjust.
9829
9830 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
9831
9832 * brig-builtins.def: Added a builtin for class_f64.
9833 * builtin-types.def: Added a builtin type needed by class_f64.
9834
9835 2017-05-03 Jason Merrill <jason@redhat.com>
9836
9837 * timevar.def: Add TV_CONSTEXPR.
9838
9839 2017-05-03 David Malcolm <dmalcolm@redhat.com>
9840
9841 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
9842
9843 2017-05-03 Martin Jambor <mjambor@suse.cz>
9844
9845 * ipa-prop.c (ipa_update_after_lto_read): Removed.
9846 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
9847 * ipa-cp.c (ipcp_propagate_stage): Do not call
9848 ipa_update_after_lto_read.
9849 * ipa-inline.c (ipa_inline): Likewise.
9850
9851 2017-05-03 Martin Jambor <mjambor@suse.cz>
9852
9853 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
9854 tag. Added a default constructor and a destructor.
9855 (ipa_edge_args_sum_t): New class;
9856 (ipa_edge_args_sum): Declare.
9857 (ipa_edge_args_vector): Remove declaration.
9858 (IPA_EDGE_REF): Use ipa_edge_args_sum.
9859 (ipa_free_edge_args_substructures): Remove declaration.
9860 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
9861 (ipa_edge_args_info_available_for_edge_p): Likewise.
9862 * ipa-prop.c (ipa_edge_args_vector): Removed.
9863 (edge_removal_hook_holder): Likewise.
9864 (edge_duplication_hook_holder): Likewise.
9865 (ipa_edge_args_sum): New variable.
9866 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
9867 ipa_edge_args_vector.
9868 (ipa_free_edge_args_substructures): Likewise.
9869 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
9870 ipa_edge_args_vector.
9871 (ipa_edge_removal_hook): Turned into method
9872 ipa_edge_args_sum_t::remove.
9873 (ipa_edge_duplication_hook): Turned into method
9874 ipa_edge_args_sum_t::duplicate.
9875 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
9876 registering edge hooks.
9877 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
9878 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
9879 ipa_edge_args_sum instead of ipa_edge_args_vector.
9880 * ipa-profile.c (ipa_profile): Likewise.
9881
9882 2017-05-03 Martin Jambor <mjambor@suse.cz>
9883
9884 * symbol-summary.h (function_summary): New method exists.
9885 (function_summary::symtab_removal): Deallocate through release.
9886 (call_summary): New class.
9887 (gt_ggc_mx): New overload.
9888 (gt_pch_nx): Likewise.
9889 (gt_pch_nx): Likewise.
9890
9891 2017-05-03 Jeff Law <law@redhat.com>
9892
9893 PR tree-optimization/78496
9894 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
9895 from simplify_cond_using_ranges. Split off code to walk
9896 backwards through casts into ...
9897 (simplify_cond_using_ranges_2): New function.
9898 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
9899 (execute_vrp): After identifying jump threads, call
9900 simplify_cond_using_ranges_2.
9901
9902 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
9903
9904 PR bootstrap/80609
9905 * ipa-inline.h (inline_summary): Add ctor.
9906 (create_ggc): Do not use ggc_cleared_alloc.
9907
9908 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
9909 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9910
9911 * gcc.c (handle_braces): Support escaping in switch matching
9912 text.
9913 * doc/invoke.texi (Spec Files): Document it.
9914 Remove superfluous @code markup in items.
9915
9916 2017-05-03 David Malcolm <dmalcolm@redhat.com>
9917
9918 * diagnostic-show-locus.c (struct column_range): New struct.
9919 (get_affected_columns): New function.
9920 (get_printed_columns): New function.
9921 (struct correction): New struct.
9922 (correction::ensure_capacity): New function.
9923 (correction::ensure_terminated): New function.
9924 (struct line_corrections): New struct.
9925 (line_corrections::~line_corrections): New dtor.
9926 (line_corrections::add_hint): New function.
9927 (layout::print_trailing_fixits): Reimplement in terms of the new
9928 classes.
9929 (selftest::test_overlapped_fixit_printing): New function.
9930 (selftest::diagnostic_show_locus_c_tests): Call it.
9931
9932 2017-05-03 Nathan Sidwell <nathan@acm.org>
9933
9934 Canonicalize canonical type hashing
9935 * tree.h (type_hash_canon_hash): Declare.
9936 * tree.c (type_hash_list, attribute_hash_list): Move into
9937 type_hash_canon_hash.
9938 (build_type_attribute_qual_variant): Break out hash code calc into
9939 type_hash_canon_hash.
9940 (type_hash_canon_hash): New. Generic type hash computation.
9941 (build_range_type_1, build_array_type_1, build_function_type,
9942 build_method_type_directly, build_offset_type, build_complex_type,
9943 make_vector_type): Call it.
9944
9945 2017-05-03 Richard Biener <rguenther@suse.de>
9946
9947 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9948 When all DRs have unknown misaligned do not always peel
9949 when there is a store but apply the same costing model as if
9950 there were only loads.
9951
9952 2017-05-03 Richard Biener <rguenther@suse.de>
9953
9954 Revert
9955 PR tree-optimization/80492
9956 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
9957 compare_base_decls returning dont-know properly.
9958
9959 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9960
9961 * config/arm/iterators.md (CCSI): New mode iterator.
9962 (arch): New mode attribute.
9963 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
9964 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
9965 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
9966 code iterator for success result mode.
9967 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
9968 the corresponding new insn generators.
9969
9970 2017-05-03 Bin Cheng <bin.cheng@arm.com>
9971
9972 Revert r247509
9973 2017-05-02 Bin Cheng <bin.cheng@arm.com>
9974 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
9975
9976 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9977
9978 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
9979 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
9980 (DDR_A): Wrap DDR argument in brackets.
9981 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
9982 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
9983 (DDR_REVERSED_P): Likewise.
9984
9985 2017-05-03 Jakub Jelinek <jakub@redhat.com>
9986
9987 PR tree-optimization/79472
9988 * tree-switch-conversion.c (struct switch_conv_info): Add
9989 contiguous_range and default_case_nonstandard fields.
9990 (collect_switch_conv_info): Compute contiguous_range and
9991 default_case_nonstandard fields, don't clear final_bb if
9992 contiguous_range and only the default case doesn't have the required
9993 structure.
9994 (check_all_empty_except_final): Set default_case_nonstandard instead
9995 of failing if contiguous_range and the default case doesn't have empty
9996 block.
9997 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
9998 and only the default case doesn't have the required constants. Skip
9999 virtual phis.
10000 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
10001 if default_case_nonstandard.
10002 (build_constructors): Build constant 1 just once. Assert that default
10003 values aren't inserted in between cases if contiguous_range. Skip
10004 virtual phis.
10005 (build_arrays): Skip virtual phis.
10006 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
10007 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
10008 Handle virtual phis.
10009 (gen_inbound_check): Handle default_case_nonstandard case.
10010 (process_switch): Adjust check_final_bb caller. Call
10011 gather_default_values with the first non-default case instead of
10012 default case if default_case_nonstandard.
10013
10014 2017-05-02 Nathan Sidwell <nathan@acm.org>
10015
10016 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
10017 check. Fix formatting.
10018
10019 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
10020
10021 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
10022 errors when comparing specialized and unspecialized times.
10023
10024 2017-05-02 David Malcolm <dmalcolm@redhat.com>
10025
10026 * diagnostic-show-locus.c
10027 (layout::should_print_annotation_line_p): Make private.
10028 (layout::print_annotation_line): Make private.
10029 (layout::annotation_line_showed_range_p): Make private.
10030 (layout::show_ruler): Make private.
10031 (layout::print_source_line): Make private. Pass in line and
10032 line_width, rather than calling location_get_source_line. Drop
10033 returned value.
10034 (layout::print_leading_fixits): New method.
10035 (layout::print_any_fixits): Rename to...
10036 (layout::print_trailing_fixits): ...this, and make private.
10037 Don't print newline fixits.
10038 (diagnostic_show_locus): Move logic for printing one row into...
10039 (layout::print_line): ...this new function. Move the
10040 location_get_source_line call and error-handling from
10041 print_source_line to here. Call print_leading_fixits, and rename
10042 print_any_fixits to print_trailing_fixits.
10043 (selftest::test_fixit_insert_containing_newline): Update now that
10044 newlines are partially supported.
10045 (selftest::test_fixit_insert_containing_newline_2): New test.
10046 (selftest::test_fixit_replace_containing_newline): Update comments.
10047 (selftest::diagnostic_show_locus_c_tests): Call the new test.
10048 * edit-context.c (class added_line): New class.
10049 (class edited_line): Describe newline handling in comment.
10050 (edited_line::actually_edited_p): New method.
10051 (edited_line::print_content): Delete redundant decl.
10052 (edited_line::m_predecessors): New field.
10053 (edited_file::print_content): Call edited_line::print_content.
10054 (edited_file::print_diff): Update to support newlines.
10055 (edited_file::print_diff_hunk): Likewise.
10056 (edited_file::print_run_of_changed_lines): New function.
10057 (edited_file::print_diff_line): Convert to...
10058 (print_diff_line): ...this.
10059 (edited_file::get_effective_line_count): New function.
10060 (edited_line::edited_line): Initialize new field m_predecessors.
10061 (edited_line::~edited_line): Clean up m_predecessors.
10062 (edited_line::apply_fixit): Handle newlines.
10063 (edited_line::get_effective_line_count): New function.
10064 (edited_line::print_content): New function.
10065 (edited_line::print_diff_lines): New function.
10066 (selftest::test_applying_fixits_insert_containing_newline): New
10067 test.
10068 (selftest::test_applying_fixits_replace_containing_newline): New
10069 test.
10070 (selftest::insert_line): New function.
10071 (selftest::test_applying_fixits_multiple_lines): Add example of
10072 inserting a line.
10073 (selftest::edit_context_c_tests): Call the new tests.
10074
10075 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10076
10077 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
10078 parameter cand. Update dump information.
10079 (get_computation_cost): Update uses.
10080
10081 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10082
10083 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
10084 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
10085 (get_computation_at, rewrite_use_address): Update use of
10086 get_computation_aff.
10087
10088 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10089
10090 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
10091 (get_computation): Delete.
10092 (get_computation_cost): Implement like get_computation_cost_at.
10093 Use get_computation_at.
10094 (get_computation_cost_at): Delete.
10095 (rewrite_use_nonlinear_expr): Use get_computation_at.
10096 (rewrite_use_compare, remove_unused_ivs): Ditto.
10097
10098 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10099
10100 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
10101
10102 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10103
10104 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
10105 (ivopts_global_cost_for_size): Rename parameter and update uses.
10106 (iv_ca_recount_cost): Update uses.
10107 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
10108 candidates seperately in n_invs and n_cands.
10109 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
10110
10111 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10112
10113 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
10114 (find_inv_vars_cb): New.
10115 (find_depends): Renamed to ...
10116 (find_inv_vars): ... this.
10117 (add_candidate_1, force_var_cost): Call find_inv_vars.
10118 (split_address_cost, determine_group_iv_cost_cond): Ditto.
10119
10120 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10121
10122 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
10123 inv_vars. Add inv_exprs.
10124 (struct iv_cand): Rename depends_on to inv_vars.
10125 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
10126 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
10127 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
10128 (dump_cand): Dump inv_vars.
10129 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
10130 (record_invariant, find_depends, add_candidate_1): Ditto.
10131 (set_group_iv_cost, force_var_cost): Ditto.
10132 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
10133 (get_computation_cost_at, get_computation_cost): Ditto.
10134 (determine_group_iv_cost_generic): Ditto.
10135 (determine_group_iv_cost_address): Ditto.
10136 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
10137 (determine_group_iv_costs): Ditto.
10138 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
10139 (iv_ca_set_remove_invariants): Renamed to ...
10140 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
10141 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
10142 (iv_ca_set_add_invariants): Renamed to ...
10143 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
10144 (iv_ca_set_cp): Use iv_ca_set_add_invs.
10145 (iv_ca_has_deps): Support inv_vars and inv_exprs.
10146 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
10147 (create_new_ivs): Remove useless dump.
10148
10149 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10150
10151 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
10152 iv_cand code.
10153 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
10154 (iv_ca_set_no_cp, create_new_iv): Ditto.
10155
10156 2017-05-02 Bin Cheng <bin.cheng@arm.com>
10157
10158 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
10159
10160 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
10161
10162 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
10163 function tree_check2.
10164
10165 2017-05-02 Martin Liska <mliska@suse.cz>
10166
10167 * doc/gcov.texi: Add missing preposition.
10168 * gcov.c (function_info::function_info): Properly fill up
10169 all member variables.
10170
10171 2017-05-02 Tamar Christina <tamar.christina@arm.com>
10172
10173 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
10174
10175 2017-05-02 Tamar Christina <tamar.christina@arm.com>
10176
10177 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
10178
10179 2017-05-02 Martin Liska <mliska@suse.cz>
10180
10181 PR lto/77954.
10182 * lto-streamer-in.c (lto_read_tree_1): Remove
10183 LTO_STREAMER_DEBUG.
10184 * lto-streamer.c (struct tree_hash_entry): Likewise.
10185 (struct tree_entry_hasher): Likewise.
10186 (tree_entry_hasher::hash): Likewise.
10187 (tree_entry_hasher::equal): Likewise.
10188 (lto_streamer_init): Likewise.
10189 (lto_orig_address_map): Likewise.
10190 (lto_orig_address_get): Likewise.
10191 (lto_orig_address_remove): Likewise.
10192 * lto-streamer.h: Likewise.
10193 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
10194 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10195
10196 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
10197
10198 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
10199 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
10200 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
10201 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
10202 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
10203 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
10204 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
10205 (mm_maskz_sub_ss): New intrinsics.
10206 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
10207 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
10208 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
10209 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
10210 (__builtin_ia32_subss_mask_round): New builtins.
10211 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
10212 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
10213 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
10214 Renamed to ...
10215 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
10216 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
10217 Changed to ...
10218 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
10219 ... this.
10220
10221 2017-05-02 Martin Jambor <mjambor@suse.cz>
10222
10223 PR tree-optimization/78687
10224 * tree-sra.c (access): New field parent.
10225 (process_subtree_disqualification): New function.
10226 (disqualify_candidate): Call it.
10227 (build_accesses_from_assign): Reset write flag if creating an
10228 assighnment link.
10229 (build_access_subtree): Fill in parent field and also prpagate
10230 down grp_write flag.
10231 (create_artificial_child_access): New parameter set_grp_write, set
10232 grp_write to its value.
10233 (propagate_subaccesses_across_link): Also propagate grp_write flag
10234 values.
10235 (propagate_all_subaccesses): Push the closest parent back to work
10236 queue if add_access_to_work_queue returned true.
10237
10238 2017-05-02 Richard Biener <rguenther@suse.de>
10239
10240 * common.opt (fstrict-overflow): Alias negative to fwrapv.
10241 * doc/invoke.texi (fstrict-overflow): Remove all traces of
10242 -fstrict-overflow documentation.
10243 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
10244 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
10245 flag_strict_overflow.
10246 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
10247 * lto-opts.c (lto_write_options): Do not stream it.
10248 * lto-wrapper.c (merge_and_complain): Do not handle it.
10249 * opts.c (default_options_table): Do not set -fstrict-overflow.
10250 (finish_options): Likewise do not clear it when sanitizing.
10251 * simplify-rtx.c (simplify_const_relational_operation): Do not
10252 test flag_strict_overflow.
10253
10254 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
10255
10256 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
10257 using enabled attribute.
10258 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
10259 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
10260 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
10261 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
10262 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
10263 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
10264 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
10265 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
10266 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
10267 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
10268
10269 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
10270
10271 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
10272
10273 2017-05-02 Richard Biener <rguenther@suse.de>
10274
10275 PR tree-optimization/80591
10276 Revert
10277 2017-04-10 Richard Biener <rguenther@suse.de>
10278
10279 * tree-ssa-structalias.c (find_func_aliases): Properly handle
10280 asm inputs.
10281
10282 2017-05-02 Richard Biener <rguenther@suse.de>
10283
10284 PR tree-optimization/80549
10285 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
10286 (cleanup_tree_cfg_noloop): Create forwarders to known loop
10287 headers if they do not have a preheader.
10288
10289 2017-05-02 Martin Liska <mliska@suse.cz>
10290
10291 PR other/80589
10292 * common.opt: Fix typo.
10293 * doc/invoke.texi: Likewise.
10294
10295 2017-05-01 Jan Beulich <jbeulich@suse.com>
10296
10297 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
10298 swapping, add (x,x,m,x,n) alternative.
10299
10300 2017-05-01 Nathan Sidwell <nathan@acm.org>
10301
10302 * calls.c (combine_pending_stack_adjustment_and_call): Remove
10303 unnecessary unadjusted_alignment check.
10304
10305 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
10306
10307 PR c++/80038
10308 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
10309 operations here.
10310 * gimplify.c (gimplify_cilk_detach): New function.
10311 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
10312 * tree-core.h: Document EXPR_CILK_SPAWN.
10313 * tree.h (EXPR_CILK_SPAWN): Define.
10314
10315 2017-05-01 David Malcolm <dmalcolm@redhat.com>
10316
10317 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
10318 to use new fixit_hint representation, using the "replace" logic.
10319 (get_line_span_for_fixit_hint): Likewise.
10320 (layout::print_any_fixits): Likewise.
10321 (selftest::test_one_liner_many_fixits): Rename to...
10322 (selftest::test_one_liner_many_fixits_1): ...this, and update
10323 comment and expected output to reflect that the multiple fix-it
10324 hints are now consolidated into one insertion.
10325 (selftest::test_one_liner_many_fixits_2): New test.
10326 (selftest::test_diagnostic_show_locus_one_liner): Update for
10327 above.
10328 (selftest::test_fixit_consolidation): Update for fix-it API
10329 change.
10330 * diagnostic.c (print_parseable_fixits): Likewise.
10331 * edit-context.c (edited_line::m_line_events): Convert from
10332 auto_vec <line_event *> to auto_vec <line_event>.
10333 (class line_event): Convert from abstract base class to a concrete
10334 class, taking over the role of replace_event.
10335 (class insert_event): Delete.
10336 (class replace_event): Rename to class line_event. Convert to
10337 half-open range.
10338 (edit_context::add_fixits): Reimplement.
10339 (edit_context::apply_insert): Delete.
10340 (edit_context::apply_replace): Rename to...
10341 (edit_context::apply_fixit): ...this. Convert to half-open range.
10342 (edited_file::apply_insert): Delete.
10343 (edited_file::apply_replace): Rename to...
10344 (edited_file::apply_fixit): ...this.
10345 (edited_line::~edited_line): Drop deletion of events.
10346 (edited_line::apply_insert): Delete.
10347 (edited_line::apply_replace): Rename to...
10348 (edited_line::apply_fixit): ...this. Convert to half-open range.
10349 Update for change to type of m_line_events.
10350 * edit-context.h (edit_context::apply_insert): Delete.
10351 (edit_context::apply_replace): Rename to...
10352 (edit_context::apply_fixit): ...this.
10353
10354 2017-05-01 Martin Sebor <msebor@redhat.com>
10355
10356 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
10357 known.
10358
10359 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
10360
10361 PR target/68491
10362 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
10363 __get_cpuid_max returns 0.
10364 (__get_cpuid_count): Ditto.
10365
10366 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
10367
10368 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
10369 replacement expression is another instance of one of its arguments.
10370
10371 2017-05-01 Jakub Jelinek <jakub@redhat.com>
10372
10373 PR target/79430
10374 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
10375 check for stack push/pop autoinc.
10376 * config/i386/i386.c (ix86_agi_dependent): Return false
10377 if the only reason why modified_in_p returned true is that
10378 addr is SP based and set_insn is a push or pop.
10379
10380 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
10381
10382 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
10383 overflow check.
10384
10385 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
10386
10387 PR ipa/79224
10388 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
10389 (account_size_time): Use two predicates - exec_pred and
10390 nonconst_pred_ptr.
10391 (evaluate_conditions_for_known_args): Compute both clause and
10392 nonspec_clause.
10393 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
10394 (inline_summary_t::duplicate): Update.
10395 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
10396 separately.
10397 (compute_inline_parameters): Likewise.
10398 (estimate_edge_size_and_time): Update caluclation of time.
10399 (estimate_node_size_and_time): Compute both time and nonspecialized
10400 time.
10401 (estimate_ipcp_clone_size_and_time): Update.
10402 (inline_merge_summary): Update.
10403 (do_estimate_edge_time): Update.
10404 (do_estimate_edge_size): Update.
10405 (do_estimate_edge_hints): Update.
10406 (inline_read_section, inline_write_summary): Stream both new predicates.
10407 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
10408 as argument.
10409 (compute_inlined_call_time): Cleanup.
10410 (big_speedup_p): Update.
10411 (edge_badness): Update.
10412 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
10413 (size_time_entry): Replace predicate by exec_predicate and
10414 nonconst_predicate.
10415 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
10416 (estimate_edge_time): Return also nonspec_time.
10417 (reset_edge_growth_cache): Update.
10418
10419 2017-04-29 Jakub Jelinek <jakub@redhat.com>
10420
10421 PR rtl-optimization/80491
10422 * ifcvt.c (noce_process_if_block): When looking for x setter
10423 with missing else_bb, don't check only the insn right before
10424 cond_earliest, but look for the last insn that x is modified in
10425 within the same bb.
10426
10427 PR rtl-optimization/80491
10428 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
10429
10430 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
10431
10432 PR tree-optimization/80487
10433 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
10434
10435 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10436
10437 PR tree-optimization/79697
10438 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
10439 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
10440 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
10441 BUILT_IN_STRNDUP.
10442 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
10443 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
10444
10445 2017-04-28 Martin Sebor <msebor@redhat.com>
10446
10447 PR tree-optimization/80523
10448 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
10449 (init_target_to_host_charmap, target_to_host, target_strtol10): New
10450 functions.
10451 (maybe_warn, format_directive, parse_directive): Use new functions.
10452 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
10453
10454 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
10455
10456 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
10457
10458 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10459
10460 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
10461 target_header_dir): Set correctly.
10462 * configure: Regenerated.
10463 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
10464 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
10465 instead of SYSTEM_HEADER_DIR.
10466
10467 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
10468
10469 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
10470 (estimate_local_effects): Likewise.
10471 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
10472 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
10473 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
10474 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
10475 do_estimate_edge_time, estimate_edge_time): Likewise.
10476 * ipa-inline-analysis.c (estimate_node_size_and_time,
10477 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
10478 (estimate_time_after_inlining): Remove.
10479
10480 2017-04-28 Martin Liska <mliska@suse.cz>
10481
10482 * doc/gcov.texi: Enhance documentation of gcov.
10483
10484 2017-04-28 Martin Liska <mliska@suse.cz>
10485
10486 * doc/gcov.texi: Sort options in alphabetic order.
10487 * doc/gcov-dump.texi: Likewise.
10488 * doc/gcov-tool.texi: Likewise.
10489 * gcov.c (print_usage): Likewise.
10490 * gcov-dump.c (print_usage): Likewise.
10491 * gcov-tool.c (print_merge_usage_message): Likewise.
10492 (print_rewrite_usage_message): Likewise.
10493 (print_overlap_usage_message): Likewise.
10494
10495 2017-04-28 Martin Liska <mliska@suse.cz>
10496
10497 PR gcov-profile/53915
10498 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
10499
10500 2017-04-28 Martin Liska <mliska@suse.cz>
10501
10502 PR gcov-profile/79891
10503 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
10504 is marked by compiler as living on a line.
10505 (get_cycles_count): Remove usage of the union.
10506 (output_intermediate_file): Likewise.
10507 (find_source): Fix GNU coding style.
10508 (accumulate_line_counts): Remove old non-all block mode.
10509 (output_lines): Remove usage of the union.
10510 * profile.c (output_location): Include all BBs, even if
10511 belonging to a same line (and file) as a previous BB.
10512
10513 2017-04-28 Martin Liska <mliska@suse.cz>
10514
10515 * gcov.c (process_args): Handle new argument 'w'.
10516 (read_graph_file): Assign ID to BBs.
10517 (output_branch_count): Display BB # if verbose flag is set.
10518 (output_lines): Likewise for arcs.
10519 (print_usage): Add '--verbose' option help.
10520 * doc/gcov.texi: Document --verbose (-w) option.
10521
10522 2017-04-28 Martin Liska <mliska@suse.cz>
10523
10524 * gcov.c (struct block_location_info): New struct.
10525 (process_file): Fill up the new structure.
10526 (read_graph_file): Replace usage of encoding by the newly added
10527 struct.
10528 (add_line_counts): Likewise.
10529 (accumulate_line_counts): Remove usage of the union.
10530 (function_info::function_info): New function.
10531 (function_info::~function_info): Likewise.
10532 (process_file): Call delete instead of release_function.
10533 (release_function): Release the function.
10534 (release_structures): Call delete instead of release_function.
10535 (solve_flow_graph): Replace usage of num_blocks.
10536 (find_exception_blocks): Likewise.
10537 (output_lines): Fix GNU coding style.
10538
10539 2017-04-28 Martin Liska <mliska@suse.cz>
10540
10541 PR driver/56469
10542 * coverage.c (coverage_remove_note_file): New function.
10543 * coverage.h: Declare the function.
10544 * toplev.c (finalize): Clean if an error has been seen.
10545
10546 2017-04-28 Martin Liska <mliska@suse.cz>
10547
10548 PR gcov-profile/80031
10549 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
10550 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
10551 * gcov.c (read_graph_file): Read just number of blocks.
10552 * profile.c (branch_prob): Do not stream 0 flags per a basic
10553 block.
10554
10555 2017-04-28 Martin Liska <mliska@suse.cz>
10556
10557 * gcov-dump.c (tag_*): Add new argument to declarations.
10558 (dump_gcov_file): Likewise.
10559 (tag_blocks): Add and use new argument depth.
10560 (tag_arcs): Likewise.
10561 (tag_lines): Likewise.
10562 (tag_counters): Likewise.
10563 (tag_summary): Likewise.
10564 (dump_working_sets): Use depth to do a proper indentation.
10565
10566 2017-04-28 Jakub Jelinek <jakub@redhat.com>
10567
10568 PR bootstrap/80531
10569 * cgraph.h (symtab_node::debug_symtab): No longer inline.
10570 * symtab.c (symtab_node::debug_symtab): Move definition here.
10571
10572 2017-04-28 Richard Biener <rguenther@suse.de>
10573
10574 * lto-streamer.h (LTO_major_version): Bump to 7.
10575
10576 2017-04-28 Richard Biener <rguenther@suse.de>
10577
10578 * tree-vrp.c (assert_info): New struct.
10579 (add_assert_info): New helper.
10580 (register_edge_assert_for_2): Refactor to add asserts to a vector
10581 of assert_info.
10582 (register_edge_assert_for_1): Likewise.
10583 (register_edge_assert_for): Likewise.
10584 (finish_register_edge_assert_for): New helper actually registering
10585 asserts where live on edge.
10586 (find_conditional_asserts): Adjust.
10587 (find_switch_asserts): Likewise.
10588 (evrp_dom_walker::try_find_new_range): Generalize.
10589 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
10590
10591 2017-04-27 Marek Polacek <polacek@redhat.com>
10592
10593 PR sanitizer/80349
10594 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
10595 arg10 and arg11 to itype.
10596
10597 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
10598
10599 * doc/extend.texi (Object Size Checking): Improve grammar.
10600
10601 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
10602
10603 PR target/80530
10604 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
10605 that the logic for permitting reciprocal estimates matches that
10606 in use_rsqrt_p.
10607
10608 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10609
10610 PR c++/80534
10611 * tree.c (type_cache_hasher::equal): Only compare
10612 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
10613 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
10614 non-aggregate element types.
10615 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
10616 about the flag on ARRAY_TYPEs in the comment, formatting fix.
10617
10618 2017-04-27 Richard Biener <rguenther@suse.de>
10619
10620 PR middle-end/80533
10621 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
10622 stripping ARRAY_REFs from MEM_EXPR make sure we're not
10623 keeping a reference to a trailing array.
10624
10625 2017-04-27 Richard Biener <rguenther@suse.de>
10626
10627 PR middle-end/80539
10628 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
10629 being in loop-closed SSA form conservatively.
10630 (chrec_fold_multiply_poly_poly): Likewise.
10631
10632 2017-04-27 Tamar Christina <tamar.christina@arm.com>
10633
10634 PR middle-end/79665
10635 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
10636 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
10637
10638 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10639
10640 PR target/77728
10641 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
10642 (aarch64_function_arg_alignment): Return unsigned int again, but still
10643 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
10644 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
10645 Don't emit -Wpsabi note.
10646 (aarch64_function_arg_boundary): Likewise.
10647 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
10648 caller.
10649
10650 2017-04-26 Nathan Sidwell <nathan@acm.org>
10651
10652 * tree.h (crc32_unsigned_n): Declare.
10653 (crc32_unsigned, crc32_unsigned): Make inline.
10654 * tree.c (crc32_unsigned_bits): Replace with ...
10655 (crc32_unsigned_n): ... this.
10656 (crc32_unsigned, crc32_byte): Remove.
10657 (crc32_string): Remove unnecessary braces.
10658
10659 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
10660
10661 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
10662 * ipa-inline-analysis.c (MAX_TIME): Remove.
10663 (account_size_time): Use sreal for time.
10664 (dump_inline_summary): Update.
10665 (estimate_function_body_sizes): Update.
10666 (estimate_edge_size_and_time): Update.
10667 (estimate_calls_size_and_time): Update.
10668 (estimate_node_size_and_time): Update.
10669 (inline_merge_summary): Update.
10670 (inline_update_overall_summary): Update.
10671 (estimate_time_after_inlining): Update.
10672 (inline_read_section): Update.
10673 (inline_write_summary): Update.
10674 * ipa-inline.c (compute_uninlined_call_time): Update.
10675 (compute_inlined_call_time): Update.
10676 (recursive_inlining): Update.
10677 (inline_small_functions): Update.
10678 (dump_overall_stats): Update.
10679 * ipa-inline.h: Include sreal.h.
10680 (size_time_entry): Turn time to sreal.
10681 (inline_summary): Turn self_time nad time to sreal.
10682
10683 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
10684
10685 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
10686 data-streamer.h
10687 (sreal::stream_out, sreal::stream_in): New.
10688 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
10689
10690 2017-04-25 Jakub Jelinek <jakub@redhat.com>
10691
10692 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
10693 environment.
10694
10695 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
10696
10697 PR target/70799
10698 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
10699 Handle ASHIFTRT.
10700 (dimode_scalar_chain::compute_convert_gain): Ditto.
10701 (dimode_scalar_chain::make_vector_copies): Ditto.
10702 (dimode_scalar_chain::convert_reg): Ditto.
10703 (dimode_scalar_chain::convert_insn): Ditto.
10704 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
10705 (VI248_AVX512BW_1): New mode iterator.
10706 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
10707 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
10708 mode iterator.
10709
10710 2017-04-25 Martin Sebor <msebor@redhat.com>
10711
10712 PR tree-optimization/80497
10713 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
10714 constants are representable in HOST_WIDE_INT.
10715 (parse_directive): Ditto.
10716
10717 2017-04-25 Martin Sebor <msebor@redhat.com>
10718
10719 PR bootstrap/80486
10720 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
10721 (new_zero_array): Adjust signature.
10722 (dom_info::dom_init): Used unsigned rather that size_t.
10723 (dom_info::dom_info): Same.
10724
10725 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10726 Jakub Jelinek <jakub@redhat.com>
10727
10728 PR target/77728
10729 * config/arm/arm.c: Include gimple.h.
10730 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
10731 returns negative, increment ncrn only if it returned positive.
10732 (arm_needs_doubleword_align): Return int instead of bool,
10733 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
10734 members, but if there is any such non-FIELD_DECL
10735 > PARM_BOUNDARY aligned decl, return -1 instead of false.
10736 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
10737 returns negative, increment nregs only if it returned positive.
10738 (arm_setup_incoming_varargs): Likewise.
10739 (arm_function_arg_boundary): Emit -Wpsabi note if
10740 arm_needs_doubleword_align returns negative, return
10741 DOUBLEWORD_ALIGNMENT only if it returned positive.
10742
10743 2017-04-25 Marek Polacek <polacek@redhat.com>
10744
10745 PR sanitizer/80349
10746 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
10747 first argument to type.
10748
10749 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
10750
10751 PR target/80482
10752 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
10753 type checks to test for compatibility instead of equality.
10754
10755 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10756 Jakub Jelinek <jakub@redhat.com>
10757
10758 PR target/77728
10759 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
10760 type.
10761 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
10762 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
10763 the alignment computation, but return their maximum in warn_alignment.
10764 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
10765 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
10766 is smaller.
10767 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
10768 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
10769 caller.
10770
10771 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10772
10773 * config/arc/simdext.md (dmpyh): Fix typo.
10774
10775 2017-04-25 Richard Biener <rguenther@suse.de>
10776
10777 PR tree-optimization/80492
10778 * alias.c (compare_base_decls): Handle registers with asm
10779 specification conservatively.
10780 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
10781 compare_base_decls returning dont-know properly.
10782
10783 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10784
10785 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
10786 (legitimate_offset_address_p): New function.
10787 (arc_legitimate_address_p): Use above function.
10788
10789 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10790
10791 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
10792
10793 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10794
10795 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
10796 ACCH registers whenever they are available.
10797
10798 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10799
10800 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
10801 double regs fix when not used.
10802
10803 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10804
10805 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
10806 core registers.
10807 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
10808 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
10809
10810 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10811
10812 * config/arc/arc.c (arc_output_addsi): Check for h-register class
10813 when emitting short ADD instructions.
10814
10815 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
10816
10817 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
10818 constraint.
10819 (cmpsi_cc_c_insn): Likewise.
10820 (cbranchsi4_scratch): Compute proper instruction length using
10821 compact_hreg_operand.
10822 * config/arc/predicates.md (compact_hreg_operand): New predicate.
10823
10824 2017-04-25 Richard Biener <rguenther@suse.de>
10825
10826 PR middle-end/80509
10827 * passes.c (pass_manager::pass_manager): Initialize
10828 m_name_to_pass_map.
10829
10830 2017-04-25 Richard Biener <rguenther@suse.de>
10831
10832 PR tree-optimization/79201
10833 * tree-ssa-sink.c (statement_sink_location): Handle calls.
10834
10835 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10836
10837 PR target/80464
10838 * config/s390/vector.md: Split MEM->GPR vector moves for
10839 non-s_operand addresses.
10840
10841 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10842
10843 PR target/79895
10844 * config/s390/predicates.md (reload_const_wide_int_operand): New
10845 predicate.
10846 * config/s390/s390.md ("movti"): Remove d/P alternative.
10847 ("movti_bigconst"): New pattern definition.
10848
10849 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10850
10851 PR target/80080
10852 * s390-protos.h (s390_expand_cs_hqi): Removed.
10853 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
10854 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
10855 modes as well as CCZ1mode and CCZmode.
10856 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
10857 signature of s390_emit_compare_and_swap.
10858 (s390_expand_cs_hqi): Likewise, make static.
10859 (s390_expand_cs_tdsi): Generate an explicit compare before trying
10860 compare-and-swap, in some cases.
10861 (s390_expand_cs): Wrapper function.
10862 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
10863 atomic_exchange.
10864 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
10865 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
10866 patterns for small and large integers. Forbid symref memory operands.
10867 Move expander to s390.c. Require cc register.
10868 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
10869 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
10870 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
10871 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
10872 symref memory operands. Remove CC mode and call s390_match_ccmode
10873 instead.
10874 ("atomic_exchange<mode>"): Allow and implement all integer modes.
10875
10876 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10877
10878 * config/s390/s390.md (define_peephole2): New peephole to help
10879 combining the load-and-test pattern with volatile memory.
10880
10881 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10882
10883 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
10884 with CCZmode for TARGET_Z196.
10885
10886 2017-04-25 Jakub Jelinek <jakub@redhat.com>
10887
10888 PR rtl-optimization/80501
10889 * combine.c (make_compound_operation_int): Set subreg_code to SET
10890 even for AND with mask of the sign bit of mode.
10891
10892 PR rtl-optimization/80500
10893 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
10894 sum's initial value.
10895
10896 2017-04-25 Julian Brown <julian@codesourcery.com>
10897 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10898
10899 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
10900
10901 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
10902
10903 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
10904
10905 2017-04-25 Julian Brown <julian@codesourcery.com>
10906 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10907
10908 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
10909 (thunderx2t99_sha): New Reservation.
10910
10911 2017-04-25 Julian Brown <julian@codesourcery.com>
10912 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10913
10914 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
10915 type for 1-element load.
10916
10917 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
10918
10919 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
10920
10921 2017-04-24 Martin Jambor <mjambor@suse.cz>
10922
10923 PR tree-optimization/80293
10924 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
10925 char arrays not totally scalarizable if it is false.
10926 (analyze_all_variable_accesses): Pass correct value in the new
10927 parameter. Add a statistics counter.
10928
10929 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
10930
10931 PR middle-end/79931
10932 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
10933
10934 2017-04-24 Richard Biener <rguenther@suse.de>
10935
10936 PR tree-optimization/80494
10937 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
10938 out for complex types.
10939
10940 2017-04-24 Richard Biener <rguenther@suse.de>
10941
10942 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
10943 * tree-ssa-sccvn.c (print_scc): Print SCC size.
10944 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
10945 (DFS): Adjust and never fail.
10946 (sccvn_dom_walker::fail): Remove.
10947 (sccvn_dom_walker::before_dom_children): Adjust.
10948 (run_scc_vn): Likewise and never fail.
10949 * tree-ssa-pre.c (pass_pre::execute): Adjust.
10950 (pass_fre::execute): Likewise.
10951
10952 2017-04-24 Richard Biener <rguenther@suse.de>
10953
10954 PR tree-optimization/79725
10955 * tree-ssa-sink.c (statement_sink_location): Return whether
10956 failure reason was zero uses. Move that check later.
10957 (sink_code_in_bb): Deal with zero uses by removing the stmt
10958 if possible.
10959
10960 2017-04-24 Richard Biener <rguenther@suse.de>
10961
10962 PR c++/2972
10963 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
10964 pointer-based references.
10965
10966 2017-04-24 Richard Biener <rguenther@suse.de>
10967
10968 PR bootstrap/79814
10969 * pass_manager.h (pass_manager::operator new): Remove.
10970 (pass_manager::operator delete): Likewise.
10971 * passes.c (pass_manager::operator new): Remove.
10972 (pass_manager::operator delete): Likewise.
10973 (pass_manager::pass_manager): Zero individual pass members.
10974
10975 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
10976
10977 PR target/70799
10978 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
10979 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
10980 Check "XEXP (src, 1)" operand here.
10981 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
10982 Check "XEXP (src, 1)" operand here.
10983 (dimode_scalar_chain::make_vector_copies): Detect count register
10984 of a shift instruction. Zero extend count register from QImode
10985 to DImode to satisfy vector shift pattern count operand predicate.
10986 Substitute vector shift count operand with a DImode copy.
10987 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
10988 vector register.
10989
10990 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
10991
10992 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
10993 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
10994 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
10995 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
10996 (UNSPEC_NOREX_MEM): Remove definition.
10997
10998 2017-04-21 Richard Biener <rguenther@suse.de>
10999
11000 PR tree-optimization/79547
11001 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11002 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
11003 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
11004 without any constraints.
11005
11006 2017-04-21 Richard Biener <rguenther@suse.de>
11007
11008 PR tree-optimization/78847
11009 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
11010
11011 2017-04-21 Richard Biener <rguenther@suse.de>
11012
11013 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
11014 (build_distinct_type_copy): Likewise.
11015 (build_variant_type_copy): Likewise.
11016 * tree.c (build_qualified_type): Pass down mem-stat info.
11017 (build_distinct_type_copy): Likewise.
11018 (build_variant_type_copy): Likewise.
11019
11020 2017-04-21 Richard Biener <rguenther@suse.de>
11021
11022 PR tree-optimization/80237
11023 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
11024 defaulted to NULL.
11025 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
11026 for a simplified result.
11027
11028 2016-04-21 Richard Biener <rguenther@suse.de>
11029
11030 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
11031 sth as strict as a simple_iv but a chrec without symbols and an
11032 operand defined in the loop we are peeling (and not some subloop).
11033 (propagate_constants_for_unrolling): Propagate all constants.
11034
11035 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
11036
11037 PR target/79804
11038 * config/i386/i386.c (print_reg): Remove assert for disalowed
11039 regno values, call output_operand_lossage instead.
11040
11041 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
11042
11043 PR target/78090
11044 * config/i386/constraints.md (Yc): New register constraint.
11045 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
11046 Use Yc constraint for alternative 2 of operand 0. Remove
11047 preferred_for_speed attribute.
11048
11049 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11050
11051 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
11052 lastprivate clauses in SIMT case.
11053
11054 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
11055
11056 * doc/invoke.texi (-Wextra-semi): Document new warning option.
11057
11058 2017-04-20 Richard Biener <rguenther@suse.de>
11059
11060 PR tree-optimization/57796
11061 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
11062 as N scalar stores.
11063 (vect_model_load_cost): Cost gathers as N scalar loads.
11064
11065 2017-04-20 Richard Biener <rguenther@suse.de>
11066
11067 * ggc-page.c (ggc_allocated_p): Rename to ...
11068 (safe_lookup_page_table_entry): ... this and return the lookup
11069 result.
11070 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
11071
11072 2017-04-20 Richard Biener <rguenther@suse.de>
11073
11074 PR tree-optimization/80453
11075 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
11076 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
11077 from the conditions.
11078 (vn_phi_eq): Pass them down.
11079 (vn_phi_lookup): Record them.
11080 (vn_phi_insert): Likewise.
11081
11082 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
11083
11084 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
11085 uninitialized variable warning to avoid buffer overrun.
11086
11087 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11088
11089 PR other/71250
11090 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
11091 is suppressed for '{ 0 }' in C.
11092
11093 2017-04-20 Jakub Jelinek <jakub@redhat.com>
11094
11095 * BASE-VER: Set to 8.0.0.
11096
11097 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
11098
11099 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
11100 priority .init_array and .fini_array section with SECTION_NOTYPE
11101 flag.
11102
11103 2017-04-20 Jakub Jelinek <jakub@redhat.com>
11104
11105 PR middle-end/80423
11106 * tree.h (build_array_type): Add typeless_storage default argument.
11107 * tree.c (type_cache_hasher::equal): Also compare
11108 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
11109 (build_array_type): Add typeless_storage argument, set
11110 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
11111 recursive call.
11112 (build_nonshared_array_type): Adjust build_array_type_1 caller.
11113 (build_array_type): Likewise. Add typeless_storage argument.
11114
11115 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
11116 Jakub Jelinek <jakub@redhat.com>
11117
11118 PR tree-optimization/80426
11119 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
11120 operation on symbolic operands, also compute the overflow for the
11121 invariant part when the operation degenerates into a negation.
11122
11123 2017-04-19 Jakub Jelinek <jakub@redhat.com>
11124
11125 PR debug/80461
11126 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
11127 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
11128
11129 PR debug/80436
11130 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
11131
11132 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
11133
11134 PR target/80462
11135 * config/avr/avr.c (tree.h): Include it.
11136 (cgraph.h): Include it.
11137 (avr_encode_section_info): Don't warn for uninitialized progmem
11138 variable if it's just an alias.
11139
11140 2017-04-19 Richard Biener <rguenther@suse.de>
11141
11142 PR ipa/65972
11143 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
11144 when needed by AutoPGO.
11145
11146 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
11147
11148 PR lto/50345
11149 * doc/lto.texi: Remove an extra 'that'.
11150
11151 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
11152
11153 PR rtl-optimization/80429
11154 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
11155 are only used in debug insns.
11156
11157 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
11158 Vladimir Makarov <vmakarov@redhat.com>
11159
11160 * config/sparc/predicates.md (input_operand): Add comment. Return
11161 true for any memory operand when LRA is in progress.
11162 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
11163
11164 2017-04-18 Jeff Law <law@redhat.com>
11165
11166 PR target/74563
11167 * mips.md ({return,simple_return}_internal): Do not overwrite
11168 operands[0].
11169
11170 2017-04-18 Jakub Jelinek <jakub@redhat.com>
11171
11172 PR tree-optimization/80443
11173 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
11174 instead of adding 1, subtract -1 and similarly instead of subtracting
11175 1 add -1.
11176
11177 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
11178
11179 PR rtl-optimization/80357
11180 * haifa-sched.c (tmp_bitmap): New variable.
11181 (model_recompute): Handle duplicate use records.
11182 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
11183 (free_global_sched_pressure_data): Free it.
11184
11185 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11186
11187 Revert:
11188 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11189 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
11190 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
11191 instead of SYSTEM_HEADER_DIR.
11192
11193 2017-04-18 Jeff Law <law@redhat.com>
11194
11195 PR middle-end/80422
11196 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
11197 predecessors after walking up the insn chain.
11198
11199 2017-04-18 Jakub Jelinek <jakub@redhat.com>
11200
11201 PR debug/80263
11202 * dwarf2out.c (modified_type_die): Try harder not to emit internal
11203 sizetype type into debug info.
11204
11205 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11206
11207 PR target/80099
11208 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
11209 unneeded test for TARGET_UPPER_REGS_SF.
11210 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
11211
11212 2017-04-18 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR sanitizer/80444
11215 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
11216 instead of gsi_after_labels.
11217
11218 2017-04-18 Jeff Law <law@redhat.com>
11219
11220 * regcprop.c (maybe_mode_change): Avoid creating copies of the
11221 stack pointer.
11222
11223 Revert:
11224 2017-04-13 Jeff Law <law@redhat.com>
11225 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
11226 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
11227
11228 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
11229
11230 PR target/79453
11231 * config/avr/avr.c (intl.h): Include it.
11232 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
11233
11234 2017-04-18 Martin Liska <mliska@suse.cz>
11235
11236 PR gcov-profile/78783
11237 * gcov-tool.c (gcov_output_files): Validate that destination
11238 file is either removed by the tool or by a user.
11239
11240 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
11241 Guy Benyei <guybe@mellanox.com>
11242
11243 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
11244 block, and do not negate it, the stored id is already negative.
11245
11246 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
11247
11248 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
11249
11250 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11251
11252 PR target/80098
11253 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
11254 masks of options that should be turned off if the VSX vector
11255 options are turned off.
11256 (OTHER_P8_VECTOR_MASKS): Likewise.
11257 (OTHER_VSX_VECTOR_MASKS): Likewise.
11258 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
11259 rs6000_disable_incompatible_switches to validate no type switches
11260 like -mvsx.
11261 (rs6000_incompatible_switch): New function to disallow turning on
11262 other vector options if -mno-vsx, -mno-power8-vector, or
11263 -mno-power9-vector are specified.
11264
11265 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
11266
11267 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
11268
11269 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
11270
11271 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
11272 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
11273 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
11274 (ARG_POINTER_CFA_OFFSET): Likewise.
11275
11276 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
11277
11278 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
11279 conditions to take advantage of various optimizations.
11280
11281 2017-04-13 Jeff Law <law@redhat.com>
11282
11283 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
11284 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
11285 (zero_extendsidi2_dext): Likewise.
11286
11287 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11288
11289 PR sanitizer/80403
11290 * fold-const.c (fold_ternary_loc): Revert
11291 use op0 instead of fold_convert_loc (loc, type, arg0) part of
11292 2017-04-12 change.
11293
11294 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
11295
11296 PR rtl-optimization/80343
11297 * lra-remat.c (update_scratch_ops): Assign original hard reg to
11298 new scratch pseudo.
11299
11300 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
11301
11302 PR sanitizer/80414
11303 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
11304 to ubsan_encode_value.
11305
11306 2017-04-13 Jeff Law <law@redhat.com>
11307
11308 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
11309 appearing in DEBUG_INSNs.
11310
11311 2017-04-13 Martin Liska <mliska@suse.cz>
11312
11313 PR gcov-profile/80413
11314 * gcov-io.c (gcov_write_string): Copy to buffer just when
11315 allocated size is greater than zero.
11316
11317 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11318
11319 PR debug/80321
11320 * dwarf2out.c (decls_for_scope): Ignore declarations of
11321 current_function_decl in BLOCK_NONLOCALIZED_VARS.
11322
11323 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
11324
11325 PR lto/69953
11326 * ipa-visibility.c (non_local_p): Fix typos.
11327 (localize_node): When localizing symbol in same comdat group,
11328 dissolve the group only when we know external symbols are going
11329 to be privatized.
11330 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
11331
11332 2017-04-12 Jakub Jelinek <jakub@redhat.com>
11333
11334 PR tree-optimization/79390
11335 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
11336 order does not result in usable sequence, retry with reversed operand
11337 order.
11338
11339 PR sanitizer/80403
11340 PR sanitizer/80404
11341 PR sanitizer/80405
11342 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
11343 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
11344 op0 instead of fold_convert_loc (loc, type, arg0).
11345
11346 2017-04-12 Jeff Law <law@redhat.com>
11347
11348 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
11349 has a delay slot in the generated code.
11350
11351 * config/cris/cris.md (cris_preferred_reload_class): Return
11352 GENNONACR_REGS rather than GENERAL_REGS.
11353
11354 2017-04-12 Jakub Jelinek <jakub@redhat.com>
11355
11356 PR c/80163
11357 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
11358 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
11359 signedness of the result type.
11360
11361 2017-04-12 Richard Biener <rguenther@suse.de>
11362 Jeff Law <law@redhat.com>
11363
11364 PR tree-optimization/80359
11365 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
11366 trim stores to TARGET_MEM_REFs.
11367
11368 2017-04-12 Richard Biener <rguenther@suse.de>
11369
11370 PR tree-optimization/79390
11371 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
11372 threading case even more.
11373
11374 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
11375
11376 PR target/80382
11377 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
11378 for quad_address_p for TImode, instead of just not indexed_address.
11379
11380 2017-04-12 Richard Biener <rguenther@suse.de>
11381 Bernd Edlinger <bernd.edlinger@hotmail.de>
11382
11383 PR middle-end/79671
11384 * alias.c (component_uses_parent_alias_set_from): Handle
11385 TYPE_TYPELESS_STORAGE.
11386 (get_alias_set): Likewise.
11387 * tree-core.h (tree_type_common): Add typeless_storage flag.
11388 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
11389 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
11390 for types containing members with TYPE_TYPELESS_STORAGE.
11391 (place_field): Likewise.
11392 (layout_type): Likewise for ARRAY_TYPE.
11393 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
11394 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
11395 TYPE_TYPELESS_STORAGE.
11396 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
11397
11398 2017-04-12 Jakub Jelinek <jakub@redhat.com>
11399
11400 PR sanitizer/80349
11401 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
11402 first argument to type.
11403
11404 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11405
11406 PR target/80376
11407 PR target/80315
11408 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11409 CONST0_RTX (mode) rather than const0_rtx where appropriate.
11410 (rs6000_expand_binop_builtin): Likewise.
11411 (rs6000_expand_ternop_builtin): Likewise; also add missing
11412 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
11413 vshasigma built-ins.
11414 * doc/extend.texi: Document that vec_xxpermdi's third argument
11415 must be a constant.
11416
11417 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
11418
11419 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
11420 Use shift_const cost parameter when calculating gain of STV shifts.
11421
11422 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
11423
11424 PR rtl-optimization/70478
11425 * lra-constraints.c (process_alt_operands): Check memory for
11426 disfavoring memory insn operand.
11427
11428 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11429
11430 PR middle-end/80100
11431 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
11432 left shift in unsigned HOST_WIDE_INT type.
11433
11434 PR rtl-optimization/80385
11435 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
11436 (not (neg X)) into (plus X -1) for complex or non-integral modes.
11437
11438 PR libgomp/80394
11439 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
11440 if they have any depend clauses.
11441
11442 2017-04-11 Martin Liska <mliska@suse.cz>
11443
11444 PR ipa/80212
11445 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
11446 * ipa-split.c (split_function): Create a local comdat symbol
11447 if caller is in a comdat group.
11448
11449 2017-04-11 Martin Liska <mliska@suse.cz>
11450
11451 PR ipa/80212
11452 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
11453 flags.
11454
11455 2017-04-11 Martin Sebor <msebor@redhat.com>
11456
11457 PR middle-end/80364
11458 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
11459 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
11460 for INTEGER_TYPE.
11461 (directive::set_width, directive::set_precision, format_character):
11462 Adjust.
11463 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
11464 INTEGER_TYPE.
11465
11466 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
11467
11468 PR target/80389
11469 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
11470 conflict, set target->arch_name instead of target->cpu_name.
11471
11472 2017-04-11 Richard Biener <rguenther@suse.de>
11473
11474 PR tree-optimization/80374
11475 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
11476 build_zero_cst, remove fold_convertible_p check again.
11477
11478 2017-04-11 Martin Liska <mliska@suse.cz>
11479
11480 PR sanitizer/70878
11481 * ubsan.c (instrument_object_size): Do not instrument register
11482 variables.
11483
11484 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11485
11486 PR target/80381
11487 * config/i386/i386-builtin-types.def
11488 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
11489 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
11490 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
11491 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
11492 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
11493 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
11494 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
11495 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
11496 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
11497 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
11498 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
11499 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
11500 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
11501 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
11502 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
11503 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
11504 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
11505 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
11506 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
11507 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
11508 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
11509 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
11510 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
11511 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
11512 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
11513 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
11514 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
11515 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
11516 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
11517 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
11518 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
11519 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
11520 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
11521 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
11522 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
11523 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
11524 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
11525 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
11526 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
11527 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
11528 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
11529 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
11530 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
11531 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
11532 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
11533 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
11534 aliases.
11535 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
11536 flag to second_arg_count, handle 4 argument function type _COUNT
11537 aliases, handle second_arg_count on second argument rather than last.
11538
11539 2017-04-10 Jeff Law <law@redhat.com>
11540
11541 PR tree-optimization/80374
11542 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
11543 record anything if we can not convert integer_zero_node to the
11544 desired type.
11545
11546 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11547
11548 PR target/80108
11549 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11550 Enhance special handling given to the TARGET_P9_MINMAX option in
11551 relation to certain other options.
11552
11553 2017-04-10 Bin Cheng <bin.cheng@arm.com>
11554
11555 PR tree-optimization/80153
11556 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
11557 remove POINTER_PLUS_EXPR's base part directly, rather than through
11558 aff_tree.
11559
11560 2017-04-10 Richard Biener <rguenther@suse.de>
11561 Bin Cheng <bin.cheng@arm.com>
11562
11563 PR tree-optimization/80153
11564 * tree-affine.c (aff_combination_to_tree): Get base pointer from
11565 the first element of pointer type aff_tree. Build result expr in
11566 aff_tree's type.
11567 (add_elt_to_tree): Convert to type unconditionally. Remove other
11568 fold_convert calls.
11569 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
11570 (rewrite_use_nonlinear_expr): Check invariant using iv information.
11571
11572 2017-04-10 Richard Biener <rguenther@suse.de>
11573
11574 * tree-ssa-structalias.c (find_func_aliases): Properly handle
11575 asm inputs.
11576
11577 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
11578
11579 PR rtl-optimization/70478
11580 * lra-constraints.c (curr_small_class_check): New.
11581 (update_and_check_small_class_inputs): New.
11582 (process_alt_operands): Update curr_small_class_check. Disfavor
11583 alternative insn memory operands. Check available regs for small
11584 class operands.
11585
11586 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
11587
11588 PR target/80057
11589 * config/mips/mips.opt (-mvirt): Update description.
11590 * doc/invoke.texi (-mvirt): Likewise.
11591
11592 2017-04-10 Richard Biener <rguenther@suse.de>
11593
11594 PR middle-end/80362
11595 * fold-const.c (fold_binary_loc): Look at unstripped ops when
11596 looking for NEGATE_EXPR in -A / -B to A / B folding.
11597
11598 2017-04-10 Martin Liska <mliska@suse.cz>
11599
11600 PR gcov-profile/80224
11601 * gcov.c (print_usage): Fix usage string.
11602 (get_gcov_intermediate_filename): Remove.
11603 (output_gcov_file): Use both for normal and intermediate format.
11604 (generate_results): Do not initialize special file for
11605 intermediate format.
11606
11607 2017-04-10 Richard Biener <rguenther@suse.de>
11608
11609 PR tree-optimization/80304
11610 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
11611 for safelen.
11612
11613 2017-04-10 Nathan Sidwell <nathan@acm.org>
11614
11615 PR target/79905
11616 * config/rs6000/rs6000.c (rs6000_vector_type): New.
11617 (rs6000_init_builtins): Use it.
11618
11619 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11620
11621 * config/arm/arm.md (<mrc>): Add mode to SET source.
11622 (<mrrc>): Likewise.
11623
11624 2017-04-10 Richard Biener <rguenther@suse.de>
11625
11626 PR middle-end/80344
11627 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
11628
11629 2017-04-10 Jakub Jelinek <jakub@redhat.com>
11630
11631 PR target/80324
11632 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
11633 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
11634 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
11635 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
11636 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
11637 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
11638 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
11639 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
11640 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
11641 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
11642 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
11643 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
11644 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
11645 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
11646 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
11647 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
11648 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
11649 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
11650 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
11651 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
11652 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
11653 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
11654 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
11655
11656 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
11657
11658 PR rtl-optimization/70478
11659 * lra-constraints.c: Reverse the last patch.
11660
11661 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
11662
11663 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
11664 Add comment for WCHAR_T.
11665
11666 2017-04-08 Martin Liska <mliska@suse.cz>
11667
11668 Revert:
11669 2017-04-07 Martin Liska <mliska@suse.cz>
11670
11671 PR ipa/80212
11672 * ipa-split.c (split_function): Add function part to a same comdat
11673 group.
11674
11675 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11676
11677 PR target/80358
11678 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
11679
11680 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
11681
11682 * rs6000/rs6000.c (vec_load_pendulum): Rename...
11683 (vec_pairing): ...to this.
11684 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
11685 (rs6000_sched_init): Adjust for name change.
11686 (struct rs6000_sched_context): Likewise.
11687 (rs6000_init_sched_context): Likewise.
11688 (rs6000_set_sched_context): Likewise.
11689
11690 2017-04-07 Jakub Jelinek <jakub@redhat.com>
11691
11692 PR target/80322
11693 PR target/80323
11694 PR target/80325
11695 PR target/80326
11696 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
11697 intrinsics.
11698 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
11699 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
11700 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
11701
11702 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
11703
11704 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
11705
11706 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
11707
11708 PR rtl-optimization/70703
11709 * ira-color.c (update_conflict_hard_regno_costs): Use
11710 int64_t instead of HOST_WIDE_INT.
11711
11712 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
11713
11714 PR rtl-optimization/70478
11715 * lra-constraints.c (process_alt_operands): Disfavor alternative
11716 insn memory operands.
11717
11718 2017-04-07 Jeff Law <law@redhat.com>
11719
11720 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
11721 CALL and NOTE_INSN_CALL_ARG_LOCATION.
11722
11723 2017-04-07 Martin Liska <mliska@suse.cz>
11724
11725 PR target/79889
11726 * config/aarch64/aarch64.c (aarch64_process_target_attr):
11727 Show error message instead of an ICE.
11728
11729 2017-04-07 Martin Liska <mliska@suse.cz>
11730
11731 PR ipa/80212
11732 * ipa-split.c (split_function): Add function part to a same comdat
11733 group.
11734
11735 2017-04-07 Richard Biener <rguenther@suse.de>
11736
11737 PR middle-end/80341
11738 * tree.c (get_unwidened): Also handle ! for_type case for
11739 INTEGER_CSTs.
11740 * convert.c (do_narrow): Split out from ...
11741 (convert_to_integer_1): ... here. Do not pass final truncation
11742 type to get_unwidened for TRUNC_DIV_EXPR.
11743
11744 2017-04-07 Richard Biener <rguenther@suse.de>
11745
11746 * tree-affine.c (wide_int_ext_for_comb): Take type rather
11747 than aff_tree.
11748 (aff_combination_const): Adjust.
11749 (aff_combination_scale): Likewise.
11750 (aff_combination_add_elt): Likewise.
11751 (aff_combination_add_cst): Likewise.
11752 (aff_combination_convert): Likewise.
11753 (add_elt_to_tree): Likewise. Remove unused argument.
11754 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
11755
11756 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
11757
11758 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
11759 definition.
11760 * config/arm/arm.c (arm_default_short_enums): Use
11761 ARM_DEFAULT_SHORT_ENUMS.
11762 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
11763
11764 2017-04-06 Jakub Jelinek <jakub@redhat.com>
11765
11766 PR debug/80234
11767 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
11768 members with redundant out-of-class redeclaration.
11769
11770 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
11771
11772 PR target/80286
11773 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
11774 * config/i386/i386.md (*zero_extendsidi2):
11775 Add (?*x,*x) and (?*v,*v) alternatives.
11776
11777 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
11778
11779 PR target/79733
11780 * config/i386/i386.c (ix86_expand_builtin)
11781 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
11782 mode from insn data. Convert operands to insn operand mode.
11783 Copy operands that don't satisfy insn predicate to a register.
11784
11785 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
11786
11787 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
11788 Update comments.
11789
11790 2017-04-06 Richard Biener <rguenther@suse.de>
11791
11792 PR tree-optimization/80334
11793 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
11794 preserve alignment of accesses.
11795
11796 2017-04-06 Richard Biener <rguenther@suse.de>
11797
11798 PR tree-optimization/80262
11799 * tree-sra.c (build_ref_for_offset): Preserve address-space
11800 information.
11801 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
11802 Drop useless address-space information on MEM_REF offsets.
11803
11804 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
11805
11806 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
11807
11808 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
11809
11810 PR rtl-optimization/70703
11811 * ira-color.c (update_conflict_hard_regno_costs): Use
11812 HOST_WIDE_INT instead of long.
11813
11814 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
11815
11816 PR target/80298
11817 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
11818 not defined for x86_64 target. Add -mmmx target option when __SSE2__
11819 is not defined.
11820 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
11821 for x86_64 target. Handle -m3dnowa option.
11822
11823 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
11824
11825 PR rtl-optimization/70703
11826 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
11827 (update_conflict_hard_regno_costs): Use long instead of unsigned
11828 arithmetic for cost calculation.
11829
11830 2017-04-05 Jakub Jelinek <jakub@redhat.com>
11831 Bernd Edlinger <bernd.edlinger@hotmail.de>
11832
11833 PR sanitizer/80308
11834 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
11835 for big endian.
11836
11837 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
11838
11839 PR target/78002
11840 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
11841 ptr_mode with Pmode throughout.
11842 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
11843 into probe_stack_range and use DImode.
11844
11845 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
11846
11847 PR target/79890
11848 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
11849 call_eh_return is true.
11850
11851 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11852
11853 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
11854 Initialize last_match_fntype_index.
11855
11856 2017-04-05 Jakub Jelinek <jakub@redhat.com>
11857
11858 PR target/80310
11859 * tree-nvr.c: Include internal-fn.h.
11860 (pass_return_slot::execute): Ignore internal calls without
11861 direct optab.
11862
11863 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11864 Richard Biener <rguenther@suse.de>
11865
11866 PR c++/80297
11867 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
11868 captures used multiple times, except for the last use.
11869 * generic-match-head.c: Include gimplify.h.
11870
11871 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11872
11873 PR tree-optimization/79390
11874 * target.h (struct noce_if_info): Declare.
11875 * targhooks.h (default_noce_conversion_profitable_p): Declare.
11876 * target.def (noce_conversion_profitable_p): New target hook.
11877 * ifcvt.h (struct noce_if_info): New type, moved from ...
11878 * ifcvt.c (struct noce_if_info): ... here.
11879 (noce_conversion_profitable_p): Renamed to ...
11880 (default_noce_conversion_profitable_p): ... this. No longer
11881 static nor inline.
11882 (noce_try_store_flag_constants, noce_try_addcc,
11883 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
11884 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
11885 instead of noce_conversion_profitable_p.
11886 * config/i386/i386.c: Include ifcvt.h.
11887 (ix86_option_override_internal): Don't override
11888 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
11889 (ix86_noce_conversion_profitable_p): New function.
11890 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
11891 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
11892 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
11893 * doc/tm.texi: Regenerated.
11894
11895 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11896
11897 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
11898 correction.
11899
11900 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11901
11902 PR target/80307
11903 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
11904 instructions for small multiply cores.
11905
11906 2017-04-04 Jeff Law <law@redhat.com>
11907
11908 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
11909 added member.
11910 (mips_expand_vec_perm_const): Initialize elements in orig_perm
11911 that are not set by the loop over the elements.
11912
11913 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11914
11915 PR target/80286
11916 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
11917 int mode, convert_modes it to mode as unsigned, otherwise use
11918 lowpart_subreg to mode rather than SImode.
11919 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
11920 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
11921 Use DImode instead of SImode for the shift count operand.
11922 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
11923 Likewise.
11924
11925 2017-04-04 Richard Biener <rguenther@suse.de>
11926
11927 PR middle-end/80281
11928 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
11929 arithmetic done for the negate or the plus. Simplify.
11930 (A - (-B) -> A + B): Likewise.
11931 * fold-const.c (split_tree): Make sure to not negate pointers.
11932
11933 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
11934
11935 PR rtl-optimization/60818
11936 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
11937 a compare of comparisons with the thing compared if this results
11938 in a different machine mode.
11939
11940 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
11941
11942 * alias.c (base_alias_check): Fix typo in comment.
11943 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
11944 * cgraphunit.c (symbol_table::compile): Likewise.
11945 * collect2.c (maybe_run_lto_and_relink): Likewise.
11946 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
11947 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
11948 * config/avr/avr.c (avr_map_op_t): Likewise.
11949 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
11950 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
11951 * config/epiphany/epiphany.md (movcc): Likewise.
11952 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
11953 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
11954 Likewise.
11955 * config/mips/mips.c (mips_save_restore_reg): Likewise.
11956 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
11957 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
11958 * config/sh/sh.c (sh_rtx_costs): Likewise.
11959 * fold-const.c (fold_truth_andor): Likewise.
11960 * genautomata.c (collapse_flag): Likewise.
11961 * gengtype.h (struct type::u::s): Likewise.
11962 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
11963 * input.c (FORMAT_AMOUNT): Likewise.
11964 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
11965 (known_aggs_to_agg_replacement_list): Likewise.
11966 * ipa-inline-analysis.c: Likewise.
11967 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
11968 * ipa-polymorphic-call.c
11969 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
11970 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
11971 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
11972 Likewise.
11973 * modulo-sched.c (apply_reg_moves): Likewise.
11974 * omp-expand.c (build_omp_regions_1): Likewise.
11975 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
11976 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
11977 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
11978 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11979 * value-prof.c: Likewise.
11980 * var-tracking.c (val_reset): Likewise.
11981
11982 2017-04-03 Richard Biener <rguenther@suse.de>
11983
11984 PR tree-optimization/80275
11985 * fold-const.c (split_address_to_core_and_offset): Handle
11986 POINTER_PLUS_EXPR.
11987
11988 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
11989
11990 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
11991 descriptors is at least equal to that of functions.
11992
11993 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
11994
11995 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
11996
11997 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
11998
11999 PR target/80250
12000 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
12001 (mov<IMOD4:mode>): New expander.
12002 (*mov<IMOD4:mode>_internal): New insn and split pattern.
12003
12004 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
12005
12006 PR rtl-optimization/79405
12007 * fwprop.c (propagations_left): New variable.
12008 (forward_propagate_into): Decrement it.
12009 (fwprop_init): Initialize it.
12010 (fw_prop): If the variable has reached zero, stop propagating.
12011 (fwprop_addr): Ditto.
12012
12013 2017-03-31 Jakub Jelinek <jakub@redhat.com>
12014
12015 PR debug/79255
12016 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
12017 a FUNCTION_DECL, pass it as decl instead of origin to
12018 process_scope_var.
12019
12020 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
12021
12022 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
12023 string.
12024
12025 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
12026
12027 PR target/80107
12028 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
12029 TARGET_VSX_SMALL_INTEGER.
12030
12031 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12032
12033 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
12034 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
12035
12036 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
12037
12038 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
12039 extraction from odd-numbered MSA register.
12040
12041 2017-03-31 Jakub Jelinek <jakub@redhat.com>
12042
12043 PR middle-end/80173
12044 * expmed.c (store_bit_field_1): Don't attempt to create
12045 a word subreg out of hard registers wider than word if they
12046 have HARD_REGNO_NREGS of 1 for their mode.
12047
12048 PR middle-end/80163
12049 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
12050 conversions to integer types wider than word and pointer.
12051
12052 PR debug/80025
12053 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
12054 (rtx_equal_for_cselib_p): Pass 0 to it.
12055 * cselib.c (cselib_hasher::equal): Likewise.
12056 (rtx_equal_for_cselib_1): Add depth argument. If depth
12057 is 128, don't look up VALUE locs and punt. Increment
12058 depth in recursive calls when walking VALUE locs.
12059
12060 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
12061
12062 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
12063 (make_gcov_file_name): Use the canonical path name for generating
12064 the MD5 value.
12065 (read_line): Fix handling of files with ascii null bytes.
12066
12067 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
12068
12069 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
12070 to initialise a vector register instead
12071 of using a const_int.
12072
12073 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12074
12075 PR translation/80189
12076 * gimplify.c (omp_default_clause): Use %qs instead of %s in
12077 diagnostic messages.
12078
12079 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
12080
12081 PR target/80246
12082 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
12083 (dfp_diex_<mode>): Update mode of operand 1.
12084 * doc/extend.texi (dxex, dxexq): Document change to return type.
12085 (diex, diexq): Document change to argument type.
12086
12087 2017-03-30 Martin Jambor <mjambor@suse.cz>
12088
12089 PR ipa/77333
12090 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
12091 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
12092 it reflects the signature changes performed at the callee side.
12093 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
12094 to cgraph_build_function_type_skip_args.
12095 (build_function_decl_skip_args): Adjust call to the above function.
12096
12097 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12098
12099 PR target/80206
12100 * config/i386/sse.md
12101 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
12102 register as dest whenever it is a MEM not rtx_equal_p to the
12103 corresponding dup operand, and when forcing into reg move the
12104 reg into the memory afterwards.
12105 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
12106 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
12107 for the force_reg mode.
12108 (avx512vl_vextractf128<mode>): Use register as dest either
12109 always when a MEM, or when it is a MEM not rtx_equal_p to the
12110 corresponding dup operand, or even not when it is a CONST_VECTOR
12111 depending on the mode and lo vs. hi.
12112 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
12113 parens.
12114 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
12115 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
12116 Likewise. Require that operands[2] is even.
12117 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
12118 Remove extraneous parens. Require that operands[2] is a multiple
12119 of 4.
12120 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
12121 operands[0] is a MEM if <mask_applied>, the predicates/constraints
12122 disallow memory then.
12123
12124 2017-03-30 Richard Biener <rguenther@suse.de>
12125
12126 PR tree-optimization/77498
12127 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
12128 to non-constants over backedges.
12129
12130 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
12131
12132 PR rtl-optimization/80233
12133 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
12134 as last_combined_insn. Do not test for BARRIER_P separately.
12135
12136 2017-03-29 Andreas Schwab <schwab@suse.de>
12137
12138 PR ada/80146
12139 * calls.c (prepare_call_address): Convert funexp to Pmode before
12140 copying to temp reg.
12141
12142 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12143
12144 PR tree-optimization/80158
12145 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
12146 Handle possible future case of more than one alternate
12147 interpretation.
12148 (replace_rhs_if_not_dup): Likewise.
12149 (replace_one_candidate): Likewise.
12150
12151 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
12152
12153 PR rtl-optimization/80193
12154 * ira.c (ira): Do not check allocation for LRA.
12155
12156 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
12157
12158 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
12159 (nvptx_output_simt_exit): Declare.
12160 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
12161 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
12162 (init_softstack_frame): Move initialization of crtl->is_leaf to...
12163 (nvptx_declare_function_name): ...here. Emit declaration of local
12164 memory space buffer for omp_simt_enter insn.
12165 (nvptx_output_unisimt_switch): New.
12166 (nvptx_output_softstack_switch): New.
12167 (nvptx_output_simt_enter): New.
12168 (nvptx_output_simt_exit): New.
12169 * config/nvptx/nvptx.h (struct machine_function): New fields
12170 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
12171 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
12172 (UNSPECV_SIMT_EXIT): Ditto.
12173 (omp_simt_enter_insn): New insn.
12174 (omp_simt_enter): New expansion.
12175 (omp_simt_exit): New insn.
12176 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
12177
12178 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
12179 (expand_GOMP_SIMT_ENTER_ALLOC): New.
12180 (expand_GOMP_SIMT_EXIT): New.
12181 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
12182 (GOMP_SIMT_ENTER_ALLOC): Ditto.
12183 (GOMP_SIMT_EXIT): Ditto.
12184 * target-insns.def (omp_simt_enter): New insn.
12185 (omp_simt_exit): Ditto.
12186 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
12187 simt_dlist.
12188 (lower_rec_simd_input_clauses): Implement SIMT privatization.
12189 (lower_rec_input_clauses): Likewise.
12190 (lower_lastprivate_clauses): Handle SIMT privatization.
12191
12192 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
12193 (ompdevlow_adjust_simt_enter): New.
12194 (find_simtpriv_var_op): New.
12195 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
12196 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
12197
12198 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
12199 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
12200 (copy_decl_for_dup_finish): Ditto.
12201
12202 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
12203
12204 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
12205
12206 PR target/53383
12207 * config/i386/i386.c (ix86_option_override_internal): Always
12208 allow -mpreferred-stack-boundary=3 for 64-bit targets.
12209
12210 2017-03-28 Bin Cheng <bin.cheng@arm.com>
12211
12212 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
12213
12214 2017-03-28 Bin Cheng <bin.cheng@arm.com>
12215
12216 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
12217 mark new edge's irreducible flag accordign to it.
12218 (vect_do_peeling): Check loop preheader edge's irreducible flag
12219 and pass it to function slpeel_add_loop_guard.
12220
12221 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
12222
12223 PR tree-optimization/80218
12224 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
12225 Update block frequencies and counts.
12226
12227 2017-03-28 Richard Biener <rguenther@suse.de>
12228
12229 PR tree-optimization/78644
12230 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
12231 of a simplification result we may not use it at all.
12232
12233 2017-03-28 Richard Biener <rguenther@suse.de>
12234
12235 PR ipa/80205
12236 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
12237 without arguments, generate default definition of a SSA name.
12238
12239 2017-03-28 Richard Biener <rguenther@suse.de>
12240
12241 PR middle-end/80222
12242 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
12243 TYPE_REF_CAN_ALIAS_ALL references.
12244 * fold-const.c (fold_indirect_ref_1): Likewise.
12245
12246 2017-03-28 Martin Liska <mliska@suse.cz>
12247
12248 PR ipa/80104
12249 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
12250 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
12251
12252 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
12253 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12254
12255 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
12256 (EXTRA_SPECS): Define.
12257 (SUBTARGET_EXTRA_SPECS): Likewise.
12258 (SUBTARGET_CPP_SPEC): Likewise.
12259 * config/arc/elf.h (EXTRA_SPECS): Renamed to
12260 SUBTARGET_EXTRA_SPECS.
12261 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
12262
12263 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
12264
12265 * config/arc/simdext.md (vst64_insn): Update pattern.
12266 (vld32wh_insn): Likewise.
12267 (vld32wl_insn): Likewise.
12268 (vld64_insn): Likewise.
12269 (vld32_insn): Likewise.
12270
12271 2017-03-28 Marek Polacek <polacek@redhat.com>
12272
12273 PR sanitizer/80067
12274 * fold-const.c (fold_comparison): Use protected_set_expr_location
12275 instead of SET_EXPR_LOCATION.
12276
12277 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12278
12279 * tree.c (add_expr): Avoid name lookup warning.
12280
12281 2017-03-27 Jeff Law <law@redhat.com>
12282
12283 PR tree-optimization/80216
12284 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
12285 function name. Limit recursion depth.
12286 (record_temporary_equivalences): Corresponding changes.
12287
12288 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
12289
12290 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
12291 covered first.
12292
12293 2017-03-27 Jakub Jelinek <jakub@redhat.com>
12294
12295 PR target/80102
12296 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
12297 notes.
12298 * cfgcleanup.c (reg_note_cfa_p): New array.
12299 (insns_have_identical_cfa_notes): New function.
12300 (old_insns_match_p): Don't cross-jump in between /f
12301 and non-/f instructions. If both i1 and i2 are frame related,
12302 verify all CFA notes, their order and content.
12303
12304 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
12305
12306 PR target/78543
12307 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
12308 HImode and SImode with zero extend to DImode to one insn.
12309 (bswap<mode>2_extenddi): Likewise.
12310 (bswapsi2_extenddi): Likewise.
12311 (bswaphi2_extendsi): Likewise.
12312 (bswaphi2): Combine bswap HImode and SImode into one insn.
12313 Separate memory insns from swapping register.
12314 (bswapsi2): Likewise.
12315 (bswap<mode>2): Likewise.
12316 (bswaphi2_internal): Delete, no longer used.
12317 (bswapsi2_internal): Likewise.
12318 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
12319 store, and gpr<-gpr swap insns.
12320 (bswap<mode>2_store): Likewise.
12321 (bswaphi2_reg): Register only splitter, combine with the splitter.
12322 (bswaphi2 splitter): Likewise.
12323 (bswapsi2_reg): Likewise.
12324 (bswapsi2 splitter): Likewise.
12325 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
12326 the insns into load, store, and register/register insns.
12327 (bswapdi2_ldbrx): Likewise.
12328 (bswapdi2_load): Likewise.
12329 (bswapdi2_store): Likewise.
12330 (bswapdi2_reg): Likewise.
12331
12332 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
12333
12334 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
12335 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
12336
12337 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
12338
12339 PR target/80103
12340 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
12341 add comments.
12342 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12343 special handling for target option conflicts between dform
12344 options (-mpower9-dform, -mpower9-dform-vector,
12345 -mpower9-dform-scalar) and -mno-direct-move.
12346
12347 2017-03-27 Richard Biener <rguenther@suse.de>
12348
12349 PR tree-optimization/80181
12350 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
12351
12352 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
12353
12354 * config/arc/predicates.md (move_double_src_operand): Replace the
12355 call to move_double_src_operand with a call to address_operand.
12356
12357 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
12358
12359 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
12360 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
12361 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
12362
12363 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
12364
12365 * config/arc/predicates.md (long_immediate_loadstore_operand):
12366 Consider scaled addresses cases.
12367
12368 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
12369
12370 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
12371 restored when in interrupt.
12372 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
12373 doesn't have delay slot.
12374
12375 2017-03-27 Richard Biener <rguenther@suse.de>
12376
12377 PR ipa/79776
12378 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
12379 inlined thunk clones.
12380
12381 2017-03-27 Jakub Jelinek <jakub@redhat.com>
12382
12383 PR sanitizer/80168
12384 * asan.c (instrument_derefs): Copy over last operand from
12385 original COMPONENT_REF to the new COMPONENT_REF with
12386 DECL_BIT_FIELD_REPRESENTATIVE.
12387 * ubsan.c (instrument_object_size): Likewise.
12388
12389 2017-03-27 Richard Biener <rguenther@suse.de>
12390
12391 PR tree-optimization/80170
12392 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
12393 sure DR/SCEV didnt fold in constants we do not see when looking
12394 at the reference base alignment.
12395
12396 2017-03-27 Richard Biener <rguenther@suse.de>
12397
12398 PR middle-end/80171
12399 * gimple-fold.c (fold_ctor_reference): Properly guard against
12400 NULL return value from canonicalize_constructor_val.
12401
12402 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
12403
12404 PR target/80180
12405 * config/i386/i386.c (ix86_expand_builtin)
12406 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
12407 flags reg setting and flags reg using instructions.
12408 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
12409 clobbering instructions to zero extend op2.
12410
12411 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
12412
12413 * doc/install.texi (Configuration) <--with-aix-soname>:
12414 Update link to AIX ld.
12415
12416 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
12417
12418 PR rtl-optimization/80160
12419 PR rtl-optimization/80159
12420 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
12421 reg_alternate_class into account.
12422
12423 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
12424
12425 PR target/80148
12426 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
12427 to consider in curr_insn_transform.
12428
12429 2017-03-24 Jakub Jelinek <jakub@redhat.com>
12430
12431 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
12432 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
12433 and emit_mode_inner.
12434
12435 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12436
12437 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
12438 argument to the overloaded builtin variants. Use the new flag to
12439 deprecate certain builtin variants.
12440 * config/s390/s390-builtin-types.def: Add new builtin types.
12441 * config/s390/s390-builtins.h: Support new flags field for
12442 overloaded builtins.
12443 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
12444 (s390_macro_to_expand): Enable vector float data type.
12445 (s390_cpu_cpp_builtins_internal): Indicate support of the new
12446 builtins by incrementing the __VEC__ version number.
12447 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
12448 vec_xst.
12449 (s390_resolve_overloaded_builtin): Emit error messages depending
12450 on the builtin flags.
12451 * config/s390/s390.c (s390_expand_builtin): Support additional
12452 flags argument. Change error message to match the messages
12453 emitted in s390-c.c.
12454 * config/s390/s390.md: New UNSPEC_* constants.
12455 (op_type): Add new instruction types.
12456 * config/s390/vecintrin.h: Add new builtins and test data class
12457 constants.
12458 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
12459 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
12460 (VEC_INEXACT, VEC_NOINEXACT): New constants.
12461 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
12462 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
12463 ("vec_mergel<mode>"): V_HW -> VEC_HW.
12464
12465 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
12466 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
12467 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
12468 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
12469
12470 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
12471 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
12472 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
12473 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
12474
12475 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
12476 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
12477 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
12478 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
12479 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
12480 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
12481 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
12482
12483 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
12484 ("vec_scatter_element<V_HW_4:mode>_DI")
12485 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
12486 ("vec_fpint<mode>", "vflls")
12487 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
12488 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
12489 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
12490 ("*vec_cmphe<mode>_cc"): ... these.
12491
12492 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
12493 mode constant instead of magic value.
12494
12495 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12496
12497 * config/s390/s390.c (s390_expand_vec_compare): Support other
12498 vector floating point modes than just V2DF.
12499 (s390_expand_vcond): Likewise.
12500 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
12501 (s390_cannot_change_mode_class): Prevent mode changes between TF
12502 and V1TF in vector registers.
12503 * config/s390/s390.md (DF, SF): New mode attributes.
12504 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
12505 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
12506 SFmode support for VRs.
12507 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
12508 vector fp modes.
12509 (VFT, VF_HW): New mode iterators.
12510 (vw, sdx): New mode attributes.
12511 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
12512 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
12513 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
12514 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
12515 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
12516 also the new vector floating point modes. Renaming to ...
12517
12518 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
12519 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
12520 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
12521 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
12522 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
12523 ("vec_unordered<mode>"): ... these.
12524
12525 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
12526 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
12527 ("*vec_extendv2df"): New insn definitions.
12528
12529 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12530
12531 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
12532 ("mulditi3_2", "*muldi3_sign"): New patterns.
12533 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
12534 rename the pattern definition.
12535
12536 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12537
12538 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
12539 expander.
12540 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
12541
12542 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12543
12544 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
12545 instruction if possible.
12546 * config/s390/vector.md (vec_halfnumelts): New mode
12547 attribute.
12548 ("*vec_vllezlf<mode>"): New pattern.
12549
12550 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12551
12552 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
12553 ("popcountv4si2", "popcountv2di2"): Rename to ...
12554 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
12555 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
12556 condition.
12557 ("popcount<mode>2_vxe"): New pattern.
12558
12559 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12560
12561 * common/config/s390/s390-common.c (processor_flags_table): Add
12562 arch12.
12563 * config.gcc: Add arch12.
12564 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12565 Default to arch12 for unknown CPU model numbers.
12566 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
12567 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
12568 PROCESSOR_max sanity check.
12569 * config/s390/s390-opts.h (enum processor_type): Add
12570 PROCESSOR_ARCH12.
12571 * config/s390/s390.c (processor_table): Add arch12.
12572 (s390_expand_builtin): Add check for B_VXE flag.
12573 (s390_issue_rate): Add PROCESSOR_ARCH12.
12574 (s390_get_sched_attrmask): Likewise.
12575 (s390_get_unit_mask): Likewise.
12576 (s390_sched_score): Enable z13 scheduling for arch12.
12577 (s390_sched_reorder): Likewise.
12578 (s390_sched_variable_issue): Likewise.
12579 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
12580 PF_VXE.
12581 (s390_tune_attr): Use z13 scheduling also for arch12.
12582 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
12583 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
12584 (TARGET_VXE_P): New macros.
12585 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
12586 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
12587 * config/s390/s390.opt: Add arch12 as processor_type.
12588
12589 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12590
12591 * config/s390/s390.md
12592 ("fixuns_truncdddi2", "fixuns_trunctddi2")
12593 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
12594 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
12595
12596 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
12597 Rename expanders to ...
12598
12599 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
12600 ("fixuns_truncdddi2_emu"): ... these.
12601
12602 ("fixuns_trunc<mode>si2_emu"): New expander.
12603
12604 ("*fixuns_truncdfdi2_z13"): Rename to ...
12605 ("*fixuns_truncdfdi2_vx"): ... this.
12606
12607 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12608
12609 * config/s390/2964.md: Remove the single element vector compare
12610 instructions which are no longer used.
12611 * config/s390/s390.c (s390_select_ccmode): Remove handling of
12612 vector CCmodes.
12613 (s390_canonicalize_comparison): Remove handling of DFmode
12614 compares.
12615 (s390_expand_vec_compare_scalar): Remove function.
12616 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
12617 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
12618 pattern.
12619 ("*cmp<mode>_ccs"): Add wfcdb instruction.
12620
12621 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12622
12623 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
12624 FP zero.
12625 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
12626 will anyway by matched by mov<mode>_64dfp.
12627
12628 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12629
12630 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
12631 vlef/vstef. Add missing operand to vleif.
12632
12633 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12634
12635 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
12636 pair for all vector types with 64 bit elements.
12637 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
12638 * config/s390/vector.md (V_HW_64): ... here.
12639 (V_128_NOSINGLE): New mode iterator.
12640 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
12641 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
12642 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
12643 ("*vec_load_pairv2di"): Change to ...
12644 ("*vec_load_pair<mode>"): ... this one.
12645
12646 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12647
12648 * config/s390/constraints.md: Add comments.
12649 (jKK): Reject element sizes > 8 bytes.
12650 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
12651 s_operands.
12652 * config/s390/s390.md: Add the s_operand checks formerly in
12653 s390_split_ok_p to various splitters where they are still
12654 required.
12655 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
12656 for 128 bit vectors. Plus two splitters.
12657
12658 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12659
12660 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
12661 the file.
12662
12663 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12664
12665 PR target/79893
12666 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
12667 error if the boundary argument is not constant.
12668
12669 2017-03-24 Jakub Jelinek <jakub@redhat.com>
12670
12671 PR rtl-optimization/80112
12672 * loop-doloop.c (doloop_condition_get): Don't check condition
12673 if cmp isn't SET with IF_THEN_ELSE src.
12674
12675 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12676
12677 PR tree-optimization/80158
12678 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
12679 replacing a candidate statement, also replace it for the
12680 candidate's alternate interpretation.
12681 (replace_rhs_if_not_dup): Likewise.
12682 (replace_one_candidate): Likewise.
12683
12684 2017-03-24 Richard Biener <rguenther@suse.de>
12685
12686 PR tree-optimization/80167
12687 * graphite-isl-ast-to-gimple.c
12688 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
12689 properly.
12690 (translate_isl_ast_to_gimple::get_rename): Likewise.
12691
12692 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
12693
12694 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
12695 handling of certain combinations of target options, including the
12696 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
12697 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
12698
12699 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12700
12701 PR target/71436
12702 * config/arm/arm.md (*load_multiple): Add reload_completed to
12703 matching condition.
12704
12705 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12706 Richard Biener <rguenth@suse.de>
12707
12708 PR tree-optimization/79908
12709 PR tree-optimization/80136
12710 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
12711 been cast away, gimplify_and_add suffices.
12712
12713 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
12714
12715 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
12716
12717 2017-03-23 Richard Biener <rguenther@suse.de>
12718
12719 PR tree-optimization/80032
12720 * gimplify.c (gimple_push_cleanup): Forced unconditional
12721 cleanups still have to go to the conditional_cleanups
12722 sequence.
12723
12724 2017-03-22 Jakub Jelinek <jakub@redhat.com>
12725
12726 PR tree-optimization/80072
12727 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
12728 to unsigned int.
12729 (next_operand_entry_id): Change type to unsigned int.
12730 (sort_by_operand_rank): Make sure to return the right return value
12731 even if unsigned fields are bigger than INT_MAX.
12732 (struct oecount): Change cnt and id type to unsigned int.
12733 (oecount_hasher::equal): Formatting fix.
12734 (oecount_cmp): Make sure to return the right return value
12735 even if unsigned fields are bigger than INT_MAX.
12736 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
12737
12738 PR c++/80129
12739 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
12740 TREE_READONLY on result if writing it more than once.
12741
12742 PR sanitizer/80110
12743 * doc/invoke.texi (-fsanitize=thread): Document that with
12744 -fnon-call-exceptions atomics are not able to throw
12745 exceptions.
12746
12747 PR sanitizer/80110
12748 * tsan.c: Include tree-eh.h.
12749 (instrument_builtin_call): Call maybe_clean_eh_stmt or
12750 maybe_clean_or_replace_eh_stmt where needed.
12751 (instrument_memory_accesses): Add cfg_changed argument.
12752 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
12753 if it returned true.
12754 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
12755
12756 PR rtl-optimization/63191
12757 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
12758 wrapper function, moved the whole old content into ...
12759 (ix86_delegitimize_address_1): ... this. New inline function.
12760 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
12761 true as last argument instead of ix86_delegitimize_address.
12762
12763 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
12764
12765 * config/aarch64/aarch64.c (generic_branch_cost): Copy
12766 cortexa57_branch_cost.
12767
12768 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
12769
12770 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
12771
12772 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12773
12774 PR target/80123
12775 * doc/md.texi (Constraints): Document wA constraint.
12776 * config/rs6000/constraints.md (wA): New.
12777 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
12778 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
12779 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
12780 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
12781
12782 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12783
12784 PR c++/80029
12785 * gimplify.c (is_oacc_declared): New function.
12786 (oacc_default_clause): Use it to set default flags for acc declared
12787 variables inside parallel regions.
12788 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
12789 declared variables.
12790 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
12791 declare attribute to any decl as necessary.
12792
12793 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
12794
12795 PR target/80082
12796 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
12797 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
12798 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
12799 (arm_arch_lpae): This.
12800 * config/arm/arm.c (arm_arch7ve): Rename into ...
12801 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
12802 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
12803 arm_arch_lpae.
12804
12805 2017-03-22 Martin Liska <mliska@suse.cz>
12806
12807 PR target/79906
12808 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
12809 error message instead of an ICE.
12810
12811 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12812
12813 * doc/extend.texi (6.11 Additional Floating Types): Revise.
12814
12815 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
12816
12817 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
12818 comments.
12819 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12820 comments.
12821
12822 2017-03-21 Martin Sebor <msebor@redhat.com>
12823
12824 * doc/extend.texi: Use "cannot" instead of "can't."
12825 * doc/hostconfig.texi: Same.
12826 * doc/install.texi: Same.
12827 * doc/invoke.texi: Same.
12828 * doc/loop.texi: Same.
12829 * doc/md.texi: Same.
12830 * doc/objc.texi: Same.
12831 * doc/rtl.texi: Same.
12832 * doc/tm.texi: Same.
12833 * doc/tm.texi.in: Same.
12834 * doc/trouble.texi: Same.
12835
12836 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
12837
12838 PR debug/63238
12839 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
12840 (collect_checksum_attributes): Set it.
12841 (die_checksum_ordered): Use it.
12842
12843 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12844
12845 PR tree-optimization/79908
12846 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
12847 change: For a VA_ARG whose LHS has been cast away, use
12848 force_gimple_operand to construct the side effects.
12849
12850 2017-03-21 David Malcolm <dmalcolm@redhat.com>
12851
12852 PR translation/80001
12853 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
12854 more amenable to translation.
12855 (oacc_loop_auto_partitions): Likewise.
12856
12857 2017-03-21 Marek Polacek <polacek@redhat.com>
12858 Martin Sebor <msebor@redhat.com>
12859
12860 PR tree-optimization/80109
12861 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
12862 on INTEGRAL_TYPE_P.
12863
12864 2017-03-21 Jakub Jelinek <jakub@redhat.com>
12865 Segher Boessenkool <segher@kernel.crashing.org>
12866
12867 PR target/80125
12868 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
12869 check reg_used_between_p between insn and one of succ or succ2
12870 depending on if succ is artificial insn not inserted into insn
12871 stream.
12872
12873 2017-03-21 Martin Liska <mliska@suse.cz>
12874
12875 PR gcov-profile/80081
12876 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
12877 * doc/gcc.texi: Include gcov-dump stuff.
12878 * doc/gcov-dump.texi: New file.
12879
12880 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
12881
12882 PR rtl-optimization/79150
12883 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
12884 conditional jump, if the jump is the last insn of the loop.
12885
12886 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12887 Richard Biener <rguenth@suse.de>
12888
12889 PR tree-optimization/79908
12890 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
12891 been cast away, use force_gimple_operand to construct the side
12892 effects.
12893
12894 2017-03-21 Martin Liska <mliska@suse.cz>
12895
12896 PR libfortran/79956
12897 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
12898 to NULL.
12899
12900 2017-03-21 Brad Spengler <spender@grsecurity.net>
12901
12902 PR plugins/80094
12903 * plugin.c (htab_hash_plugin): New function.
12904 (add_new_plugin): Use it and adjust.
12905 (parse_plugin_arg_opt): Adjust.
12906 (init_one_plugin): Likewise.
12907
12908 2017-03-21 Richard Biener <rguenther@suse.de>
12909
12910 PR tree-optimization/80032
12911 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
12912 if set force the cleanup to happen unconditionally.
12913 (gimplify_target_expr): Push inserted clobbers with force_uncond
12914 to avoid them being removed by control-dependent DCE.
12915
12916 2017-03-21 Richard Biener <rguenther@suse.de>
12917
12918 PR tree-optimization/80122
12919 * tree-inline.c (copy_bb): Do not expans va-arg packs or
12920 va_arg_pack_len when the inlined call stmt requires pack
12921 expansion itself.
12922 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
12923
12924 2017-03-21 Jakub Jelinek <jakub@redhat.com>
12925
12926 PR sanitizer/78158
12927 * tsan.c (instrument_builtin_call): If the memory model argument
12928 is not a constant, assume it is valid.
12929
12930 PR c/67338
12931 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
12932 avoid UB.
12933
12934 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
12935
12936 PR rtl-optimization/79910
12937 * combine.c (can_combine_p): Do not allow combining an I0 or I1
12938 if its dest is used by an insn before I2 (other than the combined
12939 insns themselves, which are properly handled already).
12940
12941 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
12942
12943 Revert:
12944 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
12945
12946 * combine.c (record_used_regs): New static function.
12947 (try_combine): Handle situations where there is an additional
12948 instruction between I2 and I3 which needs to have a LOG_LINK
12949 updated.
12950
12951 Revert:
12952 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
12953
12954 * combine.c (try_combine): Delete redundant i1 test. Call
12955 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
12956
12957 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12958
12959 PR target/80083
12960 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
12961 alternatives 13/14.
12962
12963 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12964
12965 PR tree-optimization/80054
12966 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
12967 the optimization if a PHI or any of its arguments is not dominated
12968 by the candidate's basis. Use gphi* rather than gimple* as
12969 appropriate.
12970 (replace_profitable_candidates): Clean up a gimple* variable that
12971 should be a gphi* variable.
12972
12973 2017-03-20 Martin Sebor <msebor@redhat.com>
12974
12975 PR c++/52477
12976 * doc/extend.texi (attribute constructor): Document present limitation.
12977
12978 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
12979
12980 PR target/79963
12981 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
12982 __POWER9_VECTOR__ #ifdef control, change template definition to
12983 use Power9-specific built-in function.
12984 (vec_any_eq): Likewise.
12985 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
12986 to control outcomes from this test.
12987 (vector_ae_<mode>p): For VEC_F modes, likewise.
12988
12989 2017-03-20 Ian Lance Taylor <iant@google.com>
12990
12991 * config/i386/i386.c (ix86_function_regparm): Save an extra
12992 register for -fsplit-stack with DECL_STATIC_CHAIN.
12993
12994 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
12995
12996 PR target/79912
12997 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
12998 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
12999
13000 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
13001
13002 * config/riscv/riscv.c (riscv_print_operand): Use "fence
13003 iorw,ow".
13004 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
13005 iorw,iorw".
13006
13007 2017-03-20 Marek Polacek <polacek@redhat.com>
13008
13009 PR sanitizer/80063
13010 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
13011
13012 2017-03-20 Richard Biener <rguenther@suse.de>
13013
13014 PR tree-optimization/80113
13015 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
13016 allocate extra SSA name for PHI def.
13017 (add_close_phis_to_outer_loops): Likewise.
13018 (add_close_phis_to_merge_points): Likewise.
13019 (copy_loop_close_phi_args): Likewise.
13020 (copy_cond_phi_nodes): Likewise.
13021
13022 2017-03-20 Martin Liska <mliska@suse.cz>
13023
13024 PR middle-end/79753
13025 * tree-chkp.c (chkp_build_returned_bound): Do not build
13026 returned bounds for a LHS that's not a BOUNDED_P type.
13027
13028 2017-03-20 Martin Liska <mliska@suse.cz>
13029
13030 PR target/79769
13031 PR target/79770
13032 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
13033 COMPLEX_CST and VECTOR_CST.
13034
13035 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13036
13037 PR target/78857
13038 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
13039 target operand. A new splitter adds the clobber statement in case
13040 the target operand is dead anyway.
13041
13042 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
13043
13044 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
13045 to age-old versions of binutils and glibc.
13046
13047 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
13048
13049 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
13050
13051 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
13052
13053 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
13054
13055 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
13056
13057 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
13058 requirement for binutils 2.13.
13059
13060 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
13061
13062 * combine.c (try_combine): Delete redundant i1 test. Call
13063 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
13064
13065 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
13066
13067 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
13068 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
13069 contents.
13070 <riscv64-*-elf>: Re-arrange section
13071 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
13072 <riscv32-*-linux>: Likewise.
13073 <riscv64-*-elf>: Likewise
13074 <riscv64-*-linux>: Likewise.
13075
13076 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
13077
13078 PR target/80052
13079 * aarch64.opt(verbose-cost-dump): Fix typo.
13080
13081 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
13082
13083 PR target/79951
13084 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
13085 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
13086
13087 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
13088
13089 * reload.c (find_reloads): When reloading a nonoffsettable address,
13090 use RELOAD_OTHER for it and its address reloads.
13091
13092 PR rtl-optimization/79910
13093 * combine.c (record_used_regs): New static function.
13094 (try_combine): Handle situations where there is an additional
13095 instruction between I2 and I3 which needs to have a LOG_LINK
13096 updated.
13097
13098 2017-03-17 Jeff Law <law@redhat.com>
13099
13100 PR tree-optimization/71437
13101 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
13102 conditional in the hash table first.
13103 (vrp_dom_walker::before_dom_children): Extract condition from
13104 ASSERT_EXPR. Record condition, its inverion and any implied
13105 conditions as well.
13106
13107 2017-03-17 Marek Polacek <polacek@redhat.com>
13108 Markus Trippelsdorf <markus@trippelsdorf.de>
13109
13110 PR tree-optimization/80079
13111 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
13112 m_stores_head.
13113
13114 2017-03-17 Richard Biener <rguenther@suse.de>
13115
13116 PR middle-end/80075
13117 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
13118 Properly verify the LHS before the RHS possibly claims to be
13119 handled.
13120 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
13121 do not throw.
13122
13123 2017-03-17 Martin Jambor <mjambor@suse.cz>
13124
13125 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
13126 (List of -O2 options): Likewise.
13127 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
13128 (-fipa-vrp) New.
13129
13130 2017-03-17 Tom de Vries <tom@codesourcery.com>
13131
13132 * gcov-dump.c (print_usage): Print bug_report_url.
13133
13134 2017-03-17 Richard Biener <rguenther@suse.de>
13135
13136 PR middle-end/80050
13137 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
13138 (parser::peek): Likewise.
13139
13140 2017-03-17 Richard Biener <rguenther@suse.de>
13141
13142 PR tree-optimization/80048
13143 * sese.c (free_sese_info): Properly release rename_map and
13144 copied_bb_map elements.
13145
13146 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
13147
13148 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
13149 Add linked-list forward and backlinks. Insert on
13150 construction, remove on destruction.
13151 (class pass_store_merging): Add m_stores_head field.
13152 (pass_store_merging::terminate_and_process_all_chains):
13153 Iterate over m_stores_head list.
13154 (pass_store_merging::terminate_all_aliasing_chains):
13155 Likewise.
13156 (pass_store_merging::execute): Check for debug stmts first.
13157 Push new chains onto the m_stores_head stack.
13158
13159 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
13160
13161 PR target/71294
13162 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
13163 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
13164 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
13165
13166 2017-03-16 Jeff Law <law@redhat.com>
13167
13168 PR tree-optimization/71437
13169 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
13170 member function. Implementation moved into after_dom_children
13171 member function and into the threader's thread_outgoing_edges
13172 function.
13173 (dom_opt_dom_walker::after_dom_children): Simplify by moving
13174 some code into new thread_outgoing_edges.
13175 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
13176 definition. Simplify marker handling (do it here). Assume we always
13177 have the available expression and the const/copies tables.
13178 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
13179 and tree-vrp.c
13180 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
13181 * tree-vrp.c (equiv_stack): No longer file scoped.
13182 (vrp_dom_walker): New class.
13183 (vrp_dom_walker::before_dom_children): New member function.
13184 (vrp_dom_walker::after_dom_children): Likewise.
13185 (identify_jump_threads): Setup domwalker. Use it rather than
13186 walking edges in a random order by hand. Simplify setup/finalization.
13187 (finalize_jump_threads): Remove.
13188 (vrp_finalize): Do not call identify_jump_threads here.
13189 (execute_vrp): Do it here instead and call thread_through_all_blocks
13190 here too.
13191
13192 PR tree-optimization/71437
13193 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
13194 callers changed.
13195 (simplify_stmt_for_jump_threading): Add basic_block argument. All
13196 callers changed.
13197 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
13198 (dom_opt_dom_walker::thread_across_edge): Remove
13199 handle_dominating_asserts argument. All callers changed.
13200 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
13201 changes. Remove calls to lhs_of_dominating_assert. Other
13202 uses of handle_dominating_asserts turn into unconditional code
13203 (simplify_control_stmt_condition_1): Likewise.
13204 (simplify_control_stmt_condition): Likewise.
13205 (thread_through_normal_block, thread_across_edge): Likewise.
13206 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
13207 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
13208 object if it is not an SSA_NAME.
13209 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
13210 before calling into the VRP specific simplifiers.
13211 (identify_jump_threads): Remove handle_dominating_asserts
13212 argument.
13213
13214 2017-03-16 Jakub Jelinek <jakub@redhat.com>
13215
13216 PR fortran/79886
13217 * tree-diagnostic.c (default_tree_printer): No longer static.
13218 * tree-diagnostic.h (default_tree_printer): New prototype.
13219
13220 2017-03-16 Tamar Christina <tamar.christina@arm.com>
13221
13222 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
13223 Change ins into fmov.
13224
13225 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13226
13227 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
13228 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
13229 Use h_con constraint for operand 1.
13230 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13231 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
13232
13233 2017-03-15 Jeff Law <law@redhat.com>
13234
13235 PR tree-optimization/71437
13236 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
13237 (record_temporary_equivalences): Use it.
13238
13239 PR tree-optimization/71437
13240 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
13241 tree-ssa-scopedtables.
13242 (lookup_avail_expr, build_and_record_new_cond): Likewise.
13243 (record_conditions, record_cond, vuse_eq): Likewise.
13244 (record_edge_info): Adjust to API tweak of record_conditions.
13245 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
13246 (record_temporary_equivalences, optimize_stmt): Likewise.
13247 (eliminate_redundant_computations): Likewise.
13248 (record_equivalences_from_stmt): Likewise.
13249 * tree-ssa-scopedtables.c: Include options.h and params.h.
13250 (vuse_eq): New function, moved from tree-ssa-dom.c
13251 (build_and_record_new_cond): Likewise.
13252 (record_conditions): Likewise. Accept vector of conditions rather
13253 than edge_equivalence structure for first argument.
13254 for the first argument.
13255 (avail_exprs_stack::lookup_avail_expr): New member function, moved
13256 from tree-ssa-dom.c.
13257 (avail_exprs_stack::record_cond): Likewise.
13258 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
13259 from tree-ssa-dom.c.
13260 (avail_exprs_stack): Add new member functions lookup_avail_expr
13261 and record_cond.
13262 (record_conditions): Declare.
13263
13264 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
13265
13266 PR target/80017
13267 * lra-constraints.c (process_alt_operands): Increase reject for
13268 reloading an input/output operand.
13269
13270 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13271
13272 PR target/79038
13273 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
13274 insns to convert from signed/unsigned char/short to IEEE 128-bit
13275 floating point.
13276 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
13277
13278 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
13279
13280 PR target/80019
13281 * config/i386/i386.c (ix86_vector_duplicate_value): Create
13282 subreg of inner mode for values already in registers.
13283
13284 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
13285
13286 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
13287 iteration reg is used after the loop.
13288
13289 2017-03-14 Martin Sebor <msebor@redhat.com>
13290
13291 PR tree-optimization/79800
13292 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
13293 precision in negative-positive range.
13294 (format_floating): Call non-const overload with adjusted precision.
13295
13296 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13297
13298 PR target/79947
13299 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
13300 -mpowerpc-gfxopt.
13301
13302 2017-03-14 Martin Sebor <msebor@redhat.com>
13303
13304 PR middle-end/80020
13305 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
13306 * builtins.def (aligned_alloc): Use it.
13307
13308 PR c/79936
13309 * Makefile.in (GTFILES): Add calls.c.
13310 * calls.c: Include "gt-calls.h".
13311
13312 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
13313
13314 PR rtl-optimization/79728
13315 * regs.h (struct target_regs): New field
13316 x_contains_allocatable_regs_of_mode.
13317 (contains_allocatable_regs_of_mode): New macro.
13318 * reginfo.c (init_reg_sets_1): Initialize it, and change
13319 contains_reg_of_mode so it includes global regs as well.
13320 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
13321 rather than contains_regs_of_mode.
13322
13323 2017-03-14 Martin Liska <mliska@suse.cz>
13324
13325 * doc/invoke.texi: Document options that can't be combined with
13326 -fcheck-pointer-bounds.
13327
13328 2017-03-14 Martin Liska <mliska@suse.cz>
13329
13330 PR middle-end/79831
13331 * doc/invoke.texi (-Wchkp): Document the option.
13332
13333 2017-03-14 Martin Liska <mliska@suse.cz>
13334
13335 * Makefile.in: Install gcov-dump.
13336
13337 2017-03-14 Martin Liska <mliska@suse.cz>
13338
13339 * multiple_target.c (expand_target_clones): Bail out for
13340 an invalid attribute.
13341
13342 2017-03-14 Richard Biener <rguenther@suse.de>
13343
13344 * alias.c (struct alias_set_entry): Pack properly.
13345 * cfgloop.h (struct loop): Likewise.
13346 * cse.c (struct set): Likewise.
13347 * ipa-utils.c (struct searchc_env): Likewise.
13348 * loop-invariant.c (struct invariant): Likewise.
13349 * lra-remat.c (struct cand): Likewise.
13350 * recog.c (struct change_t): Likewise.
13351 * rtl.h (struct address_info): Likewise.
13352 * symbol-summary.h (function_summary): Likewise.
13353 * tree-loop-distribution.c (struct partition): Likewise.
13354 * tree-object-size.c (struct object_size_info): Likewise.
13355 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
13356 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
13357 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
13358 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
13359 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
13360 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
13361 (struct _stmt_vec_info): Likewise.
13362
13363 2017-03-14 Martin Liska <mliska@suse.cz>
13364
13365 PR target/79892
13366 * multiple_target.c (create_dispatcher_calls): Check that
13367 a target can create a function dispatcher.
13368
13369 2017-03-14 Martin Liska <mliska@suse.cz>
13370
13371 PR lto/66295
13372 * multiple_target.c (expand_target_clones): Drop local.local
13373 flag for default implementation.
13374
13375 2017-03-14 Richard Biener <rguenther@suse.de>
13376
13377 PR tree-optimization/80030
13378 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
13379
13380 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
13381
13382 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
13383 gcc_fallthrough() instead of __attribute__((fallthrough));
13384
13385 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
13386
13387 * doc/gcc.texi: Remove "up" link to (DIR).
13388 * doc/gccint.texi: Ditto.
13389
13390 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
13391
13392 * doc/install.texi (Specific) <avr>: Remove reference to
13393 binutils 2.13.
13394
13395 2017-03-13 Jeff Law <law@redhat.com>
13396
13397 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
13398 attribute rather than comments.
13399
13400 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
13401 match_scratch operand is highest.
13402
13403 2017-03-13 Martin Liska <mliska@suse.cz>
13404
13405 PR middle-end/78339
13406 * ipa-pure-const.c (warn_function_noreturn): If the declarations
13407 is a CHKP clone, use original declaration.
13408
13409 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
13410
13411 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
13412 (arc_conditional_register_usage): Use a different allocation order
13413 when optimizing for size.
13414 * common/config/arc/arc-common.c (arc_option_optimization_table):
13415 Section anchors default on when optimizing for size.
13416
13417 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
13418
13419 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
13420
13421 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
13422
13423 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
13424 * config/arc/arc.md (cpu_facility): Add cd variant.
13425 (*movqi_insn): Add code density variant.
13426 (*movhi_insn): Likewise.
13427 (*movqi_insn): Likewise.
13428 (*addsi3_mixed): Likewise.
13429 (subsi3_insn): Likewise.
13430
13431 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
13432
13433 * config/arc/arc.md (movsi_cond_exec): Update constraint.
13434
13435 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
13436
13437 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
13438 expressions with MINUS and UNARY ops.
13439
13440 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13441
13442 PR target/79911
13443 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
13444 Rename to...
13445 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
13446 between vec_select and vector argument.
13447 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
13448 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
13449 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
13450 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
13451 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
13452 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
13453
13454 2017-03-13 Richard Biener <rguenther@suse.de>
13455
13456 PR other/79991
13457 * params.def (vect-max-peeling-for-alignment): Fix typo.
13458
13459 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
13460
13461 * doc/install.texi (Specific) <mips-*-*>: Remove description of
13462 issue that only occurred with binutils below 2.18.
13463
13464 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
13465
13466 * doc/install.texi (Specific) <cris-axis-elf>: No longer
13467 refer to binutils 2.11/2.12 minimum.
13468
13469 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
13470
13471 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
13472 ftp.kernel.org and simplify binutils requirement.
13473
13474 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
13475
13476 * doc/invoke.texi (Warning Options): Fix spelling of link-time
13477 optimization.
13478 (Optimize Options): Ditto. Also remove redundancy.
13479
13480 2017-03-10 David Malcolm <dmalcolm@redhat.com>
13481
13482 PR translation/79848
13483 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
13484 "%qs".
13485 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
13486 to G_ to avoid double translation.
13487
13488 2017-03-10 David Malcolm <dmalcolm@redhat.com>
13489
13490 PR translation/79923
13491 * auto-profile.c (get_combined_location): Convert leading
13492 character of diagnostics to lower case and remove trailing period.
13493 (read_profile): Likewise for various diagnostics.
13494 * config/arm/arm.c (arm_option_override): Remove trailing period
13495 from various diagnostics.
13496 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
13497 (msp430_expand_delay_cycles): Likewise.
13498
13499 2017-03-10 David Malcolm <dmalcolm@redhat.com>
13500
13501 PR target/79925
13502 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
13503 full command-line argument, rather than just "str".
13504 (aarch64_validate_march): Likewise.
13505 (aarch64_validate_mtune): Likewise.
13506
13507 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
13508
13509 PR rtl-optimization/78911
13510 * lra-assigns.c (must_not_spill_p): New function.
13511 (spill_for): Use it.
13512
13513 2017-03-10 Jakub Jelinek <jakub@redhat.com>
13514
13515 PR tree-optimization/79981
13516 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
13517 ATOMIC_COMPARE_EXCHANGE ifn result.
13518 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
13519 IFN_ATOMIC_COMPARE_EXCHANGE.
13520
13521 2017-03-10 David Malcolm <dmalcolm@redhat.com>
13522
13523 PR driver/79875
13524 * opts.c (parse_sanitizer_options): Add missing question mark to
13525 "did you mean" message.
13526
13527 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13528
13529 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
13530 built-in.
13531 (VMULEUH_UNS): Likewise.
13532 (VMULOUB_UNS): Likewise.
13533 (VMULOUH_UNS): Likewise.
13534 * config/rs6000/rs6000.c (builtin_function_type): Remove
13535 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
13536
13537 2017-03-10 David Malcolm <dmalcolm@redhat.com>
13538
13539 PR bootstrap/79952
13540 * read-rtl-function.c (function_reader::read_rtx_operand): Update
13541 x with result of extra_parsing_for_operand_code_0.
13542 (function_reader::extra_parsing_for_operand_code_0): Convert
13543 return type from void to rtx, returning x. When reading
13544 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
13545 larger size containing struct block_symbol.
13546
13547 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
13548
13549 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
13550 -mfloat128-hardware without -m64.
13551
13552 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
13553
13554 PR target/79941
13555 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
13556 entries to the case statement that marks unsigned arguments to
13557 overloaded functions.
13558
13559 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
13560
13561 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
13562 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
13563
13564 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
13565
13566 PR target/79907
13567 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
13568 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
13569
13570 2017-03-10 Martin Liska <mliska@suse.cz>
13571
13572 PR target/65705
13573 PR target/69804
13574 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
13575 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
13576 FIELD != NULL.
13577
13578 2017-03-10 Olivier Hainque <hainque@adacore.com>
13579
13580 * tree-switch-conversion (array_value_type): Start by resetting
13581 candidate type to it's main variant.
13582
13583 2017-03-10 Jakub Jelinek <jakub@redhat.com>
13584
13585 PR rtl-optimization/79909
13586 * combine.c (try_combine): Use simplify_replace_rtx on individual
13587 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
13588 of the whole CALL_INSN_FUNCTION_USAGE.
13589
13590 PR tree-optimization/79972
13591 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
13592 get_range_info on SSA_NAMEs. Formatting fixes.
13593
13594 2017-03-10 Richard Biener <rguenther@suse.de>
13595 Jakub Jelinek <jakub@redhat.com>
13596
13597 PR tree-optimization/77975
13598 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
13599 edge to be constant.
13600 (get_val_for): For constant x return it. Formatting fix.
13601 (loop_niter_by_eval): Avoid pointless looping if the next iteration
13602 would use the same bases as the current one.
13603
13604 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13605
13606 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
13607 instead of vec_select for V1TImode.
13608 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
13609 longer needed.
13610 (VSX_LE_128): Add V1TI to this mode iterator.
13611 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
13612 (*vsx_le_perm_store_<mode>): Likewise.
13613 (pre-reload splitter for VSX stores): Likewise.
13614 (post-reload splitter for VSX stores): Likewise.
13615 (*vsx_xxpermdi2_le_<mode>): Likewise.
13616 (*vsx_lxvd2x2_le_<mode>): Likewise.
13617 (*vsx_stxvd2x2_le_<mode>): Likewise.
13618
13619 2017-03-09 Michael Eager <eager@eagercon.com>
13620
13621 Correct failures with --enable-checking=yes,rtl.
13622
13623 * config/microblaze/microblaze.c (microblaze_expand_shift):
13624 Replace GET_CODE test with CONST_INT_P and INTVAL test with
13625 test for const0_rtx.
13626 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
13627 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
13628
13629 2017-03-09 Richard Biener <rguenther@suse.de>
13630
13631 PR tree-optimization/79977
13632 * graphite-scop-detection.c (scop_detection::merge_sese):
13633 Handle the case of extra exits to blocks dominating the entry.
13634
13635 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
13636
13637 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
13638 Document rdynamic.
13639
13640 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
13641
13642 PR rtl-optimization/79949
13643 * lra-constraints.c (process_alt_operands): Check memory when
13644 trying to predict a cycle. Print about the overall increase.
13645
13646 2017-03-09 Richard Biener <rguenther@suse.de>
13647
13648 PR middle-end/79971
13649 * gimple-expr.c (useless_type_conversion_p): Preserve
13650 TYPE_SATURATING for fixed-point types.
13651
13652 2017-03-09 Richard Biener <rguenther@suse.de>
13653
13654 PR ipa/79970
13655 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
13656 alignment of BLKmode params.
13657
13658 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13659
13660 PR target/79913
13661 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
13662 (VALL_NO_V2Q): Likewise.
13663 (VDQF_DF): Delete.
13664 * config/aarch64/aarch64-simd.md
13665 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
13666 iterator.
13667 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
13668 VALL_NO_V2Q mode iterator.
13669 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
13670
13671 2017-03-09 Martin Liska <mliska@suse.cz>
13672
13673 PR tree-optimization/79631
13674 * tree-chkp-opt.c (chkp_is_constant_addr): Call
13675 tree_int_cst_sign_bit just for INTEGER constants.
13676
13677 2017-03-09 Martin Liska <mliska@suse.cz>
13678
13679 PR target/65705
13680 PR target/69804
13681 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
13682 sanitizers.
13683
13684 2017-03-09 Marek Polacek <polacek@redhat.com>
13685
13686 PR c++/79672
13687 * tree.c (inchash::add_expr): Handle TREE_VEC.
13688
13689 2017-03-09 Martin Liska <mliska@suse.cz>
13690
13691 PR ipa/79764
13692 (chkp_narrow_size_and_offset): New function.
13693 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
13694 (void chkp_parse_bit_field_ref): New function.
13695 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
13696 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
13697
13698 2017-03-09 Martin Liska <mliska@suse.cz>
13699
13700 PR ipa/79761
13701 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
13702 (chkp_find_bounds_1): Remove gcc_unreachable.
13703
13704 2017-03-09 Jakub Jelinek <jakub@redhat.com>
13705
13706 PR sanitizer/79944
13707 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
13708 BUILT_IN_SYNC*, determine the access type from the size suffix and
13709 always build a MEM_REF with that type. Handle forgotten
13710 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
13711
13712 PR target/79932
13713 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
13714 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
13715 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
13716 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
13717 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
13718 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
13719 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
13720 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
13721 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
13722 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
13723 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
13724 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
13725 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
13726 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
13727 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
13728 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
13729 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
13730 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
13731 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
13732 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
13733 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
13734 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
13735 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
13736 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
13737 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
13738 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
13739 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
13740 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
13741 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
13742 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
13743 definitions outside of __OPTIMIZE__ guarded section.
13744
13745 PR target/79932
13746 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
13747 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
13748 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
13749 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
13750 guarded section.
13751
13752 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13753
13754 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
13755 ("vfenez<mode>"): Add missing constraints.
13756
13757 2017-03-08 Martin Sebor <msebor@redhat.com>
13758
13759 PR target/79928
13760 * config/nds32/nds32.c (nds32_option_override):
13761 Fix misspelled diagnostic.
13762
13763 2017-03-08 Jakub Jelinek <jakub@redhat.com>
13764
13765 PR c/79940
13766 * gimplify.c (gimplify_omp_for): Replace index var in outer
13767 taskloop statement with an artificial variable and add
13768 OMP_CLAUSE_PRIVATE clause for it.
13769
13770 2017-03-08 Richard Biener <rguenther@suse.de>
13771
13772 PR tree-optimization/79955
13773 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
13774 for accesses that are completely outside of the variable.
13775
13776 2017-03-08 Andrew Haley <aph@redhat.com>
13777
13778 PR tree-optimization/79943
13779 * tree-ssa-loop-split.c (compute_new_first_bound): When
13780 calculating the new upper bound, (END-BEG) should be added, not
13781 subtracted.
13782
13783 2017-03-08 Jakub Jelinek <jakub@redhat.com>
13784
13785 * config/avr/avr.md (setmemhi): Make sure match_dup
13786 operand number comes before match_scratch.
13787
13788 2017-03-08 Richard Biener <rguenther@suse.de>
13789
13790 PR tree-optimization/79920
13791 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
13792 with ncopies == 1 to ...
13793 (vect_transform_slp_perm_load): ... here. Properly compute
13794 all element loads by iterating VF times over the group. Do
13795 not handle ncopies (computed in a broken way) in
13796 vect_create_mask_and_perm.
13797
13798 2017-03-08 Jakub Jelinek <jakub@redhat.com>
13799
13800 PR sanitizer/79904
13801 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
13802 is a uniform vector, use uniform_vector_p return value instead of
13803 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
13804
13805 2017-03-07 Marek Polacek <polacek@redhat.com>
13806
13807 PR middle-end/79809
13808 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
13809 (alloca_call_type): Likewise.
13810
13811 2017-03-07 Martin Liska <mliska@suse.cz>
13812
13813 * gcov.c (process_args): Put comment to correct location.
13814
13815 2017-03-07 Martin Liska <mliska@suse.cz>
13816
13817 PR middle-end/68270
13818 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
13819 Use array_at_struct_end_p instead of DECL_CHAIN (field).
13820 (chkp_narrow_bounds_for_field): Likewise.
13821 (chkp_parse_array_and_component_ref): Pass one more argument to
13822 call.
13823
13824 2017-03-07 Richard Biener <rguenther@suse.de>
13825
13826 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
13827 preheaders.
13828
13829 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
13830
13831 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
13832 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
13833
13834 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13835
13836 PR c/79855
13837 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
13838 to end of description.
13839 (PARAM_MAX_STORES_TO_MERGE): Likewise.
13840
13841 2017-03-07 Jakub Jelinek <jakub@redhat.com>
13842
13843 PR rtl-optimization/79901
13844 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
13845 ...
13846 (*avx512f_<code><mode>3<mask_name>): ... this.
13847 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
13848 iterator instead of VI8_AVX2_AVX512BW.
13849
13850 PR rtl-optimization/79901
13851 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
13852 min/max expander, expand it using expand_vec_cond_expr.
13853
13854 PR sanitizer/79897
13855 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
13856 temporary.
13857
13858 2017-03-06 Jakub Jelinek <jakub@redhat.com>
13859
13860 PR c++/79821
13861 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
13862 to void * for PCH reasons.
13863 * dwarf2out.c (output_loc_operands, output_die): Cast
13864 v.val_vec.array to unsigned char *.
13865
13866 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
13867
13868 PR target/77850
13869 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
13870 vector types.
13871
13872 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
13873
13874 PR rtl-optimization/79571
13875 * lra-constraints.c (process_alt_operands): Calculate static
13876 reject and subtract it from overall when only addresses will be
13877 reloaded.
13878
13879 2017-03-06 Julia Koval <julia.koval@intel.com>
13880
13881 PR target/79793
13882 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
13883 incoming stack boundary to 128 for 64-bit targets.
13884
13885 2017-03-06 Richard Biener <rguenther@suse.de>
13886
13887 PR tree-optimization/79894
13888 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
13889 to NULL after folding it.
13890
13891 2017-03-06 Richard Biener <rguenther@suse.de>
13892
13893 PR tree-optimization/79824
13894 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
13895 check disabling peeling for gaps.
13896
13897 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
13898
13899 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
13900 attributes): Document gettimeofday.
13901
13902 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
13903
13904 * config/s390/s390.c (s390_option_override_internal): Set
13905 PARAM_MIN_VECT_LOOP_BOUND
13906
13907 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
13908
13909 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
13910 * config/s390/s390.md: Likewise.
13911
13912 2017-03-06 Jakub Jelinek <jakub@redhat.com>
13913
13914 PR target/79812
13915 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
13916 (<avx2_avx512>_perm<mode>): Rename to ...
13917 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
13918 of VI8F_256_512.
13919 (<avx512>_perm<mode>_mask): Rename to ...
13920 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
13921 of VI8F_256_512.
13922 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
13923 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
13924 instead of VI8F_256_512.
13925 (avx512f_perm<mode>): New define_expand.
13926 (avx512f_perm<mode>_mask): Likewise.
13927 (avx512f_perm<mode>_1<mask_name>): New define_insn.
13928 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
13929
13930 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
13931
13932 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
13933 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
13934 if_then_else.
13935 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
13936
13937 2017-03-06 Martin Liska <mliska@suse.cz>
13938
13939 PR sanitize/79783
13940 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
13941 when having a SSA NAME w/o VAR_DECL assigned to it.
13942
13943 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
13944
13945 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
13946 msa_dpsub_<su>_d): Fix MODE for vec_select.
13947
13948 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
13949
13950 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
13951 argument.
13952 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
13953
13954 2017-03-06 Richard Biener <rguenther@suse.de>
13955
13956 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
13957 * plugin.c (register_plugin_info): Likewise.
13958 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
13959
13960 2017-03-05 Jakub Jelinek <jakub@redhat.com>
13961
13962 * config/i386/sse.md (sse_storehps, sse_storelps,
13963 avx_<castmode><avxsizesuffix>_<castmode>,
13964 avx512f_<castmode><avxsizesuffix>_<castmode>,
13965 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
13966 in condition that at least one operand is not a MEM.
13967
13968 2017-03-03 Jakub Jelinek <jakub@redhat.com>
13969
13970 PR middle-end/79805
13971 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
13972 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
13973 ECF_NOTHROW.
13974 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
13975 gimple_call_nothrow_p flag based on whether original builtin can throw.
13976 If it can, emit following stmts on the fallthrough edge.
13977 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
13978 don't create new bb if inserting just debug stmts on the edge, try to
13979 insert them on the fallthru bb or just reset debug stmts.
13980
13981 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
13982
13983 PR target/43763
13984 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
13985 restore recog_data (including the operand rtxes inside it) around
13986 the call to get_insn_template.
13987
13988 2017-03-03 Martin Sebor <msebor@redhat.com>
13989
13990 PR tree-optimization/79699
13991 * context.c (context::~context): Free MPFR caches to avoid
13992 a memory leak on program exit.
13993
13994 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13995
13996 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
13997 Use wide_int::ulow () instead of .elt (0).
13998
13999 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
14000
14001 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
14002 (*pushxf): Limit oF constraint to 32bit targets and add oC
14003 constraint for 64bit targets.
14004 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
14005 (*pushdf): Change rmF constraint to rmC.
14006
14007 2017-03-03 Martin Liska <mliska@suse.cz>
14008
14009 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
14010 Remove unused variable.
14011
14012 2017-03-03 Jakub Jelinek <jakub@redhat.com>
14013
14014 PR target/79807
14015 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
14016 is a memory operand, increase num_memory.
14017 (ix86_expand_args_builtin): Likewise.
14018
14019 2017-03-03 Jan Hubicka <jh@suse.cz>
14020
14021 PR lto/79760
14022 * ipa-devirt.c (maybe_record_node): Properly handle
14023 __cxa_pure_virtual visibility.
14024
14025 2017-03-03 Martin Liska <mliska@suse.cz>
14026
14027 PR tree-optimization/79803
14028 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
14029 assert.
14030 (pass_loop_prefetch::execute): Disabled optimization if an
14031 assumption about L1 cache size is not met.
14032
14033 2017-03-03 Martin Liska <mliska@suse.cz>
14034
14035 PR rtl-optimization/79574
14036 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
14037 (hash_scan_set): Likewise.
14038 (dump_hash_table): Likewise.
14039 (hoist_code): Likewise.
14040
14041 2017-03-03 Richard Biener <rguenther@suse.de>
14042
14043 * fixed-value.c (fixed_from_string): Restore use of elt (1)
14044 in place of uhigh ().
14045 (fixed_convert_from_real): Likewise.
14046
14047 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
14048
14049 PR target/79514
14050 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
14051
14052 2017-03-03 Richard Biener <rguenther@suse.de>
14053
14054 PR middle-end/79818
14055 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
14056 TYPE_OVERFLOW_UNDEFINED check.
14057
14058 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14059
14060 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
14061 numbers.
14062 (vector_ae_<mode>_p): Likewise.
14063 (vector_nez_<mode>_p): Likewise.
14064 (vector_ne_v2di_p): Likewise.
14065 (vector_ae_v2di_p): Likewise.
14066 (vector_ne_<mode>_p): Likewise.
14067 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
14068 numbers.
14069 (vsx_tsqrt<mode>2_fe): Likewise.
14070
14071 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
14072
14073 PR target/79514
14074 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
14075
14076 2017-03-02 Jakub Jelinek <jakub@redhat.com>
14077
14078 PR rtl-optimization/79780
14079 * cprop.c (one_cprop_pass): When second and further conditional trap
14080 in a single basic block is turned into an unconditional trap, turn it
14081 into a deleted note to avoid RTL verification failures.
14082
14083 2017-03-02 Richard Biener <rguenther@suse.de>
14084
14085 * fold-const.c (const_binop): Use ulow () instead of elt (0).
14086
14087 2017-03-02 Richard Biener <rguenther@suse.de>
14088
14089 PR tree-optimization/79345
14090 PR c++/42000
14091 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
14092 param and abort the walk, returning -1 if it is hit.
14093 (walk_aliased_vdefs): Take a limit param and pass it on.
14094 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
14095 defaulting to 0 and return a signed int.
14096 * tree-ssa-uninit.c (struct check_defs_data): New struct.
14097 (check_defs): New helper.
14098 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
14099 about uninitialized memory.
14100 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
14101 bogus uninitialized warning.
14102 (fixed_convert_from_real): Likewise.
14103
14104 2017-03-02 Bin Cheng <bin.cheng@arm.com>
14105
14106 PR tree-optimization/66768
14107 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
14108 iv_use if base object can't be determined.
14109
14110 2017-03-02 Jakub Jelinek <jakub@redhat.com>
14111
14112 PR tree-optimization/79345
14113 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
14114 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
14115 (get_pattern_stats): Initialize it.
14116 * genemit.c (gen_expand): Verify match_scratch numbers come after
14117 match_operand/match_dup numbers.
14118 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
14119 match_scratch numbers.
14120 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
14121 Likewise.
14122 * config/s390/s390.md (trunctdsd2): Likewise.
14123
14124 2017-03-02 Richard Biener <rguenther@suse.de>
14125
14126 * wide-int.h (wide_int_storage::operator=): Implement in terms
14127 of wi::copy.
14128
14129 2017-03-02 Richard Biener <rguenther@suse.de>
14130
14131 PR tree-optimization/79777
14132 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
14133 the to insert expression to sth existing.
14134
14135 2017-03-01 Martin Sebor <msebor@redhat.com>
14136
14137 PR middle-end/79692
14138 * gimple-ssa-sprintf.c
14139 (directive::known_width_and_precision): New function.
14140 (format_integer): Use it.
14141 (get_mpfr_format_length): Consider the full range of precision
14142 when computing %g output with the # flag. Set the likely byte
14143 count to 3 rather than 1 when precision is indeterminate.
14144 (format_floating): Correct the lower bound of precision.
14145
14146 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14147
14148 * doc/invoke.texi: Document default code model for 64-bit Linux.
14149
14150 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14151
14152 PR target/79752
14153 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
14154 udiv rather than div since input pattern is unsigned.
14155
14156 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
14157
14158 * config/i386/i386.c (print_reg): Warn for values of
14159 unsupported size in integer register.
14160
14161 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14162
14163 PR target/79439
14164 * config/rs6000/predicates.md (current_file_function_operand): Do
14165 not allow self calls to be local if the function is replaceable.
14166
14167 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
14168
14169 PR target/79395
14170 * config/rs6000/altivec.h (vec_ctz and others): Change the
14171 preprocessor macro that controls conditional compilation from
14172 _ARCH_PWR9 to __POWER9_VECTOR__.
14173 (vec_all_ne): Change parameterization of __altivec_scalar_pred
14174 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
14175 control (instead of _ARCH_PWR9 control) so that template
14176 definition uses power9-specific function.
14177 (vec_any_eq): Likewise.
14178 (vec_all_ne): Change macro definition to use a power9-specific
14179 expansion under #ifdef __POWER9_VECTOR__ control (instead of
14180 _ARCH_PWR9 control).
14181 (vec_any_eq) Likewise.
14182 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
14183 expansion for CMPNEF to remove support for xvcmpnesp instruction.
14184 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
14185 support for xvcmpnedp instruction.
14186 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
14187 macro expansion so that Power9 implementation of vec_all_ne does
14188 not use the AltiVec predicate framework.
14189 (VCMPNEH_P): Likewise.
14190 (VCMPNEW_P): Likewise.
14191 (VCMPNED_P): Likewise.
14192 (VCMPNEFP_P): Likewise.
14193 (VCMPNEDP_P): Likewise.
14194 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
14195 implementation of vec_any_eq to not use AltiVec predicate
14196 framework.
14197 (VCMPAEH_P): Likewise.
14198 (VCMPAEW_P): Likewise.
14199 (VCMPAED_P): Likewise.
14200 (VCMPAEFP_P): Likewise.
14201 (VCMPAEDP_P): Likewise.
14202 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
14203 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
14204 not use the AltiVec predicate framework.
14205 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
14206 of vec_any_eq to not use AltiVec predicate framework.
14207 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
14208 support for predefined __POWER9_VECTOR__ macro to indicate that
14209 Power9 instruction selection is enabled.
14210 (altivec_overloaded_builtins): Remove extraneous
14211 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
14212 function argument types RS6000_BTI_bool_V16QI and
14213 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
14214 entry for overloaded function argument types RS6000_BTI_bool_V4SI
14215 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
14216 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
14217 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
14218 Power9 for implementations of vec_cmpne. Change the signature for
14219 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
14220 (representing vec_all_ne) to remove the previously described first
14221 argument of type RS6000_BTI_INTSI, as this was an artifact of
14222 reliance on the AltiVec predicate framework, which is no longer
14223 used in the implementation of these functions. Add
14224 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
14225 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
14226 since, unlike the AltiVec predicate framework implementation, we
14227 do not share function descriptors between vec_alle and vec_anyeq.
14228 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
14229 set of modes that receive special treatment even when
14230 TARGET_P9_VECTOR is true. The special treatment emits code that
14231 does not depend on Power9 instructions.
14232 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
14233 define_expand to not rely on AltiVec predicate framework.
14234 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
14235 function.
14236 (vector_ne_v2di_p): Change this define_expand to not rely on
14237 AltiVec predicate framework.
14238 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
14239 function.
14240 (vector_ne_<mode>_p): Change this define_expand to not rely on
14241 AltiVec predicate framework.
14242 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
14243 function.
14244 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
14245 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
14246 define_insn pattern.
14247 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
14248 define_insn pattern because the xvcmpne<VSs>. instruction is not
14249 supported.
14250 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
14251 instruction is not supported.
14252
14253 2017-03-01 Jakub Jelinek <jakub@redhat.com>
14254
14255 * config/nvptx/nvptx.c: Include intl.h.
14256
14257 2017-03-01 Martin Jambor <mjambor@suse.cz>
14258
14259 PR lto/78140
14260 * ipa-prop.h (ipa_bits): Removed field known.
14261 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
14262 to pointers. Adjusted their comments to warn about their sharing.
14263 (ipcp_transformation_summary): Change bits to a vector of pointers.
14264 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
14265 (ipa_get_ipa_bits_for_value): Declare.
14266 * tree-vrp.h (value_range): Mark as GTY((for_user)).
14267 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
14268 (ipa_bits_hash_table): Likewise.
14269 (ipa_vr_ggc_hash_traits): Likewise.
14270 (ipa_vr_hash_table): Likewise.
14271 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
14272 being pointers and vr_known being removed.
14273 (ipa_set_jf_unknown): Likewise.
14274 (ipa_get_ipa_bits_for_value): New function.
14275 (ipa_set_jfunc_bits): Likewise.
14276 (ipa_get_value_range): New overloaded functions.
14277 (ipa_set_jfunc_vr): Likewise.
14278 (ipa_compute_jump_functions_for_edge): Use the above functions to
14279 construct bits and vr parts of jump functions.
14280 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
14281 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
14282 exist.
14283 (ipcp_grow_transformations_if_necessary): Also allocate
14284 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
14285 exist.
14286 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
14287 them. Fix too long lines.
14288 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
14289 vr_known being removed.
14290 (ipa_read_jump_function): Use new setter functions to construct bits
14291 and vr parts of jump functions or set them to NULL.
14292 (write_ipcp_transformation_info): Adjust for bits being pointers.
14293 (read_ipcp_transformation_info): Likewise.
14294 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
14295 space.
14296 Include gt-ipa-prop.h.
14297 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
14298 being pointers.
14299 (ipcp_store_bits_results): Likewise.
14300 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
14301 Do not write to existing jump functions but use a temporary instead.
14302
14303 2017-03-01 Jakub Jelinek <jakub@redhat.com>
14304
14305 PR c++/79681
14306 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
14307 attempt to use its first operand as BIT_FIELD_REF base.
14308
14309 2017-03-01 Richard Biener <rguenther@suse.de>
14310
14311 PR middle-end/79721
14312 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
14313 interpolating formula in wrapping arithmetic.
14314 (chrec_apply): Convert chrec_evaluate return value to wanted type.
14315
14316 2017-03-01 Jakub Jelinek <jakub@redhat.com>
14317
14318 PR tree-optimization/79734
14319 * tree-vect-generic.c (expand_vector_condition): Optimize
14320 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
14321 Handle VEC_COND_EXPR where comparison has different inner width from
14322 type's inner width.
14323
14324 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
14325
14326 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
14327 markup, and similar issues. Remove @opindex entries for things
14328 that aren't options. Add missing -mmpy-option entries.
14329
14330 2017-02-28 Jakub Jelinek <jakub@redhat.com>
14331
14332 PR tree-optimization/79737
14333 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
14334 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
14335 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
14336 instead of byte_size. Formatting fix.
14337 (shift_bytes_in_array_right): Formatting fix.
14338
14339 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
14340
14341 PR target/79749
14342 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
14343 condition on optimize for the leaf function test.
14344
14345 2017-02-28 Martin Liska <mliska@suse.cz>
14346
14347 PR lto/79625
14348 * read-rtl-function.c (function_reader::handle_unknown_directive):
14349 Bail out when one uses -flto.
14350
14351 2017-02-28 Martin Liska <mliska@suse.cz>
14352
14353 * common.opt: Replace space with tabular for options of <number>
14354 type.
14355 * config/i386/i386.opt: Show <number> value for
14356 -mlarge-data-threshold.
14357 * opts.c (print_filtered_help): Do not display number in hexadecimal
14358 format.
14359
14360 2017-02-28 Martin Liska <mliska@suse.cz>
14361
14362 * common.opt: Fix --help=option -Q for options which are of
14363 an enum type.
14364
14365 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
14366
14367 * config/i386/i386.c (print_reg): Error out for values
14368 of 8-bit size in invalid integer register.
14369
14370 2017-02-28 Martin Sebor <msebor@redhat.com>
14371
14372 PR tree-optimization/79691
14373 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
14374
14375 2017-02-28 Jakub Jelinek <jakub@redhat.com>
14376
14377 PR target/79729
14378 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
14379 gcc_unreachable with output_operand_lossage.
14380
14381 2017-02-28 Richard Biener <rguenther@suse.de>
14382
14383 PR tree-optimization/79740
14384 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
14385 inserts.
14386 (visit_nary_op): Insert the nary into the hashtable if we
14387 pattern-matched sth.
14388 * tree-ssa-pre.c (eliminate_insert): Robustify.
14389
14390 2017-02-28 Richard Biener <rguenther@suse.de>
14391
14392 PR middle-end/79731
14393 * fold-const.c (decode_field_reference): Reject out-of-bound
14394 accesses.
14395
14396 2017-02-28 Jakub Jelinek <jakub@redhat.com>
14397
14398 * config/i386/i386.c: Include intl.h.
14399 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
14400 instead of just cond ? "..." : "...".
14401 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
14402 * coverage.c (read_counts_file): Likewise.
14403 * omp-offload.c: Include intl.h.
14404 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
14405 of just cond ? "..." : "...".
14406 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
14407 of just cond ? "..." : "...".
14408
14409 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
14410
14411 PR target/79742
14412 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
14413 entry, if present.
14414 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
14415 'tune for' CPU name.
14416 * config/arm/arm-cpu-data.h: Regenerated.
14417
14418 2017-02-28 Richard Biener <rguenther@suse.de>
14419
14420 PR tree-optimization/79732
14421 * tree-inline.c (expand_call_inline): Do not shadow var.
14422
14423 2017-02-28 Richard Biener <rguenther@suse.de>
14424
14425 PR tree-optimization/79723
14426 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
14427 address-space properly.
14428
14429 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
14430
14431 * doc/optinfo.texi (Optimization groups): Fix option used for
14432 OPTGROUP_ALL.
14433 * doc/invoke.texi (-fopt-info): Document "omp".
14434 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
14435 (OPTGROUP_ALL): Add OPTGROUP_OMP.
14436 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
14437 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
14438 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
14439
14440 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
14441 all users.
14442 * dumpfile.c (optgroup_options): Instead of "openmp", associate
14443 OPTGROUP_OMP with "omp".
14444
14445 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
14446
14447 PR target/79544
14448 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
14449 for arithmetic shift of unsigned V2DI.
14450
14451 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
14452
14453 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
14454 arc/linux.h headers.
14455 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
14456 (LINK_SPEC): Likewise.
14457 (ARC_TLS_EXTRA_START_SPEC): Likewise.
14458 (EXTRA_SPECS): Likewise.
14459 (STARTFILE_SPEC): Likewise.
14460 (ENDFILE_SPEC): Likewise.
14461 (LIB_SPEC): Likewise.
14462 (TARGET_SDATA_DEFAULT): Likewise.
14463 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
14464 (MULTILIB_DEFAULTS): Likewise.
14465 (DWARF2_UNWIND_INFO): Likewise.
14466 * config/arc/big.h: New file.
14467 * config/arc/elf.h: Likewise.
14468 * config/arc/linux.h: Likewise.
14469 * config/arc/t-uClibc: Remove.
14470
14471 2017-02-27 Bin Cheng <bin.cheng@arm.com>
14472
14473 PR tree-optimization/77536
14474 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
14475 (tree_transform_and_unroll_loop): Use above function to compute the
14476 estimated niter of unrolled loop and use it when scaling profile.
14477 Also use count info rather than frequency if it's non-zero.
14478 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
14479 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
14480 (vect_transform_loop): Call above function.
14481
14482 2017-02-27 Richard Biener <rguenther@suse.de>
14483
14484 PR tree-optimization/45397
14485 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
14486 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
14487 (visit_nary_op): Add pattern matching for CSEing sign-changed
14488 or truncated operations with wider ones.
14489
14490 2017-02-27 Richard Biener <rguenther@suse.de>
14491
14492 PR tree-optimization/79690
14493 * tree-vect-stmts.c (vectorizable_store): Use vector type
14494 built from the DR with address-space.
14495
14496 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14497
14498 * doc/invoke.texi (Optimize Options): Refine the description
14499 of asan-use-after-return.
14500
14501 2017-02-25 Alan Modra <amodra@gmail.com>
14502
14503 PR rtl-optimization/79584
14504 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
14505 base, not ad->base_term, the reg within base. Remove assertion
14506 that ad->base == ad->base_term. Replace gen_int_mode using
14507 bogus mode with const0_rtx.
14508
14509 2017-02-25 Jakub Jelinek <jakub@redhat.com>
14510
14511 PR middle-end/79396
14512 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
14513 FMA_EXPR like tcc_binary or tcc_unary.
14514
14515 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
14516
14517 PR debug/77589
14518 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
14519 bitfield.
14520 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
14521 (output_loc_operands): Handle DW_OP_call_ref and
14522 DW_OP_GNU_variable_value.
14523 (struct variable_value_struct): New type.
14524 (struct variable_value_hasher): Likewise.
14525 (variable_value_hash): New variable.
14526 (string_types): Remove.
14527 (copy_loc_descr): New function.
14528 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
14529 (prepend_loc_descr_to_each): New function.
14530 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
14531 instead of add_loc_descr_to_each if the first argument is single
14532 location list and the second has multiple.
14533 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
14534 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
14535 when looking for variable value which doesn't have other location info.
14536 (loc_list_from_tree): Formatting fix.
14537 (gen_array_type_die): Simplify DW_AT_string_length handling.
14538 (adjust_string_types): Remove.
14539 (gen_subprogram_die): Don't call adjust_string_types nor test/set
14540 string_types. Call resolve_variable_values.
14541 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
14542 (resolve_addr_in_expr): Likewise. Add A argument.
14543 (copy_deref_exprloc): Remove deref argument. Adjust for the
14544 original expression being DW_OP_GNU_variable_value with optionally
14545 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
14546 optionally after it.
14547 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
14548 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
14549 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
14550 (variable_value_hasher::hash, variable_value_hasher::equal): New
14551 methods.
14552 (resolve_variable_value_in_expr, resolve_variable_value,
14553 resolve_variable_values, note_variable_value_in_expr,
14554 note_variable_value): New functions.
14555 (dwarf2out_early_finish): Call note_variable_value on all toplevel
14556 DIEs.
14557
14558 2017-02-24 Jakub Jelinek <jakub@redhat.com>
14559
14560 PR c/79677
14561 * opts.h (handle_generated_option): Add GENERATED_P argument.
14562 * opts-common.c (handle_option): Adjust function comment.
14563 (handle_generated_option): Add GENERATED_P argument, pass it to
14564 handle_option.
14565 (control_warning_option): Pass false to handle_generated_option
14566 GENERATED_P.
14567 * opts.c (maybe_default_option): Pass true to handle_generated_option
14568 GENERATED_P.
14569 * optc-gen.awk: Likewise.
14570
14571 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
14572
14573 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
14574 a REG, look at the REG it is a SUBREG of.
14575 (splitter for cmpeqsi_t): Ditto.
14576
14577 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
14578
14579 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
14580 the special USEs with the pattern of the insn, not the insn itself.
14581
14582 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
14583
14584 PR target/79473
14585 * doc/invoke.texi: Document -mload-store-pairs.
14586
14587 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
14588 Sandra Loosemore <sandra@codesourcery.com>
14589
14590 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
14591 argument isn't a CONST_INT.
14592 (nios2_alternate_compare_const): Assert op is a CONST_INT.
14593 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
14594 (nios2_validate_compare): Bypass alternate compare logic if *op2
14595 is not a CONST_INT.
14596 (ldstwm_operation_p): Return false if first_base is not a REG or
14597 if first_offset is not a CONST_INT.
14598
14599 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
14600
14601 * config/cris/cris.md: Use correct operand in a define_peephole2.
14602
14603 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
14604
14605 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
14606
14607 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
14608
14609 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
14610 this_insn if it is an INSN or JUMP_INSN.
14611 (force_offsettable): Look at base, not at addr.
14612 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
14613 on things that aren't necessarily CONST_INTs.
14614
14615 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
14616
14617 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
14618 -mfpmath=sse is the default also for x86-32 targets with SSE2
14619 instruction set when @option{-ffast-math} is enabled
14620
14621 2017-02-24 Jeff Law <law@redhat.com>
14622
14623 PR rtl-optimizatoin/79286
14624 * ira.c (update_equiv_regs): Drop may_trap_p exception to
14625 dominance test.
14626
14627 2017-02-24 Richard Biener <rguenther@suse.de>
14628
14629 PR tree-optimization/79389
14630 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
14631 debug insns.
14632
14633 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
14634
14635 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
14636 function comment to reflect reality.
14637 (loop_exits_before_overflow): Fix typo in function description.
14638
14639 2017-02-24 Richard Biener <rguenther@suse.de>
14640
14641 PR tree-optimization/79389
14642 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
14643 properly that a threading opportunity exists. Detect conditional
14644 copy/constant propagation opportunities.
14645
14646 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
14647
14648 * config/visium/visium.md (type): Add trap.
14649 (b): New mode attribute.
14650 (*btst): Rename into...
14651 (*btst<mode>): ...this and adjust.
14652 (*cbranchsi4_btst_insn): Rename into...
14653 (*cbranch<mode>4_btst_insn): ...this and adjust.
14654 (trap): New define_insn.
14655
14656 2017-02-23 Jakub Jelinek <jakub@redhat.com>
14657
14658 PR tree-optimization/79389
14659 * ifcvt.c (struct noce_if_info): Add rev_cond field.
14660 (noce_reversed_cond_code): New function.
14661 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
14662 reversed_comparison_code. Formatting fix.
14663 (noce_try_store_flag): Test rev_cond != NULL in addition to
14664 reversed_comparison_code.
14665 (noce_try_store_flag_constants): Likewise.
14666 (noce_try_store_flag_mask): Likewise.
14667 (noce_try_addcc): Use rev_cond if non-NULL instead of
14668 reversed_comparison_code.
14669 (noce_try_cmove_arith): Likewise. Formatting fixes.
14670 (noce_try_minmax, noce_try_abs): Clear rev_cond.
14671 (noce_find_if_block): Initialize rev_cond.
14672 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
14673 instead of false as last argument never attempt to reverse it
14674 afterwards.
14675
14676 2017-02-23 Bin Cheng <bin.cheng@arm.com>
14677
14678 PR tree-optimization/79663
14679 * tree-predcom.c (combine_chains): Process refs in reverse order
14680 only for ZERO length chains, and add explaining comment.
14681
14682 2017-02-23 Jeff Law <law@redhat.com>
14683
14684 PR tree-optimization/79578
14685 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
14686 in call to operand_equal_p.
14687
14688 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
14689
14690 PR target/71017
14691 * config/i386/cpuid.h: Fix another undefined behavior.
14692
14693 2017-02-23 Richard Biener <rguenther@suse.de>
14694
14695 PR tree-optimization/79683
14696 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
14697 vector types for data-refs.
14698
14699 2017-02-23 Martin Liska <mliska@suse.cz>
14700
14701 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
14702
14703 2017-02-23 Jakub Jelinek <jakub@redhat.com>
14704
14705 PR middle-end/79665
14706 * internal-fn.c (get_range_pos_neg): Moved to ...
14707 * tree.c (get_range_pos_neg): ... here. No longer static.
14708 * tree.h (get_range_pos_neg): New prototype.
14709 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
14710 are known to be in between 0 and signed maximum inclusive, try to
14711 expand both unsigned and signed divmod and use the cheaper one from
14712 those.
14713
14714 2017-02-22 Jeff Law <law@redhat.com>
14715
14716 PR tree-optimization/79578
14717 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
14718 to compare base operands.
14719
14720 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
14721
14722 PR target/79211
14723 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
14724 gpc_reg_operand instead of fpr_reg_operand.
14725
14726 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
14727
14728 * config/mips/mips.c (mips_return_in_memory): Force FP
14729 vector types to be returned in memory for o32 ABI.
14730
14731 2017-02-22 Jakub Jelinek <jakub@redhat.com>
14732
14733 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
14734 instead of DW_TAG_member for static data member declarations and don't
14735 set no_linkage_name for static inline data members.
14736 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
14737 to DW_TAG_member.
14738
14739 2017-02-22 Martin Liska <mliska@suse.cz>
14740
14741 * doc/invoke.texi: Replace inequality signs with square brackets
14742 for -Wnormalized.
14743
14744 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14745
14746 PR tree-optimization/68644
14747 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
14748
14749 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
14750
14751 PR target/78660
14752 * lra-constraints.c (simplify_operand_subreg): Handle
14753 WORD_REGISTER_OPERATIONS targets.
14754
14755 2017-02-22 Jakub Jelinek <jakub@redhat.com>
14756
14757 PR target/70465
14758 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
14759 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
14760 elimination by swapping fld*.
14761
14762 2017-02-22 Richard Biener <rguenther@suse.de>
14763
14764 PR tree-optimization/79673
14765 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
14766 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
14767 irrelevant address-space qualifiers and avoiding a
14768 ADDR_SPACE_CONVERT_EXPR from fold_convert.
14769
14770 2017-02-22 Richard Biener <rguenther@suse.de>
14771
14772 PR tree-optimization/79666
14773 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
14774 to not symbolically negate if that may introduce undefined
14775 overflow.
14776
14777 2017-02-22 Martin Liska <mliska@suse.cz>
14778
14779 PR lto/79587
14780 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
14781 * data-streamer-out.c (streamer_write_gcov_count_stream):
14782 Likewise.
14783 * value-prof.c (stream_out_histogram_value): Make assert more
14784 precise based on type of counter.
14785
14786 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
14787
14788 PR target/79593
14789 * config/i386/i386.md (standard_x87sse_constant_load splitter):
14790 Use nonimmediate_operand instead of memory_operand for operand 1.
14791 (float-extend standard_x87sse_constant_load splitter): Ditto.
14792
14793 2017-02-21 Jeff Law <law@redhat.com>
14794
14795 PR tree-optimization/79621
14796 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
14797 blocks with edges to themselves.
14798
14799 2017-02-21 Jakub Jelinek <jakub@redhat.com>
14800
14801 PR target/79633
14802 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
14803 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
14804 Use gimple_call_builtin_p.
14805
14806 PR target/79570
14807 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
14808 on temporarily removed DEBUG_INSNs.
14809
14810 PR tree-optimization/79649
14811 * tree-loop-distribution.c (classify_partition): Give up on
14812 non-generic address space loads/stores.
14813
14814 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
14815
14816 * doc/loop.texi (Loop manipulation): Remove nonexistent
14817 tree_ssa_loop_version from the documentation.
14818 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
14819
14820 2017-02-21 Jakub Jelinek <jakub@redhat.com>
14821
14822 PR target/79494
14823 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
14824 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
14825 * config/rs6000/rs6000.c: Include except.h.
14826 (rs6000_expand_split_stack_prologue): Call
14827 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
14828
14829 2017-02-21 Martin Jambor <mjambor@suse.cz>
14830
14831 PR lto/79579
14832 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
14833 have been analyzed.
14834
14835 2017-02-21 Martin Jambor <mjambor@suse.cz>
14836
14837 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
14838 for backward compatibility only.
14839 * doc/invoke.texi (Option Summary): Remove all references to
14840 -fipa-cp-alignment.
14841
14842 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
14843
14844 PR target/78660
14845 Revert:
14846 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
14847
14848 * lra-constraints.c (curr_insn_transform): Handle
14849 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
14850
14851 2017-02-21 Martin Liska <mliska@suse.cz>
14852
14853 * config/i386/i386.opt: Replace -masm-dialect with -masm.
14854
14855 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
14856
14857 PR translation/79638
14858 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
14859
14860 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
14861
14862 PR ada/67205
14863 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
14864 (arm_function_ok_for_sibcall): Return false for an indirect call by
14865 descriptor if all the argument registers are used.
14866 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
14867 alignment of the function.
14868
14869 2017-02-21 Jakub Jelinek <jakub@redhat.com>
14870
14871 PR tree-optimization/61441
14872 * simplify-rtx.c (simplify_const_unary_operation): For
14873 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
14874 the sNaN unmodified.
14875
14876 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14877
14878 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
14879 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
14880 instead of SYSTEM_HEADER_DIR.
14881
14882 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
14883 Martin Liška <mliska@suse.cz>
14884
14885 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
14886 Fix typos and grammar, use active voice, and clarify.
14887
14888 2017-02-20 Marek Polacek <polacek@redhat.com>
14889
14890 PR middle-end/79537
14891 * gimplify.c (gimplify_expr): Handle unused *&&L;.
14892
14893 PR sanitizer/79558
14894 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
14895
14896 2017-02-20 Jakub Jelinek <jakub@redhat.com>
14897
14898 PR target/79568
14899 * config/i386/i386.c (ix86_expand_builtin): Handle
14900 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
14901 ix86_builtins_isa[fcode].isa as a requirement of those
14902 flags and any other flag in the bitmask.
14903 (ix86_init_mmx_sse_builtins): Use 0 instead of
14904 ~OPTION_MASK_ISA_64BIT as mask.
14905 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
14906 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
14907 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
14908 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
14909
14910 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
14911
14912 PR target/78012
14913 * lra-constraints.c (split_reg): Check requested split mode
14914 is supported by the register.
14915
14916 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
14917
14918 * lra-constraints.c (simplify_operand_subreg): Remove early
14919 return false.
14920
14921 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
14922
14923 PR target/78660
14924 * lra-constraints.c (curr_insn_transform): Tighten condition
14925 for converting SUBREG reloads from OP_OUT to OP_INOUT.
14926
14927 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
14928
14929 PR target/78660
14930 * lra-constraints.c (curr_insn_transform): Handle
14931 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
14932
14933 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
14934
14935 Revert:
14936 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
14937
14938 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
14939
14940 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
14941
14942 PR c++/69523
14943 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
14944 description.
14945
14946 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14947
14948 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
14949 for FMA_EXPR.
14950
14951 2017-02-18 Jakub Jelinek <jakub@redhat.com>
14952
14953 * final.c (last_columnnum, override_columnnum): New variables.
14954 (final_start_function): Set last_columnnum, pass it to begin_prologue
14955 hook and pass 0 to dwarf2out_begin_prologue.
14956 (final_scan_insn): Update override_columnnum. Pass last_columnnum
14957 to source_line debug hook.
14958 (notice_source_line): Compute last_columnnum and for debug_column_info
14959 return true on column changes.
14960 * debug.h (struct gcc_debug_hooks): Add column argument to
14961 source_line and begin_prologue hooks.
14962 (debug_nothing_int_charstar_int_bool): Remove prototype.
14963 (debug_nothing_int_int_charstar,
14964 debug_nothing_int_int_charstar_int_bool): New prototypes.
14965 (dwarf2out_begin_prologue): Add column argument.
14966 * debug.c (do_nothing_debug_hooks): Adjust source_line and
14967 begin_prologue hooks.
14968 (debug_nothing_int_charstar_int_bool): Remove.
14969 (debug_nothing_int_int_charstar,
14970 debug_nothing_int_int_charstar_int_bool): New functions.
14971 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
14972 through to dwarf2out_source_line.
14973 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
14974 (dwarf2out_source_line): Add column argument, emit it if requested.
14975 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
14976 arguments.
14977 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
14978 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
14979 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
14980 through to dwarf2out_begin_prologue.
14981 (vmsdbgout_source_line): Add column argument, pass it through to
14982 dwarf2out_source_line.
14983 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
14984 dbxout_source_line caller.
14985 (dbxout_source_line): Add column argument.
14986
14987 * common.opt (gno-column-info, gcolumn-info): New options.
14988 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
14989 (check_die): Also test for multiple DW_AT_decl_column attributes.
14990 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
14991 DW_AT_decl_column if requested.
14992 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
14993 if requested.
14994 (gen_variable_die): Likewise.
14995 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
14996 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
14997
14998 PR target/79569
14999 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
15000 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
15001 (ix86_handle_option): Handle OPT_m3dnowa.
15002 * doc/invoke.texi (-m3dnowa): Document.
15003 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
15004 -m3dnowa instead of -m3dnow -march=athlon.
15005
15006 PR target/79559
15007 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
15008 instead of gcc_assert for K, r and R code checks. Formatting fixes.
15009
15010 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15011
15012 PR target/79261
15013 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
15014 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
15015 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
15016 generator for vsx_xxpermdi_<mode>_be.
15017 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
15018 force big-endian semantics.
15019 (vsx_xxpermdi_<mode>_be): New define_expand with same
15020 implementation as previous version of vsx_xxpermdi_<mode>.
15021
15022 2017-02-17 Jakub Jelinek <jakub@redhat.com>
15023
15024 PR tree-optimization/79327
15025 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
15026 variable, its initialization and use.
15027
15028 2017-02-17 Julia Koval <julia.koval@intel.com>
15029
15030 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
15031 (OPTION_MASK_ISA_PKU_UNSET): New.
15032 (ix86_handle_option): Handle -mrdpid.
15033 * config/i386/cpuid.h (bit_RDPID): New.
15034 * config/i386/driver-i386.c (host_detect_local_cpu):
15035 Detect RDPID feature.
15036 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
15037 * config/i386/i386-c.c (ix86_target_macros_internal):
15038 Handle RDPID flag.
15039 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
15040 (ix86_valid_target_attribute_inner_p): Add "rdpid".
15041 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
15042 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
15043 * config/i386/i386.md (define_insn "rdpid"): New.
15044 * config/i386/i386.opt Add -mrdpid.
15045 * config/i386/immintrin.h (_rdpid_u32): New.
15046
15047 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
15048
15049 PR rtl-optimization/79541
15050 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
15051 instead of transforming it into USE.
15052
15053 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
15054
15055 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
15056 If HONOR_SNANS (SFmode) force the input to a register.
15057 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
15058 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
15059 an frsp or similar insn.
15060
15061 2017-02-17 Martin Liska <mliska@suse.cz>
15062
15063 PR rtl-optimization/79577
15064 * params.def (selsched-max-sched-times): Increase minimum to 1.
15065
15066 2017-02-17 Martin Liska <mliska@suse.cz>
15067
15068 PR rtl-optimization/79574
15069 * gcse.c (want_to_gcse_p): Prevent integer overflow.
15070
15071 2017-02-17 Martin Liska <mliska@suse.cz>
15072
15073 PR tree-optimization/79529
15074 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
15075 ssa_defined_default_def_p to handle cases which are implicitly
15076 defined.
15077 * tree-ssa.c (ssa_defined_default_def_p): New function.
15078 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
15079 which are implicitly defined.
15080 * tree-ssa.h (ssa_defined_default_def_p): Declare.
15081
15082 2017-02-17 Richard Biener <rguenther@suse.de>
15083
15084 PR middle-end/79576
15085 * params.def (max-ssa-name-query-depth): Limit to 10.
15086
15087 2017-02-17 Richard Biener <rguenther@suse.de>
15088
15089 PR tree-optimization/79552
15090 * tree-ssa-structalias.c (visit_loadstore): Properly verify
15091 default defs.
15092
15093 2017-02-17 Richard Biener <rguenther@suse.de>
15094
15095 PR bootstrap/79567
15096 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
15097
15098 2017-02-17 Marek Polacek <polacek@redhat.com>
15099
15100 PR middle-end/79536
15101 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
15102 (fold_negate_expr): New wrapper.
15103
15104 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
15105
15106 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
15107 Correct terminology and de-emphasize pre-standard behavior.
15108
15109 2017-02-16 Alan Modra <amodra@gmail.com>
15110
15111 PR rtl-optimization/79286
15112 * ira.c (def_dominates_uses): New function.
15113 (update_equiv_regs): Don't create an equivalence for insns that
15114 may trap where the register def does not dominate the use.
15115
15116 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
15117
15118 PR rtl-optimization/78127
15119 * lra.c (lra): Call lra_eliminate before finish the loop after
15120 lra_constraint.
15121
15122 2017-02-16 Richard Biener <rguenther@suse.de>
15123
15124 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
15125 isl/isl_val.h.
15126 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
15127 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
15128 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
15129 (isl_val_int_from_wi): New function.
15130 (extract_affine_gmp): Rename to ...
15131 (extract_affine_wi): ... this, take a widest_int.
15132 (extract_affine_int): Just wrap extract_affine_wi.
15133 (add_param_constraints): Use isl_val_int_from_wi.
15134 (add_loop_constraints): Likewise, and extract_affine_wi.
15135
15136 2017-02-15 Jeff Law <law@redhat.com>
15137
15138 PR middle-end/79521
15139 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
15140 ira_init_register_move_cost_if_necessary.
15141
15142 2017-02-15 Martin Sebor <msebor@redhat.com>
15143
15144 PR middle-end/32003
15145 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
15146 removed in a prior commit.
15147
15148 2017-02-15 Bin Cheng <bin.cheng@arm.com>
15149
15150 PR tree-optimization/79347
15151 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
15152 counters during peeling.
15153
15154 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
15155
15156 * Makefile.in (site.exp): Remove "set ISLVER".
15157
15158 2017-02-15 Jakub Jelinek <jakub@redhat.com>
15159
15160 PR target/79487
15161 * real.c (real_from_integer): Call real_convert even for decimal.
15162
15163 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
15164
15165 PR target/79421
15166 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
15167
15168 2017-02-14 Andrew Pinski <apinski@cavium.com>
15169
15170 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
15171 cores and change the partno/implementer to be correct.
15172 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
15173 the 'B" as the implementer.
15174 * config/aarch64/aarch64-tune.md: Regenerate.
15175
15176 2017-02-14 Carl Love <cel@us.ibm.com>
15177
15178 * config/rs6000/rs6000.c: Add case statement entry to make the
15179 xvcvuxdsp built-in argument unsigned.
15180 * config/rs6000/vsx.md: Fix the source and return operand types so they
15181 match the instruction definitions from the ISA document. Fix typo
15182 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
15183 statement.
15184
15185 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
15186
15187 PR target/79282
15188 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
15189 member early_clobber_alts.
15190 * lra-lives.c (reg_early_clobber_p): New.
15191 (process_bb_lives): Use it.
15192 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
15193 (debug_operand_data): Initialize early_clobber_alts.
15194 (setup_operand_alternative): Set up early_clobber_alts.
15195 (collect_non_operand_hard_regs): Ditto. Pass early clobber
15196 alternatives to new_insn_reg.
15197 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
15198 it.
15199 (lra_update_insn_regno_info): Pass the new arg.
15200
15201 2017-02-14 Jakub Jelinek <jakub@redhat.com>
15202
15203 PR middle-end/79505
15204 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
15205 (new_oacc_loop_raw): Don't clear already cleared fields.
15206
15207 PR target/79481
15208 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
15209 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
15210 _mm512_prefetch_i64gather_ps): New inline functions and macros.
15211
15212 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
15213
15214 PR target/79495
15215 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
15216
15217 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
15218
15219 PR target/79498
15220 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
15221 the extra instruction to the right place to store 128-bit constant
15222 when needed.
15223
15224 2017-02-14 Martin Sebor <msebor@redhat.com>
15225
15226 PR middle-end/79448
15227 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
15228 warning for strings of unknown length.
15229
15230 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
15231
15232 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
15233
15234 2017-02-14 Jeff Law <law@redhat.com>
15235
15236 PR target/79404
15237 * ira-costs.c (scan_one_insn): Initialize register move costs
15238 for pseudos seen in USE/CLOBBER insns.
15239
15240 PR tree-optimization/79095
15241 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
15242 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
15243 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
15244 if the operands are known to be not equal, then the resulting range
15245 is ~[0,0].
15246 (intersect_ranges): If the new range is ~[0,0] and the old range is
15247 wide, then prefer ~[0,0].
15248 * tree-vrp.c (overflow_comparison_p_1): New function.
15249 (overflow_comparison_p): New function.
15250 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
15251 if NAME is used in an overflow test.
15252 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
15253 overflow check that can be expressed as an equality test, then adjust
15254 ops to be that equality test.
15255
15256 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15257
15258 * config/s390/s390-builtin-types.def: Remove flags argument.
15259 * config/s390/s390.c (s390_init_builtins): Likewise.
15260
15261 2017-02-14 Martin Liska <mliska@suse.cz>
15262
15263 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
15264 vector. Fix trailing white spaces.
15265
15266 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
15267
15268 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
15269 HFmode.
15270
15271 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15272
15273 PR rtl-optimization/68664
15274 * config/arm/arm.c (arm_sched_can_speculate_insn):
15275 New function. Declare prototype.
15276 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
15277
15278 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15279
15280 PR rtl-optimization/68664
15281 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
15282 New function.
15283 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
15284
15285 2017-02-14 Amit Pawar <amit.pawar@amd.com>
15286
15287 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
15288 max skip bytes for function, loop and jump.
15289
15290 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15291
15292 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
15293 ABS_EXPR for gimple dump.
15294
15295 2017-02-14 Jakub Jelinek <jakub@redhat.com>
15296
15297 PR target/79462
15298 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
15299
15300 PR tree-optimization/79408
15301 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
15302 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
15303 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
15304 also if rhs1 is INTEGER_CST.
15305
15306 2017-02-14 Richard Biener <rguenther@suse.de>
15307
15308 PR middle-end/79432
15309 * tree-into-ssa.c (insert_phi_nodes): When the function can
15310 have abnormal edges rewrite SSA names with broken use-def
15311 dominance out of SSA and register them for PHI insertion.
15312
15313 2017-02-13 Martin Sebor <msebor@redhat.com>
15314
15315 PR middle-end/79496
15316 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
15317 clearing info.nowrite flag when snprintf size argument is a range.
15318
15319 2017-02-13 Jakub Jelinek <jakub@redhat.com>
15320
15321 * cprop.c (cprop_jump): Add missing space in string literal.
15322 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
15323 (get_constraint_for_component_ref): Likewise.
15324 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15325 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
15326 * lra-constraints.c (process_alt_operands): Likewise.
15327 * ipa-inline.c (inline_small_functions): Likewise.
15328 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
15329 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
15330 * trans-mem.c (diagnose_tm_1_op): Likewise.
15331 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
15332 (grid_parallel_clauses_gridifiable): Likewise.
15333
15334 * config/nvptx/mkoffload.c (process): Add space in between
15335 , and %d.
15336
15337 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
15338 "MOD4_SSE_REGS" and "ALL_REGS".
15339
15340 * spellcheck.c (test_data): Add , in between "foo" and "food".
15341
15342 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15343
15344 PR target/79449
15345 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
15346 boundary crossing check and subsequent code generation agree.
15347
15348 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15349
15350 * config/aarch64/aarch64.c (has_memory_op): Delete.
15351 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
15352 has_memory_op.
15353
15354 2017-02-13 Jakub Jelinek <jakub@redhat.com>
15355
15356 PR rtl-optimization/79388
15357 PR rtl-optimization/79450
15358 * combine.c (distribute_notes): When removing TEM_INSN for which
15359 corresponding dest has last value recorded, invalidate that last
15360 value.
15361
15362 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15363
15364 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
15365 of explicit '@'. Add missing assembly comment marker on branch costs
15366 printout.
15367
15368 2017-02-13 Nathan Sidwell <nathan@acm.org>
15369
15370 * gengtype-lex.l (<in_struct>): Add '/'.
15371
15372 2017-02-13 Martin Liska <mliska@suse.cz>
15373
15374 PR c/79471
15375 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
15376
15377 2017-02-13 Richard Biener <rguenther@suse.de>
15378
15379 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
15380 Remove.
15381 * configure: Re-generate.
15382 * config.in: Likewise.
15383 * graphite-dependences.c: Simplify as if
15384 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
15385 * graphite-isl-ast-to-gimple.c: Likewise.
15386 * graphite-optimize-isl.c: Likewise.
15387 * graphite-poly.c: Likewise.
15388 * graphite-sese-to-poly.c: Likewise.
15389 * graphite.h: Likewise.
15390 * toplev.c: Include isl/version.h and use isl_version () for
15391 printing the ISL version.
15392 * doc/install.texi: Update ISL requirement.
15393
15394 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
15395
15396 * doc/standards.texi (Standards): Update reference to
15397 Objective-C 2.0.
15398
15399 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
15400
15401 * doc/extend.texi (Named Address Spaces): sourceware.org now
15402 defaults to https.
15403 * doc/install.texi (Binaries): Ditto.
15404 (Specific): Ditto.
15405
15406 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
15407
15408 * doc/cpp.texi: Replace "stringify"/"stringification" with C
15409 standard terminology "stringize"/"stringizing" throughout.
15410 * doc/cppinternals.texi: Likewise.
15411
15412 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
15413
15414 * doc/extend.texi: Fix some spelling mistakes and typos.
15415 * doc/invoke.texi: Likewise.
15416
15417 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
15418
15419 PR ipa/79224
15420 * params.def (inline-min-speedup) Change from 10 to 8.
15421
15422 2017-02-11 Jakub Jelinek <jakub@redhat.com>
15423
15424 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
15425 4.5.
15426
15427 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
15428
15429 PR ipa/79224
15430 * ipa-inline-analysis.c (get_minimal_bb): New function.
15431 (record_modified): Use it.
15432 (remap_edge_change_prob): Handle also ancestor functions.
15433
15434 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
15435
15436 * doc/contrib.texi (Contributors): Remove broken link into
15437 the Mauve CVS repository.
15438
15439 2017-02-11 Jakub Jelinek <jakub@redhat.com>
15440
15441 PR middle-end/79454
15442 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
15443 result computation whenever lhs doesn't have vector mode, not
15444 just when it has BLKmode.
15445
15446 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
15447
15448 * doc/makefile.texi (profiledbootstrap): Refer to the
15449 installation instructions only in textual form.
15450
15451 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15452
15453 PR target/79295
15454 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
15455
15456 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
15457
15458 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
15459 (Specific): Update mingw-w64 reference.
15460 (Binaries): Ditto.
15461 (Specific): Remove broken link to Renesas RX processor.
15462
15463 2017-02-10 Richard Biener <rguenther@suse.de>
15464
15465 * toplev.c (process_options): Do not mention obsolete graphite
15466 options when printing sorry message about missing graphite support.
15467 Mention -floop-nest-optimize.
15468
15469 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
15470
15471 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
15472 (vtst_p16): Likewise.
15473 (vtstq_p8): Likewise.
15474 (vtstq_p16): Likewise.
15475 (vtst_p64): New.
15476 (vtstq_p64): Likewise.
15477 * config/arm/arm_neon.h (vgetq_lane_p64): New.
15478 (vset_lane_p64): New.
15479 (vsetq_lane_p64): New.
15480
15481 2017-02-10 Jakub Jelinek <jakub@redhat.com>
15482
15483 PR tree-optimization/79411
15484 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
15485 stmt operands are SSA_NAMEs used in abnormal phis.
15486 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
15487 phis.
15488
15489 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
15490
15491 PR ipa/70795
15492 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
15493 flag if needed.
15494
15495 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
15496
15497 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
15498
15499 2017-02-09 Jakub Jelinek <jakub@redhat.com>
15500
15501 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
15502 to avoid warning.
15503
15504 PR c/79413
15505 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
15506 not arbitrary TREE_CONSTANT.
15507
15508 PR c/79431
15509 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
15510 "omp declare target link" attribute unless is_global_var.
15511 * omp-offload.c (find_link_var_op): Likewise.
15512
15513 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
15514 Chung-Lin Tang <cltang@codesourcery.com>
15515
15516 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
15517 OMP_CLAUSE_TILE.
15518 (gimplify_adjust_omp_clauses): Don't delete TILE.
15519 (gimplify_omp_for): Deal with TILE.
15520 * internal-fn.c (expand_GOACC_TILE): New function.
15521 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
15522 (GOACC_TILE): New.
15523 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
15524 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
15525 element fields.
15526 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
15527 avoid DIV for outermost collapse var.
15528 (expand_oacc_for): Insert tile element loop as needed. Adjust.
15529 Remove out of date comments, fix whitespace.
15530 * omp-general.c (omp_extract_for_data): Deal with tiling.
15531 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
15532 adjust OLF_DIM_BASE value.
15533 (struct omp_for_data): Add tiling field.
15534 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
15535 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
15536 for auto loops. Remove default auto determining, moved to
15537 oacc_loop_fixed_partitions.
15538 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
15539 stmts, add e_mask field.
15540 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
15541 (oacc_thread_numbers): Use oacc_dim_call.
15542 (oacc_xform_tile): New.
15543 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
15544 (finish_oacc_loop): Adjust for ifns vector.
15545 (oacc_loop_discover_walk): Append loop abstraction sites to list,
15546 add case for GOACC_TILE fns.
15547 (oacc_loop_xform_loop): Delete.
15548 (oacc_loop_process): Iterate over call list directly, and add
15549 handling for GOACC_TILE fns.
15550 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
15551 dump partitioning.
15552 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
15553 vector partitioning to outer loops. Assign 2 partitions to loops
15554 when available. Add TILE handling.
15555 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
15556 (execite_oacc_device_lower): Process GOACC_TILE fns,
15557 ignore unknown specs.
15558 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
15559 * tree.c (omp_clause_num_ops): Adjust TILE ops.
15560 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
15561
15562 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
15563
15564 * configure.ac (ACX_BUGURL): Update.
15565 * configure: Regenerate.
15566
15567 2017-02-09 Richard Biener <rguenther@suse.de>
15568
15569 PR tree-optimization/69823
15570 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15571 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
15572
15573 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
15574
15575 * config/arc/arc-c.def: Add __NPS400__ definition.
15576 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
15577 (TARGET_NPS400): Define.
15578
15579 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
15580
15581 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
15582 file.
15583 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
15584 pointer, arch_info.
15585 (arc_cpu_types): Fill the arch_info field with a pointer into the
15586 arc_arch_types table.
15587 (arc_selected_cpu): Declare.
15588 * config/arc/arc.c (arc_selected_cpu): Make global.
15589 (arc_selected_arch): Delete.
15590 (arc_base_cpu): Delete.
15591 (arc_override_options): Remove references to deleted variables,
15592 update access to arch information.
15593 (ARC_OPT): Update access to arch information.
15594 (ARC_OPTX): Likewise.
15595 * config/arc/arc.h (arc_base_cpu): Remove declaration.
15596 (TARGET_ARC600): Update access to arch information.
15597 (TARGET_ARC601): Likewise.
15598 (TARGET_ARC700): Likewise.
15599 (TARGET_EM): Likewise.
15600 (TARGET_HS): Likewise.
15601 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
15602 information.
15603
15604 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
15605
15606 PR target/78604
15607 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
15608 condition/operands for integer GE/LE/GEU/LEU operations.
15609
15610 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
15611
15612 PR translation/79397
15613 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
15614 of AltiVec.
15615
15616 2017-02-08 Martin Jambor <mjambor@suse.cz>
15617
15618 PR ipa/79375
15619 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
15620 whether allocation happened.
15621 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
15622 nothing was allocated.
15623
15624 2017-02-08 Jakub Jelinek <jakub@redhat.com>
15625
15626 PR tree-optimization/79408
15627 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
15628 constant, but SSA_NAME with a known integer range, use the minimum
15629 of that range instead of op1 to determine if modulo can be replaced
15630 with its first operand.
15631
15632 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15633
15634 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
15635
15636 2017-02-08 Richard Biener <rguenther@suse.de>
15637
15638 PR tree-optimization/71824
15639 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
15640 Check all loops contained in the merged region.
15641
15642 2017-02-07 Andrew Pinski <apinski@cavium.com>
15643
15644 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
15645
15646 2017-02-07 Andrew Pinski <apinski@cavium.com>
15647
15648 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
15649 (thunderxt88): Likewise.
15650 (thunderxt81): Disable LSE and change v8.1 to v8.
15651 (thunderxt83): Likewise.
15652
15653 2017-02-07 Jakub Jelinek <jakub@redhat.com>
15654 Richard Biener <rguenther@suse.de>
15655
15656 PR middle-end/79399
15657 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
15658 type from int to size_t.
15659 * ira-costs.c (struct_costs_size): Change type from int to size_t.
15660
15661 2017-02-07 Jakub Jelinek <jakub@redhat.com>
15662
15663 PR rtl-optimization/79386
15664 * cprop.c (bypass_conditional_jumps): Initialize
15665 bypass_last_basic_block already before splitting bbs after
15666 unconditional traps...
15667 (bypass_conditional_jumps): ... rather than here.
15668
15669 PR target/79299
15670 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
15671 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
15672 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
15673 fix -masm=intel patterns.
15674
15675 2017-02-07 Richard Biener <rguenther@suse.de>
15676
15677 PR tree-optimization/79256
15678 PR middle-end/79278
15679 * builtins.c (get_object_alignment_2): Use min_align_of_type
15680 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
15681 and ADJUST_FIELD_ALIGN.
15682
15683 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
15684 type parameter.
15685 * doc/tm.texi: Regenerate.
15686 * stor-layout.c (layout_decl): Adjust.
15687 (update_alignment_for_field): Likewise.
15688 (place_field): Likewise.
15689 (min_align_of_type): Likewise.
15690 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
15691 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
15692 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
15693 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
15694 * config/frv/frv.c (frv_adjust_field_align): Likewise.
15695 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
15696 * config/i386/i386.c (x86_field_alignment): Likewise.
15697 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
15698 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
15699 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15700 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15701 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
15702 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
15703 Likewise.
15704
15705 Revert
15706 2017-01-30 Richard Biener <rguenther@suse.de>
15707
15708 PR tree-optimization/79256
15709 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
15710 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
15711 alignment on TYPE.
15712
15713 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
15714
15715 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
15716 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
15717 builtins to SImode and emit a zero-extend, if necessary.
15718
15719 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
15720
15721 * docs/invoke.texi (RISC-V Options): Alphabetize.
15722
15723 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
15724
15725 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
15726 options.
15727
15728 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
15729
15730 * config/riscv/riscv.c: New file.
15731 * common/config/riscv/riscv-common.c: Likewise.
15732 * config.gcc: Likewise.
15733 * config/riscv/constraints.md: Likewise.
15734 * config/riscv/elf.h: Likewise.
15735 * config/riscv/generic.md: Likewise.
15736 * config/riscv/linux.h: Likewise.
15737 * config/riscv/multilib-generator: Likewise.
15738 * config/riscv/peephole.md: Likewise.
15739 * config/riscv/pic.md: Likewise.
15740 * config/riscv/predicates.md: Likewise.
15741 * config/riscv/riscv-builtins.c: Likewise.
15742 * config/riscv/riscv-c.c: Likewise.
15743 * config/riscv/riscv-ftypes.def: Likewise.
15744 * config/riscv/riscv-modes.def: Likewise.
15745 * config/riscv/riscv-opts.h: Likewise.
15746 * config/riscv/riscv-protos.h: Likewise.
15747 * config/riscv/riscv.h: Likewise.
15748 * config/riscv/riscv.md: Likewise.
15749 * config/riscv/riscv.opt: Likewise.
15750 * config/riscv/sync.md: Likewise.
15751 * config/riscv/t-elf-multilib: Likewise.
15752 * config/riscv/t-linux: Likewise.
15753 * config/riscv/t-linux-multilib: Likewise.
15754 * config/riscv/t-riscv: Likewise.
15755 * configure.ac: Likewise.
15756 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
15757 Waterman as RISC-V maintainers.
15758 * doc/install.texi: Add RISC-V entries.
15759 * doc/invoke.texi: Add RISC-V options section.
15760 * doc/md.texi: Add RISC-V constraints section.
15761 * configure: Regenerated.
15762
15763 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15764
15765 PR target/66144
15766 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
15767 false values to be constant vectors with all 0 or all 1 bits set.
15768 (vcondu<mode><mode>): Likewise.
15769 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
15770 predicate.
15771 (fpmask_comparison_operator): Update comment.
15772 (vecint_comparison_operator): New predicate.
15773 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
15774 vector conditionals when the true and false values are constant
15775 vectors with all 0 bits or all 1 bits set.
15776
15777 2017-02-06 Martin Sebor <msebor@redhat.com>
15778
15779 PR tree-optimization/79376
15780 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
15781
15782 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
15783
15784 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
15785 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
15786 to simplify split condition.
15787
15788 2017-02-06 Jakub Jelinek <jakub@redhat.com>
15789
15790 * omp-expand.c (oxpand_omp_atomic_fetch_op,
15791 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
15792 false.
15793
15794 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
15795
15796 PR rtl-optimization/68664
15797 * target.def (can_speculate_insn): New hook.
15798 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
15799 * doc/tm.texi: Regenerate.
15800 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
15801 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
15802 (rs6000_sched_can_speculate_insn): New function.
15803
15804 2017-02-06 Jakub Jelinek <jakub@redhat.com>
15805
15806 PR tree-optimization/79284
15807 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
15808 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
15809 vectorizable_mask_load_store, vectorizable_operation,
15810 vect_is_simple_cond, get_same_sized_vectype): Use it instead
15811 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
15812 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
15813 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
15814 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
15815 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
15816 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
15817 is_gimple_assign (stmt). Replace another such test with
15818 is_gimple_assign (stmt).
15819
15820 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
15821
15822 PR target/78883
15823 * config/avr/avr.c (rtl-iter.h): Include it.
15824 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
15825 (avr_legitimate_combined_insn): ...and implementation.
15826
15827 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
15828
15829 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
15830 * config/s390/s390.c (s390_const_operand_ok)
15831 (s390_canonicalize_comparison, s390_extract_part)
15832 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
15833 (s390_contiguous_bitmask_p, s390_rtx_costs)
15834 (legitimize_pic_address): Likewise.
15835 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
15836 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
15837 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
15838 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
15839 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
15840
15841 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
15842
15843 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
15844 REGNO($0) == REGNO($1).
15845
15846 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15847
15848 * config/s390/linux.h(SIZE_TYPE): Add comment.
15849
15850 2017-02-06 Julian Brown <julian@codesourcery.com>
15851 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
15852 Virendra Pathak <virendra.pathak@broadcom.com>
15853
15854 * config/aarch64/aarch64-cores.def: Change the scheduler
15855 to Thunderx2t99.
15856 * config/aarch64/aarch64.md: Include thunderx2t99.md.
15857 * config/aarch64/thunderx2t99.md: New file.
15858
15859 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
15860
15861 * doc/standards.texi (Go Language): Update link to language
15862 standard.
15863
15864 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
15865
15866 * tree-eh.c (lower_resx): Sanitize profile.
15867 (cleanup_empty_eh_move_lp): Likewise.
15868
15869 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
15870
15871 PR tree-ssa/79347
15872 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
15873 ELSE_PROB.
15874 * cfgloopmanip.h (loop_version): Update prototype.
15875 * modulo-sched.c (sms_schedule): Update call of loop_version.
15876 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
15877 * tree-parloops.c (gen_parallel_loop): Likewise.
15878 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
15879 * tree-ssa-loop-split.c (split_loop): Likewise.
15880 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
15881 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
15882
15883 2017-02-05 Martin Liska <mliska@suse.cz>
15884
15885 PR bootstrap/78985
15886 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
15887 variable to NULL.
15888 (print_operand_address): Initialize a struct to zero.
15889
15890 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
15891
15892 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
15893 garbage collector only in textual form.
15894
15895 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
15896
15897 * doc/extend.texi (x86 specific memory model extensions for
15898 transactional memory): Simplify a phrase.
15899
15900 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
15901
15902 PR target/79353
15903 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
15904 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
15905 (atomic_storedi_1): Likewise.
15906
15907 2017-02-04 Jakub Jelinek <jakub@redhat.com>
15908
15909 PR tree-optimization/79338
15910 * tree-parloops.c (gather_scalar_reductions): Don't call
15911 vect_analyze_loop_form for loop->inner before destroying loop's
15912 loop_vinfo.
15913
15914 2017-02-03 Martin Sebor <msebor@redhat.com>
15915
15916 PR tree-optimization/79327
15917 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
15918 when precision has resulted in leading zeros.
15919 (format_integer): Adjust the likely counter to assume an unknown
15920 argument that may be zero is non-zero.
15921
15922 2017-02-03 Jason Merrill <jason@redhat.com>
15923
15924 PR c++/78689
15925 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
15926 avoid copying non-taken branch.
15927
15928 2017-02-03 Jakub Jelinek <jakub@redhat.com>
15929
15930 PR tree-optimization/79340
15931 * tree-vect-loop.c (vectorizable_reduction): Release
15932 vec_defs elements after safe_splicing them into other vectors.
15933 Formatting fixes.
15934
15935 PR tree-optimization/79327
15936 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
15937 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
15938 dirtype.
15939 (format_integer): Use wide_int_to_tree instead of build_int_cst
15940 + to_?hwi. If argmin is NULL, just set argmin and argmax to
15941 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
15942 of shortest and longest sequence.
15943
15944 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
15945
15946 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15947 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
15948
15949 2017-02-03 Walter Lee <walt@tilera.com>
15950
15951 PR target/78862
15952 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
15953 after initial stackframe link reg save.
15954 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
15955
15956 2017-02-03 Jakub Jelinek <jakub@redhat.com>
15957
15958 PR target/79354
15959 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
15960 wu for stxssp alternative.
15961
15962 2017-02-03 Martin Sebor <msebor@redhat.com>
15963
15964 PR tree-optimization/79352
15965 * gimple-fold.c (get_range_strlen): Add argument.
15966 (get_range_strlen): Change return type to bool.
15967 (get_maxval_strlen): Pass in a dummy argument.
15968 * gimple-fold.h (get_range_strlen): Change return type to bool.
15969 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
15970 * tree.h (array_at_struct_end_p): Add argument.
15971 * tree.c (array_at_struct_end_p): Handle it.
15972
15973 2017-02-03 Martin Liska <mliska@suse.cz>
15974
15975 PR lto/66295
15976 * multiple_target.c (create_dispatcher_calls): Redirect edge
15977 from a caller of a dispatcher.
15978 (expand_target_clones): Make the clones local.
15979 (ipa_target_clone): Do both target clones and resolvers.
15980 (ipa_dispatcher_calls): Remove the pass.
15981 (pass_dispatcher_calls::gate): Likewise.
15982 (make_pass_dispatcher_calls): Likewise.
15983 * passes.def (pass_target_clone): Put as very first IPA early
15984 pass.
15985
15986 2017-02-03 Martin Liska <mliska@suse.cz>
15987
15988 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
15989 in case of a function with ifunc attribute.
15990
15991 2017-02-03 Martin Liska <mliska@suse.cz>
15992
15993 * cgraph.c (cgraph_node::dump): Dump function version info.
15994 * symtab.c (symtab_node::dump_base): Add missing new line.
15995
15996 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
15997
15998 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
15999 (ifcombine_ifandif): Use it.
16000
16001 2017-02-03 Martin Liska <mliska@suse.cz>
16002
16003 * doc/invoke.texi: Document default value for
16004 use-after-scope-direct-emission-threshold.
16005
16006 2017-02-03 Martin Liska <mliska@suse.cz>
16007
16008 PR tree-optimization/79339
16009 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
16010 (format_floating): Likewise.
16011
16012 2017-02-03 Martin Liska <mliska@suse.cz>
16013
16014 PR ipa/79337
16015 * ipa-prop.c (ipa_node_params_t::insert): Remove current
16016 implementation.
16017 (ipa_node_params_t::remove): Likewise.
16018 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
16019 initialization from removed ipa_node_params_t::insert.
16020 (ipa_node_params::~ipa_node_params): Move from removed
16021 ipa_node_params_t::release.
16022 * symbol-summary.h (symbol_summary::m_released): New member.
16023 Do not release a summary twice. Do not allow to call finalizer
16024 for types of a summary that live in GGC memory.
16025
16026 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
16027
16028 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
16029 cmp_branch fusion.
16030
16031 2017-02-02 Martin Sebor <msebor@redhat.com>
16032
16033 PR middle-end/79275
16034 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
16035 (format_string): Tighten up the range of output for non-constant
16036 strings and correct the expected range for wide non-constant strings.
16037
16038 2017-02-02 Martin Sebor <msebor@redhat.com>
16039
16040 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
16041
16042 PR middle-end/32003
16043 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
16044 index.
16045 (-fdump-tree-@var): Add to index and document how to come up
16046 with pass-specific option and dump file names.
16047 (-fdump-passes): Clarify where to look for output.
16048
16049 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
16050
16051 PR middle-end/77445
16052 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
16053 statistics of the analyzed path; allow threading for speed when
16054 any of BBs along the path are optimized for speed.
16055
16056 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
16057
16058 PR middle-end/78468
16059 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
16060 settings of the virtual registers.
16061
16062 Revert again
16063 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
16064
16065 * explow.c (get_dynamic_stack_size): Take known alignment of stack
16066 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
16067 needed.
16068
16069 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16070
16071 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
16072 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
16073
16074 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16075
16076 * config/s390/s390.md: Add missing comments with the expanded
16077 mnemonics.
16078 * config/s390/vector.md: Likewise.
16079 * config/s390/vx-builtins.md: Likewise.
16080
16081 2017-02-02 Jakub Jelinek <jakub@redhat.com>
16082
16083 PR target/79197
16084 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
16085 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
16086 conditions on a single line.
16087
16088 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16089
16090 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
16091 __S390_VX__ to __VX__.
16092
16093 2017-02-01 Andrew Pinski <apinski@cavium.com>
16094
16095 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
16096 stmt_info to record_stmt_cost.
16097 (vect_get_known_peeling_cost): Pass stmt_info if known to
16098 record_stmt_cost.
16099 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
16100 cpu_vector_cost field into
16101 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
16102 field into vec_int_stmt_cost and vec_fp_stmt_cost.
16103 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
16104 splitting of scalar_stmt_cost and vec_stmt_cost.
16105 (thunderx_vector_cost): Likewise.
16106 (cortexa57_vector_cost): LIkewise.
16107 (exynosm1_vector_cost): Likewise.
16108 (xgene1_vector_cost): Likewise.
16109 (thunderx2t99_vector_cost): Improve after the splitting of the two
16110 fields.
16111 (aarch64_builtin_vectorization_cost): Update for the splitting of
16112 scalar_stmt_cost and vec_stmt_cost.
16113
16114 2017-02-01 Torvald Riegel <triegel@redhat.com>
16115 Richard Henderson <rth@redhat.com>
16116
16117 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
16118 conditional on existance of a fast atomic load.
16119 * optabs-query.c (can_atomic_load_p): New function.
16120 * optabs-query.h (can_atomic_load_p): Declare it.
16121 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
16122 no fast atomic load is available for the particular size of access.
16123 (expand_atomic_compare_and_swap): Likewise.
16124 (expand_atomic_load): Likewise.
16125 (expand_atomic_store): Likewise.
16126 (expand_atomic_fetch_op): Likewise.
16127 * testsuite/lib/target-supports.exp
16128 (check_effective_target_sync_int_128): Remove x86 because it provides
16129 no fast atomic load.
16130 (check_effective_target_sync_int_128_runtime): Likewise.
16131
16132 2017-02-01 Richard Biener <rguenther@suse.de>
16133
16134 * graphite.c: Include tree-vectorizer.h for find_loop_location.
16135 (graphite_transform_loops): Provide opt-info for optimized nests.
16136 * tree-parloop.c (parallelize_loops): Provide opt-info for
16137 parallelized loops.
16138
16139 2017-02-01 Richard Biener <rguenther@suse.de>
16140
16141 PR middle-end/79315
16142 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
16143 was not set before.
16144
16145 2017-02-01 Richard Biener <rguenther@suse.de>
16146
16147 PR tree-optimization/71824
16148 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
16149 Verify the loops are valid in the merged SESE region.
16150 (scop_detection::can_represent_loop_1): Check analyzing the
16151 evolution of the number of iterations in the region succeeds.
16152
16153 2017-01-31 Ian Lance Taylor <iant@golang.org>
16154
16155 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
16156 REG_ARGS_SIZE note to 32-bit push insns and call insn.
16157
16158 2017-01-31 David Malcolm <dmalcolm@redhat.com>
16159
16160 PR preprocessor/79210
16161 * input.c (get_substring_ranges_for_loc): Replace line_width
16162 assertion with error-handling.
16163
16164 2017-01-31 Richard Biener <rguenther@suse.de>
16165
16166 PR tree-optimization/77318
16167 * graphite-sese-to-poly.c (extract_affine): Fix assert.
16168 (create_pw_aff_from_tree): Take loop parameter.
16169 (add_condition_to_pbb): Pass loop of the condition to
16170 create_pw_aff_from_tree.
16171
16172 2017-01-31 Jakub Jelinek <jakub@redhat.com>
16173
16174 * config/s390/s390.c (s390_asan_shadow_offset): New function.
16175 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
16176
16177 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
16178
16179 PR target/78597
16180 PR target/79038
16181 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
16182 no longer used.
16183 (convert_int_to_float128): Likewise.
16184 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
16185 (convert_int_to_float128): Likewise.
16186 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
16187 (UNSPEC_IEEE128_CONVERT): Likewise.
16188 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
16189 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
16190 Use local variables for IBM extended format.
16191 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
16192 (fix_trunc<mode>si2_fprs): Likewise.
16193 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
16194 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
16195 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
16196 to know that we can now have integers of all sizes in vector
16197 registers.
16198 (fix<uns>_<mode>di2_hw): Likewise.
16199 (float<uns>_<mode>si2_hw): Likewise.
16200 (fix_<mode>si2_hw): Likewise.
16201 (fixuns_<mode>si2_hw): Likewise.
16202 (float<uns>_<mode>di2_hw): Likewise.
16203 (float_<mode>di2_hw): Likewise.
16204 (float_<mode>si2_hw): Likewise.
16205 (floatuns_<mode>di2_hw): Likewise.
16206 (floatuns_<mode>si2_hw): Likewise.
16207 (xscvqp<su>wz_<mode>): Delete, no longer used.
16208 (xscvqp<su>dz_<mode>): Likewise.
16209 (xscv<su>dqp_<mode>): Likewise.
16210 (ieee128_mfvsrd_64bit): Likewise.
16211 (ieee128_mfvsrd_32bit): Likewise.
16212 (ieee128_mfvsrwz): Likewise.
16213 (ieee128_mtvsrw): Likewise.
16214 (ieee128_mtvsrd_64bit): Likewise.
16215 (ieee128_mtvsrd_32bit): Likewise.
16216
16217 2017-01-31 Martin Liska <mliska@suse.cz>
16218
16219 PR ipa/79285
16220 * ipa-prop.c (ipa_free_all_node_params): Call release method
16221 instead of ~sumbol_summary to not to trigger double times
16222 dtor of hash_map.
16223
16224 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
16225
16226 PR tree-optimization/71691
16227 * bitmap.h (class auto_bitmap): New.
16228 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
16229 is_maybe_undefined instead of ssa_undefined_value_p.
16230
16231 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16232
16233 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
16234 __S390_ARCH_LEVEL__ to __ARCH__.
16235
16236 2017-01-31 Jakub Jelinek <jakub@redhat.com>
16237
16238 PR tree-optimization/79267
16239 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
16240 if should_remove_lhs_p is true.
16241
16242 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
16243
16244 PR debug/63238
16245 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
16246 (add_alignment_attribute): New.
16247 (base_type_die): Add alignment attribute.
16248 (subrange_type_die): Likewise.
16249 (modified_type_die): Likewise.
16250 (gen_array_type_die): Likewise.
16251 (gen_descr_array_type_die: Likewise.
16252 (gen_enumeration_type_die): Likewise.
16253 (gen_subprogram_die): Likewise.
16254 (gen_variable_die): Likewise.
16255 (gen_field_die): Likewise.
16256 (gen_ptr_to_mbr_type_die): Likewise.
16257 (gen_struct_or_union_type_die): Likewise.
16258 (gen_subroutine_type_die): Likewise.
16259 (gen_typedef_die): Likewise.
16260 (base_type_cmp): Compare alignment attribute.
16261
16262 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16263
16264 PR target/79170
16265 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
16266 (setb_unsigned) New pattern for setb with CCUNS.
16267 * config/rs6000/rs6000.c (expand_block_compare): Use a different
16268 subfc./subfe sequence to avoid overflow problems. Generate a
16269 shorter sequence with cmpld/setb for power9.
16270 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
16271 for generating subfc. instruction.
16272 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
16273 now uses this instruction.
16274
16275 2017-01-30 Ian Lance Taylor <iant@google.com>
16276
16277 PR debug/79289
16278 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
16279 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
16280
16281 2017-01-30 Martin Sebor <msebor@redhat.com>
16282
16283 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
16284 Move constant to the right of a relational operator.
16285 (get_mpfr_format_length, format_character, format_string): Ditto.
16286 (should_warn_p, maybe_warn): Same.
16287
16288 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
16289
16290 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
16291
16292 PR lto/79061
16293 * asan.c (get_translation_unit_decl): Remove function.
16294 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
16295
16296 2017-01-30 Martin Liska <mliska@suse.cz>
16297
16298 PR gcov-profile/79259
16299 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
16300 -fprofile-generate.
16301
16302 2017-01-30 Martin Liska <mliska@suse.cz>
16303
16304 PR bootstrap/78985
16305 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
16306 Initialize variables with NULL value.
16307
16308 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
16309
16310 PR target/79260
16311 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
16312 tm_p_file.
16313 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
16314
16315 2017-01-30 Richard Biener <rguenther@suse.de>
16316
16317 PR tree-optimization/79276
16318 * tree-vrp.c (process_assert_insertions): Properly adjust common
16319 when removing a duplicate.
16320
16321 * gcc.dg/torture/pr79276.c: New testcase.
16322
16323 2017-01-30 Richard Biener <rguenther@suse.de>
16324
16325 PR tree-optimization/79256
16326 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
16327 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
16328 alignment on TYPE.
16329 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
16330
16331 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
16332
16333 PR target/79240
16334 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
16335 ("*r<noxa>sbg_<mode>_sll_bitmask")
16336 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
16337 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
16338 Use contiguous_bitmask_nowrap_operand.
16339
16340 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16341
16342 PR target/79268
16343 * config/rs6000/altivec.h (vec_xl): Revise #define.
16344 (vec_xst): Likewise.
16345
16346 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
16347
16348 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
16349
16350 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
16351
16352 PR rtl-optimization/79194
16353 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
16354 traps before call to bypass_conditional_jumps.
16355
16356 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
16357
16358 PR tree-optimization/71374
16359 * lra-constraints.c (check_conflict_input_operands): New.
16360 (match_reload): Use it.
16361
16362 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
16363
16364 PR target/79131
16365 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
16366 account to calculate conflict_set.
16367
16368 2017-01-27 Bin Cheng <bin.cheng@arm.com>
16369
16370 PR rtl-optimization/78559
16371 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
16372 other_insn in combine.
16373
16374 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
16375
16376 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
16377 uint16_type_node for BT_UINT16.
16378
16379 2017-01-27 David Malcolm <dmalcolm@redhat.com>
16380
16381 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
16382 "RTL Tests" to menu.
16383 (GIMPLE Tests): New node.
16384 (RTL Tests): New node.
16385
16386 2017-01-27 Richard Biener <rguenther@suse.de>
16387
16388 PR tree-optimization/79245
16389 * tree-loop-distribution.c (distribute_loop): Apply cost
16390 modeling also to detected patterns.
16391
16392 2017-01-27 Richard Biener <rguenther@suse.de>
16393
16394 PR tree-optimization/71433
16395 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
16396 (compare_assert_loc): New function.
16397 (process_assert_insertions): Sort and optimize assert locations
16398 to remove duplicates and push down identical assertions on
16399 edges to their destination block.
16400
16401 2017-01-27 Richard Biener <rguenther@suse.de>
16402
16403 PR tree-optimization/79244
16404 * tree-vrp.c (remove_range_assertions): Forcefully propagate
16405 out SSA names even if abnormal.
16406
16407 2017-01-27 Jakub Jelinek <jakub@redhat.com>
16408
16409 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
16410 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
16411 instead of MPFR_RNDN.
16412
16413 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
16414
16415 PR target/79239
16416 * arm.c (arm_option_override): Don't call build_target_option_node
16417 until after doing all option overrides.
16418 (arm_valid_target_attribute_tree): Likewise.
16419
16420 2017-01-27 Martin Liska <mliska@suse.cz>
16421
16422 * doc/invoke.texi (-fprofile-arcs): Document profiling support
16423 for {cd}tors and C++ {cd}tors.
16424
16425 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16426
16427 * config/s390/s390.md ("*setmem_long_and")
16428 ("*setmem_long_and_31z"): Use zero_extend instead of and.
16429
16430 2017-01-26 Martin Sebor <msebor@redhat.com>
16431
16432 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
16433 of precision.
16434
16435 2017-01-26 Martin Sebor <msebor@redhat.com>
16436
16437 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
16438 HAVE_DFmode before using XFmode or DFmode.
16439 (parse_directive): Avoid using the z length modifier to avoid
16440 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
16441
16442 PR middle-end/78703
16443 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
16444 to accept adjustment as an array.
16445 (get_int_range): New function.
16446 (struct directive): Make width and prec arrays.
16447 (directive::set_width, directive::set_precision): Call get_int_range.
16448 (format_integer, format_floating): Handle width and precision ranges.
16449 (format_string, parse_directive): Same.
16450
16451 2017-01-26 Jakub Jelinek <jakub@redhat.com>
16452
16453 PR debug/79129
16454 * dwarf2out.c (generate_skeleton_bottom_up): For children with
16455 comdat_type_p set, just clone them, but keep the children in the
16456 original DIE.
16457
16458 PR debug/78835
16459 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
16460 which have direct callers with -fvar-tracking-assignments enabled
16461 in the current TU.
16462 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
16463 inside of type units.
16464
16465 2017-01-26 Martin Sebor <msebor@redhat.com>
16466
16467 PR middle-end/78703
16468 * gimple-ssa-sprintf.c (struct result_range): Add likely and
16469 unlikely counters.
16470 (struct format_result): Replace number_chars, number_chars_min,
16471 and number_chars_max with a single member of struct result_range.
16472 Remove bounded.
16473 (format_result::operator+=): Adjust.
16474 (struct fmtresult): Remove bounded. Handle likely and unlikely
16475 counters.
16476 (fmtresult::adjust_for_width_or_precision): New function.
16477 (fmtresult:type_max_digits): New function.
16478 (bytes_remaining): Handle likely and unlikely counters.
16479 (min_bytes_remaining): Remove.
16480 (format_percent): Simplify.
16481 (format_integer, format_floating): Set likely and unlikely counters.
16482 (get_string_length, format_character, format_string): Same.
16483 (format_plain, should_warn_p): New function.
16484 (maybe_warn): Call should_warn_p. Update diagnostic messages
16485 and handle those for all directives, including plain strings.
16486 (format_directive): Handle likely and unlikely counters.
16487 Remove unnecessary quoting from diagnostics. Add an informational
16488 note.
16489 (add_bytes): Remove.
16490 (pass_sprintf_length::compute_format_length): Simplify.
16491 (try_substitute_return_value): Handle likely and unlikely counters.
16492
16493 2017-01-26 Carl Love <cel@us.ibm.com>
16494
16495 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
16496 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
16497
16498 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
16499
16500 PR target/79131
16501 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
16502 endianess for subregs into account.
16503 * lra-constraints.c (lra_constraints): Do risky transformations
16504 always on the first iteration.
16505 * lra-lives.c (check_pseudos_live_through_calls): Add arg
16506 last_call_used_reg_set.
16507 (process_bb_lives): Define and use last_call_used_reg_set.
16508 * lra.c (lra): Always continue after lra_constraints on the first
16509 iteration.
16510
16511 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
16512
16513 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
16514 constant.
16515 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
16516
16517 2017-01-26 Jakub Jelinek <jakub@redhat.com>
16518
16519 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
16520 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
16521 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
16522 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
16523 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
16524 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
16525 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
16526 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
16527 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
16528
16529 2017-01-26 Marek Polacek <polacek@redhat.com>
16530
16531 PR c/79199
16532 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
16533 for the third operand.
16534
16535 2017-01-26 Jakub Jelinek <jakub@redhat.com>
16536
16537 PR middle-end/79236
16538 * omp-low.c (struct omp_context): Add simt_stmt field.
16539 (scan_omp_for): Return omp_context *.
16540 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
16541 context to the _simt_ SIMD stmt.
16542 (lower_omp_for): For combined SIMD with sibling _simt_
16543 SIMD, make sure to use the same decls in _looptemp_
16544 clauses as in the sibling.
16545
16546 2017-01-26 David Sherwood <david.sherwood@arm.com>
16547
16548 PR middle-end/79212
16549 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
16550 all contexts.
16551
16552 2017-01-26 Jakub Jelinek <jakub@redhat.com>
16553
16554 PR target/70465
16555 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
16556 emit fld b; fld a; if possible.
16557
16558 * brig-builtins.def: Update copyright years.
16559 * config/arm/arm_acle_builtins.def: Update copyright years.
16560
16561 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16562
16563 PR target/79179
16564 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
16565 constraint instead of o for the stxsd instruction.
16566
16567 2017-01-25 Carl Love <cel@us.ibm.com>
16568
16569 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
16570 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
16571
16572 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
16573
16574 * doc/invoke.texi (C++ Dialect Options): Fix typo.
16575
16576 2017-01-25 Richard Biener <rguenther@suse.de>
16577
16578 PR tree-optimization/69264
16579 * target.def (vector_alignment_reachable): Improve documentation.
16580 * doc/tm.texi: Regenerate.
16581 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
16582 and add a comment.
16583 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
16584 earlier changes with respect to TYPE_USER_ALIGN.
16585 (vector_alignment_reachable_p): Likewise. Improve dumping.
16586
16587 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16588
16589 PR target/79145
16590 * config/arm/arm.md (xordi3): Force constant operand into a register
16591 for TARGET_IWMMXT.
16592
16593 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16594
16595 * doc/invoke.texi (-fstore-merging): Correct default optimization
16596 levels at which it is enabled.
16597 (-O): Move -fstore-merging from list to...
16598 (-O2): ... Here.
16599
16600 2017-01-25 Richard Biener <rguenther@suse.de>
16601
16602 PR debug/78363
16603 * omp-expand.c: Include debug.h.
16604 (expand_omp_taskreg): Make sure to generate early debug before
16605 outlining anything from a function.
16606 (expand_omp_target): Likewise.
16607 (grid_expand_target_grid_body): Likewise.
16608
16609 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
16610
16611 PR lto/79061
16612 * asan.c (get_translation_unit_decl): New function.
16613 (asan_add_global): Extract modules file name from globals
16614 TRANSLATION_UNIT_DECL name.
16615
16616 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
16617
16618 PR target/77439
16619 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
16620 for long calls with APCS frame and VFP.
16621
16622 2017-01-24 David Malcolm <dmalcolm@redhat.com>
16623
16624 * cfg.c (original_copy_tables_initialized_p): New function.
16625 * cfg.h (original_copy_tables_initialized_p): New decl.
16626 * cfgrtl.c (relink_block_chain): Guard the call to
16627 free_original_copy_tables with a call to
16628 original_copy_tables_initialized_p.
16629 * cgraph.h (symtab_node::native_rtl_p): New decl.
16630 * cgraphunit.c (symtab_node::native_rtl_p): New function.
16631 (symtab_node::needed_p): Don't assert for early assembly output
16632 for __RTL functions.
16633 (cgraph_node::finalize_function): Set "force_output" for __RTL
16634 functions.
16635 (cgraph_node::analyze): Bail out early for __RTL functions.
16636 (analyze_functions): Update assertion to support __RTL functions.
16637 (cgraph_node::expand): Bail out early for __RTL functions.
16638 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
16639 __RTL functions.
16640 * function.h (struct function): Update comment for field
16641 "pass_startwith".
16642 * gimple-expr.c: Include "tree-pass.h".
16643 (gimple_has_body_p): Return false for __RTL functions.
16644 * Makefile.in (OBJS): Add run-rtl-passes.o.
16645 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
16646 accessor.
16647 (gcc::pass_manager::get_clean_slate): New accessor.
16648 * passes.c: Include "insn-addr.h".
16649 (should_skip_pass_p): Add logging. Update logic for running
16650 "expand" to be compatible with both __GIMPLE and __RTL. Guard
16651 property-provider override so it is only done for gimple passes.
16652 Don't skip dfinit.
16653 (skip_pass): New function.
16654 (execute_one_pass): Call skip_pass when skipping passes.
16655 * read-md.c (md_reader::read_char): Support filtering
16656 the input to a subset of line numbers.
16657 (md_reader::md_reader): Initialize fields
16658 m_first_line and m_last_line.
16659 (md_reader::read_file_fragment): New function.
16660 * read-md.h (md_reader::read_file_fragment): New decl.
16661 (md_reader::m_first_line): New field.
16662 (md_reader::m_last_line): New field.
16663 * read-rtl-function.c (function_reader::create_function): Only
16664 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
16665 curr_properties. Set DECL_INITIAL to a dummy block.
16666 (read_rtl_function_body_from_file_range): New function.
16667 * read-rtl-function.h (read_rtl_function_body_from_file_range):
16668 New decl.
16669 * run-rtl-passes.c: New file.
16670 * run-rtl-passes.h: New file.
16671
16672 2017-01-24 Jeff Law <law@redhat.com>
16673
16674 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
16675 buffer size.
16676
16677 2017-01-24 Bin Cheng <bin.cheng@arm.com>
16678
16679 PR tree-optimization/79159
16680 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
16681 (record_nonwrapping_iv): Improve boundary using above function if no
16682 value range information.
16683
16684 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
16685 Martin Jambor <mjambor@suse.cz>
16686
16687 * brig-builtins.def: New file.
16688 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
16689 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
16690 (DEF_HSAIL_SAT_BUILTIN): Likewise.
16691 (DEF_HSAIL_INTR_BUILTIN): Likewise.
16692 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
16693 * builtin-types.def (BT_INT8): New.
16694 (BT_INT16): Likewise.
16695 (BT_UINT8): Likewise.
16696 (BT_UINT16): Likewise.
16697 (BT_FN_ULONG): Likewise.
16698 (BT_FN_UINT_INT): Likewise.
16699 (BT_FN_UINT_ULONG): Likewise.
16700 (BT_FN_UINT_LONG): Likewise.
16701 (BT_FN_UINT_PTR): Likewise.
16702 (BT_FN_ULONG_PTR): Likewise.
16703 (BT_FN_INT8_FLOAT): Likewise.
16704 (BT_FN_INT16_FLOAT): Likewise.
16705 (BT_FN_UINT32_FLOAT): Likewise.
16706 (BT_FN_UINT16_FLOAT): Likewise.
16707 (BT_FN_UINT8_FLOAT): Likewise.
16708 (BT_FN_UINT64_FLOAT): Likewise.
16709 (BT_FN_UINT16_UINT32): Likewise.
16710 (BT_FN_UINT32_UINT16): Likewise.
16711 (BT_FN_UINT16_UINT16_UINT16): Likewise.
16712 (BT_FN_INT_PTR_INT): Likewise.
16713 (BT_FN_UINT_PTR_UINT): Likewise.
16714 (BT_FN_LONG_PTR_LONG): Likewise.
16715 (BT_FN_ULONG_PTR_ULONG): Likewise.
16716 (BT_FN_VOID_UINT64_UINT64): Likewise.
16717 (BT_FN_UINT8_UINT8_UINT8): Likewise.
16718 (BT_FN_INT8_INT8_INT8): Likewise.
16719 (BT_FN_INT16_INT16_INT16): Likewise.
16720 (BT_FN_INT_INT_INT): Likewise.
16721 (BT_FN_UINT_FLOAT_UINT): Likewise.
16722 (BT_FN_FLOAT_UINT_UINT): Likewise.
16723 (BT_FN_ULONG_UINT_UINT): Likewise.
16724 (BT_FN_ULONG_UINT_PTR): Likewise.
16725 (BT_FN_ULONG_ULONG_ULONG): Likewise.
16726 (BT_FN_UINT_UINT_UINT): Likewise.
16727 (BT_FN_VOID_UINT_PTR): Likewise.
16728 (BT_FN_UINT_UINT_PTR: Likewise.
16729 (BT_FN_UINT32_UINT64_PTR): Likewise.
16730 (BT_FN_INT_INT_UINT_UINT): Likewise.
16731 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
16732 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
16733 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
16734 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
16735 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
16736 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
16737 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
16738 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
16739 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
16740 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
16741 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
16742 * doc/frontends.texi: List BRIG FE.
16743 * doc/install.texi (Testing): Add BRIG tesring requirements.
16744 * doc/invoke.texi (Overall Options): Mention BRIG.
16745 * doc/standards.texi (Standards): Doucment BRIG HSA version.
16746
16747 2017-01-24 Richard Biener <rguenther@suse.de>
16748
16749 PR translation/79208
16750 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
16751
16752 2017-01-24 Martin Jambor <mjambor@suse.cz>
16753
16754 PR bootstrap/79198
16755 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
16756 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
16757 and known_contexts.
16758
16759 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
16760
16761 PR middle-end/79123
16762 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
16763 casts from signed to unsigned really don't have a range.
16764
16765 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
16766
16767 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
16768 GMP_RNDx for compatiblity.
16769
16770 2017-01-24 Martin Liska <mliska@suse.cz>
16771
16772 PR bootstrap/79132
16773 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
16774 that would prevent us to call alloca with -1 as argument.
16775
16776 2017-01-24 Jakub Jelinek <jakub@redhat.com>
16777
16778 * dwarf2out.c (output_compilation_unit_header, output_file_names):
16779 Avoid -Wformat-security warning.
16780
16781 2017-01-23 Andrew Pinski <apinski@cavium.com>
16782
16783 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
16784 cost table.
16785
16786 2017-01-23 Martin Sebor <msebor@redhat.com>
16787
16788 PR middle-end/78703
16789 * gimple-ssa-sprintf.c (warn_level): New global.
16790 (format_integer): Use it here and throughout the rest of the file.
16791 Use the same switch to compute sign as base.
16792 (maybe_warn): New function.
16793 (format_directive): Factor out warnings into maybe_warn.
16794 Add debugging output. Use warn_level.
16795 (add_bytes): Use warn_level.
16796 (pass_sprintf_length::compute_format_length): Add debugging output.
16797 (try_substitute_return_value): Same.
16798 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
16799
16800 PR middle-end/78703
16801 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
16802 (struct fmtresult, format_integer, format_floating): Adjust.
16803 (fmtresult::fmtresult): Set max correctly in two argument ctor.
16804 (get_string_length, format_string,format_directive): Same.
16805 (pass_sprintf_length::compute_format_length): Same.
16806 (try_substitute_return_value): Simplify slightly.
16807
16808 PR middle-end/78703
16809 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
16810 (fmtresult::operator+=): Outlined.
16811 (struct fmtresult): Add ctors.
16812 (struct conversion_spec): Rename...
16813 (struct directive): ...to this. Add and remove data members.
16814 (directive::set_width, directive::set_precision): New functions.
16815 (format_percent): Use fmtresult ctor.
16816 (get_width_and_precision): Remove.
16817 (format_integer): Make naming changes. Avoid computing width and
16818 precision.
16819 (format_floating): Same. Adjust indentation.
16820 (format_character, format_none): New functions.
16821 (format_string): Moved character handling to format_character.
16822 (format_directive): Remove arguments, change return type.
16823 (parse_directive): New function.
16824 (pass_sprintf_length::compute_format_length): Move directive
16825 parsing to parse_directive.
16826
16827 2017-01-23 Jakub Jelinek <jakub@redhat.com>
16828
16829 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
16830 (assign_assembler_name_if_needed): ... this.
16831 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
16832 (assign_assembler_name_if_needed): ... this.
16833 (free_lang_data_in_cgraph): Adjust callers.
16834 * cgraphunit.c (cgraph_node::analyze): Likewise.
16835 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
16836 Likewise.
16837
16838 2017-01-23 Richard Biener <rguenther@suse.de>
16839
16840 PR tree-optimization/79088
16841 PR tree-optimization/79188
16842 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
16843 resetting loop bounds after last path deletion. Reset loop
16844 bounds of the target loop, make code match the comments.
16845 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
16846 Make sure loops need no fixups.
16847
16848 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
16849
16850 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
16851 exponent support with double type for first argument.
16852 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
16853 type returned by __builtin_vec_extract_sig,
16854 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
16855 functions from "vector int" to "vector unsigned int" or from
16856 "vector long long int" to "vector unsigned long long int".
16857 Changed type returned by __builtin_vec_extract_exp,
16858 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
16859 functions from "vector int" to "vector unsigned int" or from
16860 "vector long long int" to "vector unsigned long long int".
16861 Changed return type of __builtin_vec_test_data_class,
16862 __builtin_vec_test_data_class_sp, and
16863 __builtin_vec_test_data_class_dp from "vector int" to
16864 "vector bool int" or from "vector long long int" to "vector bool
16865 long long int" and changed second argument type from "unsigned
16866 int" to "int". Added new overloaded function forms "vector float
16867 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
16868 "vector float __builtin_vec_insert_exp_sp (vector float, vector
16869 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
16870 double, vector unsigned long long int)" and "vector double
16871 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
16872 long int)". Changed return type of
16873 __builtin_scalar_test_data_class and
16874 __builtin_scalar_test_data_class_sp and
16875 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
16876 int" and changed second argument from "unsigned int" to "int".
16877 Changed type returned by __builtin_scalar_test_neg,
16878 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
16879 from "int" to "bool int". Added new overloaded function form
16880 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
16881 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
16882 exponent double-precision with floating point first argument.
16883 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
16884 documentation of scalar_test_data_class, scalar_test_neg,
16885 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
16886 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
16887 vec_test_data_class built-in functions to reflect refinements in
16888 their type signatures.
16889
16890 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
16891
16892 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
16893 size of buf.
16894 (aarch64_elf_asm_destructor): Likewise.
16895
16896 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
16897
16898 PR rtl-optimization/78634
16899 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
16900 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
16901 * ifcvt.c (noce_try_cmove): Add missing cost check.
16902
16903 PR rtl-optimization/71724
16904 * combine.c (if_then_else_cond): Look for situations where it is
16905 beneficial to undo the work of one of the recursive calls.
16906
16907 2017-01-23 Bin Cheng <bin.cheng@arm.com>
16908
16909 PR tree-optimization/70754
16910 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
16911 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
16912 combined stmt before it if not NULL.
16913 (combine_chains): Process refs reversely and compute dominance point
16914 for root ref.
16915
16916 2017-01-23 Martin Liska <mliska@suse.cz>
16917
16918 PR tree-optimization/79196
16919 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
16920 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
16921 instead of memcmp.
16922 (strlen_optimize_stmt): Call the renamed function.
16923
16924 2017-01-23 Michael Matz <matz@suse.de>
16925
16926 PR tree-optimization/78384
16927 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
16928
16929 2017-01-23 Richard Biener <rguenther@suse.de>
16930
16931 PR tree-optimization/79186
16932 * tree-vrp.c (register_new_assert_for): Make sure we've seen
16933 both incoming edges before moving an assert.
16934
16935 2017-01-23 Martin Jambor <mjambor@suse.cz>
16936
16937 * ipa-prop.c (load_from_param_1): Removed.
16938 (load_from_unmodified_param): Bits from load_from_param_1 put back
16939 here.
16940 (load_from_param): Removed.
16941 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
16942 with stmt. Reverted back to use of load_from_unmodified_param.
16943
16944 2017-01-23 Martin Jambor <mjambor@suse.cz>
16945
16946 PR ipa/79108
16947 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
16948 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
16949 field a pointer to garbage collected vector, mark lattices and
16950 ipcp_orig_node with GTY((skip)).
16951 (ipa_get_param_count): Adjust to descriptors being a pointer.
16952 (ipa_get_param): Likewise.
16953 (ipa_get_type): Likewise.
16954 (ipa_get_param_move_cost): Likewise.
16955 (ipa_set_param_used): Likewise.
16956 (ipa_get_controlled_uses): Likewise.
16957 (ipa_set_controlled_uses): Likewise.
16958 (ipa_is_param_used): Likewise.
16959 (ipa_node_params_t): Move into garbage collector. New methods insert
16960 and remove.
16961 (ipa_node_params_sum): Annotate wth GTY(()).
16962 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
16963 garbage collected.
16964 (ipa_load_from_parm_agg): Adjust declaration.
16965 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
16966 * ipa-profile.c (ipa_profile): Likewise.
16967 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
16968 (ipa_populate_param_decls): Make descriptors parameter garbage
16969 collected.
16970 (ipa_dump_param): Adjust to descriptors being a pointer.
16971 (ipa_alloc_node_params): Likewise.
16972 (ipa_initialize_node_params): Likewise.
16973 (load_from_param_1): Make descriptors parameter garbage collected.
16974 (load_from_unmodified_param): Likewise.
16975 (load_from_param): Likewise.
16976 (ipa_load_from_parm_agg): Likewise.
16977 (ipa_node_params::~ipa_node_params): Removed.
16978 (ipa_free_all_node_params): Remove call to delete operator.
16979 (ipa_node_params_t::insert): New.
16980 (ipa_node_params_t::remove): Likewise.
16981 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
16982 copy known_csts and known_contexts vectors.
16983 (ipa_read_node_info): Adjust to descriptors being a pointer.
16984 (ipcp_modif_dom_walker): Make m_descriptors field garbage
16985 collected.
16986 (ipcp_transform_function): Make descriptors variable garbage
16987 collected.
16988
16989 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
16990
16991 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
16992 * config/i386/avx512dqintrin.h: Ditto.
16993 * config/i386/avx512fintrin.h: Ditto.
16994 * config/i386/i386.c: Handle new builtins.
16995 * config/i386/i386-builtin.def: Add new builtins.
16996 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
16997 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
16998
16999 2017-01-23 Jakub Jelinek <jakub@redhat.com>
17000 Martin Liska <mliska@suse.cz>
17001
17002 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
17003 * asan.c (asan_expand_poison_ifn): Support stores and use
17004 appropriate ASAN report function.
17005 * internal-fn.c (expand_ASAN_POISON_USE): New function.
17006 * internal-fn.def (ASAN_POISON_USE): Declare.
17007 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
17008 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
17009 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
17010 ASAN_POISON calls w/o LHS.
17011 * tree-ssa.c (execute_update_addresses_taken): Create clobber
17012 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
17013 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
17014 * gimplify.c (asan_poison_variables): Add attribute
17015 use_after_scope_memory to variables that really needs to live
17016 in memory.
17017 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
17018 having the attribute.
17019
17020 2017-01-23 Martin Liska <mliska@suse.cz>
17021
17022 * asan.c (create_asan_shadow_var): New function.
17023 (asan_expand_poison_ifn): Likewise.
17024 * asan.h (asan_expand_poison_ifn): New declaration.
17025 * internal-fn.c (expand_ASAN_POISON): Likewise.
17026 * internal-fn.def (ASAN_POISON): New builtin.
17027 * sanopt.c (pass_sanopt::execute): Expand
17028 asan_expand_poison_ifn.
17029 * tree-inline.c (copy_decl_for_dup_finish): Make function
17030 external.
17031 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
17032 * tree-ssa.c (is_asan_mark_p): New function.
17033 (execute_update_addresses_taken): Rewrite local variables
17034 (identified just by use-after-scope as addressable) into SSA.
17035
17036 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
17037
17038 * doc/install.texi (Specific): opensource.apple.com uses https
17039 now. Remove trailing slash.
17040
17041 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
17042
17043 * README.Portability: Remove note on an Irix compatibility issue.
17044
17045 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
17046
17047 * gcov.c (INCLUDE_ALGORITHM): Define.
17048 (INCLUDE_VECTOR): Define.
17049 No longer include <vector> and <algorithm> directly.
17050
17051 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
17052
17053 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
17054 to https.
17055 * doc/invoke.texi (Code Gen Options): Ditto.
17056
17057 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
17058
17059 PR lto/78407
17060 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
17061
17062 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
17063
17064 rtl-optimization/79125
17065 * cprop.c (local_cprop_pass): Handle cases where we make an
17066 unconditional trap.
17067
17068 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
17069
17070 PR target/61729
17071 PR target/77850
17072 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
17073 read from, for big endian.
17074
17075 2017-01-20 Jiong Wang <jiong.wang@arm.com>
17076
17077 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
17078 register pauth builtins for LP64 only.
17079
17080 2017-01-20 Marek Polacek <polacek@redhat.com>
17081
17082 PR c/79152
17083 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
17084 non-case labels.
17085
17086 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
17087
17088 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
17089 of safelen status.
17090 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
17091 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
17092 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
17093
17094 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17095
17096 PR target/71270
17097 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
17098 in big-endian mode when they are not a single duplicated value.
17099
17100 2017-01-20 Richard Biener <rguenther@suse.de>
17101
17102 * BASE-VER: Bump to 7.0.1.
17103
17104 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
17105
17106 * omp-low.c (omplow_simd_context): New struct. Use it...
17107 (lower_rec_simd_input_clauses): ...here and...
17108 (lower_rec_input_clauses): ...here to hold common data. Adjust all
17109 references to idx, lane, max_vf, is_simt.
17110
17111 2017-01-20 Graham Markall <graham.markall@embecosm.com>
17112
17113 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
17114 mcpu=nps400.
17115
17116 2017-01-20 Martin Jambor <mjambor@suse.cz>
17117
17118 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
17119 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
17120 gt-hsa-common.h.
17121 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
17122 (GTFILES): Rename hsa.c to hsa-common.c.
17123 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
17124 * hsa-dump.c: Likewise.
17125 * hsa-gen.c: Likewise.
17126 * hsa-regalloc.c: Likewise.
17127 * ipa-hsa.c: Likewise.
17128 * omp-expand.c: Likewise.
17129 * omp-low.c: Likewise.
17130 * toplev.c: Likewise.
17131
17132 2017-01-20 Marek Polacek <polacek@redhat.com>
17133
17134 PR c/64279
17135 * doc/invoke.texi: Document -Wduplicated-branches.
17136 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
17137 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
17138 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
17139 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
17140 return 0 only when not OEP_LEXICOGRAPHIC.
17141 (fold_build_cleanup_point_expr): Use the expression
17142 location when building CLEANUP_POINT_EXPR.
17143 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
17144 * tree.c (add_expr): Handle error_mark_node.
17145
17146 2017-01-20 Martin Liska <mliska@suse.cz>
17147
17148 PR lto/69188
17149 * tree-profile.c (init_ic_make_global_vars): Do not call
17150 finalize_decl.
17151 (gimple_init_gcov_profiler): Likewise.
17152
17153 2017-01-20 Martin Liska <mliska@suse.cz>
17154
17155 PR ipa/71190
17156 * cgraph.h (maybe_create_reference): Remove argument and
17157 update comment.
17158 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
17159 argument.
17160 * ipa-cp.c (create_specialized_node): Likewise.
17161 * symtab.c (symtab_node::maybe_create_reference): Handle
17162 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
17163
17164 2017-01-20 Martin Liska <mliska@suse.cz>
17165
17166 * read-rtl-function.c (function_reader::create_function): Use
17167 build_decl instread of build_decl_stat.
17168
17169 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
17170
17171 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
17172 * config/i386/avx512dqintrin.h: Ditto.
17173 * config/i386/avx512fintrin.h: Ditto.
17174 * config/i386/i386-builtin-types.def: Add new types.
17175 * config/i386/i386.c: Handle new types.
17176 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
17177 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
17178 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
17179 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
17180 (__builtin_ia32_kshiftridi): New.
17181 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
17182
17183 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
17184
17185 PR target/78875
17186 PR target/79140
17187 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
17188 define to rs6000_init_stack_protect_guard.
17189 (rs6000_init_stack_protect_guard): New function.
17190
17191 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
17192 Yunqiang Su <yunqiang.su@imgtec.com>
17193
17194 * config.gcc (supported_defaults): Add madd4.
17195 (with_madd4): Add validation.
17196 (all_defaults): Add madd4.
17197 * config/mips/mips.opt (mmadd4): New option.
17198 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
17199 mmadd4.
17200 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
17201 __mips_no_madd4.
17202 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
17203 (ISA_HAS_FUSED_MADD4): Likewise.
17204 * doc/invoke.texi (-mmadd4): Document the new option.
17205 * doc/install.texi (--with-madd4): Document the new option.
17206
17207 2017-01-19 Jiong Wang <jiong.wang@arm.com>
17208
17209 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
17210 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
17211 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
17212 (aarch64_init_pauth_hint_builtins): New.
17213 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
17214 (aarch64_expand_builtin): Expand new builtins.
17215
17216 2017-01-19 Jiong Wang <jiong.wang@arm.com>
17217
17218 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
17219 * combine-stack-adj.c (no_unhandled_cfa): Handle
17220 REG_CFA_TOGGLE_RA_MANGLE.
17221 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
17222 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
17223 info for return address signing.
17224 (aarch64_expand_epilogue): Likewise.
17225
17226 2017-01-19 Jiong Wang <jiong.wang@arm.com>
17227
17228 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
17229 * config/aarch64/aarch64-protos.h
17230 (aarch64_return_address_signing_enabled): New declaration.
17231 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
17232 New function.
17233 (aarch64_expand_prologue): Sign return address before it's pushed onto
17234 stack.
17235 (aarch64_expand_epilogue): Authenticate return address fetched from
17236 stack.
17237 (aarch64_override_options): Sanity check for ILP32 and ISA level.
17238 (aarch64_attributes): New function attributes for "sign-return-address".
17239 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
17240 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
17241 ("*do_return"): Generate combined instructions according to key index.
17242 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
17243 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
17244 iterators.
17245 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
17246 * config/aarch64/aarch64.opt (msign-return-address=): New.
17247 * doc/extend.texi (AArch64 Function Attributes): Documents
17248 "sign-return-address=".
17249 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
17250
17251 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
17252
17253 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
17254 overall option summary.
17255
17256 2017-01-19 Jiong Wang <jiong.wang@arm.com>
17257
17258 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
17259 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
17260 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
17261 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
17262
17263 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17264
17265 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
17266 -mpower9-minmax by default for -mcpu=power9.
17267 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
17268 128-bit floating point.
17269
17270 2017-01-20 Alan Modra <amodra@gmail.com>
17271
17272 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
17273 optimizing for size.
17274
17275 2017-01-20 Alan Modra <amodra@gmail.com>
17276
17277 PR target/79144
17278 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
17279 for strcmp and strncmp from corresponding builtin decl.
17280
17281 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
17282
17283 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
17284 instead of i386/rtems-64.h.
17285 * config/i386/rtems-64.h: Remove.
17286
17287 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
17288
17289 PR target/78478
17290 Revert:
17291 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
17292
17293 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
17294
17295 2017-01-19 Tamar Christina <tamar.christina@arm.com>
17296
17297 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
17298 Change int to HOST_WIDE_INT.
17299 * config/aarch64/aarch64-protos.h
17300 (aarch64_simd_gen_const_vector_dup): Likewise.
17301 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
17302
17303 2017-01-19 David Malcolm <dmalcolm@redhat.com>
17304
17305 * langhooks-def.h (lhd_type_for_size): New decl.
17306 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
17307 * langhooks.c (lhd_type_for_size): New function, taken from
17308 lto_type_for_size.
17309
17310 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
17311
17312 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
17313 define_bypass for CR latency.
17314 (power9-cracked-alu): Update bypass latency and remove power9-branch.
17315 (power9-alu2): Add define_bypass for CR latency.
17316 (power9-cmp): New.
17317 (power9-mul): Update insn latency.
17318 (power9-mul-compare): Update insn latency, bypass latency and remove
17319 power9-branch.
17320
17321 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17322
17323 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
17324 Delete.
17325 * config/aarch64/aarch64.md
17326 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
17327 aarch64_nopcrelative_literal_loads.
17328 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
17329
17330 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
17331
17332 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
17333 TARGET_LOONGSON_3A.
17334 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
17335
17336 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
17337
17338 PR target/78176
17339 * config.gcc (supported_defaults): Add lxc1-sxc1.
17340 (with_lxc1_sxc1): Add validation.
17341 (all_defaults): Add lxc1-sxc1.
17342 * config/mips/mips.opt (mlxc1-sxc1): New option.
17343 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
17344 mlxc1-sxc1.
17345 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
17346 __mips_no_lxc1_sxc1.
17347 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
17348 * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
17349 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
17350
17351 2017-01-19 Richard Biener <rguenther@suse.de>
17352
17353 PR tree-optimization/72488
17354 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
17355 sure to restore SSA info.
17356 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
17357
17358 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
17359
17360 PR rtl-optimization/79121
17361 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
17362 of the inner type when shifting an extended value.
17363
17364 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
17365
17366 PR lto/78407
17367 * symtab.c (symtab_node::equal_address_to): Fix comparing of
17368 interposable aliases.
17369
17370 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
17371
17372 PR target/78516
17373 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
17374 Use the evmergelohi instruction.
17375 (mov_si<mode>_e500_subreg4_2_le): Likewise.
17376 (mov_sitf_e500_subreg8_2_be): Likewise.
17377 (mov_sitf_e500_subreg12_2_le): Likewise.
17378 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
17379 (mov_si<mode>_e500_subreg4_2_be): Likewise.
17380 (mov_sitf_e500_subreg8_2_le): Likewise.
17381 (mov_sitf_e500_subreg12_2_be): Likewise.
17382
17383 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17384
17385 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
17386 attribute from vecsimple to vecperm.
17387 (altivec_vbpermq2): Likewise.
17388
17389 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17390
17391 PR target/79040
17392 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
17393
17394 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17395 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
17396 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
17397 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
17398 case where N arg is SIZE_MAX.
17399 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
17400 (cmpstrsi): Add pattern.
17401
17402 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17403
17404 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17405 __builtin_vec_revb builtins.
17406 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
17407 built-in functions to support generation of the ISA 3.0 XXBR<x>
17408 vector byte reverse instructions.
17409 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
17410 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
17411 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
17412 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
17413 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
17414 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
17415 (P9V_BUILTIN_VEC_REVB): Likewise.
17416 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
17417 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
17418 (p9_xxbrq_v16qi): Likewise.
17419 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
17420 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
17421 (p9_xxbrh_v8hi): Likewise.
17422 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
17423 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
17424 vec_revb built-in functions.
17425
17426 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
17427
17428 PR rtl-optimization/78952
17429 * config/i386/i386.md (any_extract): New code iterator.
17430 (*insvqi_2): Use any_extract for source operand.
17431 (*insvqi_3): Use any_shiftrt for source operand.
17432
17433 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
17434
17435 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
17436 New function.
17437 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
17438
17439 2017-01-18 Matthias Klose <doko@ubuntu.com>
17440
17441 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
17442
17443 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17444
17445 * config/rs6000/altivec.h (vec_bperm): Change #define.
17446 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
17447 (altivec_vbpermq2): New define_insn.
17448 (altivec_vbpermd): Likewise.
17449 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
17450 function interface.
17451 (VBPERMD): Likewise.
17452 (VBPERM): New polymorphic function interface.
17453 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
17454 Add entries for P9V_BUILTIN_VEC_VBPERM.
17455 * doc/extend.texi: Add interfaces for vec_bperm.
17456
17457 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17458
17459 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
17460 first letter of error messages.
17461 (s390_resolve_overloaded_builtin): Likewise.
17462 * config/s390/s390.c (s390_expand_builtin): Likewise.
17463 (s390_invalid_arg_for_unprototyped_fn): Likewise.
17464 (s390_valid_target_attribute_inner_p): Likewise.
17465 * config/s390/s390.md ("tabort"): Likewise.
17466
17467 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
17468
17469 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
17470 (ISA_AVOID_DIV_HILO): New macro.
17471 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
17472 (ISA_HAS_DDIV): Likewise.
17473
17474 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
17475
17476 * doc/invoke.texi (fabi-version): Correct number of occurrences.
17477
17478 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
17479
17480 * doc/invoke.texi (fabi-version): Spelling fix.
17481
17482 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
17483
17484 PR c++/70182
17485 * doc/invoke.texi (fabi-version): Mention mangling fix for
17486 operator names.
17487
17488 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
17489
17490 PR c++/77489
17491 * doc/invoke.texi (fabi-version): Document discriminator mangling.
17492
17493 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
17494
17495 PR target/78875
17496 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
17497 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
17498 the new options.
17499 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
17500 flexible settings.
17501 (stack_protect_test): Ditto.
17502 * config/rs6000/rs6000.opt (mstack-protector-guard=,
17503 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
17504 options.
17505 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
17506 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
17507 -mstack-protector-guard-offset=.
17508 (RS/6000 and PowerPC Options): Ditto.
17509
17510 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
17511
17512 * config/i386/i386.h (MASK_CLASS_P): New define.
17513 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
17514 there are no registers from different register sets also when
17515 mask registers are used. Update function comment.
17516 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
17517 to (*k/*r) and (*k/*km) alternatives.
17518
17519 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
17520
17521 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
17522 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
17523 (EH_RETURN_HANDLER_RTX): New define.
17524 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
17525 Force frame pointer in EH return functions.
17526 (aarch64_expand_epilogue): Add barrier for eh_return.
17527 (aarch64_final_eh_return_addr): Remove.
17528 (aarch64_eh_return_handler_rtx): New function.
17529 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
17530 Remove.
17531 (aarch64_eh_return_handler_rtx): New prototype.
17532
17533 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17534
17535 * config/rs6000/altivec.h (vec_rlmi): New #define.
17536 (vec_vrlnm): Likewise.
17537 (vec_rlnm): Likewise.
17538 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
17539 (UNSPEC_VRLNM): Likewise.
17540 (VIlong): New mode iterator.
17541 (altivec_vrl<VI_char>mi): New define_insn.
17542 (altivec_vrl<VI_char>nm): Likewise.
17543 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
17544 function entry.
17545 (VRLDNM): Likewise.
17546 (RLNM): New polymorphic function entry.
17547 (VRLWMI): New monomorphic function entry.
17548 (VRLDMI): Likewise.
17549 (RLMI): New polymorphic function entry.
17550 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
17551 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
17552 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
17553 vec_vrlnm.
17554
17555 2017-01-17 Jakub Jelinek <jakub@redhat.com>
17556
17557 PR debug/78839
17558 * dwarf2out.c (field_byte_offset): Restore the
17559 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
17560 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
17561 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
17562 of build2 + fold.
17563
17564 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
17565
17566 PR ada/67205
17567 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
17568
17569 2017-01-17 Jakub Jelinek <jakub@redhat.com>
17570
17571 PR debug/71669
17572 * dwarf2out.c (add_data_member_location_attribute): For constant
17573 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
17574 instead of DW_AT_data_member_location, DW_AT_bit_offset and
17575 DW_AT_byte_size attributes.
17576
17577 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
17578
17579 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
17580 after forcing to constant memory when the code model is medium.
17581
17582 2017-01-17 Julia Koval <julia.koval@intel.com>
17583
17584 PR target/76731
17585 * config/i386/avx512fintrin.h
17586 (_mm512_i32gather_ps): Change __addr type to void const*.
17587 (_mm512_mask_i32gather_ps): Ditto.
17588 (_mm512_i32gather_pd): Ditto.
17589 (_mm512_mask_i32gather_pd): Ditto.
17590 (_mm512_i64gather_ps): Ditto.
17591 (_mm512_mask_i64gather_ps): Ditto.
17592 (_mm512_i64gather_pd): Ditto.
17593 (_mm512_mask_i64gather_pd): Ditto.
17594 (_mm512_i32gather_epi32): Ditto.
17595 (_mm512_mask_i32gather_epi32): Ditto.
17596 (_mm512_i32gather_epi64): Ditto.
17597 (_mm512_mask_i32gather_epi64): Ditto.
17598 (_mm512_i64gather_epi32): Ditto.
17599 (_mm512_mask_i64gather_epi32): Ditto.
17600 (_mm512_i64gather_epi64): Ditto.
17601 (_mm512_mask_i64gather_epi64): Ditto.
17602 (_mm512_i32scatter_ps): Change __addr type to void*.
17603 (_mm512_mask_i32scatter_ps): Ditto.
17604 (_mm512_i32scatter_pd): Ditto.
17605 (_mm512_mask_i32scatter_pd): Ditto.
17606 (_mm512_i64scatter_ps): Ditto.
17607 (_mm512_mask_i64scatter_ps): Ditto.
17608 (_mm512_i64scatter_pd): Ditto.
17609 (_mm512_mask_i64scatter_pd): Ditto.
17610 (_mm512_i32scatter_epi32): Ditto.
17611 (_mm512_mask_i32scatter_epi32): Ditto.
17612 (_mm512_i32scatter_epi64): Ditto.
17613 (_mm512_mask_i32scatter_epi64): Ditto.
17614 (_mm512_i64scatter_epi32): Ditto.
17615 (_mm512_mask_i64scatter_epi32): Ditto.
17616 (_mm512_i64scatter_epi64): Ditto.
17617 (_mm512_mask_i64scatter_epi64): Ditto.
17618 * config/i386/avx512pfintrin.h
17619 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
17620 (_mm512_mask_prefetch_i32gather_ps): Ditto.
17621 (_mm512_mask_prefetch_i64gather_pd): Ditto.
17622 (_mm512_mask_prefetch_i64gather_ps): Ditto.
17623 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
17624 (_mm512_prefetch_i32scatter_ps): Ditto.
17625 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
17626 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
17627 (_mm512_prefetch_i64scatter_pd): Ditto.
17628 (_mm512_prefetch_i64scatter_ps): Ditto.
17629 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
17630 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
17631 * config/i386/avx512vlintrin.h
17632 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
17633 (_mm_mmask_i32gather_ps): Ditto.
17634 (_mm256_mmask_i32gather_pd): Ditto.
17635 (_mm_mmask_i32gather_pd): Ditto.
17636 (_mm256_mmask_i64gather_ps): Ditto.
17637 (_mm_mmask_i64gather_ps): Ditto.
17638 (_mm256_mmask_i64gather_pd): Ditto.
17639 (_mm_mmask_i64gather_pd): Ditto.
17640 (_mm256_mmask_i32gather_epi32): Ditto.
17641 (_mm_mmask_i32gather_epi32): Ditto.
17642 (_mm256_mmask_i32gather_epi64): Ditto.
17643 (_mm_mmask_i32gather_epi64): Ditto.
17644 (_mm256_mmask_i64gather_epi32): Ditto.
17645 (_mm_mmask_i64gather_epi32): Ditto.
17646 (_mm256_mmask_i64gather_epi64): Ditto.
17647 (_mm_mmask_i64gather_epi64): Ditto.
17648 (_mm256_i32scatter_ps): Change __addr type to void*.
17649 (_mm256_mask_i32scatter_ps): Ditto.
17650 (_mm_i32scatter_ps): Ditto.
17651 (_mm_mask_i32scatter_ps): Ditto.
17652 (_mm256_i32scatter_pd): Ditto.
17653 (_mm256_mask_i32scatter_pd): Ditto.
17654 (_mm_i32scatter_pd): Ditto.
17655 (_mm_mask_i32scatter_pd): Ditto.
17656 (_mm256_i64scatter_ps): Ditto.
17657 (_mm256_mask_i64scatter_ps): Ditto.
17658 (_mm_i64scatter_ps): Ditto.
17659 (_mm_mask_i64scatter_ps): Ditto.
17660 (_mm256_i64scatter_pd): Ditto.
17661 (_mm256_mask_i64scatter_pd): Ditto.
17662 (_mm_i64scatter_pd): Ditto.
17663 (_mm_mask_i64scatter_pd): Ditto.
17664 (_mm256_i32scatter_epi32): Ditto.
17665 (_mm256_mask_i32scatter_epi32): Ditto.
17666 (_mm_i32scatter_epi32): Ditto.
17667 (_mm_mask_i32scatter_epi32): Ditto.
17668 (_mm256_i32scatter_epi64): Ditto.
17669 (_mm256_mask_i32scatter_epi64): Ditto.
17670 (_mm_i32scatter_epi64): Ditto.
17671 (_mm_mask_i32scatter_epi64): Ditto.
17672 (_mm256_i64scatter_epi32): Ditto.
17673 (_mm256_mask_i64scatter_epi32): Ditto.
17674 (_mm_i64scatter_epi32): Ditto.
17675 (_mm_mask_i64scatter_epi32): Ditto.
17676 (_mm256_i64scatter_epi64): Ditto.
17677 (_mm256_mask_i64scatter_epi64): Ditto.
17678 (_mm_i64scatter_epi64): Ditto.
17679 (_mm_mask_i64scatter_epi64): Ditto.
17680 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
17681 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
17682 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
17683 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
17684 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
17685 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
17686 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
17687 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
17688 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
17689 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
17690 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
17691 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
17692 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
17693 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
17694 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
17695 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
17696 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
17697 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
17698 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
17699 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
17700 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
17701 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
17702 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
17703 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
17704 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
17705 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
17706 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
17707 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
17708 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
17709 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
17710 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
17711 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
17712 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
17713 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
17714 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
17715 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
17716 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
17717 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
17718 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
17719 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
17720 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
17721 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
17722 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
17723 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
17724 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
17725 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
17726 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
17727 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
17728 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
17729 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
17730 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
17731 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
17732 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
17733 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
17734 definitions accordingly.
17735
17736 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
17737 Kuan-Lin Chen <kuanlinchentw@gmail.com>
17738
17739 PR target/79079
17740 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
17741 gen_lowpart.
17742
17743 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
17744
17745 PR target/79058
17746 * ira-conflicts.c (ira_build_conflicts): Update total conflict
17747 hard regs for inner regno.
17748
17749 2017-01-17 Martin Liska <mliska@suse.cz>
17750
17751 PR ipa/71207
17752 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
17753 assumption and add comment.
17754
17755 2017-01-17 Nathan Sidwell <nathan@acm.org>
17756
17757 * ipa-visibility.c (localize_node): New function, broken out of ...
17758 (function_and_variable_visibility): ... here. Call it.
17759
17760 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
17761
17762 PR middle-end/77445
17763 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
17764 correctly set frequency of oudgoing edge.
17765 (duplicate_thread_path): Fix profile updating.
17766
17767 2017-01-17 Jakub Jelinek <jakub@redhat.com>
17768
17769 PR other/79046
17770 * configure.ac: Add GCC_BASE_VER.
17771 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
17772 version from BASE-VER file.
17773 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
17774 (gcc.o): Depend on $(BASEVER).
17775 * common.opt (dumpfullversion): New option.
17776 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
17777 * doc/invoke.texi: Document -dumpfullversion.
17778 * doc/install.texi: Document --with-gcc-major-version-only.
17779 * configure: Regenerated.
17780
17781 2017-01-17 Richard Biener <rguenther@suse.de>
17782
17783 PR tree-optimization/71433
17784 * tree-vrp.c (register_new_assert_for): Merge same asserts
17785 on all incoming edges.
17786 (process_assert_insertions_for): Handle insertions at the
17787 beginning of BBs.
17788
17789 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
17790
17791 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
17792 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
17793
17794 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
17795
17796 PR target/78633
17797 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
17798 RTL sharing.
17799
17800 2017-01-17 Alan Modra <amodra@gmail.com>
17801
17802 PR target/79066
17803 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
17804 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
17805 symbolic stack limit when pic.
17806
17807 2017-01-16 Martin Sebor <msebor@redhat.com>
17808
17809 PR tree-optimization/78608
17810 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
17811
17812 2017-01-16 Jeff Law <law@redhat.com>
17813
17814 Revert:
17815 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
17816 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
17817 for several include directories that may be relative to sysroot.
17818 * config/i386/x-mingw32 (gplus_includedir): Define.
17819 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
17820 (native_system_includedir): Likewise.
17821 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
17822 override if TARGET_SYSTEM_ROOT is defined.
17823 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
17824
17825 PR tree-optimization/79090
17826 PR tree-optimization/33562
17827 PR tree-optimization/61912
17828 PR tree-optimization/77485
17829 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
17830 and computed trims into the dump file.
17831
17832 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
17833
17834 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
17835
17836 2017-01-16 Jakub Jelinek <jakub@redhat.com>
17837
17838 PR c/79089
17839 * gimplify.c (gimplify_init_constructor): If want_value and
17840 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
17841 fix.
17842
17843 PR target/79080
17844 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
17845 sequence. Formatting fixes.
17846 (doloop_optimize): Formatting fixes.
17847
17848 PR driver/49726
17849 * gcc.c (debug_level_greater_than_spec_func): New function.
17850 (static_spec_functions): Add debug-level-gt spec function.
17851 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
17852 !g0.
17853 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
17854 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
17855 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
17856 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
17857 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
17858 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
17859
17860 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
17861
17862 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
17863 QImode fixups to general and mask registers only.
17864
17865 2017-01-16 Carl Love <cel@us.ibm.com>
17866
17867 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
17868 for built-in functions
17869 vector signed char vec_nabs (vector signed char)
17870 vector signed short vec_nabs (vector signed short)
17871 vector signed int vec_nabs (vector signed int)
17872 vector signed long long vec_nabs (vector signed long long)
17873 vector float vec_nabs (vector float)
17874 vector double vec_nabs (vector double)
17875 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
17876 and NABS overload.
17877 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
17878 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
17879 * doc/extend.texi: Update the documentation file for the new built-in
17880 functions.
17881
17882 2017-01-16 Martin Sebor <msebor@redhat.com>
17883
17884 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
17885 message.
17886
17887 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17888
17889 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
17890 UNSPEC_VSX__XXSPLTD to require special splat handling.
17891
17892 2017-01-16 David Malcolm <dmalcolm@redhat.com>
17893
17894 PR bootstrap/78616
17895 * system.h: Poison strndup.
17896
17897 2017-01-16 Alan Modra <amodra@gmail.com>
17898
17899 PR target/79098
17900 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
17901 use a switch.
17902
17903 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
17904
17905 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
17906
17907 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
17908
17909 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
17910 call recog here. Assert that INSN_CODE (insn) is non-negative.
17911
17912 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
17913
17914 PR target/72749
17915 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
17916 fallthrough.
17917 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
17918 in the currently scheduled RTL fragment.
17919
17920 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
17921
17922 PR rtl-optimization/78751
17923 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
17924 give up.
17925
17926 2017-01-14 Jeff Law <law@redhat.com>
17927
17928 PR tree-optimization/79090
17929 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
17930 variable length stores.
17931 (compute_trims): Delete dead assignment to *trim_tail.
17932 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
17933 zero length.
17934
17935 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
17936
17937 PR rtl-optimization/78626
17938 PR rtl-optimization/78727
17939 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
17940 of a block, and split such blocks after everything else is finished.
17941
17942 2017-01-14 Alan Modra <amodra@gmail.com>
17943
17944 PR target/72749
17945 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
17946 target legitimate_combined_insn.
17947 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
17948 (rs6000_legitimate_combined_insn): New function.
17949 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
17950 all uses.
17951 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
17952 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
17953 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
17954
17955 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
17956
17957 * doc/frontends.texi (G++ and GCC): Remove references to Java.
17958
17959 2017-01-13 Jeff Law <law@redhat.com>
17960
17961 PR tree-optimization/33562
17962 PR tree-optimization/61912
17963 PR tree-optimization/77485
17964 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
17965 a statement.
17966 (delete_dead_assignment): Likewise.
17967 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
17968 statement to delete_dead_call and delete_dead_assignment.
17969
17970 2017-01-13 David Malcolm <dmalcolm@redhat.com>
17971
17972 PR c/78304
17973 * substring-locations.c (format_warning_va): Strengthen case 1 so
17974 that both endpoints of the substring must be within the format
17975 range for just the substring to be printed.
17976
17977 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
17978
17979 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
17980 * config/i386/i386.c (ix86_target_string): Add missing options
17981 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
17982 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
17983 flags_other and ix86_target_other to flags2_other. Display unknown
17984 isa2 options.
17985 (ix86_valid_target_attribute_inner_p): Add missing options and
17986 reorder options by implied ISAs, as in ix86_target_string.
17987
17988 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
17989
17990 * hash-table.h (hash_table::too_empty_p): New function.
17991 (hash_table::expand): Use it.
17992 (hash_table::traverse): Likewise.
17993 (hash_table::empty_slot): Use sizeof (value_type) instead of
17994 sizeof (PTR) to convert bytes to elements. Shrink the table
17995 if the current size is excessive for the current number of
17996 elements.
17997
17998 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
17999
18000 * ira-costs.c (record_reg_classes): Break from the inner loop
18001 early once alt_fail is known to be true. Update outer loop
18002 handling accordingly.
18003
18004 2017-01-13 Jeff Law <law@redhat.com>
18005
18006 * tree-ssa-dse.c (decrement_count): New function.
18007 (increment_start_addr, maybe_trim_memstar_call): Likewise.
18008 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
18009 when we know the partially dead statement is a mem* function.
18010
18011 PR tree-optimization/61912
18012 PR tree-optimization/77485
18013 * tree-ssa-dse.c: Include expr.h.
18014 (maybe_trim_constructor_store): New function.
18015 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
18016
18017 PR tree-optimization/33562
18018 PR tree-optimization/61912
18019 PR tree-optimization/77485
18020 * doc/invoke.texi: Document new dse-max-object-size param.
18021 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
18022 * tree-ssa-dse.c: Include params.h.
18023 (dse_store_status): New enum.
18024 (initialize_ao_ref_for_dse): New, partially extracted from
18025 dse_optimize_stmt.
18026 (valid_ao_ref_for_dse, normalize_ref): New.
18027 (setup_live_bytes_from_ref, compute_trims): Likewise.
18028 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
18029 (maybe_trim_partially_dead_store): Likewise.
18030 (maybe_trim_complex_store): Likewise.
18031 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
18032 Track what bytes live from the original store. Return tri-state
18033 for dead, partially dead or live.
18034 (dse_dom_walker): Add constructor, destructor and new private members.
18035 (delete_dead_call, delete_dead_assignment): New extracted from
18036 dse_optimize_stmt.
18037 (dse_optimize_stmt): Make a member of dse_dom_walker.
18038 Use initialize_ao_ref_for_dse.
18039
18040 PR tree-optimization/33562
18041 PR tree-optimization/61912
18042 PR tree-optimization/77485
18043 * sbitmap.h (bitmap_count_bits): Prototype.
18044 (bitmap_clear_range, bitmap_set_range): Likewise.
18045 * sbitmap.c (bitmap_clear_range): New function.
18046 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
18047
18048 2017-01-13 Martin Liska <mliska@suse.cz>
18049
18050 PR ipa/79043
18051 * function.c (set_cfun): Add new argument force.
18052 * function.h (set_cfun): Likewise.
18053 * ipa-inline-transform.c (inline_call): Use the function when
18054 strict alising from is dropped for function we inline to.
18055
18056 2017-01-13 Richard Biener <rguenther@suse.de>
18057
18058 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
18059 for dumping GIMPLE INTEGER_CSTs.
18060
18061 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18062
18063 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
18064 to 201112L since C++17.
18065
18066 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
18067
18068 PR sanitizer/78887
18069 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
18070 if -fsanitize=kernel-address is present.
18071
18072 2017-01-13 Richard Biener <rguenther@suse.de>
18073
18074 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
18075 as _Literal ( type ) number in case usual suffixes do not
18076 preserve all information.
18077
18078 2017-01-13 Richard Biener <rguenther@suse.de>
18079
18080 PR tree-optimization/77283
18081 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
18082 and ssa-iterators.h.
18083 (is_feasible_trace): Implement a cost model based on joiner
18084 PHI node uses.
18085
18086 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18087
18088 PR target/79004
18089 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
18090 char or short to __float128/_Float128 directly.
18091
18092 2017-01-12 Martin Sebor <msebor@redhat.com>
18093
18094 to -Wformat-overflow.
18095 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
18096 (min_bytes_remaining): Same.
18097 (get_string_length): Same.
18098 (format_string): Same.
18099 (format_directive): Same.
18100 (add_bytes): Same.
18101 (pass_sprintf_length::handle_gimple_call): Same.
18102
18103 2017-01-12 Jakub Jelinek <jakub@redhat.com>
18104
18105 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
18106 info.nowrite calls with no lhs that can't throw. Return bool
18107 whether gsi_remove has been called or not.
18108 (pass_sprintf_length::handle_gimple_call): Return bool whether
18109 try_substitute_return_value called gsi_remove. Formatting fix.
18110 (pass_sprintf_length::execute): Don't use gsi_remove if
18111 handle_gimple_call returned true.
18112
18113 PR bootstrap/79069
18114 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
18115 be removed due to side-effects, don't remove following barrier nor
18116 turn the successor edge into fallthru edge.
18117
18118 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18119
18120 PR target/79044
18121 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
18122 element-reversing loads and stores as not swappable.
18123
18124 2017-01-12 Nathan Sidwell <nathan@acm.org>
18125 Nicolai Stange <nicstange@gmail.com>
18126
18127 * combine.c (try_combine): Don't ignore result of overlap checking
18128 loop. Combine overlap & asm check into single loop.
18129
18130 2017-01-12 Richard Biener <rguenther@suse.de>
18131
18132 * tree-pretty-print.c (dump_generic_node): Provide -gimple
18133 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
18134
18135 2017-01-12 Richard Biener <rguenther@suse.de>
18136
18137 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
18138 and TS_TARGET_OPTION directly derive from TS_BASE.
18139 * tree-core.h (tree_optimization_option): Derive from tree_base.
18140 (tree_target_option): Likewise.
18141
18142 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
18143
18144 * config/i386/i386.c (memory_address_length): Increase len
18145 only when rip_relative_addr_p returns false.
18146
18147 2017-01-11 Julia Koval <julia.koval@intel.com>
18148
18149 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
18150 (OPTION_MASK_ISA_SGX_SET): New.
18151 (ix86_handle_option): Handle OPT_msgx.
18152 * config.gcc: Added sgxintrin.h.
18153 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
18154 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
18155 * config/i386/i386.c (ix86_target_string): Add -msgx.
18156 (PTA_SGX): New.
18157 (ix86_option_override_internal): Handle new options.
18158 (ix86_valid_target_attribute_inner_p): Add sgx.
18159 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
18160 * config/i386/i386.opt: Add msgx.
18161 * config/i386/sgxintrin.h: New file.
18162 * config/i386/x86intrin.h: Add sgxintrin.h.
18163
18164 2017-01-11 Jakub Jelinek <jakub@redhat.com>
18165
18166 PR c++/71537
18167 * fold-const.c (maybe_nonzero_address): Return 1 for function
18168 local objects.
18169 (tree_single_nonzero_warnv_p): Don't handle function local objects
18170 here.
18171
18172 PR c++/72813
18173 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
18174 of c-header.
18175
18176 2017-01-11 David Malcolm <dmalcolm@redhat.com>
18177
18178 PR driver/78877
18179 * opts.c: Include "spellcheck.h"
18180 (struct string_fragment): New struct.
18181 (struct edit_distance_traits<const string_fragment &>): New
18182 struct.
18183 (get_closest_sanitizer_option): New function.
18184 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
18185
18186 2017-01-11 Jakub Jelinek <jakub@redhat.com>
18187
18188 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
18189 by 12.
18190 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
18191 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
18192 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
18193 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
18194 for initial die_offset if dwarf_split_debug_info.
18195 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
18196 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
18197 fields.
18198 (output_skeleton_debug_sections): Formatting fix. Use
18199 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
18200 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
18201
18202 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
18203
18204 * config/arm/cortex-a53.md: Add bypasses for
18205 cortex_a53_r2f_cvt.
18206 (cortex_a53_r2f): Only use for transfers.
18207 (cortex_a53_f2r): Likewise.
18208 (cortex_a53_r2f_cvt): Add reservation for conversions.
18209 (cortex_a53_f2r_cvt): Likewise.
18210
18211 2017-01-11 Tamar Christina <tamar.christina@arm.com>
18212
18213 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
18214 to all inlined functions, change static to extern.
18215
18216 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
18217
18218 PR target/78253
18219 * config/arm/arm.c (legitimize_pic_address): Handle reference to
18220 weak symbol.
18221 (arm_assemble_integer): Likewise.
18222
18223 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
18224
18225 * config.gcc: Use new awk script to check CPU, FPU and architecture
18226 parameters for --with-... options.
18227 * config/arm/parsecpu.awk: New file
18228 * config/arm/arm-cpus.in: New file.
18229 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
18230 files.
18231 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
18232 files.
18233 * config/arm/t-arm: Update dependency rules.
18234 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
18235 of processing .def files.
18236 * config/arm/genopt.sh: Deleted.
18237 * config/arm/gentune.sh: Deleted.
18238 * config/arm/arm-cores.def: Deleted.
18239 * config/arm/arm-arches.def: Deleted.
18240 * config/arm/arm-fpus.def: Deleted.
18241 * config/arm/arm-tune.md: Regenerated.
18242 * config/arm/arm-tables.opt: Regenerated.
18243 * config/arm/arm-cpu.h: New generated file.
18244 * config/arm/arm-cpu-data.h: New generated file.
18245 * config/arm/arm-cpu-cdata.h: New generated file.
18246
18247 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
18248
18249 PR lto/79042
18250 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
18251 bit.
18252 (input_varpool_node): Unpack dynamically_initialized bit.
18253
18254 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
18255
18256 PR rtl-optimization/79032
18257 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
18258 the alignment of the adjusted memory reference against that of MODE,
18259 instead of the alignment of the original memory reference.
18260
18261 2017-01-11 Martin Jambor <mjambor@suse.cz>
18262
18263 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
18264 test.
18265 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
18266 decorated functions.
18267
18268 2017-01-11 Richard Biener <rguenther@suse.de>
18269
18270 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
18271 set range/nonnull info for PHI results. Do not set it on
18272 stmts marked for removal.
18273
18274 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
18275
18276 * expr.c (store_field): In the bitfield case, fetch the return value
18277 from the registers before applying a single big-endian adjustment.
18278 Always do a final load for a BLKmode value not larger than a word.
18279
18280 2017-01-10 David Malcolm <dmalcolm@redhat.com>
18281
18282 PR c++/77949
18283 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
18284 that we correctly handle column numbers greater than
18285 LINE_MAP_MAX_COLUMN_NUMBER.
18286
18287 2017-01-10 Martin Sebor <msebor@redhat.com>
18288
18289 PR middle-end/78245
18290 * gimple-ssa-sprintf.c (get_destination_size): Call
18291 {init,fini}object_sizes.
18292 * tree-object-size.c (addr_object_size): Adjust.
18293 (pass_through_call): Adjust.
18294 (pass_object_sizes::execute): Adjust.
18295 * tree-object-size.h (fini_object_sizes): Declare.
18296
18297 2017-01-10 Martin Sebor <msebor@redhat.com>
18298
18299 PR tree-optimization/78775
18300 * builtins.c (get_size_range): Move...
18301 * calls.c: ...to here.
18302 (alloc_max_size): Accept zero argument.
18303 (operand_signed_p): Remove.
18304 (maybe_warn_alloc_args_overflow): Call get_size_range.
18305 * calls.h (get_size_range): Declare.
18306
18307 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
18308
18309 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
18310 from TI's devices.csv file as of September 2016.
18311 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
18312
18313 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
18314
18315 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
18316 * doc/invoke.texi: Likewise.
18317 * doc/md.texi: Likewise.
18318 * doc/objc.texi: Likewise.
18319
18320 2017-01-10 Joshua Conner <joshconner@google.com>
18321
18322 * config/arm/fuchsia-elf.h: New file.
18323 * config/fuchsia.h: New file.
18324 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
18325 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
18326 targets.
18327 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
18328
18329 2016-01-10 Richard Biener <rguenther@suse.de>
18330
18331 PR tree-optimization/79034
18332 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
18333 Propagate out degenerate PHIs in the joiner.
18334
18335 2017-01-10 Martin Liska <mliska@suse.cz>
18336
18337 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
18338 (sort_congruence_classes_by_decl_uid): Likewise.
18339 (sort_congruence_class_groups_by_decl_uid): Likewise.
18340 (sem_item_optimizer::merge_classes): Sort class, groups in these
18341 classes and members in the groups by DECL_UID of declarations.
18342 This would make merge operations stable.
18343
18344 2017-01-10 Martin Liska <mliska@suse.cz>
18345
18346 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
18347 usage of m_classes_vec.
18348 (sem_item_optimizer::~sem_item_optimizer): Likewise.
18349 (sem_item_optimizer::get_group_by_hash): Likewise.
18350 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
18351 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
18352 (sem_item_optimizer::verify_classes): Likewise.
18353 (sem_item_optimizer::process_cong_reduction): Likewise.
18354 (sem_item_optimizer::dump_cong_classes): Likewise.
18355 (sem_item_optimizer::merge_classes): Likewise.
18356 * ipa-icf.h (congruence_class_hash): Rename from
18357 congruence_class_group_hash. Remove declaration of m_classes_vec.
18358
18359 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
18360
18361 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
18362 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
18363 * config.gcc: Add avx512vpopcntdqintrin.h.
18364 * config/i386/avx512vpopcntdqintrin.h: New.
18365 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
18366 * config/i386/i386-builtin-types.def: Add new types.
18367 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
18368 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
18369 __builtin_ia32_vpopcountq_v8di_mask): New.
18370 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18371 __AVX512VPOPCNTDQ__.
18372 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
18373 (PTA_AVX512VPOPCNTDQ): Define.
18374 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
18375 TARGET_AVX512VPOPCNTDQ_P): Define.
18376 * config/i386/i386.opt: Add mavx512vpopcntdq.
18377 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
18378 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
18379
18380 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
18381
18382 PR middle-end/77484
18383 * predict.def (PRED_CALL): Set to 67.
18384
18385 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
18386
18387 * expr.c (store_field): In the bitfield case, if the value comes from
18388 a function call and is of an aggregate type returned in registers, do
18389 not modify the field mode; extract the value in all cases if the mode
18390 is BLKmode and the size is not larger than a word.
18391
18392 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
18393
18394 PR target/71017
18395 * config/i386/cpuid.h: Fix undefined behavior.
18396
18397 2017-01-04 Jeff Law <law@redhat.com>
18398
18399 PR tree-optimization/79007
18400 PR tree-optimization/67955
18401 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
18402 conservative for pt.null when flag_non_call_exceptions is on.
18403
18404 2017-01-09 Jakub Jelinek <jakub@redhat.com>
18405
18406 PR translation/79019
18407 PR translation/79020
18408 * params.def (PARAM_INLINE_MIN_SPEEDUP,
18409 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
18410 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
18411 in descriptions.
18412 * config/avr/avr.opt (maccumulate-args): Likewise.
18413 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
18414 * common.opt (freport-bug): Likewise.
18415 * cif-code.def (CIF_FINAL_ERROR): Likewise.
18416 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
18417 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
18418 translatable string.
18419 * config/i386/i386.c (function_value_32): Likewise.
18420 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
18421 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
18422 Likewise.
18423 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
18424 * common/config/msp430/msp430-common.c (msp430_handle_option):
18425 Likewise.
18426 * symtab.c (symtab_node::verify_base): Likewise.
18427 * opts.c (set_debug_level): Likewise.
18428 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
18429 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18430 missing whitespace to translatable strings.
18431 * config/avr/avr.md (bswapsi2): Fix typo in comment.
18432 * config/sh/superh.h: Likewise.
18433 * config/i386/xopintrin.h: Likewise.
18434 * config/i386/znver1.md: Likewise.
18435 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
18436 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
18437 * double-int.h (struct double_int): Likewise.
18438 * double-int.c (div_and_round_double): Likewise.
18439 * wide-int.cc: Likewise.
18440 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18441 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
18442 * cfgcleanup.c (crossjumps_occured): Renamed to ...
18443 (crossjumps_occurred): ... this.
18444 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
18445 Adjust all uses.
18446
18447 PR tree-optimization/78899
18448 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
18449 returning bool return struct loop *, NULL for failure and the new
18450 loop on success.
18451 (versionable_outer_loop_p): Don't version outer loop if it has
18452 dont_vectorized bit set.
18453 (tree_if_conversion): When versioning outer loop, ensure
18454 tree_if_conversion is performed also on the inner loop of the
18455 non-vectorizable outer loop copy.
18456 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
18457 LOOP_VECTORIZED in inner loop of the scalar outer loop and
18458 prevent vectorization of it.
18459 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
18460 the outer loop vectorization of the non-scalar version is attempted
18461 before vectorization of the inner loop in scalar version. If
18462 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
18463 vectorization of its inner loop.
18464 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
18465 has 2 inner loops, rename also on edges from bb whose single pred
18466 is outer_loop->header. Fix typo in function comment.
18467
18468 2017-01-09 Martin Sebor <msebor@redhat.com>
18469
18470 PR bootstrap/79033
18471 * asan.c (asan_emit_stack_protection): Increase local buffer size
18472 to avoid snprintf truncation warning.
18473
18474 2017-01-09 Andrew Pinski <apinski@cavium.com>
18475
18476 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
18477 to reference thunderx2t99 for the tuning structure
18478 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
18479 Rename to ...
18480 (thunderx2t99_extra_costs): This.
18481 * config/aarch64/aarch64-tune.md: Regenerate.
18482 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
18483 (vulcan_addrcost_table): This.
18484 (vulcan_regmove_cost): Rename to ...
18485 (thunderx2t99_regmove_cost): This.
18486 (vulcan_vector_cost): Rename to ...
18487 (thunderx2t99_vector_cost): this.
18488 (vulcan_branch_cost): Rename to ...
18489 (thunderx2t99_branch_cost): This.
18490 (vulcan_tunings): Rename to ...
18491 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
18492 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
18493
18494 2017-01-09 Martin Jambor <mjambor@suse.cz>
18495
18496 PR ipa/78365
18497 PR ipa/78599
18498 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
18499 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
18500 (propagate_vr_accross_jump_function): Use the above function for all
18501 value range computations for pass-through jump functions and type
18502 converasion from explicit value range values.
18503 (ipcp_propagate_stage): Do not attempt to deduce types of formal
18504 parameters from TYPE_ARG_TYPES.
18505 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
18506 (ipa_write_node_info): Stream type of the actual argument.
18507 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
18508
18509 2017-01-09 Martin Liska <mliska@suse.cz>
18510
18511 PR pch/78970
18512 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
18513 (lookup_compiler): Do not show error message with have_E.
18514
18515 2017-01-09 Jakub Jelinek <jakub@redhat.com>
18516
18517 PR tree-optimization/78938
18518 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
18519 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
18520 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
18521 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
18522 fixes.
18523
18524 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18525
18526 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
18527 is const0_rtx.
18528
18529 2017-01-09 Richard Biener <rguenther@suse.de>
18530
18531 PR tree-optimization/78997
18532 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
18533 name condition properly.
18534
18535 2017-01-09 Richard Biener <rguenther@suse.de>
18536
18537 PR debug/79000
18538 * dwarf2out.c (is_cxx): New overload with context.
18539 (is_naming_typedef_decl): Use it.
18540
18541 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
18542
18543 * invoke.texi (Option Summary): Correct spacing in option lists
18544 and add line breaks to fix over-long lines.
18545
18546 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
18547
18548 PR middle-end/17660
18549
18550 * extend.texi (Common Variable Attributes): Add xref to GCC
18551 Internals manual to explain mode attribute keywords.
18552
18553 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
18554
18555 PR other/16519
18556 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
18557 and Preprocessor Options.
18558 (Options for Linking): Document -pthread here....
18559 (RS/6000 and PowerPC Options): ...not here.
18560 (Solaris 2 Options): ...or here.
18561 * doc/cppopts.texi: Document -pthread.
18562
18563 2017-01-08 Martin Sebor <msebor@redhat.com>
18564
18565 PR middle-end/77708
18566 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
18567 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
18568 New member functions.
18569 (format_directive): Used them.
18570 (add_bytes): Same.
18571 (pass_sprintf_length::handle_gimple_call): Same.
18572 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
18573 to avoid truncation for any argument.
18574 (extract_affine_mul): Same.
18575 * tree.c (get_file_function_name): Same.
18576
18577 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
18578
18579 PR middle-end/77484
18580 * predict.def (PRED_INDIR_CALL): Set to 86.
18581
18582 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
18583
18584 PR preprocessor/54124
18585 * doc/cppopts.texi: Reformat -d subtable to list the full name
18586 of the options. Add cross-reference to the docs for the general
18587 compiler -d options.
18588 * doc/invoke.texi (Developer Options): Add cross-reference to the
18589 preprocessor-specific -d option documentation.
18590
18591 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
18592
18593 PR preprocessor/13498
18594 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
18595 redudant material, and reflect new command-line options.
18596 (System Headers): Likewise.
18597
18598 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
18599
18600 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
18601 -isystem, and -idirafter. Copy-edit.
18602 * doc/cppopts.texi: Copy-edit. Remove contradiction about
18603 default for -ftrack-macro-expansion. Delete obsolete and
18604 badly-formatted implementation details about -fdebug-cpp output.
18605 * doc/cppwarnopts.texi: Copy-edit.
18606
18607 2017-01-07 David Malcolm <dmalcolm@redhat.com>
18608
18609 PR c++/72803
18610 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
18611 that the transition from a max line width >= 1<<10 to narrower
18612 lines works correctly.
18613
18614 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
18615
18616 * doc/options.texi (PerFunction): New.
18617 * opt-functions.awk (switch_flags): Map both Optimization and
18618 PerFunction to CL_OPTIMIZATION.
18619 * opth-gen.awk: Test for PerFunction flag along with
18620 Optimization.
18621 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
18622 it only when the latter is present. Skip those that don't in
18623 the hash function generator.
18624 * common.opt (fvar-tracking): Mark as PerFunction instead of
18625 Optimization.
18626 (fvar-tracking-assignments): Likewise.
18627 (fvar-tracking-assignments-toggle): Likewise.
18628 (fvar-tracking-uninit): Likewise.
18629
18630 2017-01-07 Jakub Jelinek <jakub@redhat.com>
18631
18632 PR translation/79018
18633 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
18634 the and store.
18635
18636 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
18637
18638 PR target/57583
18639 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
18640 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
18641 TARGET_LONG_JUMP_TABLE_OFFSETS.
18642 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18643 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18644 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
18645 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
18646 * config/m68k/m68k.md (tablejump expander): Likewise.
18647 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
18648 TARGET_LONG_JUMP_TABLE_OFFSETS.
18649 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
18650 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
18651
18652 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18653 David Holsgrove <david.holsgrove@xilinx.com>
18654
18655 * common/config/microblaze/microblaze-common.c
18656 (TARGET_EXCEPT_UNWIND_INFO): Remove.
18657 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
18658 New prototype.
18659 * config/microblaze/microblaze.c (microblaze_must_save_register)
18660 (microblaze_expand_epilogue, microblaze_return_addr): Handle
18661 calls_eh_return.
18662 (microblaze_eh_return): New function.
18663 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
18664 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
18665 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
18666 * config/microblaze/microblaze.md (eh_return): New pattern.
18667
18668 2017-01-06 Jakub Jelinek <jakub@redhat.com>
18669
18670 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
18671 GCC_DIAGNOSTIC_STRINGIFY): Define.
18672
18673 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
18674
18675 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
18676
18677 * config/arm/arm.md (<mcrr>): New.
18678 (<mrrc>): New.
18679 * config/arm/arm.c (arm_arch5te): New.
18680 (arm_option_override): Set arm_arch5te.
18681 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
18682 and mrrc2.
18683 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
18684 (arm_mcrr_qualifiers): ... this. New.
18685 (MRRC_QUALIFIERS): Define to...
18686 (arm_mrrc_qualifiers): ... this. New.
18687 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
18688 __arm_mrrc2): New.
18689 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
18690 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
18691 (MRRCI, mrrc, MRRC): New.
18692 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
18693 VUNSPEC_MRRC2): New.
18694
18695 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
18696
18697 * config/arm/arm.md (<mcr>): New.
18698 (<mrc>): New.
18699 * config/arm/arm.c (arm_coproc_builtin_available): Add
18700 support for mcr, mrc, mcr2 and mrc2.
18701 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
18702 (arm_mcr_qualifiers): ... this. New.
18703 (MRC_QUALIFIERS): Define to ...
18704 (arm_mrc_qualifiers): ... this. New.
18705 (MCR_QUALIFIERS): Define to ...
18706 (arm_mcr_qualifiers): ... this. New.
18707 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
18708 __arm_mrc2): New.
18709 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
18710 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
18711 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
18712 VUNSPEC_MRC2): New.
18713
18714 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
18715
18716 * config/arm/arm.md (*ldc): New.
18717 (*stc): New.
18718 (<ldc>): New.
18719 (<stc>): New.
18720 * config/arm/arm.c (arm_coproc_builtin_available): Add
18721 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
18722 (arm_coproc_ldc_stc_legitimate_address): New.
18723 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
18724 'qualifier_const_pointer'.
18725 (LDC_QUALIFIERS): Define to...
18726 (arm_ldc_qualifiers): ... this. New.
18727 (STC_QUALIFIERS): Define to...
18728 (arm_stc_qualifiers): ... this. New.
18729 * config/arm/arm-protos.h
18730 (arm_coproc_ldc_stc_legitimate_address): New.
18731 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
18732 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
18733 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
18734 stc2, stcl, stc2l): New.
18735 * config/arm/constraints.md (Uz): New.
18736 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
18737 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
18738 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
18739 VUNSPEC_STC2L): New.
18740
18741 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
18742
18743 * config/arm/arm.md (<cdp>): New.
18744 * config/arm/arm.c (neon_const_bounds): Rename this ...
18745 (arm_const_bounds): ... this.
18746 (arm_coproc_builtin_available): New.
18747 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
18748 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
18749 (CDP_QUALIFIERS): Define to...
18750 (arm_cdp_qualifiers): ... this. New.
18751 (void_UP): Define.
18752 (arm_expand_builtin_args): Add case for 6 arguments.
18753 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
18754 (arm_const_bounds): ... this.
18755 (arm_coproc_builtin_available): New.
18756 * config/arm/arm_acle.h (__arm_cdp): New.
18757 (__arm_cdp2): New.
18758 * config/arm/arm_acle_builtins.def (cdp): New.
18759 (cdp2): New.
18760 * config/arm/iterators.md (CDPI,CDP,cdp): New.
18761 * config/arm/neon.md: Rename all 'neon_const_bounds' to
18762 'arm_const_bounds'.
18763 * config/arm/types.md (coproc): New.
18764 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
18765 * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
18766 * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
18767 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
18768
18769 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
18770
18771 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
18772 (UBINOP_QUALIFIERS): New.
18773 (si_UP): Define.
18774 (acle_builtin_data): New. Change comment.
18775 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
18776 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
18777 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
18778 arm_acle_builtins.def.
18779 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
18780 (arm_init_acle_builtins): New.
18781 (CRC32_BUILTIN): Remove.
18782 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
18783 crc32cb, crc32ch and crc32cw.
18784 (arm_init_crc32_builtins): Remove.
18785 (arm_init_builtins): Use arm_init_acle_builtins rather
18786 than arm_init_crc32_builtins.
18787 (arm_expand_acle_builtin): New.
18788 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
18789 * config/arm/arm_acle_builtins.def: New.
18790
18791 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
18792
18793 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
18794 (arm_builtin_datum): ... this.
18795 (arm_init_neon_builtin): Rename to ...
18796 (arm_init_builtin): ... this. Add a new parameters PREFIX
18797 and USE_SIG_IN_NAME.
18798 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
18799 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
18800 'arm_builtin_datum'.
18801 (arm_init_vfp_builtins): Likewise.
18802 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
18803 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
18804 (arm_expand_neon_args): Rename to ...
18805 (arm_expand_builtin_args): ... this. Rename builtin_arg
18806 enum values and differentiate between ARG_BUILTIN_MEMORY
18807 and ARG_BUILTIN_NEON_MEMORY.
18808 (arm_expand_neon_builtin_1): Rename to ...
18809 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
18810 values, arm_expand_builtin_args and add bool parameter NEON.
18811 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
18812 (arm_expand_vfp_builtin): Likewise.
18813 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
18814
18815 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
18816
18817 PR middle-end/77484
18818 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
18819 * predict.c (tree_estimate_probability_bb): Reverse direction of
18820 polymorphic call predictor.
18821
18822 2017-01-06 David Malcolm <dmalcolm@redhat.com>
18823
18824 * passes.c (execute_one_pass): Split out pass-skipping logic into...
18825 (determine_pass_name_match): ...this new function and...
18826 (should_skip_pass_p): ...this new function.
18827
18828 2017-01-06 Nathan Sidwell <nathan@acm.org>
18829
18830 * ipa-visibility.c (function_and_variable_visibility): Reformat
18831 comments and long lines. Remove extrneous if.
18832 * symtab.c (symtab_node::make_decl_local): Fix code format.
18833 (symtab_node::set_section_for_node): Fix comment typo.
18834
18835 2017-01-06 Martin Liska <mliska@suse.cz>
18836
18837 PR bootstrap/79003
18838 * lra-constraints.c: Rename invariant to lra_invariant.
18839 * predict.c (set_even_probabilities): Initialize e to NULL.
18840
18841 2017-01-05 Martin Sebor <msebor@redhat.com>
18842
18843 PR tree-optimization/78910
18844 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
18845 (format_integer): Correct off-by-one error in the handling
18846 of precision with negative numbers in signed conversions..
18847
18848 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
18849
18850 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
18851
18852 2017-01-05 Jakub Jelinek <jakub@redhat.com>
18853
18854 PR tree-optimization/71016
18855 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
18856 factor_out_conditional_conversion. Formatting fix.
18857 (factor_out_conditional_conversion): Add cond_stmt argument.
18858 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
18859 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
18860 Formatting fix.
18861
18862 2017-01-05 David Malcolm <dmalcolm@redhat.com>
18863
18864 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
18865 read-rtl-function.o, and selftest-rtl.o.
18866 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
18867 (selftest::aarch64_test_loading_full_dump): New function.
18868 (selftest::aarch64_run_selftests): New function.
18869 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
18870 selftest::aarch64_run_selftests.
18871 * config/i386/i386.c
18872 (selftest::ix86_test_loading_dump_fragment_1): New function.
18873 (selftest::ix86_test_loading_call_insn): New function.
18874 (selftest::ix86_test_loading_full_dump): New function.
18875 (selftest::ix86_test_loading_unspec): New function.
18876 (selftest::ix86_run_selftests): Call the new functions.
18877 * emit-rtl.c (maybe_set_max_label_num): New function.
18878 * emit-rtl.h (maybe_set_max_label_num): New decl.
18879 * function.c (instantiate_decls): Guard call to
18880 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
18881 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
18882 "static".
18883 * gensupport.c (gen_reader::gen_reader): Pass "false"
18884 for new "compact" param of rtx_reader.
18885 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
18886 rather than an empty string for NULL strings.
18887 * read-md.c: Potentially include config.h rather than bconfig.h.
18888 Wrap include of errors.h with #ifdef GENERATOR_FILE.
18889 (have_error): New global, copied from errors.c.
18890 (md_reader::read_name): Rename to...
18891 (md_reader::read_name_1): ...this, adding "out_loc" param,
18892 and converting "missing name or number" to returning false, rather
18893 than failing.
18894 (md_reader::read_name): Reimplement in terms of read_name_1.
18895 (md_reader::read_name_or_nil): New function.
18896 (md_reader::read_string): Handle "(nil)" by returning NULL.
18897 (md_reader::md_reader): Add new param "compact".
18898 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
18899 (md_reader::read_file): New method.
18900 * read-md.h (md_reader::md_reader): Add new param "compact".
18901 (md_reader::read_file): New method.
18902 (md_reader::is_compact): New accessor.
18903 (md_reader::read_name): Convert return type from void to file_location.
18904 (md_reader::read_name_or_nil): New decl.
18905 (md_reader::read_name_1): New decl.
18906 (md_reader::m_compact): New field.
18907 (noop_reader::noop_reader): Pass "false" for new "compact" param
18908 of rtx_reader.
18909 (rtx_reader::rtx_reader): Add new "compact" param.
18910 (rtx_reader::read_rtx_operand): Make virtual and convert return
18911 type from void to rtx.
18912 (rtx_reader::read_until): New decl.
18913 (rtx_reader::handle_any_trailing_information): New virtual function.
18914 (rtx_reader::postprocess): New virtual function.
18915 (rtx_reader::finalize_string): New virtual function.
18916 (rtx_reader::m_in_call_function_usage): New field.
18917 (rtx_reader::m_reuse_rtx_by_id): New field.
18918 * read-rtl-function.c: New file.
18919 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
18920 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
18921 (selftest::verify_three_block_rtl_cfg): New decl.
18922 * read-rtl-function.h: New file.
18923 * read-rtl.c: Potentially include config.h rather than bconfig.h.
18924 For host, include function.h, memmodel.h, and emit-rtl.h.
18925 (one_time_initialization): New function.
18926 (struct compact_insn_name): New struct.
18927 (compact_insn_names): New array.
18928 (find_code): Handle insn codes in compact dumps.
18929 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
18930 (bind_subst_iter_and_attr): Likewise.
18931 (add_condition_to_string): Likewise.
18932 (add_condition_to_rtx): Likewise.
18933 (apply_attribute_uses): Likewise.
18934 (add_current_iterators): Likewise.
18935 (apply_iterators): Likewise.
18936 (initialize_iterators): Guard usage of apply_subst_iterator with
18937 #ifdef GENERATOR_FILE.
18938 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
18939 (md_reader::read_mapping): Likewise.
18940 (add_define_attr_for_define_subst): Likewise.
18941 (add_define_subst_attr): Likewise.
18942 (read_subst_mapping): Likewise.
18943 (check_code_iterator): Likewise.
18944 (rtx_reader::read_rtx): Likewise. Move one-time initialization
18945 logic to...
18946 (one_time_initialization): New function.
18947 (rtx_reader::read_until): New method.
18948 (read_flags): New function.
18949 (parse_reg_note_name): New function.
18950 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
18951 Handle reuse_rtx ids.
18952 Wrap iterator lookup within #ifdef GENERATOR_FILE.
18953 Add parsing support for RTL dumps, mirroring the special-cases in
18954 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
18955 values, and calling handle_any_trailing_information.
18956 (rtx_reader::read_rtx_operand): Convert return type from void
18957 to rtx, returning return_rtx. Handle case 'e'. Call
18958 finalize_string on XSTR and XTMPL fields.
18959 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
18960 "(nil)" values were omitted. Call the postprocess vfunc on the
18961 return_rtx.
18962 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
18963 class ctor. Initialize m_in_call_function_usage. Call
18964 one_time_initialization.
18965 * rtl-tests.c (selftest::test_uncond_jump): Call
18966 set_new_first_and_last_insn.
18967 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
18968 * selftest-rtl.c: New file.
18969 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
18970 (selftest::get_insn_by_uid): New decl.
18971 * selftest-run-tests.c (selftest::run_tests): Call
18972 read_rtl_function_c_tests.
18973 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
18974 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
18975 dumps.
18976
18977 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
18978
18979 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
18980 operands in a special way. Assert that pos+len <= mode precision.
18981
18982 2017-01-05 Jakub Jelinek <jakub@redhat.com>
18983
18984 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
18985 3 argument Alias with unlimited for the negative form.
18986 (fno-vect-cost-model): Removed.
18987
18988 2017-01-05 Martin Liska <mliska@suse.cz>
18989
18990 * hsa-gen.c (gen_hsa_divmod): New function.
18991 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
18992
18993 2017-01-05 Martin Liska <mliska@suse.cz>
18994
18995 PR pch/78970
18996 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
18997 header.
18998
18999 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19000
19001 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
19002 small constant length operands.
19003
19004 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19005
19006 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
19007 between loop iterations.
19008
19009 2017-01-05 Martin Liska <mliska@suse.cz>
19010
19011 PR sanitizer/78815
19012 * gimplify.c (gimplify_decl_expr): Compare to
19013 asan_poisoned_variables instread of checking flags.
19014 (gimplify_target_expr): Likewise.
19015 (gimplify_expr): Likewise.
19016 (gimplify_function_tree): Conditionally initialize
19017 asan_poisoned_variables.
19018
19019 2017-01-04 Jeff Law <law@redhat.com>
19020
19021 PR tree-optimizatin/78812
19022 * rtl.h (contains_mem_rtx_p): Prototype.
19023 * ifcvt.c (containts_mem_rtx_p): Move from here to...
19024 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
19025 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
19026 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
19027 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
19028
19029 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
19030
19031 * input.c (assert_char_at_range): Default-initialize actual_range.
19032
19033 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
19034
19035 * df-scan.c (df_ref_create_structure): Make regno unsigned,
19036 to match the caller.
19037
19038 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
19039
19040 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
19041 insns after final jump in test to emit dummy move.
19042
19043 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
19044
19045 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
19046 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
19047
19048 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
19049
19050 * multiple_target.c (create_dispatcher_calls): Init e_next.
19051 * tree-ssa-loop-split.c (split_loop): Init border.
19052 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
19053 scalar_type.
19054
19055 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19056
19057 PR target/71977
19058 PR target/70568
19059 PR target/78823
19060 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
19061 (altivec_register_operand): Do not return true if the operand
19062 contains a SUBREG mixing SImode and SFmode.
19063 (vsx_register_operand): Likewise.
19064 (vsx_reg_sfsubreg_ok): New predicate.
19065 (vfloat_operand): Do not return true if the operand contains a
19066 SUBREG mixing SImode and SFmode.
19067 (vint_operand): Likewise.
19068 (vlogical_operand): Likewise.
19069 (gpc_reg_operand): Likewise.
19070 (int_reg_operand): Likewise.
19071 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
19072 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
19073 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
19074 SImode and SFmode.
19075 (rs6000_emit_move_si_sf_subreg): New helper function.
19076 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
19077 fixup SUBREGs involving SImode and SFmode.
19078 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
19079 numbers for the new peephole2 optimization.
19080 (peephole2 for SFmode unions): New peephole2 to optimize cases in
19081 the GLIBC math library that do AND/IOR/XOR operations on single
19082 precision floating point.
19083 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
19084 target macros to say whether we need to avoid SUBREGs mixing
19085 SImode and SFmode.
19086 (TARGET_ALLOW_SF_SUBREG): Likewise.
19087 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
19088 (UNSPEC_SI_FROM_SF): Likewise.
19089 (iorxor): Change spacing.
19090 (and_ior_xor): New iterator for AND, IOR, and XOR.
19091 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
19092 (movdi_from_sf_zero_ext): Likewise.
19093 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
19094 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
19095 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
19096 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
19097 (fms<mode>4): Likewise.
19098 (fnma<mode>4): Likewise.
19099 (fnms<mode>4): Likewise.
19100 (nfma<mode>4): Likewise.
19101 (nfms<mode>4): Likewise.
19102
19103 2017-01-04 Marek Polacek <polacek@redhat.com>
19104
19105 PR c++/64767
19106 * doc/invoke.texi: Document -Wpointer-compare.
19107
19108 2017-01-04 Jakub Jelinek <jakub@redhat.com>
19109
19110 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
19111 RejectNegative.
19112
19113 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
19114 descriptions for -gdwarf-5 and emit them as uleb128 instead of
19115 2-byte data.
19116
19117 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
19118
19119 PR target/78056
19120 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
19121 documentation of the powerpc_popcntb_ok attribute.
19122 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19123 code to issue warning messages if a requested CPU configuration is
19124 not supported by the binary (assembler and loader) toolchain.
19125 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
19126 made to define a built-in function that has been disabled.
19127 (paired_init_builtins): Add assertion to prevent ICE if attempt is
19128 made to define a built-in function that has been disabled.
19129 (altivec_init_builtins): Add comment explaining why definition
19130 of the DST built-in functions is not preceded by an assertion
19131 check. Add assertions to prevent ICE if attempts are made to
19132 define an altivec predicate or an abs* built-in function that has
19133 been disabled.
19134 (htm_init_builtins): Add comment explaining why definition of the
19135 htm built-in functions is not preceded by an assertion check.
19136
19137 2017-01-04 Jeff Law <law@redhat.com>
19138
19139 PR tree-optimizatin/67955
19140 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
19141 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
19142 the points-to solution does not include pt_null. Use DECL_PT_UID
19143 unconditionally.
19144
19145 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
19146
19147 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
19148 Use gen_int_mode instead of gen_lopwart for const_int operands.
19149
19150 2017-01-04 Jakub Jelinek <jakub@redhat.com>
19151
19152 PR tree-optimization/71563
19153 * match.pd: Simplify X << Y into X if Y is known to be 0 or
19154 out of range value - has low bits known to be zero.
19155
19156 2017-01-04 Alan Modra <amodra@gmail.com>
19157
19158 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
19159 * configure: Regenerate.
19160 * config.in: Regenerate.
19161
19162 2017-01-04 Jakub Jelinek <jakub@redhat.com>
19163
19164 PR bootstrap/77569
19165 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
19166 a substring of the message, but strcmp with the whole message. Ifdef
19167 ENABLE_NLS, translate the message first using dgettext.
19168
19169 2017-01-03 Jeff Law <law@redhat.com>
19170
19171 PR tree-optimizatin/78856
19172 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
19173 (mark_threaded_blocks): Remove code to truncate thread paths that
19174 cross multiple loop headers. Instead invalidate the cached loop
19175 iteration information and handle case of a thread path walking
19176 into an irreducible region.
19177
19178 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19179
19180 PR target/78900
19181 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
19182 assertions. Add support for doing the signbit if the IEEE 128-bit
19183 floating point value is in a GPR.
19184 * config/rs6000/rs6000.md (Fsignbit): Delete.
19185 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
19186 Update the length attribute if the value is in a GPR.
19187 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
19188 the sign or zero extension instruction, since the value is always 0/1.
19189 (signbit<mode>2_dm2): Delete using <Fsignbit>.
19190
19191 PR target/78953
19192 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
19193 extracting SImode to a GPR register so that we can generate a
19194 store, limit the vector to be in a traditional Altivec register
19195 for the vextuwrx instruction.
19196
19197 2017-01-03 Ian Lance Taylor <iant@google.com>
19198
19199 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
19200
19201 2017-01-03 Martin Sebor <msebor@redhat.com>
19202
19203 PR tree-optimization/78696
19204 * gimple-ssa-sprintf.c (format_floating): Correct handling of
19205 precision. Use MPFR for %f for greater fidelity. Correct handling
19206 of %g.
19207 (pass_sprintf_length::compute_format_length): Set width and precision
19208 specified by asrerisk to void_node for vararg functions.
19209 (try_substitute_return_value): Adjust dump output.
19210
19211 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
19212
19213 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
19214
19215 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
19216
19217 * doc/invoke.texi (SPARC options): Document -mlra as the default.
19218 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
19219 -mlra/-mno-lra was passed to the compiler.
19220
19221 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
19222
19223 PR rtl-optimization/65618
19224 * emit-rtl.c (try_split): Move initialization of "before" and
19225 "after" to just before the call to emit_insn_after_setloc.
19226
19227 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
19228
19229 * doc/md.texi (Standard Names): Remove reference to Java frontend.
19230
19231 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
19232
19233 * dwarf2out.c (gen_enumeration_type_die): When
19234 -gno-strict-dwarf, add a DW_AT_encoding attribute.
19235
19236 2017-01-03 Jakub Jelinek <jakub@redhat.com>
19237
19238 PR tree-optimization/78965
19239 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
19240 Change first argument from const call_info & to call_info &. For %n
19241 set info.nowrite to false.
19242
19243 PR middle-end/78901
19244 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
19245 possibly throwing calls.
19246
19247 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
19248 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
19249 and fns handling, rather than in a separate case SSA_NAME.
19250
19251 2017-01-02 Jeff Law <law@redhat.com>
19252
19253 * config/darwin-driver.c (darwin_driver_init): Const-correctness
19254 fixes for first_period and second_period variables.
19255
19256 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
19257
19258 PR target/78967
19259 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
19260 (*insvqi_1): New insn pattern.
19261 (*insvqi_1_mem_rex64): Ditto.
19262 (*insvqi_2): Ditto.
19263 (*insvqi_3): Rename from *insvqi.
19264
19265 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
19266
19267 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
19268
19269 * doc/cfg.texi (Edges): Remove reference to Java.
19270 (Maintaining the CFG): Ditto.
19271
19272 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
19273
19274 PR middle-end/77674
19275 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
19276 transparent aliases.
19277
19278 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
19279
19280 PR middle-end/77484
19281 * predict.def (PRED_CALL): Update hitrate.
19282 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
19283 * predict.c (tree_estimate_probability_bb): Split CALL predictor
19284 into direct/indirect/polymorphic variants.
19285
19286 2017-01-01 Jakub Jelinek <jakub@redhat.com>
19287
19288 Update copyright years.
19289
19290 * gcc.c (process_command): Update copyright notice dates.
19291 * gcov-dump.c (print_version): Ditto.
19292 * gcov.c (print_version): Ditto.
19293 * gcov-tool.c (print_version): Ditto.
19294 * gengtype.c (create_file): Ditto.
19295 * doc/cpp.texi: Bump @copying's copyright year.
19296 * doc/cppinternals.texi: Ditto.
19297 * doc/gcc.texi: Ditto.
19298 * doc/gccint.texi: Ditto.
19299 * doc/gcov.texi: Ditto.
19300 * doc/install.texi: Ditto.
19301 * doc/invoke.texi: Ditto.
19302 \f
19303 Copyright (C) 2017 Free Software Foundation, Inc.
19304
19305 Copying and distribution of this file, with or without modification,
19306 are permitted in any medium without royalty provided the copyright
19307 notice and this notice are preserved.